backupfile: Fix module dependencies.
[gnulib.git] / ChangeLog
blob790256aa329c5646d50120c9e2ceeb97f101f3f2
1 2019-01-04  Bruno Haible  <bruno@clisp.org>
3         backupfile: Fix module dependencies.
4         * modules/backupfile (Depends-on): Add 'xalloc'.
6 2019-01-03  Paul Eggert  <eggert@cs.ucla.edu>
8         bitset, crypto/gc: fix conflicts with Solaris 11
9         * lib/bitset.h (_GL_BITSET_H): Rename from _BITSET_H, to
10         avoid clash with Solaris 11 <sys/bitset.h>.
11         * lib/gc.h (_GL_GC_H): Rename from GC_H, to avoid clash
12         with Solaris 11 <xorg/gc.h>.
14 2019-01-04  Bruno Haible  <bruno@clisp.org>
16         safe-read, safe-write: Fix conflict with Illumos-Joyent <sys/limits.h>.
17         Reported by Andy Fiddaman <andy@omniosce.org>.
18         * lib/sys-limits.h: Add a '_GL' prefix to the guard symbol.
20 2019-01-03  Eric Blake  <eblake@redhat.com>
22         maintainer-makefile: fix typo in previous patch
23         * top/maint.mk (_sc_search_regexp): Fix my accidental corruption
24         of Roman's work.
26 2019-01-02  Roman Bolshakov <r.bolshakov@yadro.com>  (tiny change)
28         maintainer-makefile: prefer $(GREP) over grep
29         * modules/maintainer-makefile (configure.ac): Ensure $(GREP) is
30         defined.
31         * top/maint.mk: Use it everywhere.
33         maintainer-makefile: split long argument lines
34         * top/maint.mk: Use xargs to split $(VC_LIST_EXCEPT) usage where
35         it would be too long for exec limits on BSD.
37 2018-12-27  Paul Eggert  <eggert@cs.ucla.edu>
39         mkfifo: bring back HAVE_MKFIFO macro
40         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): #define HAVE_MKFIFO as needed.
41         Problem reported by Andrew Janke in:
42         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00147.html
44 2018-12-21  Bruno Haible  <bruno@clisp.org>
46         Assume Autoconf >= 2.63.
47         * modules/stdarg (configure.ac-early): Remove comment about Autoconf
48         versions < 2.60.
50 2018-12-21  Bruno Haible  <bruno@clisp.org>
52         memcmp: Mention the clang bug.
53         * tests/test-memcmp.c: Add comment about a known test failure.
54         * doc/posix-functions/memcmp.texi: Mention the clang bug.
56 2018-12-20  Jim Meyering  <meyering@fb.com>
58         revert v0.1-2213-gae4b73e28 and part of v0.1-2281-g95cd86dd7
59         v0.1-2213-gae4b73e28 caused a regression in grep-3.2 (no match):
60           echo '123-x'|LC_ALL=C grep -E '.\bx'
61         The goal is to revert the first, but reverting it requires to restore
62         the function deleted in the second. I ran this to restore the deleted
63         function:
64           git show v0.1-2281-g95cd86dd7 lib/dfa.c \
65             | perl -0777 -pe 's/^@@[^\n]*dfaan.*//ms' \
66             | patch -R -p1
67         * lib/dfa.c (charclass_context): Restore deleted function.
68         Reverting the primary commit removes this change:
69         dfa: Simplify a building state
70         * lib/dfa.c (build_state): Simplify a building state.
72 2018-12-20  Paul Eggert  <eggert@cs.ucla.edu>
74         version-etc: allow zero authors
75         * lib/version-etc.c (version_etc_arn): If no authors are given,
76         omit authorship info instead of dumping core.
78 2018-12-19  Bruno Haible  <bruno@clisp.org>
80         lchown tests: Be more permissive regarding errno values.
81         Reported by Ivan Zakharyaschev <imz@altlinux.org>.
82         * tests/test-lchown.h (test_lchown): Recognize EOPNOTSUPP as an
83         alternative to ENOSYS.
84         * modules/lchown-tests (Depends-on): Add 'errno'.
85         * modules/fchownat-tests (Depends-on): Likewise.
87 2018-12-18  Bruno Haible  <bruno@clisp.org>
89         duplocale: Avoid test failure on AIX 7.
90         * modules/duplocale-tests (Files): Add m4/intl-thread-locale.m4.
91         (configure.ac): Invoke gt_FUNC_USELOCALE.
92         * tests/test-duplocale.c: Test HAVE_WORKING_USELOCALE instead of
93         HAVE_USELOCALE. Assume that nl_langinfo_l only works when uselocale
94         works.
96 2018-12-18  Bruno Haible  <bruno@clisp.org>
98         localename: Fix test failure on AIX 7.
99         Reported by Assaf Gordon in
100         <https://lists.gnu.org/archive/html/sed-devel/2018-12/msg00019.html>.
101         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): New macro.
102         (gt_INTL_THREAD_LOCALE_NAME): Invoke it. Test gt_cv_func_uselocale_works
103         instead of ac_cv_func_uselocale.
104         * lib/localename.c: Test HAVE_WORKING_USELOCALE instead of
105         HAVE_USELOCALE.
106         * lib/localename-table.h: Likewise.
107         * lib/localename-table.c: Likewise.
108         * tests/test-localename.c: Likewise.
109         * doc/posix-functions/uselocale.texi: Mention the AIX problem.
111 2018-12-18  Bruno Haible  <bruno@clisp.org>
113         localename: Update comments regarding Cygwin.
114         * lib/localename.c: Update comment.
115         * doc/posix-functions/uselocale.texi: Update platforms list.
116         * doc/posix-functions/newlocale.texi: Likewise.
117         * doc/posix-functions/duplocale.texi: Likewise.
118         * doc/posix-functions/freelocale.texi: Likewise.
120 2018-12-16  Bruno Haible  <bruno@clisp.org>
122         c-stack: Fix for Linux/sparc.
123         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Set
124         ac_cv_sys_xsi_stack_overflow_heuristic to 'no' on Linux/sparc.
126 2018-12-16  Bruno Haible  <bruno@clisp.org>
128         localename: Avoid test failure on some glibc systems.
129         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
130         Unset environment variables that might disturb the first setlocale call,
131         and verify that this setlocale call succeeds.
133 2018-12-16  Assaf Gordon  <assafgordon@gmail.com>
135         random: Fix build error on native Windows (regression from 2018-06-21).
136         * lib/random.c (__srandom, __initstate, __setstate, __random,
137         __srandom_r, __initstate_r, __setstate_r, __random_r) [!_LIBC]: Redirect
138         to the symbols without '__' prefix.
140 2018-12-16  Bruno Haible  <bruno@clisp.org>
142         obstack, libc-config: Support HP-UX cc in C99 mode.
143         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER): Treat HP-UX cc as a pre-C99
144         compiler, even when in C99 mode.
145         * lib/cdefs.h (__flexarr): Likewise.
146         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Update comment.
148 2018-12-16  Bruno Haible  <bruno@clisp.org>
150         localename: Fix test failure on OpenBSD >= 6.2.
151         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Test for fake
152         locale system. Define HAVE_FAKE_LOCALES in this case.
153         * lib/localename.c (HAVE_GOOD_USELOCALE): New macro. Use it instead of
154         HAVE_USELOCALE.
155         * tests/test-localename.c (HAVE_GOOD_USELOCALE): New macro. Use it
156         instead of HAVE_NEWLOCALE && HAVE_USELOCALE.
157         * doc/posix-functions/uselocale.texi: Mention OpenBSD problem. Update
158         platforms list.
159         * doc/posix-functions/newlocale.texi: Likewise.
160         * doc/posix-functions/duplocale.texi: Update platforms list.
161         * doc/posix-functions/freelocale.texi: Likewise.
163 2018-12-16  Bruno Haible  <bruno@clisp.org>
165         duplocale tests: Re-enable the test on platforms without <monetary.h>.
166         * tests/test-duplocale.c: Use more fine-grained #ifs to re-enable most
167         of the test, on platforms without <monetary.h>.
169 2018-12-16  Bruno Haible  <bruno@clisp.org>
171         localename: Update comments.
172         * lib/localename.c (HAVE_USELOCALE): Update list of platforms.
174 2018-12-15  Jim Meyering  <meyering@fb.com>
176         regex: fix indentation
177         * m4/regex.m4 (gl_REGEX): Indent with spaces, not TABs.
179 2018-12-15  Bruno Haible  <bruno@clisp.org>
181         openat-safer tests: Avoid test failure on NetBSD 8.
182         * tests/test-openat-safer.c (main): Execute a Linux specific test only
183         on Linux.
185 2018-12-15  Jim Meyering  <meyering@fb.com>
187         regex: work around a bug in glibc-2.27 and prior
188         * m4/regex.m4 (gl_REGEX): Reject any system regexp that gets a failed
189         assertion for /0|()0|\1|0/.
190         * tests/test-regex.c (main): Add the same test here.
192 2018-12-15  Bruno Haible  <bruno@clisp.org>
194         localename: Fix use of uninitialized shell variable.
195         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Initialize
196         gt_cv_locale_solaris114 always before use. Remove assignment without
197         effect.
199 2018-12-15  Bruno Haible  <bruno@clisp.org>
201         dfa tests: Avoid test failure on Alpine Linux.
202         * tests/dfa-match.sh (timeout_10): Accommodate the BusyBox 'timeout'
203         command found on Alpine Linux.
205 2018-12-15  Jim Meyering  <meyering@fb.com>
207         dfa: avoid new warnings from gcc
208         These would prevent building with -Werror and a Dec snapshot of gcc.
209         * lib/dfa.c (dfaanalyze): Avoid shadowing warnings for "pos".
210         Rename each inner instance to "p".
211         (charclass_context): Remove unused static function.
213 2018-12-14  Paul Eggert  <eggert@cs.ucla.edu>
215         mkdir-p: improve diagnostic for FUSE mounts
216         Problem reported by Niklas Hambüchen in:
217         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00074.html
218         * lib/mkdir-p.c (make_dir_parents): In diagnostic, prefer stat
219         errno to mkdir errno if the stat errno is likely more interesting.
221 2018-12-14  Bruno Haible  <bruno@clisp.org>
223         hash-map: Add tests.
224         * tests/test-hash_map.c: New file.
225         * modules/hash-map-tests: New file.
227         linkedhash-map: Add tests.
228         * tests/test-linkedhash_map.c: New file.
229         * modules/linkedhash-map-tests: New file.
231         array-map: Add tests.
232         * tests/test-array_map.c: New file.
233         * modules/array-map-tests: New file.
235         xmap: New module.
236         * lib/gl_xmap.h: New file.
237         * lib/gl_xmap.c: New file.
238         * modules/xmap: New file.
240         hash-map: New module.
241         * lib/gl_hash_map.h: New file.
242         * lib/gl_hash_map.c: New file.
243         * modules/hash-map: New file.
245         linkedhash-map: New module.
246         * lib/gl_linkedhash_map.h: New file.
247         * lib/gl_linkedhash_map.c: New file.
248         * lib/gl_anyhash1.h: Update comments.
249         * lib/gl_anyhash2.h: Likewise.
250         * modules/linkedhash-map: New file.
252         array-map: New module.
253         * lib/gl_array_map.h: New file.
254         * lib/gl_array_map.c: New file.
255         * modules/array-map: New file.
257         map: New module.
258         * lib/gl_map.h: New file.
259         * lib/gl_map.c: New file.
260         * lib/gl_omap.h (gl_mapkey_dispose_fn, gl_mapvalue_dispose_fn): Avoid
261         conflict with gl_map.h.
262         * modules/map: New file.
264 2018-12-13  Bruno Haible  <bruno@clisp.org>
266         select tests: Avoid test failure on Cygwin.
267         * tests/test-select.h (test_bad_fd): Use an fd < FD_SETSIZE.
269 2018-12-13  Bruno Haible  <bruno@clisp.org>
271         localtime-buffer: Avoid endless recursion in localtime and gmtime.
272         * lib/localtime-buffer.c: Undefine localtime and gmtime before use.
274 2018-12-13  Bruno Haible  <bruno@clisp.org>
276         localeconv tests: Avoid test failure on Cygwin.
277         * tests/test-localeconv.c (main): On Cygwin, skip the 'grouping' and
278         'mon_grouping' tests.
280 2018-12-11  Bruno Haible  <bruno@clisp.org>
282         omap: Don't dispose the old value when the function returns it.
283         * lib/gl_array_omap.c (gl_array_remove_at): Don't invoke the vdispose_fn
284         here.
285         * lib/gl_avltree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
286         * lib/gl_rbtree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
287         * lib/gl_omap.h (gl_omap_nx_put, gl_omap_remove): Invoke the vdispose_fn
288         here.
290         array-omap, avltree-omap, rbtree-omap: Tweak style.
291         * lib/gl_anytree_omap.h (gl_tree_nx_getput): Return 1 or 0, not true or
292         false.
293         * lib/gl_array_omap.c (gl_array_nx_getput): Likewise.
295         rbtree-omap: Add tests.
296         * tests/test-rbtree_omap.c: New file.
297         * modules/rbtree-omap-tests: New file.
299         avltree-omap: Add tests.
300         * tests/test-avltree_omap.c: New file.
301         * modules/avltree-omap-tests: New file.
303         array-omap: Add tests.
304         * tests/test-array_omap.c: New file.
305         * modules/array-omap-tests: New file.
307         xomap: New module.
308         * lib/gl_xomap.h: New file.
309         * lib/gl_xomap.c: New file.
310         * modules/xomap: New file.
312         rbtree-omap: New module.
313         * lib/gl_rbtree_omap.h: New file.
314         * lib/gl_rbtree_omap.c: New file.
315         * lib/gl_rbtree_ordered.h: Code moved to here from lib/gl_rbtree_oset.c.
316         Parameterize.
317         * lib/gl_rbtree_oset.c: Include gl_rbtree_ordered.h.
318         * modules/rbtree-omap: New file.
319         * modules/rbtree-oset (Files): Add lib/gl_rbtree_ordered.h.
320         (Makefile.am): Add gl_rbtree_ordered.h to lib_SOURCES.
322         avltree-omap: New module.
323         * lib/gl_avltree_omap.h: New file.
324         * lib/gl_avltree_omap.c: New file.
325         * lib/gl_avltree_ordered.h: Code moved to here from
326         lib/gl_avltree_oset.c. Parameterize.
327         * lib/gl_avltree_oset.c: Include gl_avltree_ordered.h.
328         * lib/gl_anytree_omap.h: New file.
329         * modules/avltree-omap: New file.
330         * modules/avltree-oset (Files): Add lib/gl_avltree_ordered.h.
331         (Makefile.am): Add gl_avltree_ordered.h to lib_SOURCES.
333         array-omap: New module.
334         * lib/gl_array_omap.h: New file.
335         * lib/gl_array_omap.c: New file.
336         * modules/array-omap: New file.
338         omap: New module.
339         * lib/gl_omap.h: New file.
340         * lib/gl_omap.c: New file.
341         * modules/omap: New file.
343 2018-12-11  Bruno Haible  <bruno@clisp.org>
345         hash-set, linkedhash-set: Reduce code duplication.
346         * lib/gl_anyhash1.h: Rename from lib/gl_anyhash_list1.h and
347         lib/gl_anyhash_set1.h.
348         * lib/gl_anyhash2.h: Rename from lib/gl_anyhash_list2.h and
349         lib/gl_anyhash_set2.h. Parameterize.
350         (hash_resize_after_add): New function, from lib/gl_anyhash_set2.h.
351         * lib/gl_anytreehash_list1.h (hash_resize_after_add): Remove function.
352         * lib/gl_avltreehash_list.c: Include gl_anyhash1.h instead of
353         gl_anyhash_list1.h. Include gl_anyhash2.h instead of gl_anyhash_list2.h.
354         * lib/gl_rbtreehash_list.c: Likewise.
355         * lib/gl_linkedhash_list.c: Likewise.
356         (hash_resize_after_add): Remove function.
357         * lib/gl_linkedhash_set.c: Include gl_anyhash1.h instead of
358         gl_anyhash_set1.h. Include gl_anyhash2.h instead of gl_anyhash_set2.h.
359         * gl_hash_set.c: Likewise.
360         * modules/avltreehash-list (Files, Makefile.am): Update file list.
361         * modules/rbtreehash-list (Files, Makefile.am): Likewise.
362         * modules/linkedhash-list (Files, Makefile.am): Likewise.
363         * modules/linkedhash-set (Files, Makefile.am): Likewise.
364         * modules/hash-set (Files, Makefile.am): Likewise.
366 2018-12-11  Bruno Haible  <bruno@clisp.org>
368         array-set: Optimize.
369         * lib/gl_array_set.c (gl_array_search, gl_array_remove): Test equals_fn
370         outside the loop, not inside the loop.
372 2018-12-11  Bruno Haible  <bruno@clisp.org>
374         times: Fix tests.
375         * tests/test-times.c (doublecmp): Implement a total order.
377 2018-12-11  Bruno Haible  <bruno@clisp.org>
379         array-set, linkedhash-set, hash-set: Fix tests.
380         * tests/test-array_set.c (cmp_objects_in_array): New function.
381         (check_equals): Use it.
382         * tests/test-hash_set.c: Likewise.
383         * tests/test-linkedhash_set.c: Likewise.
385 2018-12-08  Bruno Haible  <bruno@clisp.org>
387         Fix comments.
388         * lib/gl_list.h (gl_list_free): Clarify what it does.
389         * lib/gl_oset.h (gl_oset_free): Likewise.
390         * lib/gl_set.h (gl_set_free): Likewise.
391         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Fix typo in comment.
392         * lib/gl_array_oset.c (gl_array_search_atleast): Likewise.
393         * lib/gl_anyavltree_list1.h (MAXHEIGHT): Likewise.
394         * lib/gl_avltree_oset.c (MAXHEIGHT): Likewise.
396 2018-12-03  Bruno Haible  <bruno@clisp.org>
398         hash-set: Add tests.
399         * tests/test-hash_set.c: New file.
400         * modules/hash-set-tests: New file.
402         linkedhash-set: Add tests.
403         * tests/test-linkedhash_set.c: New file.
404         * modules/linkedhash-set-tests: New file.
406         array-set: Add tests.
407         * tests/test-array_set.c: New file.
408         * modules/array-set-tests: New file.
410         xset: New module.
411         * lib/gl_xset.h: New file.
412         * lib/gl_xset.c: New file.
413         * modules/xset: New file.
415         hash-set: New module.
416         * lib/gl_hash_set.h: New file.
417         * lib/gl_hash_set.c: New file.
418         * modules/hash-set: New file.
420         linkedhash-set: New module.
421         * lib/gl_linkedhash_set.h: New file.
422         * lib/gl_linkedhash_set.c: New file.
423         * lib/gl_anyhash_set1.h: New file, based on lib/gl_anyhash_list1.h.
424         * lib/gl_anyhash_set2.h: New file, based on lib/gl_anyhash_list2.h.
425         * lib/gl_anyhash_primes.h: New file, extracted from
426         lib/gl_anyhash_list2.h.
427         * lib/gl_anyhash_list2.h: Include it.
428         (primes, next_prime): Remove definitions.
429         * modules/linkedhash-set: New file.
430         * modules/avltreehash-list (Files): Add lib/gl_anyhash_primes.h.
431         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
432         * modules/linkedhash-list (Files): Add lib/gl_anyhash_primes.h.
433         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
434         * modules/rbtreehash-list (Files): Add lib/gl_anyhash_primes.h.
435         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
437         array-set: New module.
438         * lib/gl_array_set.h: New file.
439         * lib/gl_array_set.c: New file.
440         * modules/array-set: New file.
442         set: New module.
443         * lib/gl_set.h: New file.
444         * lib/gl_set.c: New file.
445         * lib/gl_oset.h (gl_setelement_dispose_fn): Avoid conflict with
446         gl_set.h.
447         * modules/set: New file.
449 2018-12-07  Akim Demaille  <akim@lrde.epita.fr>
451         bison: don't force the Yacc mode
452         Passing -y forces Bison into POSIX YACC mode.  This includes reporting
453         errors when Bison features are used in the grammar file.  Some of
454         these features (such as %expect) were flagged non-yacc recently.  Most
455         of the time, -y is actually used to please Automake's ylwrap which
456         expects the output to be y.tab.c.
457         * m4/bison.m4 (gl_BISON): Use `-o y.tab.c` rather than `-y`.
459 2018-12-01  Bruno Haible  <bruno@clisp.org>
461         gnupload: Document short options.
462         * build-aux/gnupload (usage): Document the short options.
464 2018-11-28  Ben Elliston  <bje@gnu.org>
466         gnupload: Support option -h as alias of --help.
467         * build-aux/gnupload: Support -h.
469 2018-11-30  Paul Eggert  <eggert@cs.ucla.edu>
471         memrchr: port better to clang
472         * lib/memrchr.c (__memrchr): Cast to void * instead of to
473         longword *, to pacify clang -Wcast-align (Bug#33544).
475 2018-11-29  Eric Blake  <eblake@redhat.com>
477         docs: mention printf %m considerations
478         * doc/glibc-functions/asprintf.texi (asprintf): Document that %m
479         is not portable, and is easy enough to work around.
480         * doc/glibc-functions/obstack_printf.texi (obstack_printf): Likewise.
481         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf): Likewise.
482         * doc/glibc-functions/vasprintf.texi (vasprintf): Likewise.
483         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
484         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
485         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
486         * doc/posix-functions/printf.texi (printf): Likewise.
487         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
488         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
489         * doc/posix-functions/swprintf.texi (swprintf): Likewise.
490         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
491         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
492         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
493         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
494         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
495         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
496         * doc/posix-functions/vswprintf.texi (vswprintf): Likewise.
497         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
498         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
500 2018-11-29  Akim Demaille  <akim@lrde.epita.fr>
502         bitset: rename ebitset/expandable.* as tbitset/table.*
503         See
504         https://lists.gnu.org/archive/html/bug-gnulib/2018-11/msg00096.html.
505         * lib/bitset/expandable.h, lib/bitset/expandable.c: Rename as...
506         * lib/bitset/table.h, lib/bitset/table.c: these.
507         Rename all the ebitset* symbols as tbitset*.
508         Adjust dependencies.
510 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
512         bitset: check the operations
513         * tests/test-bitset.c (bitset_random): New.
514         Use it.
515         * lib/bitset/expandable.c (ebitset_not): Fix typo.
517 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
519         bitset: properly use false/true instead of 0/1 for Booleans
520         * lib/bitset/expandable.c, lib/bitset/vector.c: Use false/true, not
521         0/1, as Booleans.
523 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
525         bitset: rename BITSET_VARRAY as BITSET_VECTOR
526         For consistency with the name of the file.
527         * doc/bitset.texi, lib/bitset.c, lib/bitset/base.h,
528         * lib/bitset/stats.c, lib/bitset/vector.c
529         (BITSET_VARRAY): Rename as...
530         (BITSET_VECTOR): this.
532 2018-11-28  Paul Eggert  <eggert@cs.ucla.edu>
534         strerror_r-posix: memmove, not memcpy
535         * lib/strerror_r.c (safe_copy): Use memmove, not memcpy,
536         since the source and destination might overlap in the call
537         ‘safe_copy (buf, buflen, strerror_r (errnum, buf, buflen))’.
538         Simplify.
540 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
542         bitsetv: new module
543         * lib/bitsetv.c, lib/bitsetv.h, modules/bitsetv: New.
545 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
547         bitset: add tests and doc
548         First stabs at providing a documentation and test for the bitset
549         module.
550         * doc/bitset.texi, modules/test-bitset, tests/bitset-tests.c: New.
552 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
554         bitset: new module
555         * lib/bitset.c, lib/bitset.h, lib/bitset/array.c,
556         * lib/bitset/array.h, lib/bitset/base.h, lib/bitset/expandable.c,
557         * lib/bitset/expandable.h, lib/bitset/list.c, lib/bitset/list.h,
558         * lib/bitset/stats.c, lib/bitset/stats.h, lib/bitset/vector.c,
559         * lib/bitset/vector.h, modules/bitset:
560         New.
562 2018-11-23  Bruno Haible  <bruno@clisp.org>
564         localename: Fix gettext test failures on mingw.
565         * lib/localename.c (gl_locale_name_posix): Convert the result of
566         gl_locale_name_environ to XPG syntax.
568 2018-11-23  Karl Berry  <karl@freefriends.org>
570         * config/srclistvars.txt,
571         * config/srclist.txt: remove all gettext references;
572         the gettext maintainers will sync as needed.
574 2018-11-21  Paul Eggert  <eggert@cs.ucla.edu>
576         mktime: add libc-config dependency
577         I missed this when we synced from glibc.
578         * modules/mktime (Depends-on): Add libc-config.
580 2018-11-13  Paul Eggert  <eggert@cs.ucla.edu>
582         longlong: fix comment typo
583         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Fix typo.
585 2018-11-11  Bruno Haible  <bruno@clisp.org>
587         havelib: Remove the need to include asm-underscore.m4.
588         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI_32BIT): New macro.
589         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use it instead of
590         gl_HOST_CPU_C_ABI.
591         * modules/havelib (Files): Add host-cpu-c-abi.m4.
592         (Depends-on): Remove host-cpu-c-abi.
594 2018-11-03  Paul Eggert  <eggert@cs.ucla.edu>
596         parse-datetime: simplify test for mktime failure
597         * lib/parse-datetime.y (mktime_ok): Simplify.
598         Remove args TZ and T; no longer needed.  Callers changed.
600         posixtm: simplify test for mktime failure
601         * lib/posixtm.c (posixtime): Simplify.
603         nstrftime: simplify test for mktime failure
604         * lib/nstrftime.c (__strftime_internal): Simplify.
606 2018-11-02  Paul Eggert  <eggert@cs.ucla.edu>
608         gnulib-common.m4: port _Noreturn to C++
609         Problem reported by Akim Demaille in:
610         https://lists.gnu.org/r/bug-bison/2018-10/msg00067.html
611         * m4/gnulib-common.m4 (gl_COMMON_BODY): If C++, use [[noreturn]].
612         Merge adjustments from _Noreturn.h and from glibc into the non-C++
613         version.
614         * lib/_Noreturn.h: Match gnulib-common.
616 2018-10-30  Bruno Haible  <bruno@clisp.org>
618         gnu-make: Fix for NetBSD 8 'make'.
619         Reported by Reuben Thomas in
620         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00135.html>.
621         * m4/gnu-make.m4 (gl_GNU_MAKE): Use a heuristic based on the --version
622         output, ignoring exit codes.
624 2018-10-28  Bernhard Voelker  <mail@bernhard-voelker.de>
626         maintainer-makefile: fix syntax-check rule for "same.h"
627         * top/maint.mk (sc_prohibit_same_without_use): Adjust regex to check
628         for 'same_nameat', too.
630 2018-10-25  Paul Eggert  <eggert@cs.ucla.edu>
632         havelib: fix nested ‘configure’ chatter
633         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Don’t nest
634         AC_CACHE_CHECK calls, which resulted in confusing output like
635         “checking for the common suffixes of directories in the library
636         search path... checking for 64-bit host... no lib,lib”.
638         backupfile: tweak for better code
639         * lib/backupfile.c: Sort include directives, and remove
640         unnecessary <limits.h> include.
641         (FALLTHROUGH): New macro, copied from other modules.
642         (backupfile_internal): Use it to avoid code duplication.
643         This lets GCC 8.2.1 generate better code by inlining the
644         call to check_extension.
646 2018-10-23  Paul Eggert  <eggert@cs.ucla.edu>
648         backupfile: new dir_fd args
649         New module opendirat with code taken from fts.
650         Use this module to let backupfile use a directory file descriptor.
651         * NEWS: Document the incompatible change.
652         * lib/backup-find.c (find_backup_file_name):
653         * lib/backup-rename.c (backup_file_rename):
654         New arg DIR_FD.
655         * lib/backupfile.c: Include stdint.h, for SIZE_MAX.
656         (SIZE_MAX): Remove.
657         Include opendirat.h rather than dirent--.h.
658         (check_extension): New args DIR_FD and BASE_MAX.  All callers changed.
659         (numbered_backup): New args DIR_FD and PNEW_FD.  All callers changed.
660         (backupfile_internal): New arg DIR_FD.  All callers changed.
661         * lib/fts.c: Include opendirat.h.
662         (opendirat): Move to opendirat.c.
663         * lib/opendirat.c, lib/opendirat.h, modules/opendirat: New files.
664         * modules/backupfile (Depends-on): Remove dirfd, opendir.
665         Add opendirat.
666         * modules/fts (Depends-on): Remove fdopendir, openat-safer.
667         Add opendirat.
669 2018-10-23  Bruno Haible  <bruno@clisp.org>
671         localename: Simplify support for per-thread locales on Solaris 11.4.
672         * m4/intl-thread-locale.m4: Renamed from m4/intlsolaris.m4.
673         (gt_INTL_THREAD_LOCALE_NAME): Renamed from gt_INTL_SOLARIS. Define
674         HAVE_SOLARIS114_LOCALES instead of HAVE_NAMELESS_LOCALES.
675         * lib/localename.c: Handle HAVE_SOLARIS114_LOCALES through Solaris
676         specific code.
677         * lib/localename-table.h: Update comments.
678         * lib/localename-table.c: Update comments.
679         * m4/localename.m4 (gl_LOCALENAME): Require gt_INTL_THREAD_LOCALE_NAME.
680         Test for 'uselocale'. Don't invoke gt_INTL_SOLARIS.
681         * m4/intl.m4 (AM_INTL_SUBDIR): Require gt_INTL_THREAD_LOCALE_NAME. Test
682         for 'uselocale'. Set HAVE_NAMELESS_LOCALES.
683         (gt_INTL_SUBDIR_CORE): Don't invoke gt_INTL_SOLARIS. Don't set
684         HAVE_NAMELESS_LOCALES here.
685         * modules/localename (Files): Add m4/intl-thread-locale.m4. Remove
686         m4/intlsolaris.m4.
687         * modules/gettext (Files): Likewise.
689 2018-10-22  Bruno Haible  <bruno@clisp.org>
691         std-gnu11: Support Autoconf versions < 2.64.
692         * m4/std-gnu11.m4 (AC_PROG_CC, AC_PROG_CXX): Use _AC_DO as fallback
693         when _AC_DO_LIMIT does not exist.
695 2018-10-22  Bruno Haible  <bruno@clisp.org>
697         Assume Autoconf >= 2.63.
698         * DEPENDENCIES: Mention the requirement.
700         * gnulib-tool (DEFAULT_AUTOCONF_MINVERSION): Bump to 2.63.
701         (func_get_filelist): Don't list m4/onceonly.m4 any more.
702         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
703         * m4/onceonly.m4: Remove file.
705         * m4/openmp.m4: Remove file.
706         * modules/openmp (Files): Remove m4/openmp.m4.
708         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Don't set datarootdir, docdir,
709         htmldir, dvidir, pdfdir, psdir, localedir.
710         * m4/po.m4 (AM_PO_SUBDIRS): Don't set localedir.
712         * m4/gnulib-common.m4 (m4_foreach_w): Remove fallback for
713         Autoconf < 2.60.
714         (AC_PROG_MKDIR_P): Remove definition for Autoconf < 2.62.
715         (AC_PROG_SED): Remove fallback for Autoconf < 2.60.
717         * m4/errno_h.m4 (AC_COMPUTE_INT): Remove fallback for Autoconf < 2.61.
718         * m4/size_max.m4 (AC_COMPUTE_INT): Likewise.
719         * m4/stdint.m4 (AC_COMPUTE_INT): Likewise.
721         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Assume AC_USE_SYSTEM_EXTENSIONS
722         exists.
723         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Likewise,
725         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Remove workaround for
726         Autoconf < 2.61.
728         * m4/lib-prefix.m4 (AC_LIB_ARG_WITH): Remove macro.
729         (AC_LIB_PREFIX): Use AC_ARG_WITH, assuming semantics of
730         Autoconf >= 2.52.
732         * m4/longlong.m4: Require Autoconf >= 2.62. Update comments.
733         * m4/ls-mntd-fs.m4: Require Autoconf >= 2.60. Update comments.
734         * m4/gettext.m4 (AM_GNU_GETTEXT): Update comment.
736 2018-10-22  Bruno Haible  <bruno@clisp.org>
738         Assume Automake >= 1.11.
739         * m4/configmake.m4: Update comments.
740         * m4/lib-link.m4 (AC_LIB_RPATH): Assume AC_REQUIRE_AUX_FILE exists.
741         * m4/po.m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Eliminate uses
742         of 'eval'.
743         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am,
744         func_create_testdir, func_create_megatestdir): Emit a Makefile.am that
745         requires Automake >= 1.11.
747 2018-10-22  Bruno Haible  <bruno@clisp.org>
749         localename: Fix typo in comment.
750         * tests/test-locale-c++.cc (newlocale): Fix typo in comment.
752 2018-10-22  Bruno Haible  <bruno@clisp.org>
754         Fix failure of 'gnulib-tool --create-testdir' with all modules.
755         * gnulib-tool (func_create_testdir): Exclude 'timevar' module.
757 2018-10-21  Bruno Haible  <bruno@clisp.org>
759         locale: Ease integration with GNU libintl.
760         * lib/locale.in.h (GNULIB_defined_newlocale, GNULIB_defined_duplocale,
761         GNULIB_defined_freelocale): New macros.
763 2018-10-21  Bruno Haible  <bruno@clisp.org>
765         localename: Fine-tune support for per-thread locales on Solaris 11.4.
766         * lib/localename-table.h: New file, extracted from lib/localename.c.
767         * lib/localename-table.c: Likewise.
768         * lib/localename.c: Include localename-table.h.
769         (get_locale_t_name, newlocale, duplocale, freelocale): Invoke
770         locale_hash_function instead of pointer_hash.
771         * modules/localename (Files): Add lib/localename-table.h,
772         lib/localename-table.c.
773         (lib_SOURCES): Add localename-table.c.
774         * m4/intlsolaris.m4 (gt_INTL_SOLARIS): Require AC_CANONICAL_HOST. Test
775         for Solaris 11.4 locale system only on Solaris. Test for it
776         independently whether getlocalename_l exists.
777         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Don't test for 'uselocale' and
778         'getlocalename_l'. Instead, invoke gt_INTL_SOLARIS. Set
779         HAVE_NAMELESS_LOCALES.
780         * modules/gettext (Files): Add m4/intlsolaris.m4.
782 2018-10-21  Bruno Haible  <bruno@clisp.org>
784         Small update from gettext.
785         * m4/intl.m4: Update from gettext:
786         - 2018-01-02: Fix 'ar' invocation when cross-compiling and in 64-bit
787         mode on AIX.
788         - 2018-01-02: Don't use -lc explicitly when linking with libtool.
789         - 2017-05-19: (AM_INTL_SUBDIR): Require AC_C_FLEXIBLE_ARRAY_MEMBER.
791 2018-10-16  Bruno Haible  <bruno@clisp.org>
793         mountlist: Remove support for Cray with UNICOS 9.
794         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
795         MOUNTED_LISTMNTENT.
796         * lib/mountlist.c: Remove MOUNTED_LISTMNTENT case.
798 2018-10-16  Bruno Haible  <bruno@clisp.org>
800         fsusage, mountlist, getloadavg, getgroups: Remove support for Ultrix.
801         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't define
802         STAT_STATFS2_FS_DATA.
803         * lib/fsusage.c: Remove STAT_STATFS2_FS_DATA case.
804         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
805         MOUNTED_GETMNT.
806         * lib/mountlist.c: Remove MOUNTED_GETMNT case.
807         * lib/getloadavg.c (decstation): Remove definition and case.
808         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Mention NeXTstep, not Ultrix.
809         * lib/getgroups.c: Likewise.
810         * doc/posix-functions/getgroups.texi: Likewise.
811         * lib/time.in.h: Update comments.
813 2018-10-16  Bruno Haible  <bruno@clisp.org>
815         getloadavg: Remove support for ConvexOS.
816         * lib/getloadavg.c: Remove convex case.
818 2018-10-16  Bruno Haible  <bruno@clisp.org>
820         getloadavg: Remove support for Sony NEWS.
821         * lib/getloadavg.c: Remove sony_news case.
823 2018-10-16  Bruno Haible  <bruno@clisp.org>
825         fsusage, mountlist, getloadavg: Remove support for Dynix/ptx.
826         * lib/fsusage.c: Remove _SEQUENT_ case.
827         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
828         * lib/mountlist.c: Don't test for MNTTABNAME.
829         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Don't test for libseq.
830         (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't test for MNTTABNAME.
831         * lib/getloadavg.c: Remove _SEQUENT_ and sequent cases.
832         * lib/stat-size.h: Don't mention the Sequent bug.
833         * doc/posix-functions/utime.texi: Don't mention the Dynix bug.
835 2018-10-16  Bruno Haible  <bruno@clisp.org>
837         fsusage: Remove support for AIX 3.
838         * lib/fsusage.c: Remove code for AIX 3.
839         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Update comments.
841 2018-10-16  Bruno Haible  <bruno@clisp.org>
843         fsusage, stat-size, getloadavg: Remove support for AIX PS/2.
844         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for dustat.h.
845         * lib/fsusage.c: Remove code for AIX PS/2.
846         * lib/stat-size.h (ST_NBLOCKSIZE): Likewise.
847         * lib/getloadavg.c: Likewise.
849 2018-10-16  Bruno Haible  <bruno@clisp.org>
851         getloadavg: Remove support for HP-UX on m68k.
852         * lib/getloadavg.c: Remove hp9000s300 case.
854 2018-10-16  Bruno Haible  <bruno@clisp.org>
856         fsusage, mountlist: Remove support for DolphinOS (an SVR3 variant).
857         * lib/fsusage.c: Remove DOLPHIN case.
858         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
859         * lib/mountlist.c: Remove MOUNTED_GETMNTTBL case.
861 2018-10-16  Bruno Haible  <bruno@clisp.org>
863         getloadavg: Remove support for Alliant FX/2800.
864         * lib/getloadavg.c: Remove alliant case.
866 2018-10-16  Bruno Haible  <bruno@clisp.org>
868         getloadavg: Remove support for tek4300.
869         * lib/getloadavg.c: Remove tek4300 case.
871 2018-10-16  Bruno Haible  <bruno@clisp.org>
873         getloadavg: Remove support for Ardent.
874         * lib/getloadavg.c: Remove ardent case.
876 2018-10-16  Bruno Haible  <bruno@clisp.org>
878         mountlist: Remove support for SVR2.
879         Reported by Andrew Borodin <aborodin@vmail.ru> in
880         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00101.html>.
881         * lib/mountlist.c: Remove MOUNTED_FREAD case.
882         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
883         MOUNTED_FREAD.
885 2018-10-15  Paul Eggert  <eggert@cs.ucla.edu>
887         libc-config: merge from glibc
888         * lib/cdefs.h (__glibc_has_attribute): New macro.
890         regex: depend on libc-config
891         * modules/regex (Depends-on): Add libc-config.
892         This is needed after the recent autoupdate from glibc.
894 2018-10-14  Bruno Haible  <bruno@clisp.org>
896         localename: Add support for per-thread locales on Solaris 11.4.
897         * lib/locale.in.h (newlocale, freelocale): New declarations.
898         (duplocale): Declare also when the 'localename' module requests it.
899         * lib/localename.c (struniq_hash_node): Renamed from hash_node.
900         (STRUNIQ_HASH_TABLE_SIZE): Renamed from HASH_TABLE_SIZE.
901         (struniq): Update.
902         (struct locale_categories_names, struct locale_hash_node): New types.
903         (LOCALE_HASH_TABLE_SIZE): New constant.
904         (locale_hash_table, locale_lock): New variables.
905         (pointer_hash, get_locale_t_name): New functions.
906         (newlocale, duplocale, freelocale): New overridden functions.
907         (gl_locale_name_thread_unsafe): Use get_locale_t_name.
908         * m4/intlsolaris.m4: New file.
909         * m4/localename.m4 (gl_LOCALENAME): Require gl_LOCALE_H_DEFAULTS. Invoke
910         gt_INTL_SOLARIS. Set HAVE_NEWLOCALE, HAVE_DUPLOCALE, HAVE_FREELOCALE,
911         REPLACE_NEWLOCALE, REPLACE_DUPLOCALE, REPLACE_FREELOCALE.
912         * m4/locale_h.m4 (gl_LOCALE_H): Test whether newlocale, freelocale are
913         declared.
914         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALENAME, HAVE_NEWLOCALE,
915         HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
916         * modules/locale (Makefile.am): Substitute GNULIB_LOCALENAME,
917         HAVE_NEWLOCALE, HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
918         * modules/localename (Files): Add intlsolaris.m4.
919         (Depends-on): Add 'locale'.
920         (configure.ac): Invoke gl_LOCALE_MODULE_INDICATOR.
921         * tests/test-locale-c++.cc (newlocale, freelocale): Prepare for checking
922         the signatures.
924 2018-10-14  Akim Demaille  <akim@lrde.epita.fr>
926         timevar: use gethrxtime to get wall clock time
927         clock_gettime is not portable.  gethrxtime takes the best available
928         option to get the wall clock time, including clock_gettime (monotonic
929         clock), and gettime (non monotonic).
930         Also, using xtime_t instead of float preserves the precision.
931         Suggested by Bruno Haible.
932         * lib/xtime.h (xtime_make): Handle overflows of nanoseconds.
933         * modules/timevar (Depends-on): We need gethrxtime.
934         We no longer use times().
935         (Link): Update.
936         * lib/timevar.h (timevar_time_def): Use xtime_t.
937         * lib/timevar.c (set_to_current_time): Use gethrxtime.
938         (timevar_print): Instead of checking whether the timings themselves
939         are large enough for the timevar to be printed, check the percentages.
941 2018-10-14  Bruno Haible  <bruno@clisp.org>
943         wcsnrtombs: Work around Solaris 11.4 bug.
944         * m4/wcsnrtombs.m4 (gl_WCSNRTOMBS_WORKS_IN_TRADITIONAL_LOCALE): New
945         macro.
946         (gl_FUNC_WCSNRTOMBS): Invoke it.
947         * doc/posix-functions/wcsnrtombs.texi: Mention the Solaris bug.
949 2018-10-14  Bruno Haible  <bruno@clisp.org>
951         mbsnrtowcs: Work around Solaris 11.4 bug.
952         * m4/mbsnrtowcs.m4 (gl_MBSNRTOWCS_WORKS_IN_TRADITIONAL_LOCALE): New
953         macro.
954         (gl_FUNC_MBSNRTOWCS): Invoke it.
955         * doc/posix-functions/mbsnrtowcs.texi: Mention the Solaris bug.
957 2018-10-14  Bruno Haible  <bruno@clisp.org>
959         doc: Update for Solaris 11.4.
960         * doc/**/*.texi: For bugs that exist in both Solaris 11.3 and 11.4,
961         mention Solaris 11.4.
962         * m4/printf.m4: Update comments about Solaris.
963         * m4/log.m4: Likewise.
964         * m4/log10.m4: Likewise.
965         * m4/logb.m4: Likewise.
966         * m4/logbf.m4: Likewise.
967         * m4/logbl.m4: Likewise.
968         * m4/rename.m4: Likewise.
969         * m4/wcrtomb.m4: Likewise.
970         * m4/hostent.m4: Likewise.
971         * m4/servent.m4: Likewise.
973 2018-10-14  Bruno Haible  <bruno@clisp.org>
975         floor, ceil, trunc, truncf, truncl: Defeat GCC optimizations.
976         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Use 'floor' also through a function
977         pointer.
978         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use 'ceil' also through a function
979         pointer.
980         * m4/trunc.m4 (gl_FUNC_TRUNC): Use 'trunc' also through a function
981         pointer.
982         * m4/truncf.m4 (gl_FUNC_TRUNCF): Use 'truncf' also through a function
983         pointer.
984         * m4/truncl.m4 (gl_FUNC_TRUNCL): Use 'truncl' also through a function
985         pointer.
987 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
989         bootstrap: fix wget command for po files.
990         * build-aux/bootstrap (po_download_command_format): Fix comment,
991         and adjust callers.
993 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
995         timevar: improve the output format
996         Suggested by Bruno Haible.
997         See https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00040.html.
998         * lib/timevar.c (timevar_print): Use %7.3f for usr/sys and %11.6f for
999         wall, since its resolution is much higher.
1001 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
1003         timevar: expect that getrusage is available.
1004         Don't keep both times and getrusage as backend: both are guaranteed by
1005         gnulib, a single one suffices.  Using getrusage is open to possibly
1006         tracking other types of resources in the future.
1007         * modules/timevar (Depends-on): Add getrusage.
1008         (configure.ac): Remove gl_TIMEVAR.
1009         (Files): Remove m4/timevar.m4.
1010         * m4/timevar.m4: Remove, rely on gnulib for getrusage.
1011         * lib/timevar.h (timevar_enabled): Clarify documentation.
1012         * lib/timevar.c: Remove all the code about times.
1013         Remove all the CPP guards about getrusage: expect it to be present
1014         (courtesy of gnulib).
1016 2018-10-12  Bruno Haible  <bruno@clisp.org>
1018         mountlist: Improve support for Solaris in 64-bit mode.
1019         Reported by David Wood <David.Wood@deshaw.com> in
1020         <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=6816>.
1021         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): On Solaris 8 or
1022         newer, define MOUNTED_GETEXTMNTENT instead of MOUNTED_GETMNTENT2.
1023         * lib/mountlist.c: Add code for MOUNTED_GETEXTMNTENT case.
1025 2018-10-12  Bruno Haible  <bruno@clisp.org>
1027         mountlist: Add support for Minix.
1028         Reported by Assaf Gordon in
1029         <https://lists.gnu.org/archive/html/bug-gnulib/2014-09/msg00074.html>.
1030         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use
1031         AC_CHECK_FUNCS to check for 'getmntinfo'.
1032         * lib/mountlist.c: Update comments.
1034 2018-10-12  Bruno Haible  <bruno@clisp.org>
1036         Make better use of Autoconf.
1037         * m4/environ.m4: Use AC_CACHE_CHECK where possible.
1038         * m4/manywarnings.m4: Likewise.
1039         * m4/manywarnings-c++.m4: Likewise.
1040         * m4/socklen.m4: Likewise.
1041         * m4/sockpfaf.m4: Likewise.
1042         * m4/stdarg.m4: Likewise.
1043         * m4/visibility.m4: Likewise.
1044         * m4/fsusage.m4: Use AC_CACHE_CHECK where possible. Modernize
1045         indentation.
1046         * m4/ls-mntd-fs.m4: Likewise.
1048 2018-10-11  Bruno Haible  <bruno@clisp.org>
1050         mountlist: Modernize platform lists.
1051         * m4/ls-mntd-fs.m4: Clarify which MOUNTED_* symbol applies to which
1052         platforms, deemphasizing the obsolete ones.
1053         * lib/mountlist.c: Likewise.
1055 2018-10-11  Bruno Haible  <bruno@clisp.org>
1057         getprogname: Add support for 32-bit programs on HP-UX.
1058         * lib/getprogname.c (getprogname) [HP-UX]: If pstat_getproc fails,
1059         try the similar functions 32-bit programs on 64-bit HP-UX.
1061 2018-10-11  Bruno Haible  <bruno@clisp.org>
1063         getprogname: Work around program name truncation when possible.
1064         * lib/getprogname.c (getprogname) [HP-UX]: When pst_ucomm is truncated,
1065         possibly use pst_cmd instead.
1067 2018-10-08  Paul Eggert  <eggert@cs.ucla.edu>
1069         fts: cleanup after FTS_NOATIME removal
1070         * lib/fts_.h (FTS_VERBATIM, FTS_OPTIONMASK, FTS_NAMEONLY)
1071         (FTS_STOP): Shrink to minimal values.  We don’t need to
1072         worry about binary compatibility in Gnulib, and the old way
1073         of doing things had a hole in the user options that caused
1074         FTS_OPTIONMASK to not work as desired.
1076 2018-10-08  Bernhard Voelker  <mail@bernhard-voelker.de>
1078         fts: remove FTS_NOATIME
1079         This reverts commit da4d6974013c822af1498941e32db774b2031765.
1080         We cannot guarantee that O_NOATIME works: e.g. openat fails
1081         with EPERM if the effective user ID of the caller does not match
1082         the owner of the file and the caller is not privileged.
1083         Downstream findutils has never picked up FTS_NOATIME.  Discussed at
1084         <https://lists.gnu.org/r/bug-gnulib/2018-09/msg00122.html>.
1085         * lib/fts_.h (FTS_NOATIME): Remove bit flag.
1086         (FTS_OPTIONMASK): Adjust.
1087         * lib/fts.c (diropen, fts_open, fts_build): Likewise.
1088         (fd_ring_check): Likewise.
1090 2018-10-08  Bruno Haible  <bruno@clisp.org>
1092         csharpcomp*, csharpexec*: Remove support for pnet.
1093         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Don't test for cscc. Don't set
1094         HAVE_CSCC.
1095         * build-aux/csharpcomp.sh.in (options_cscc): Remove variable.
1096         Don't test HAVE_CSCC.
1097         * lib/csharpcomp.c (compile_csharp_using_pnet): Remove function.
1098         (compile_csharp_class): Don't invoke it.
1099         * m4/csharpexec.m4 (gt_CSHARPEXEC): Don't test for ilrun. Don't set
1100         HAVE_ILRUN.
1101         * build-aux/csharpexec.sh.in (options_ilrun): Remove variable.
1102         Don't test HAVE_ILRUN.
1103         * lib/csharpexec.c (execute_csharp_using_pnet): Remove function.
1104         (execute_csharp_program): Don't invoke it.
1105         * m4/csharp.m4 (gt_CSHARP_CHOICE): Don't recognize --enable-csharp=pnet
1106         any more.
1108 2018-10-07  Andreas Henriksson  <andreas@fatal.se>  (tiny change)
1110         renameatu: prefer renameat2 to syscall
1111         * lib/renameatu.c (renameatu) [HAVE_RENAMEAT2]:
1112         Use renameat2 instead of syscall (Bug#32796).
1113         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Check for renameat2.
1115 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
1117         bootstrap, gnulib-tool: use https instead of insecure rsync
1118         * build-aux/bootstrap (download_po_files, po_download_command_format):
1119         Don't try using rsync; always use wget over https to fetch PO files.
1120         * gnulib-tool (func_import): Likewise.
1121         * pygnulib/GLImport.py (GLImport.execute): Likewise.
1123 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
1125         bootstrap, gnulib-tool: correct the translations wget command
1126         * build-aux/bootstrap (po_download_command_format2): Restrict
1127         recursion to a single level.
1128         * gnulib-tool (func_import): Likewise.
1129         * pygnulib/GLImport.py (GLImport.execute): Likewise.
1131 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
1133         doc: the gnulib snapshots are not maintained
1134         * doc/gnulib-intro.texi (Steady Development): Don't mention them.
1136 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
1138         timevar: add to lib_SOURCES
1139         * modules/timevar (lib_SOURCES): Add timevar.c and timevar.def.
1141 2018-10-07  Bruno Haible  <bruno@clisp.org>
1143         dirent: Update documentation.
1144         * doc/posix-headers/dirent.texi: The MSVC issue is fixed by Gnulib.
1146 2018-10-05  Bruno Haible  <bruno@clisp.org>
1148         strpbrk: Make it possible to namespace the defined symbol.
1149         * lib/strpbrk.c (strpbrk): Don't undefine outside of glibc.
1151 2018-10-05  Bruno Haible  <bruno@clisp.org>
1153         strcspn: Make it possible to namespace the defined symbol.
1154         * lib/strcspn.c (strcspn): Don't undefine outside of glibc.
1156 2018-10-05  Bruno Haible  <bruno@clisp.org>
1158         raise: Make it possible to namespace the defined symbol.
1159         * lib/raise.c (raise): Undefine only after the replacement function has
1160         been defined.
1161         (raise): Renamed from rpl_raise.
1162         (raise_nothrow): Move to the end of the compilation unit.
1164 2018-10-05  Bruno Haible  <bruno@clisp.org>
1166         memcmp: Make it possible to namespace the defined symbol.
1167         * lib/memcmp.c (memcmp): Don't undefine outside of glibc.
1169 2018-10-05  Bruno Haible  <bruno@clisp.org>
1171         explicit_bzero: Make it possible to namespace the defined symbol.
1172         * lib/explicit_bzero.c (explicit_bzero): Don't undefine outside of
1173         glibc.
1175 2018-10-05  Bruno Haible  <bruno@clisp.org>
1177         mkdir-p: Depend on 'mkdir'.
1178         * modules/mkdir-p (Depends-on): Add 'mkdir'.
1180 2018-10-05  Bruno Haible  <bruno@clisp.org>
1182         tempname: Depend on 'mkdir'.
1183         Reported by Maarten Bosmans <mkbosmans@gmail.com>
1184         at <https://savannah.gnu.org/bugs/?33379>.
1185         * modules/tempname (Depends-on): Add 'mkdir'.
1187 2018-10-05  Akim Demaille  <akim@lrde.epita.fr>
1189         timevar: rely on gnulib modules for time portability.
1190         * modules/timevar (Depends-on): Add sys_time, sys_times, and times.
1191         * m4/timevar.m4: Don't check for clock_t and struct tms,
1192         guaranteed by gnulib.
1193         * lib/timevar.h: Use extern "C" protection.
1194         Include <stdio.h> for FILE.
1195         * lib/timevar.c: Include sys/time.h, sys/times.h unconditionally,
1196         they are guaranteed by gnulib.
1197         Remove uses of clock as (now useless) fallback.
1199 2018-10-04  Bruno Haible  <bruno@clisp.org>
1201         sh-filename: New module.
1202         * m4/sh-filename.m4: New file.
1203         * modules/sh-filename: New file.
1204         * lib/spawni.c (_PATH_BSHELL): Use BOURNE_SHELL instead of hardcoding
1205         "/bin/sh".
1206         * tests/test-posix_spawn1.c (main): Likewise.
1207         * tests/test-posix_spawn2.c (main): Likewise.
1208         * lib/javacomp.c (compile_using_envjavac, is_envjavac_gcj,
1209         is_envjavac_gcj43): Likewise.
1210         * lib/javaexec.c (execute_java_class): Likewise.
1211         * modules/posix_spawn-internal (Depends-on): Add sh-filename.
1212         * modules/posix_spawnp-tests (Depends-on): Likewise.
1213         * modules/javacomp (Depends-on): Likewise.
1214         * modules/javaexec (Depends-on): Likewise.
1216 2018-10-04  Bruno Haible  <bruno@clisp.org>
1218         spawn-pipe tests: Avoid test failure on native Windows.
1219         * tests/test-spawn-pipe-child.c (main): On native Windows, don't expect
1220         that fd 2 is closed.
1222 2018-10-04  Bruno Haible  <bruno@clisp.org>
1224         fcntl: Make it possible to namespace the defined symbol.
1225         * lib/fcntl.c (fcntl): Undefine only after the replacement function has
1226         been defined.
1227         (fcntl): Renamed from rpl_fcntl.
1228         (rpl_fcntl_DUPFD, rpl_fcntl_DUPFD_CLOEXEC): New functions, extracted
1229         from fcntl.
1230         (klibc_fcntl): Move to the end of the compilation unit.
1232 2018-10-02  Bruno Haible  <bruno@clisp.org>
1234         vasnprintf tests: Avoid test failure on HP-UX/hppa and IRIX.
1235         * tests/test-vasnprintf.c (test_function): Change the test added on
1236         2018-09-23 to check only the 18 most significant digits.
1238         vasnprintf tests: Avoid test failure on Cygwin.
1239         * tests/test-vasnprintf.c (test_function): Change the test added on
1240         2018-09-23 to check only the 42 most significant digits.
1242 2018-10-01  Bruno Haible  <bruno@clisp.org>
1244         mkostemp, mkostemps: Update documentation.
1245         * doc/glibc-functions/mkostemp.texi: Mention the Mac OS X issue.
1246         * doc/glibc-functions/mkostemps.texi: Likewise.
1248 2018-10-01  Tom Tromey  <tom@tromey.com>
1250         mkostemp, mkostemps: Fix compilation error in C++ mode on Mac OS X.
1251         * lib/stdlib.in.h: Include <unistd.h> for mkostemp and mkostemps
1252         on OS X.
1254 2018-09-30  Pádraig Brady  <P@draigBrady.com>
1256         hmac-*: refactor to remove repetitive code
1257         * lib/hmac.c: A new parameterized single implementation.
1258         * lib/hmac-md5.c: Define parameters and include implementation.
1259         * lib/hmac-sha1.c: Likewise.
1260         * lib/hmac-sha256.c: Likewise.
1261         * lib/hmac-sha512.c: Likewise.
1262         * modules/crypto/hmac-md5: Reference the new implementation file.
1263         * modules/crypto/hmac-sha1: Likewise.
1264         * modules/crypto/hmac-sha256: Likewise.
1265         * modules/crypto/hmac-sha512: Likewise.
1266         * tests/test-hmac-md5.c: Refactor common code to a single function.
1267         * tests/test-hmac-sha1.c: Likewise.
1268         * tests/test-hmac-sha256.c: Likewise.
1269         * tests/test-hmac-sha512.c: Likewise.
1271 2018-09-30  Zhang Qing  <zhangqingl@126.com>
1273         hmac-sha512: fix hash for keys > blocksize (128 bytes)
1274         * lib/hmac-sha512.c (hmac_sha512): Set the computed/shortened
1275         key length to that output by sha512, not the blocksize.
1276         Otherwise uninitialized data from the stack
1277         is used when computing the hash.
1278         * tests/test-hmac-sha512.c: Add a shortened key test case.
1279         Reported at https://github.com/coreutils/gnulib/pull/5
1281 2018-09-30  Bruno Haible  <bruno@clisp.org>
1283         vasnprintf: Avoid warnings from GCC's -Wsign-compare.
1284         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is> in
1285         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00105.html>.
1286         * lib/vasnprintf.c (VASNPRINTF): Cast 'count' from 'int' to
1287         'unsigned int' before comparison with an unsigned value.
1289 2018-09-30  Bruno Haible  <bruno@clisp.org>
1291         grantpt: Remove unnecessary dependency.
1292         * modules/grantpt (Depends-on): Remove 'builtin-expect'.
1294 2018-09-30  Bruno Haible  <bruno@clisp.org>
1296         timevar: Small tweaks.
1297         * lib/timevar.h: Fix comments. Add parameter names to function
1298         declarations.
1299         * lib/timevar.c: Include timevar.h immediately after config.h.
1300         * lib/timevar.def: Fix comments.
1301         * modules/timevar (Maintainer): List Akim Demaille.
1303 2018-09-30  Bruno Haible  <bruno@clisp.org>
1305         timevar: Include documentation in gnulib manual.
1306         * doc/timevar.texi: Change node and section name to 'Profiling of
1307         program phases'.
1308         In the code snippets, tweak the #includes and use GNU coding style.
1309         * doc/gnulib.texi: Include timevar.texi.
1311 2018-09-27  Akim Demaille  <akim@lrde.epita.fr>
1313         timevar: import from Bison.
1314         * m4/timevar.m4, modules/timevar, lib/timevar.h, lib/timevar.c:
1315         New files.
1316         * lib/timevar.def: New file.
1317         * doc/timevar.texi: New file.
1319 2018-09-26  Bruno Haible  <bruno@clisp.org>
1321         javacomp-script, javacomp: Add preliminary support for Java 12..17.
1322         * m4/javacomp.m4 (gt_JAVACOMP): Treat Java versions 12..17 like 11.
1323         * lib/javacomp.c (default_target_version): Likewise.
1325 2018-09-26  Bruno Haible  <bruno@clisp.org>
1327         javacomp-script, javacomp: Add support for Java 11.
1328         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 11 and
1329         target-version 11.
1330         * lib/javaversion.h: Update comments.
1331         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
1332         source_version_index, get_goodcode_snippet, get_failcode_snippet,
1333         TARGET_VERSION_BOUND, target_version_index,
1334         corresponding_classfile_version): Accept source_version 11 and
1335         target_version 11.
1336         * lib/javacomp.h: Update comments accordingly.
1338 2018-09-23  Bruno Haible  <bruno@clisp.org>
1340         vasnprintf: Fix heap memory overrun bug.
1341         Reported by Ben Pfaff <blp@cs.stanford.edu> in
1342         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00107.html>.
1343         * lib/vasnprintf.c (convert_to_decimal): Allocate one more byte of
1344         memory.
1345         * tests/test-vasnprintf.c (test_function): Add another test.
1347 2018-09-19  Paul Eggert  <eggert@cs.ucla.edu>
1349         maint: mktime.c now shared with glibc
1350         * config/srclist.txt: intprops.h, timegm.c and mktime.c
1351         are now the same in Gnulib and glibc.
1353         mktime: fix _LIBC typo
1354         * lib/mktime.c (mktime): Fix typo (misspelled "_LIBC").
1356 2018-09-19  Norihiro Tanaka  <noritnk@kcn.ne.jp>
1358         dfa: optimization for state merge
1359         * lib/dfa.c (merge2): New function.
1360         (merge_nfa_state): Use it.
1362 2018-09-18  Jim Meyering  <meyering@fb.com>
1364         dfa: trivial comment fix: s/is/if/
1365         * lib/dfa.c (maybe_disable_superset_dfa): Fix comment typo.
1367 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
1369         dfa: use more-informative function name
1370         * lib/dfa.c (maybe_disable_superset_dfa):
1371         Rename from dfautf8noss.  Use change.
1373         dfa: tweak allocation performance
1374         * lib/dfa.c (merge_nfa_state, dfaoptimize):
1375         Prefer ptrdiff_t for indexes some more.
1376         Use char for flags, as it’s wide enough.
1377         Allocate queue and flags together, with one malloc call.
1378         No need to use xnmalloc since the multiplication and
1379         addition cannot overflow (it’s already been checked by
1380         earlier allocation).  Prefer memset to open-coding.
1382         dfa: prune states as we go
1383         * lib/dfa.c (prune): Remove.
1384         dfa: reorder enum for efficiency
1385         (merge_nfa_state): Prune as we go instead of at the end.
1386         Prefer ptrdiff_t for indexes, as this helps the compiler a bit.
1388         * lib/dfa.c (END): Now -1 again.  Reorder other elements
1389         of the enumeration to make it easier for GCC to generate
1390         efficient code by using fewer comparisons to check for
1391         ranges of values.
1392         (atom): Take advantage of the reordering.
1394 2018-09-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
1396         dfa: optimize alternation in NFA
1397         Even when similar states exist in alternation, the DFA treats them
1398         as separate items, which may complicate the transition in NFA and
1399         cause slowdown.  This change assembles the states into one.  For
1400         example, ab|ac is changed into a(b|c).  This change speeds-up
1401         matching for many branched patterns.  For example, grep speeds up
1402         more than 30× in:
1404           seq 10000 | sed 's/$/ abcdefghijklmnopqrstuvwxyz/; s/$/./' >in
1405           time -p env LC_ALL=C grep -vf in in
1407         * lib/dfa.c (prune): New function.
1408         (merge_nfa_state): New function.  It merges similar NFA states.
1409         (dfaoptimize): New function.  It seeks merged and removed nodes.
1410         (dfaanalyze): Call new function.
1411         (dfautf8noss): Change name from dfaoptimize because of addition of new
1412         function.
1413         (dfacomp): Update caller.
1415         dfa: simplify initial state
1416         Simplifying the initial state enables easier optimization of the NFA.
1417         * lib/dfa.c (enum token): Add new element BEG.
1418         (prtok): Adjust due to adding element BEG.
1419         (dfaparse): Put BEG at a head of tokens.
1420         (state_index): Adjust due to adding element BEG.
1421         (dfaanalyze): Concatenate BEG to other tokens, and simplify to
1422         build initial state.
1423         (dfamust): Adjust due to adding element BEG.  DFAMUST ignores it.
1425 2018-09-18  Bruno Haible  <bruno@clisp.org>
1427         file-has-acl: Fix test failure on Cygwin 2.9.
1428         * m4/acl.m4 (gl_FUNC_ACL): Update comments regarding Cygwin.
1429         * lib/acl-internal.h: Likewise.
1430         (HAVE_ACL_EXTENDED_FILE): Undefine on Cygwin.
1431         * lib/acl-internal.c: Update comments regarding Cygwin.
1432         * lib/acl_entries.c: Likewise.
1433         * lib/file-has-acl.c: Likewise.
1434         (file_has_acl): For Cygwin, use a different way to determine whether
1435         the "default" ACL of a directory is nontrivial.
1436         * lib/get-permissions.c: Update comments regarding Cygwin.
1437         * lib/set-permissions.c: Likewise.
1439 2018-09-18  Bruno Haible  <bruno@clisp.org>
1441         stat-time tests: Fix test failure on Cygwin.
1442         * tests/nap.h (nap_get_stat): Treat Cygwin like native Windows.
1444 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
1446         doc: OS X 10.11 lacked ns time functions
1447         According to <https://github.com/zeromq/libzmq/issues/2175>,
1448         nanosecond-resolution timestamp functions were introduced
1449         in macOS 10.12, so document the last version (OS X 10.11)
1450         where they were absent.
1452         gettime: nanotime never existed
1453         Problem reported by Bruno Haible in:
1454         https://lists.gnu.org/r/bug-gnulib/2018-09/msg00082.html
1455         * lib/gettime.c (gettime) [HAVE_NANOTIME]: Remove unused code.
1456         * m4/gettime.m4 (gl_GETTIME): Don’t check for nanotime.
1458 2018-09-18  Bruno Haible  <bruno@clisp.org>
1460         doc: Update statement about target platforms.
1461         Reported by Simon Sobisch.
1462         * doc/gnulib-intro.texi (Target Platforms): Update. Mention
1463         restrictions on MSVC versions.
1465 2018-09-18  Bruno Haible  <bruno@clisp.org>
1467         posix_spawn tests: Fix link error on 64-bit Cygwin.
1468         * tests/test-posix_spawn1.c (environ): Remove declaration.
1469         * tests/test-posix_spawn2.c (environ): Likewise.
1470         * tests/test-posix_spawn3.c (environ): Likewise.
1471         * tests/test-posix_spawn4.c (environ): Likewise.
1472         * modules/posix_spawn-tests (Depends-on): Add 'environ'.
1473         * modules/posix_spawnp-tests (Depends-on): Likewise.
1475 2018-09-16  Paul Eggert  <eggert@cs.ucla.edu>
1477         timespec: new function current_timespec
1478         * lib/gettime.c (gettime): Prefer clock_gettime to nanotime,
1479         and don’t worry about it failing on a CLOCK_REALTIME arg.
1480         POSIX requires it to succeed and I don’t know of any
1481         counterexamples where the fallbacks would work.
1482         (current_timespec): New function, taken from Emacs.  It is more
1483         convenient than gettime, and can help register allocation.
1484         * lib/timespec.h: Include arg-nonnull.h.
1485         (current_timespec): New declaration.
1486         (gettime, settime): Declare args to be nonnull.
1487         * modules/timespec (Depends-on): Add snippet/arg-nonnull.
1489 2018-09-16  Bruno Haible  <bruno@clisp.org>
1491         setlocale: Improve locale handling on macOS 10.12 or newer.
1492         * lib/setlocale.c: Include header files for CoreFoundation. Declare
1493         gl_locale_name_canonicalize.
1494         (libintl_setlocale): Try harder to set a locale for categories LC_CTYPE
1495         and LC_MESSAGES.
1496         * m4/setlocale.m4 (gl_PREREQ_SETLOCALE): Add comment.
1498 2018-09-16  Bruno Haible  <bruno@clisp.org>
1500         Update list of locale names with scripts on macOS.
1501         * lib/localename.c (gl_locale_name_canonicalize): Update tables to
1502         match Mac OS X 10.13 and recent glibc.
1504 2018-09-16  Bruno Haible  <bruno@clisp.org>
1506         gettext: Use newer macOS APIs when possible.
1507         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Check for
1508         CFLocaleCopyPreferredLanguages.
1510 2018-09-16  Bruno Haible  <bruno@clisp.org>
1512         localename: Revisit macOS specific code.
1513         * lib/localename.c (gl_locale_name_default): Reduce code duplication.
1514         Fix comments about Mac OS X versions.
1516 2018-09-15  Bruno Haible  <bruno@clisp.org>
1518         setlocale: Improve support for locales not supported by libc.
1519         Reported by Dapeng Gao <peter@dpgao.cc> at
1520         <https://savannah.gnu.org/bugs/?54479>.
1521         * gettext-runtime/intl/setlocale.c: Include <stdio.h>.
1522         (libintl_setlocale): Use a more error-tolerant strategy when the locale
1523         to be set is not supported by libc: Emit warnings instead of failing.
1525 2018-09-15  Bruno Haible  <bruno@clisp.org>
1527         strstr, strcasestr: Add workaround against glibc-2.28 bug.
1528         Reported by Michael Brunnbauer via Siddhesh Poyarekar and Eric Blake.
1529         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Set
1530         gl_cv_func_strstr_works_always to 'no' on glibc 2.28.
1531         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Set
1532         gl_cv_func_strcasestr_works_always to 'no' on glibc 2.28.
1533         * doc/posix-functions/strstr.texi: Document the glibc 2.28 bug.
1534         * doc/glibc-functions/strcasestr.texi: Likewise.
1536 2018-09-14  Bruno Haible  <bruno@clisp.org>
1538         doc: Fix bottom of top-level page.
1539         Reported by Akim Demaille <akim.demaille@gmail.com> in
1540         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00072.html>.
1541         * doc/pastposix-functions/index.texi: Rename node to '_index' in HTML
1542         mode.
1543         * doc/gnulib.texi (Legacy Function Substitutes): Update menu
1544         accordingly.
1546 2018-09-12  Bruno Haible  <bruno@clisp.org>
1548         Add test case from a recent glibc bug.
1549         * tests/test-strstr.c (main): Add test of long needle.
1550         * tests/test-strcasestr.c (main): Likewise.
1551         * tests/test-c-strstr.c (main): Likewise.
1552         * tests/test-c-strcasestr.c (main): Likewise.
1553         * tests/test-memmem.c (main): Likewise.
1555 2018-09-12  Bruno Haible  <bruno@clisp.org>
1557         Apply Eric Blake's improvements from 2011-02-25 to more tests.
1558         * tests/test-c-strstr.c (main): Add the same tests here as well.
1560 2018-09-12  Bruno Haible  <bruno@clisp.org>
1562         Apply Jim Meyering's fix from 2015-01-11 to more tests.
1563         * tests/test-memmem.c (main): Free haystack.
1564         * tests/test-strcasestr.c (main): Likewise.
1565         * tests/test-c-strcasestr.c (main): Likewise.
1567 2018-09-11  Paul Eggert  <eggert@cs.ucla.edu>
1569         xstrtol: fix missing-TYPE_SIGNED typo
1570         * lib/xstrtol.c (TYPE_SIGNED): New macro, duplicating intprops.h.
1572 2018-09-10  Paul Eggert  <eggert@cs.ucla.edu>
1574         timespec: fix resolution confusion
1575         In normal usage, clock resolution is given in seconds, but the
1576         code was mistakenly using inverse seconds and calling it
1577         “resolution”.  Fix this, partly by renaming two identifiers.
1578         The old names will be kept for a bit, to ease transition.
1579         * lib/timespec.h (TIMESPEC_HZ, LOG10_TIMESPEC_HZ):
1580         New constants, replacing TIMESPEC_RESOLUTION and
1581         LOG10_TIMESPEC_RESOLUTION, which are now obsolescent.
1582         All uses changed.
1584 2018-09-09  Paul Eggert  <eggert@cs.ucla.edu>
1586         mktime: simplify in prep for glibc merge
1587         * lib/mktime.c, lib/timegm.c [_LIBC]:
1588         Include mktime-internal.h (a small file just for glibc)
1589         instead of using a typedef.
1591 2018-09-07  Paul Eggert  <eggert@cs.ucla.edu>
1593         intprops: minor clarification of code
1594         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW):
1595         Use _GL_INT_CONVERT rather than reinventing it.
1597 2018-09-07  Bruno Haible  <bruno@clisp.org>
1599         Fix a comment.
1600         * tests/test-posix_spawn3.c (parent_main): Fix typo in comment.
1602 2018-09-07  Bruno Haible  <bruno@clisp.org>
1604         posix_spawn_file_actions_addchdir: Add tests.
1605         * tests/test-posix_spawn_file_actions_addchdir.c: New file.
1606         * tests/test-posix_spawn4.c: New file.
1607         * modules/posix_spawn_file_actions_addchdir-tests: New file.
1609 2018-09-07  Bruno Haible  <bruno@clisp.org>
1611         posix_spawn_file_actions_addchdir: New module.
1612         Suggested by Eric Blake in
1613         <https://lists.gnu.org/archive/html/bug-findutils/2018-09/msg00007.html>.
1614         * lib/spawn.in.h (posix_spawn_file_actions_addchdir): New declaration.
1615         * lib/spawn_int.h (struct __spawn_action): Add tag 'spawn_do_chdir' and
1616         union member 'chdir_action'.
1617         * lib/spawn_faction_addchdir.c: New file.
1618         * lib/spawni.c (__spawni): Implement the spawn_do_chdir action.
1619         * lib/spawn_faction_addclose.c: Test REPLACE_POSIX_SPAWN instead of
1620         HAVE_WORKING_POSIX_SPAWN.
1621         * lib/spawn_faction_adddup2.c: Likewise.
1622         * lib/spawn_faction_addopen.c: Likewise.
1623         * m4/posix_spawn_faction_addchdir.m4: New file.
1624         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether module
1625         'posix_spawn_file_actions_addchdir' is present and whether
1626         posix_spawn_file_actions_addchdir_np exists. Define REPLACE_POSIX_SPAWN
1627         instead of HAVE_WORKING_POSIX_SPAWN.
1628         * m4/spawn_h.m4 (gl_SPAWN_H): Test whether
1629         posix_spawn_file_actions_addchdir is declared.
1630         (gl_SPAWN_H_DEFAULTS): Initialize
1631         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
1632         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
1633         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
1634         * modules/spawn (Makefile.am): Substitute
1635         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
1636         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
1637         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
1638         * modules/posix_spawn_file_actions_addchdir: New file.
1639         * modules/posix_spawn_file_actions_addclose (Depends-on,
1640         configure.ac): Test also REPLACE_POSIX_SPAWN.
1641         * modules/posix_spawn_file_actions_adddup2 (Depends-on,
1642         configure.ac): Likewise.
1643         * modules/posix_spawn_file_actions_addopen (Depends-on,
1644         configure.ac): Likewise.
1645         * tests/test-spawn-c++.cc (posix_spawn_file_actions_addchdir): Check
1646         signature.
1647         * doc/posix-functions/posix_spawn.texi: Mention the new module.
1648         * doc/posix-functions/posix_spawnp.texi: Likewise.
1650 2018-09-06  Bruno Haible  <bruno@clisp.org>
1652         stddef: Override max_align_t on NetBSD 8.0/x86.
1653         * m4/stddef_h.m4 (gl_STDDEF_H): When testing for max_align_t, test also
1654         the value of __alignof__ (max_align_t).
1655         * doc/posix-headers/stddef.texi: Mention the issue.
1657 2018-09-06  Bruno Haible  <bruno@clisp.org>
1659         fcntl: Fix F_DUPFD_CLOEXEC behaviour on Haiku.
1660         * lib/fcntl.c (rpl_fcntl): For F_DUPFD_CLOEXEC, don't even try the
1661         system fcntl.
1662         * doc/posix-functions/fcntl.texi: Document the issue.
1664 2018-09-06  Bruno Haible  <bruno@clisp.org>
1666         count-trailing-zeros tests: Rely on limits-h module.
1667         * tests/test-count-trailing-zeros.c (ULLONG_MAX): Remove fallback
1668         definition.
1669         * modules/count-trailing-zeros-tests (Depends-on): Add 'limits-h'.
1671 2018-09-06  Bruno Haible  <bruno@clisp.org>
1673         count-leading-zeros tests: Rely on limits-h module.
1674         * tests/test-count-leading-zeros.c (ULLONG_MAX): Remove fallback
1675         definition.
1676         * modules/count-leading-zeros-tests (Depends-on): Add 'limits-h'.
1678 2018-09-06  Bruno Haible  <bruno@clisp.org>
1680         count-one-bits tests: Rely on limits-h module.
1681         * tests/test-count-one-bits.c (ULLONG_MAX): Remove fallback definition.
1682         * modules/count-one-bits-tests (Depends-on): Add 'limits-h'.
1684 2018-09-06  Bruno Haible  <bruno@clisp.org>
1686         xstrtoll: Rely on limits-h module.
1687         * lib/xstrtol.c: Don't include intprops.h.
1688         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
1689         * modules/xstrtol (Depends-on): Remove 'intprops'.
1690         * modules/xstrtoll (Depends-on): Add 'limits-h'.
1692 2018-09-06  Bruno Haible  <bruno@clisp.org>
1694         strtoll, strtoull: Rely on limits-h module.
1695         * lib/strtol.c (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove macros.
1696         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
1697         * modules/strtoll (Depends-on): Add limits-h.
1698         * modules/strtoull (Depends-on): Likewise.
1700 2018-09-06  Bruno Haible  <bruno@clisp.org>
1702         intprops tests: Fix compilation error with pre-C99 compiler.
1703         * tests/test-intprops.c (verify_stmt): New macro.
1704         (VERIFY, main): Use it.
1706 2018-09-06  Bruno Haible  <bruno@clisp.org>
1708         limits-h: Provide numerical limits macros.
1709         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define also for
1710         IRIX and for GCC.
1711         (WORD_BIT, LONG_BIT): Define.
1712         * m4/limits-h.m4 (gl_LIMITS_H): Set LIMITS_H to non-empty also when
1713         <limits.h> does not define LLONG_MAX or WORD_BIT.
1714         * tests/test-limits-h.c (TYPE_SIGNED, TYPE_WIDTH, TYPE_MINIMUM,
1715         TYPE_MAXIMUM): New macros, from intprops.h.
1716         Add tests for CHAR_BIT, WORD_BIT, LONG_BIT, <type>_MIN, and <type>_MAX.
1717         * doc/posix-headers/limits.texi: Document what the 'limits-h' module
1718         provides.
1720 2018-09-05  Bruno Haible  <bruno@clisp.org>
1722         fcntl: Don't access nonexistent optional argument.
1723         Reported by Frank Busse <f.busse@imperial.ac.uk> in
1724         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00018.html>.
1725         * lib/fcntl.c (rpl_fcntl): For actions that don't take an argument,
1726         don't consume an argument. For actions that take an 'int' argument,
1727         consume an 'int' argument.
1729 2018-09-05  Eric Blake  <eblake@redhat.com>
1731         doc: mention environ pitfall
1732         * doc/posix-functions/environ.texi (environ): Assigning NULL to
1733         environ is a glibc extension.
1735 2018-09-03  Bruno Haible  <bruno@clisp.org>
1737         gnulib-tool: Fix build order when $testsbase is a subdir of $sourcebase.
1738         Reported by Antoine Luong <antoine.luong@c-s.fr> in
1739         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00008.html>.
1740         * gnulib-tool (func_import): For the tests, set a dotfirst flag.
1741         (func_emit_lib_Makefile_am): Consider the dotfirst flag.
1742         (func_emit_tests_Makefile_am): Don't consider the dotfirst flag.
1744 2018-09-02  Paul Eggert  <eggert@cs.ucla.edu>
1746         mktime: fix unlikely race+overflow bug
1747         Problem reported by Alexandre Oliva in:
1748         https://sourceware.org/bugzilla/show_bug.cgi?id=16346
1749         * lib/mktime.c (__mktime_internal): Access *OFFSET only once,
1750         to avoid an unlikely race if the compiler delays a load and
1751         if this cascades into a signed integer overflow.
1753 2018-08-31  Paul Eggert  <eggert@cs.ucla.edu>
1755         mktime, timegm: simplify glibc time64_t
1756         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]:
1757         Now long int, not time_t, since long int is the longstanding type
1758         for this in glibc and there is no need to change it even if time_t
1759         becomes 64 bits - even int would do, though this would be a change
1760         to the glibc generated code.  When this change is merged into
1761         glibc, it should simplify the time_t vs time64_t situation.
1763         mktime, timegm: simplify merge to glibc
1764         Move code around to make a merge to glibc easier to audit.
1765         This should not change behavior.
1766         * lib/mktime.c (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
1767         (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
1768         which glibc uses.  Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
1769         simplify later conditionals; default the others to zero.  In uses
1770         of these conditionals, explicitly spell out how _LIBC affects
1771         things, so it’s easier to review from a glibc viewpoint.
1772         (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
1773         compartmentalize tzset issues.  Move system-dependent tzsettish
1774         code here from mktime.
1775         (mktime): Move tzsettish code to my_tzset, and move
1776         localtime_offset to within mktime so that it doesn’t
1777         need a separate ifdef.
1779 2018-08-27  Paul Eggert  <eggert@cs.ucla.edu>
1781         intprops: avoid evaluation of some expressions
1782         This makes EXPR_SIGNED (e) easier to use, as it no longer
1783         evaluates the expression E.  Formerly, E was required to be free
1784         of side effects.
1785         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT)
1786         (EXPR_SIGNED, TYPE_WIDTH, _GL_INT_MINIMUM, _GL_INT_MAXIMUM)
1787         (_GL_SIGNED_INT_MAXIMUM): Do not evaluate the expression arg.
1789 2018-08-23  Bruno Haible  <bruno@clisp.org>
1791         getcwd: Add cross-compilation guesses.
1792         Reported by Sergio Durigan Junior <sergiodj@redhat.com> in
1793         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00130.html>.
1794         Based on a patch by Paul Eggert.
1795         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Add cross-compilation
1796         guesses for all GNU systems.
1798 2018-08-19  Bruno Haible  <bruno@clisp.org>
1800         glob-h: Formalize side effects from other modules.
1801         * m4/glob_h.m4 (gl_REPLACE_GLOB_H): New macro.
1802         * m4/glob.m4 (gl_GLOB): Invoke it.
1804         fnmatch-h: Formalize side effects from other modules.
1805         * m4/fnmatch_h.m4 (gl_REPLACE_FNMATCH_H): New macro.
1806         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Invoke it.
1808         limits-h: Formalize side effects from other modules.
1809         * m4/limits-h.m4 (gl_REPLACE_LIMITS_H): New macro.
1810         * m4/stdint.m4 (gl_STDINT_H): Invoke it.
1812 2018-08-19  Bruno Haible  <bruno@clisp.org>
1814         getpass: Move declaration to <unistd.h>.
1815         * lib/unistd.in.h (getpass): New declaration.
1816         * lib/getpass.h: Replace with a stub that just includes <unistd.h>.
1817         * m4/getpass.m4 (gl_FUNC_GETPASS): Declare through AC_DEFUN_ONCE.
1818         Require gl_UNISTD_H_DEFAULTS. Don't test whether getpass is declared.
1819         (gl_FUNC_GETPASS_GNU): Require gl_UNISTD_H_DEFAULTS and gl_FUNC_GETPASS.
1820         On glibc systems, don't set REPLACE_GETPASS to 1.
1821         * modules/getpass (Depends-on): Add 'unistd'.
1822         (configure.ac): Test also REPLACE_GETPASS. Define a module indicator.
1823         (Include): Specify <unistd.h> instead of "getpass.h".
1824         * modules/getpass-gnu (Depends-on): Merely depend on 'getpass'.
1825         (configure.ac): Sync with the configure.ac section of modules/getpass.
1826         (Include): Specify <unistd.h> instead of "getpass.h".
1827         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether getpass is declared.
1828         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPASS, HAVE_GETPASS,
1829         REPLACE_GETPASS.
1830         * modules/unistd (Makefile.am): Substitute GNULIB_GETPASS, HAVE_GETPASS,
1831         REPLACE_GETPASS.
1832         * tests/test-unistd-c++.cc: Test also the declaration of 'getpass'.
1833         * doc/glibc-functions/getpass.texi: A length limit exists also on uClibc
1834         and musl.
1835         * NEWS: Mention the change.
1837 2018-08-19  Bruno Haible  <bruno@clisp.org>
1839         glob: Fix over-optimization due to attribute __nonnull__.
1840         * lib/glob.c (_GL_ARG_NONNULL): Define to empty.
1842 2018-08-19  Bruno Haible  <bruno@clisp.org>
1844         glob: Fix another compilation error when glob.h is not replaced.
1845         Reported by Reuben Thomas <rrt@sc3d.org> in
1846         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00112.html>.
1847         * m4/glob.m4 (gl_GLOB): Set GLOB_H to non-empty when needed.
1848         * m4/glob_h.m4 (gl_GLOB_H): Define through AC_DEFUN_ONCE.
1850 2018-08-18  Bruno Haible  <bruno@clisp.org>
1852         fnmatch: Avoid conflicting macro definitions of 'fnmatch'.
1853         Reported by Reuben Thomas <rrt@sc3d.org> in
1854         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00108.html>.
1855         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Don't define 'fnmatch' as a macro
1856         in config.h.
1858 2018-08-18  Bruno Haible  <bruno@clisp.org>
1860         Avoid -Wcast-function-type warnings from casts after GetProcAddress.
1861         Reported by Andy Moreton <andrewjmoreton@gmail.com> in
1862         <https://lists.gnu.org/archive/html/emacs-devel/2018-08/msg00468.html>.
1863         Solution proposed by Eli Zaretskii.
1864         * lib/getaddrinfo.c (GetProcAddress): Cast result to 'void *' first.
1865         * lib/gettimeofday.c (GetProcAddress): Likewise.
1866         * lib/link.c (GetProcAddress): Likewise.
1867         * lib/physmem.c (GetProcAddress): Likewise.
1868         * lib/poll.c (GetProcAddress): Likewise.
1869         * lib/select.c (GetProcAddress): Likewise.
1870         * lib/stat-w32.c (GetProcAddress): Likewise.
1872 2018-08-18  Bruno Haible  <bruno@clisp.org>
1874         glob: Fix another compilation error when glob.h is not replaced.
1875         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> again.
1876         * lib/globfree.c: Include <libc-config.h>.
1878 2018-08-18  Bruno Haible  <bruno@clisp.org>
1880         glob: Fix compilation error when glob.h is not replaced.
1881         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> in
1882         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00096.html>.
1883         * lib/glob_pattern_p.c: Include <libc-config.h>.
1884         * modules/glob (Depends-on): Add libc-config.
1886 2018-08-18  Bruno Haible  <bruno@clisp.org>
1888         scratch_buffer: Add tests.
1889         * tests/test-scratch-buffer.c: New file.
1890         * modules/scratch_buffer-tests: New file.
1892 2018-08-18  Bruno Haible  <bruno@clisp.org>
1894         scratch_buffer: Fix include file.
1895         Reported by Reuben Thomas <rrt@sc3d.org> in
1896         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00082.html>.
1897         * lib/scratch_buffer.h: Include <libc-config.h> first. Add
1898         double-inclusion guard.
1900 2018-08-18  Bruno Haible  <bruno@clisp.org>
1902         glob-h: Revert Paul Eggert's revert.
1903         * m4/glob_h.m4: Revert to previous state.
1904         * modules/glob-h: Likewise.
1906 2018-08-18  Paul Eggert  <eggert@cs.ucla.edu>
1908         glob-h: always build glob.h
1909         This works around a problem reported by Reuben Thomas in:
1910         http://lists.gnu.org/r/bug-gnulib/2018-08/msg00079.html
1911         This workaround always builds glob.h, even on platforms that
1912         do not need it; perhaps this could be improved someday.
1913         * m4/glob_h.m4 (gl_GLOB_H): Do not set or use GLOB_H, since glob.h
1914         is always created now.
1915         * modules/glob-h (BUILT_SOURCES, glob.h): Always build glob.h.
1917 2018-08-13  Bruno Haible  <bruno@clisp.org>
1919         monetary: Simplify m4 code.
1920         * m4/monetary_h.m4 (gl_MONETARY_H): Define through AC_DEFUN_ONCE.
1921         (gl_MONETARY_H_BODY): Inline into gl_MONETARY_H. Remove macro.
1923 2018-08-13  Bruno Haible  <bruno@clisp.org>
1925         fnmatch, fnmatch-gnu: Fix compilation error on Mac OS X.
1926         Reported by Jeroen Meijer <jjgmeijer@gmail.com> in
1927         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00046.html>
1928         and by Paul J. Lucas <paul@lucasmail.org> in
1929         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00069.html>.
1930         * m4/fnmatch_h.m4 (gl_FNMATCH_H): Define through AC_DEFUN_ONCE.
1932 2018-08-11  Bruno Haible  <bruno@clisp.org>
1934         setlocale: Trivial simplification.
1935         * lib/setlocale.c (setlocale_unixlike): Remove redundant #if.
1937 2018-08-11  Paul Eggert  <eggert@cs.ucla.edu>
1939         verify: port 'assume' to traditional tools
1940         * lib/verify.h (assume): Port better to Oracle Studio 12.6
1941         and other tools that use /*NOTREACHED*/ comments.
1943 2018-08-10  Bruno Haible  <bruno@clisp.org>
1945         fnmatch-gnu: Fix compilation error in C++ namespace mode on Mac OS X.
1946         * modules/fnmatch-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
1947         * lib/fnmatch.in.h (fnmatch): Skip _GL_CXXALIASWARN if module
1948         'fnmatch-gnu' is in use.
1950 2018-08-07  Bruno Haible  <bruno@clisp.org>
1952         glob-h: Add tests.
1953         * tests/test-glob-h.c: New file, partially based on tests/test-glob.c.
1954         * tests/test-glob.c: Reorder #includes. Remove tests that are moved to
1955         tests/test-glob-h.c.
1956         * modules/glob-h-tests: New file.
1957         * tests/test-glob-h-c++.cc: Renamed from tests/test-glob-c++.cc. Add
1958         conditions.
1959         * modules/glob-h-c++-tests: Renamed from modules/glob-c++-tests.
1960         * modules/glob-tests (Depends-on): Remove glob-c++-tests.
1962 2018-08-07  Bruno Haible  <bruno@clisp.org>
1964         glob-h: New module.
1965         * lib/glob.in.h: Use nearly the usual gnulib idioms for header file
1966         replacements.
1967         * lib/glob.c: Include <config.h>.
1968         * m4/glob_h.m4: New file.
1969         * m4/glob.m4 (gl_GLOB): Require gl_GLOB_H. Remove code that is moved to
1970         glob_h.m4. Set HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
1971         REPLACE_GLOB_PATTERN_P as appropriate.
1972         (gl_PREREQ_GLOB): Don't require AC_C_RESTRICT and
1973         AC_USE_SYSTEM_EXTENSIONS, now done through module 'glob-h'.
1974         * modules/glob-h: New file.
1975         * modules/glob (Files): Remove lib/glob.in.h, lib/glob-libc.h.
1976         (Dependencies): Add glob-h. Remove extensions, snippet/*, libc-config,
1977         lstat, sys_stat. Change conditions.
1978         (configure.ac): Test HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
1979         REPLACE_GLOB_PATTERN_P. Set module indicator.
1980         (Makefile.am): Remove code that is moved to glob-h.
1981         * doc/posix-headers/glob.texi: Mention the 'glob-h' module.
1982         * modules/posixcheck (Depends-on): Add glob-h.
1984 2018-08-06  Bruno Haible  <bruno@clisp.org>
1986         Force generation of substitute .h file when C++ support is enabled.
1987         * m4/ansi-c++.m4 (gl_ANSI_CXX): New macro.
1988         * modules/ansi-c++-opt (configure.ac): Just require gl_ANSI_CXX.
1989         * m4/fnmatch_h.m4 (gl_FNMATCH_H): If C++ support is enabled, set
1990         FNMATCH_H to non-empty.
1991         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If C++ support is enabled, set
1992         ICONV_H to non-empty.
1993         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If C++ support is enabled, set
1994         MONETARY_H to non-empty.
1995         * m4/utime_h.m4 (gl_UTIME_H): If C++ support is enabled, set UTIME_H to
1996         non-empty.
1998 2018-08-06  Bruno Haible  <bruno@clisp.org>
2000         fnmatch-h: Fix test compilation error on mingw (regression from today).
2001         * lib/fnmatch.in.h: Fix conditions.
2003 2018-08-06  Bruno Haible  <bruno@clisp.org>
2005         sys_resource: Relicense under LGPLv2+.
2006         John Malmberg's approval is in
2007         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00031.html>.
2008         * modules/sys_resource (License): Change to LGPLv2+.
2010 2018-08-06  Bruno Haible  <bruno@clisp.org>
2012         fnmatch-h: Add tests.
2013         * tests/test-fnmatch-h.c: New file.
2014         * modules/fnmatch-h-tests: New file.
2015         * tests/test-fnmatch-h-c++.cc: New file.
2016         * modules/fnmatch-h-c++-tests: New file.
2018 2018-08-06  Bruno Haible  <bruno@clisp.org>
2020         fnmatch-h: New module.
2021         * lib/fnmatch.in.h: Use the usual gnulib idioms for header file
2022         replacements.
2023         (FNM_*): Don't redefine if fnmatch exists and we are not overriding it.
2024         (fnmatch): Use the usual gnulib idiom for function declarations. Enable
2025         'posixcheck' warning.
2026         * m4/fnmatch_h.m4: New file.
2027         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Require gl_FNMATCH_H. Remove
2028         code that is moved to fnmatch_h.m4. When fnmatch does not exist, don't
2029         bother testing whether it is working. Set HAVE_FNMATCH, REPLACE_FNMATCH
2030         as appropriate.
2031         * modules/fnmatch-h: New file.
2032         * modules/fnmatch (Files): Remove lib/fnmatch.in.h.
2033         (Dependencies): Add fnmatch-h. Remove extensions, snippet/*. Change
2034         conditions.
2035         (configure.ac): Test HAVE_FNMATCH and REPLACE_FNMATCH. Set module
2036         indicator.
2037         (Makefile.am): Remove code that is moved to fnmatch-h.
2038         * modules/fnmatch-gnu (configure.ac): Test HAVE_FNMATCH and
2039         REPLACE_FNMATCH.
2040         * doc/posix-headers/fnmatch.texi: Mention the 'fnmatch-h' module.
2041         * modules/posixcheck (Depends-on): Add fnmatch-h.
2043 2018-08-06  Bruno Haible  <bruno@clisp.org>
2045         Enable more C++ tests.
2046         * modules/inttypes-tests (Depends-on): Add inttypes-c++-tests.
2047         * modules/monetary-tests (Depends-on): Add monetary-c++-tests.
2048         * modules/strings-tests (Depends-on): Add strings-c++-tests.
2049         * modules/sys_resource-tests (Depends-on): Add sys_resource-c++-tests.
2050         * modules/utime-h-tests (Depends-on): Add utime-h-c++-tests.
2052 2018-08-06  Bruno Haible  <bruno@clisp.org>
2054         getopt-posix, utime-h: Ensure the .h file gets regenerated when needed.
2055         * modules/getopt-posix (Makefile.am): Add Makefile dependency for
2056         getopt.h.
2057         * modules/utime-h (Makefile.am): Add Makefile dependency for utime.h.
2059 2018-08-05  Bruno Haible  <bruno@clisp.org>
2061         utime-h: Generate header file when module 'posixcheck' is in use.
2062         * m4/utime_h.m4 (gl_UTIME_H): If module 'posixcheck' is in use, set
2063         UTIME_H to non-empty.
2065 2018-08-05  Bruno Haible  <bruno@clisp.org>
2067         monetary: Generate header file when module 'posixcheck' is in use.
2068         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If module 'posixcheck' is in
2069         use, set MONETARY_H to non-empty.
2071 2018-08-05  Bruno Haible  <bruno@clisp.org>
2073         iconv-h: Generate header file when module 'posixcheck' is in use.
2074         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If module 'posixcheck' is in use,
2075         set ICONV_H to non-empty.
2077 2018-08-05  Bruno Haible  <bruno@clisp.org>
2079         Optimize the "checking whether ... is declared without a macro" checks.
2080         Suggested by Paul Eggert in
2081         <https://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00339.html>.
2082         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Expand to nothing if the
2083         Gnulib module 'posixcheck' is not in use.
2085 2018-08-05  Bruno Haible  <bruno@clisp.org>
2087         iconv-h: Enable 'posixcheck' warnings.
2088         * m4/iconv_h.m4 (gl_ICONV_H): Check for declarations of iconv and
2089         iconv_open.
2090         * lib/iconv.in.h (iconv_open, iconv): Use _GL_WARN_ON_USE.
2092 2018-08-05  Bruno Haible  <bruno@clisp.org>
2094         Fix link error regarding 'rpl_environ' (regression from 2012-11-21).
2095         * m4/extern-inline.m4: Add more comments.
2096         * lib/warn-on-use.h (_GL_WARN_ON_USE_ATTRIBUTE): New macro.
2097         * lib/unistd.in.h (rpl_environ): Use it instead of _GL_WARN_ON_USE.
2098         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL): Likewise.
2100 2018-08-04  Bruno Haible  <bruno@clisp.org>
2102         New module 'posixcheck'.
2103         * modules/posixcheck: New file.
2104         * m4/posixcheck.m4: New file.
2105         * doc/gnulib-tool.texi (Finding POSIX substitutes): New section.
2106         (Which modules?): Reference it.
2108 2018-08-01  Assaf Gordon  <assafgordon@gmail.com>
2110         dfa: fix memory leak
2111         * lib/dfa.c (dfafree): Add missing free() on dfa->superset.
2113 2018-08-01  Paul Eggert  <eggert@cs.ucla.edu>
2115         ieee754-h: new module
2116         It looks like Emacs can use this for some NaN processing.
2117         Emacs uses it only on double NaNs so it should be safe.
2118         * MODULES.html.sh (func_all_modules): Add ieee754-h.
2119         * config/srclist.txt: Mention ieee754.h in a comment.
2120         * doc/glibc-headers/ieee754.texi (ieee754.h):
2121         Gnulib now has a substitute that should work
2122         except for long double and for non-IEEE platforms.
2123         * lib/ieee754.in.h, m4/ieee754-h.m4, modules/ieee754-h:
2124         * modules/ieee754-h-tests, tests/test-ieee754-h.c: New files.
2126 2018-07-27  Bruno Haible  <bruno@clisp.org>
2128         iswcntrl: Mention minor problem on macOS.
2129         * doc/posix-functions/iswcntrl.texi: Mention oddity on macOS.
2131 2018-07-26  Colin Watson  <cjwatson@debian.org>
2133         bootstrap, gnulib-tool: fix translations rsync
2134         Previously, we created files such as $pobase/Makefile.in.in and then the
2135         subsequent rsync would immediately delete them.
2136         * build-aux/bootstrap (po_download_command_format): Avoid deleting
2137         non-.po files in target directory when rsyncing translations.
2138         * gnulib-tool (func_import): Likewise.
2139         * pygnulib/GLImport.py (GLImport.execute): Likewise.
2141 2018-07-25  Jim Meyering  <meyering@fb.com>
2143         bootstrap: reinstate definition fo gnulib_mk.
2144         That variable is used at least by cppi.
2145         * build-aux/bootstrap (gnulib_mk): Restore definition.
2146         This reverts the deletion from v0.1-1844-gc66dba9ba.
2148 2018-07-23  Bruno Haible  <bruno@clisp.org>
2150         doc: For module names, use texinfo markup @code{} or @samp{}.
2151         * doc/alloca.texi: Mark gnulib module names with @code.
2152         * doc/alloca-opt.texi: Likewise.
2153         * doc/quote.texi: Likewise.
2154         * doc/posix-functions/freopen.texi: Likewise.
2155         * doc/posix-functions/open.texi: Likewise.
2156         * doc/posix-functions/readlink.texi: Likewise.
2157         * doc/posix-functions/readlinkat.texi: Likewise.
2158         * doc/posix-functions/stdout.texi: Likewise.
2159         * doc/posix-functions/stderr.texi: Likewise.
2160         * doc/posix-functions/unlink.texi: Likewise.
2161         * doc/posix-functions/unlinkat.texi: Likewise.
2162         * doc/posix-functions/utime.texi: Likewise.
2163         * doc/posix-functions/utimensat.texi: Likewise.
2164         * doc/posix-functions/utimes.texi: Likewise.
2165         * doc/posix-headers/stdint.texi: Likewise.
2166         * doc/glibc-functions/futimesat.texi: Likewise.
2167         * doc/glibc-functions/lutimes.texi: Likewise.
2168         * doc/glibc-functions/memmem.texi: Likewise.
2170 2018-07-23  Werner LEMBERG  <wl@gnu.org>
2172         doc: Avoid some overfull lines in the TeX output.
2173         * doc/glibc-functions/futimesat.texi: Replace a long @code with a
2174         @example.
2175         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Insert a
2176         newline before the long URL.
2177         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Likewise.
2178         * doc/relocatable-maint.texi: Use @smallexample instead of @example.
2179         Add line breaks in code snippets.
2181 2018-07-17  Paul Eggert  <eggert@cs.ucla.edu>
2183         hard-locale: simplify by removing hard-locale.m4
2184         * m4/hard-locale.m4: Remove.
2185         * modules/hard-locale (Files): Remove m4/hard-locale.m4.
2186         (configure.ac): Do not call gl_HARD_LOCALE.
2188         gnulib-tool: limit line length for git send-email
2189         * gnulib-tool (func_import): Break actioncmd log line
2190         into multiple lines.
2192 2018-07-16  Bruno Haible  <bruno@clisp.org>
2194         ffs: Ensure declaration on mingw.
2195         Reported by Daniel P. Berrangé <berrange@redhat.com>
2196         in https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00061.html.
2197         * m4/ffs.m4 (gl_FUNC_FFS): Check whether ffs() not only exists but is
2198         also declared.
2200 2018-07-13  Paul Eggert  <eggert@cs.ucla.edu>
2202         regex-tests: add dependency
2203         * modules/regex-tests (Depends-on): Add gettext-h.
2204         This is needed given the recent changes to regex,
2205         which no longer depends on gettext-h.
2207 2018-07-06  Paul Eggert  <eggert@cs.ucla.edu>
2209         regex: now in sync with glibc
2210         * config/srclist.txt: Gnulib and glibc regex code
2211         are synchronized again.
2213 2018-07-05  Paul Eggert  <eggert@cs.ucla.edu>
2215         renameatu: rename from renameat2
2216         It's looking like Glibc will add a renameat2 function
2217         that is incompatible with Gnulib renameat2; see:
2218         https://sourceware.org/ml/libc-alpha/2018-07/msg00064.html
2219         To help avoid future confusion, rename renameat2 to something else.
2220         Use the name 'renameatu', as the Gnulib function is close to the
2221         Glibc function.  Perhaps someday there will also be a renameat2
2222         Gnulib module, which mimicks the future glibc renameat2, but that
2223         can wait as nobody seems to need such a module now.
2224         * NEWS: Mention this.
2225         * lib/renameatu.c: Rename from lib/renameat2.c.
2226         * lib/renameatu.h: Rename from lib/renameat2.h.
2227         * modules/renameatu: Rename from modules/renameat2.
2228         * modules/renameatu-tests: Rename from modules/renameat2-tests.
2229         All uses of "renameat2" in identifiers or file name
2230         changed to "renameatu", except for two instances in
2231         lib/renameatu.c that deal with the Linux kernel's
2232         renameat2 syscall.
2234 2018-07-04  Paul Eggert  <eggert@cs.ucla.edu>
2236         gnulib-tool: minor tweaks for --gnu-make
2237         * gnulib-tool: Do not allow --gnu-make in test modes,
2238         since they all require automake.
2239         (func_emit_lib_Makefile_am): Don’t emit automake comment
2240         if --gnu-make.
2242         regex: work around conditional-dependencies glitch
2243         * modules/regex (Depends-on): Add langinfo.
2244         Without this change, I had problems building an experimental
2245         version of GNU Emacs.  The symptom of the bug was a message
2246         ‘./configure: line 12726: test: =: unary operator expected’.
2247         This was due to a line in gl_FUNC_NL_LANGINFO that invokes
2248         ‘test $HAVE_LANGINFO_CODESET = 1’ even though HAVE_LANGINFO_CODESET
2249         was unset.  Although gl_FUNC_NL_LANGINFO has
2250         ‘AC_REQUIRE([gl_LANGINFO_H])’ and gl_LANGINFO_H always sets
2251         HAVE_LANGINFO_CODESET to 0 or 1, gnulib-tool with
2252         --conditional-dependencies sometimes arranges for the
2253         gl_FUNC_NL_LANGINFO code to be executed before the gl_LANGINFO_H
2254         code.  Since the regex code includes <langinfo.h> it should be
2255         depending on the langinfo module anyway, and this happens to work
2256         around the bug, so install that as a workaround for now.  To
2257         reproduce the original problem, run the following shell script on
2258         the version of Gnulib just before this patch was installed.
2259                 rm -fr foo
2260                 mkdir foo
2261                 cat >foo/configure.ac <<'EOF'
2262                 AC_INIT(GNU Emacs, 27.0.50, bug-gnu-emacs@gnu.org, , https://www.gnu.org/software/emacs/)
2263                 gl_EARLY
2264                 gl_INIT
2265                 AC_OUTPUT
2266                 EOF
2267                 ./gnulib-tool --import --conditional-dependencies --gnu-make --dir foo regex
2268                 ./gnulib-tool --copy build-aux/install-sh foo/install-sh
2269                 ./gnulib-tool --copy build-aux/config.sub foo/config.sub
2270                 ./gnulib-tool --copy build-aux/config.guess foo/config.guess
2271                 cd foo
2272                 aclocal -I m4
2273                 autoconf
2274                 ./configure --with-included-regex
2276 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
2278         wchar: fix bug when checking for ‘inline’
2279         I discovered this when looking into using the regex module
2280         with Emacs.
2281         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Fix bug introduced in
2282         2016-08-17T23:09:38Z!skunk@iSKUNK.ORG; the code compiled
2283         conftest1.c and conftest2.c but these files were not created.
2284         As far as I can see, this check never worked and nobody reported
2285         it until now, which is a bit worrisome.
2287 2018-06-30  Jim Meyering  <meyering@fb.com>
2289         bootstrap: s/--option val/--option=val/
2290         * build-aux/bootstrap (gnulib_tool_options): Change the
2291         spelling of "--option val" pairs to "--option=val", for
2292         aesthetics, and also so that this file no longer triggers
2293         a common help2man syntax-check warning when copied into
2294         projects like grep, gzip, etc.
2296 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
2298         manywarnings: omit -Wswitch-default
2299         This should make things more consistent, as we already ignore
2300         -Wswitch-enum.  Problem reported by Reuben Thomas; see:
2301         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00179.html
2302         * build-aux/g++-warning.spec, build-aux/gcc-warning.spec:
2303         Add -Wswitch-default.
2304         * m4/manywarnings-c++.m4 (gl_MANYWARN_ALL_GCC_CXX_IMPL):
2305         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
2306         Remove -Wswitch-default.
2308         regex: revert most trimming
2309         Problems reported by Bruno Haible in:
2310         https://lists.gnu.org/r/bug-gnulib/2018-07/msg00001.html
2311         * modules/regex (Depends-on): Add lock, memcmp, memmove,
2312         and wctype back in.  lock because regex users shouldn’t
2313         need to know that regex needs locking, and the rest because
2314         gnulib-tool should ordinarily ignore them anyway.
2316 2018-06-30  Paul Eggert  <eggert@cs.ucla.edu>
2318         regex: trim module dependencies
2319         * modules/regex (Depends-on): Remove gettext-h and lock,
2320         since the regex code should work OK without these modules,
2321         and Emacs uses it that way.  Also remove memcmp, memmove,
2322         and wctype, as these modules are obsolete and should not be
2323         needed any more.
2325 2018-06-29  Paul Eggert  <eggert@cs.ucla.edu>
2327         regex: glibc does not use intprops.h
2328         Maybe we can talk glibc into using intprops.h someday, but
2329         now doesn’t seem to be a good time.
2330         * lib/regcomp.c (TYPE_SIGNED): Remove; regex_internal.h now defines.
2331         * lib/regex_internal.h [_LIBC]: Do not include intprops.h.
2332         (TYPE_SIGNED, INT_ADD_WRAPV): New macros.
2334 2018-06-28  Paul Eggert  <eggert@cs.ucla.edu>
2336         regex: port to recently proposed glibc regex merge
2337         This patch is inspired by Adhemerval Zanella's recent proposal
2338         https://www.sourceware.org/ml/libc-alpha/2018-06/msg00905.html
2339         to merge glibc and Gnulib regex.  It aims to simplify the merge on
2340         the glibc side, without keeping Gnulib portable.
2341         * lib/regex.h: Fix a problem with glibc installed-header checking,
2342         as follows:
2343         (_Restrict_): Prefer __restrict if defined or if GCC 2.95 or later.
2344         (_Restrict_arr_): Prefer __restrict_arr if defined,
2345         otherwise prefer _Restrict_ if C99 or GCC 3.1 or later (but not C++).
2346         * lib/regex_internal.c (re_string_realloc_buffers, build_wcs_buffer)
2347         (build_wcs_upper_buffer, build_upper_buffer)
2348         (re_string_translate_buffer, re_string_context_at):
2349         Move decls here from lib/regex_internal.h, for glibc internal tests.
2350         (build_wcs_upper_buffer): Use __wcrtomb, not wcrtomb, fixing
2351         glibc BZ #18496.
2352         * lib/regex_internal.h (lock_fini) [_LIBC]: Cast to 0 to pacify
2353         -Wunused-value.
2354         (bitset_set, bitset_clear, bitset_contain, bitset_empty)
2355         (bitset_set_all, bitset_copy, bitset_not, bitset_merge)
2356         (bitset_mask): Now static inline, and without any __attribute__
2357         ((unused)) decoration, for glibc internal tests.
2359 2018-06-25  Bruno Haible  <bruno@clisp.org>
2361         threadlib: Fix LIBMULTITHREAD on platforms where --as-needed is enabled.
2362         Reported by Erik Auerswald <auerswal@unix-ag.uni-kl.de>
2363         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00063.html>.
2364         * m4/threadlib.m4 (gl_THREADLIB_BODY): Check whether the linker supports
2365         --as-needed/--no-as-needed and --push-state/--pop-state. When defining
2366         USE_POSIX_THREADS_WEAK or USE_SOLARIS_THREADS_WEAK or
2367         USE_PTH_THREADS_WEAK, define LIBMULTITHREAD in such a way that -lpthread
2368         / -lthread / -lpth does not get optimized away by a preceding
2369         --as-needed option.
2371 2018-06-25  Bruno Haible  <bruno@clisp.org>
2373         Continue to use spaces for indentation, not tabs.
2374         * MODULES.html.sh: Untabify.
2375         * doc/regex.texi: Likewise.
2376         * lib/acl-internal.c: Likewise.
2377         * lib/dfa.c: Likewise.
2378         * lib/exclude.c: Likewise.
2379         * lib/exclude.h: Likewise.
2380         * lib/get-permissions.c: Likewise.
2381         * lib/gettimeofday.c: Likewise.
2382         * lib/parse-datetime.y: Likewise.
2383         * lib/pselect.c: Likewise.
2384         * lib/set-permissions.c: Likewise.
2385         * lib/time.in.h: Likewise.
2386         * m4/canonicalize.m4: Likewise.
2387         * m4/gc.m4: Likewise.
2388         * m4/gnulib-common.m4: Likewise.
2389         * m4/pthread_sigmask.m4: Likewise.
2390         * m4/vararrays.m4: Likewise.
2391         * tests/test-digest.h: Likewise.
2392         * tests/test-fcntl-h.c: Likewise.
2393         * tests/test-timespec.c: Likewise.
2394         * tests/uniwbrk/test-uc-wordbreaks.c: Likewise.
2396 2018-06-25  Bruno Haible  <bruno@clisp.org>
2398         manywarnings: Don't enable -Wjump-misses-init warnings by default.
2399         * build-aux/gcc-warning.spec: Add -Wjump-misses-init.
2400         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): Remove
2401         -Wjump-misses-init.
2403 2018-06-25  Jim Meyering  <meyering@fb.com>
2405         acl-internal.h: remove _GL_ATTRIBUTE_CONST on void function
2406         * lib/acl-internal.h (free_permission_context): Remove that
2407         attribute directive.  Otherwise, it would provoke this from GCC 9:
2408         lib/acl-internal.h:300:3: error: 'const' attribute on function \
2409           returning 'void' [-Werror=attributes]
2411 2018-06-24  Jim Meyering  <meyering@fb.com>
2413         parse-datetime: accommodate gcc-4.8.5
2414         Bruno Haible reported the build failure in
2415         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00066.html
2416         * lib/parse-datetime.y (parse_datetime2): Remove leading "static"
2417         on declaration of new local.
2419 2018-06-24  Bruno Haible  <bruno@clisp.org>
2421         af_alg: Fail in continuable manner on Linux/powerpc64le.
2422         Reported by Assaf Gordon <assafgordon@gmail.com>
2423         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00034.html>.
2424         * lib/af_alg.c (afalg_stream): On non-seekable streams, try a single-
2425         byte send() as the first round.
2427 2018-06-24  Bruno Haible  <bruno@clisp.org>
2429         af_alg: Fix state of stream after sendfile() succeeds.
2430         * lib/af_alg.c (afalg_stream): Invoke fflush and lseek, to ensure that
2431         the stream is correctly positioned afterwards.
2432         * modules/crypto/af_alg (Depends-on): Add fflush.
2433         * tests/test-digest.h (test_digest_on_files): Verify that after the
2434         operation the stream is positioned at end of file.
2436 2018-06-24  Jim Meyering  <meyering@fb.com>
2438         canon-host: take GCC9's advice rather than ignoring warning
2439         Pádraig Brady suggested not to ignore this GCC9 advice.
2440         * lib/canon-host.c: Undo preceding change.
2441         * lib/canon-host.h: Instead, declare with _GL_ATTRIBUTE_MALLOC.
2443         parse-datetime.y: avoid spurious GCC 9 warning
2444         * lib/parse-datetime.y (parse_datetime2): Save RELATIVE_TIME_0 into
2445         a function local prior to the first "goto fail".  The prior use would
2446         evoke this:
2447         parse-datetime.y: In function 'parse_datetime2':
2448         parse-datetime.y:1791:19: error: jump skips variable initialization \
2449           [-Werror=jump-misses-init]
2450         parse-datetime.y:2385:2: note: label 'fail' defined here
2451         parse-datetime.y:188:43: note: '({anonymous})' declared here
2452         parse-datetime.y:1841:12: note: in expansion of macro 'RELATIVE_TIME_0'
2454         canon-host.c: avoid spurious GCC 9 warning
2455         * lib/canon-host.c: Suppress GCC9's -Wsuggest-attribute=malloc.
2457         manywarnings: accommodate GCC 9.0-pre: remove -Wchkp and -Wabi
2458         * build-aux/gcc-warning.spec: Add them here, each with an explanation.
2459         * m4/manywarnings.m4: Remove them.
2460         Otherwise, building coreutils, I would see this:
2461         cc1: error: deprecated command line option '-Wchkp' [-Werror]
2462         cc1: error: -Wabi won't warn about anything [-Werror=abi]
2463         cc1: note: -Wabi warns about differences from the most up-to-date ABI,\
2464           which is also used by default
2465         cc1: note: use e.g. -Wabi=11 to warn about changes from GCC 7
2467 2018-06-24  Bruno Haible  <bruno@clisp.org>
2469         af_alg tests: Add another test.
2470         * tests/test-digest.h (test_digest_on_files): Also check a large file
2471         with a skipped header.
2472         * tests/test-md5.c: Include macros.h.
2473         * tests/test-sha1.c: Likewise.
2474         * tests/test-sha256.c: Likewise.
2475         * tests/test-sha512.c: Likewise.
2476         * modules/crypto/md5-tests (Files): Add tests/macros.h.
2477         * modules/crypto/sha1-tests (Files): Likewise.
2478         * modules/crypto/sha256-tests (Files): Likewise.
2479         * modules/crypto/sha512-tests (Files): Likewise.
2481 2018-06-24  Pádraig Brady  <P@draigBrady.com>
2483         maint: clarify comments about sticky EOF
2484         * lib/af_alg.c: Be more direct that we can't
2485         assume stickiness of EOF for portability reasons.
2486         * lib/md5.c: Clarify that this isn't just a glibc issue.
2487         * lib/sha1.c: Likewise.
2488         * lib/sha256.c: Likewise.
2489         * lib/sha512.c: Likewise.
2491 2018-06-24  Bruno Haible  <bruno@clisp.org>
2493         af_alg: Comment and style improvements.
2494         * lib/af_alg.c (alg_socket): Use 'size_t' as index into a string.
2495         (afalg_buffer, afalg_stream): Improve comments.
2497 2018-06-24  Pádraig Brady  <P@draigBrady.com>
2499         af_alg: disable kernel hash functions by default
2500         All the kernel routines were seen to be significantly slower
2501         with these relatively recent components on an i3-2310M system:
2502           kernel-4.10.6-200.fc25.x86_64
2503           openssl-1.0.2m-1.fc25.x86_64
2504         sha1 was nearly twice as slow in the kernel for example.
2505         Further considerations why this should not be the default, at:
2506         https://lists.gnu.org/r/coreutils/2018-06/msg00034.html
2508         * m4/af_alg.m4: Require --with-linux-crypto to enable.
2509         * m4/gl-openssl.m4: Tweak accordingly.
2511 2018-06-24  Pádraig Brady  <P@draigBrady.com>
2513         af_alg: avoid hangs when reading from streams
2514         * lib/af_alg.c (afalg_stream): Don't assume EOF is sticky,
2515         and thus avoid doing a fread() when feof() is set.
2516         * lib/md5.c: Ensure feof() is called before fread().
2517         * lib/sha1.c: Likewise.
2518         * lib/sha256.c: Likewise.
2519         * lib/sha512.c: Likewise.
2521 2018-06-24  Pádraig Brady  <P@draigBrady.com>
2523         af_alg: fix error handling when hash not returned
2524         * lib/af_alg.c (afalg_stream): Handle the case where we've
2525         successfully written data to the kernel in the read/write loop,
2526         but the kernel doesn't respond with the hash.
2528 2018-06-24  Paul Eggert  <eggert@cs.ucla.edu>
2530         libc-config: merge from glibc
2531         * lib/cdefs.h (__inline, __restrict):
2532         Copy from current glibc.  This fixes glibc bug 17721,
2533         which Gnulib had already fixed in a different way.
2534         (__nonnull): Lessen the distance from glibc by using the
2535         glibc definition inside an ‘#ifndef __nonnull’.
2536         (__attribute_nonstring__): New macro, copied from
2537         current glibc.
2538         * lib/libc-config.h (__attribute_nonstring__): New undef.
2539         (__restrict): Remove; workaround no longer needed.
2540         Keep the __inline workaround, though, as it uses HAVE___INLINE to
2541         support more compilers than the glibc __inline can.
2543 2018-06-24  Bruno Haible  <bruno@clisp.org>
2545         mbrtowc, wcwidth: Fix MT-safety bug (regression from 2018-06-23).
2546         * lib/mbrtowc.c (enc_t): New enum type.
2547         (locale_enc, locale_enc_cached): New functions.
2548         (mbrtowc): Eliminate static variables. Use locale_enc_cached instead.
2549         * lib/wcwidth.c (is_locale_utf8, is_locale_utf8_cached): New functions.
2550         (wcwidth): Eliminate static variables. Use is_locale_utf8_cached
2551         instead.
2552         * m4/mbrtowc.m4 (gl_PREREQ_MBRTOWC): Require AC_C_INLINE.
2553         * m4/wcwidth.m4 (gl_PREREQ_WCWIDTH): New macro.
2554         * modules/wcwidth (configure.ac): Invoke it.
2556 2018-06-24  Bruno Haible  <bruno@clisp.org>
2558         wchar-single: Fix test failure in wcwidth tests.
2559         * tests/test-wcwidth.c (main): If the wchar-single module is present,
2560         skip the tests in the C locale.
2562 2018-06-23  Pádraig Brady  <P@draigBrady.com>
2564         crypto: mention --without-linux-crypto in --with-openssl --help
2565         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Mention that linux crypto
2566         routines take precedence in --with-openssl help output.
2568 2018-06-23  Pádraig Brady  <P@draigBrady.com>
2570         wchar-single: a new module to enable optimizations in wchar replacements
2571         * lib/mbrtowc.c (mbrtowc): Only check locale_charset() once if
2572         GNULIB_WCHAR_SINGLE is enabled.
2573         * lib/wcwidth.c (wcwidth): Likewise.
2575 2018-06-23  Bruno Haible  <bruno@clisp.org>
2577         libc-config: Fix conflict with FreeBSD include files.
2578         * lib/cdefs.h (__nonnull): Remove definition.
2579         * lib/libc-config.h (__nonnull): Remove undefinition.
2581 2018-06-21  Paul Eggert  <eggert@cs.ucla.edu>
2583         random_r: do not crash if state is unaligned
2584         Problem reported by Bruce Korb in:
2585         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00030.html
2586         I reproduced the crash on 32-bit sparc with Oracle Studio 12.6
2587         with 'cc -O2 -xmemalign=8s'.
2588         * lib/random_r.c: Include string.h, for memcpy.
2589         (get_int32, set_int32): New functions.
2590         (__srandom_r, __initstate_r, __setstate_r, __random_r):
2591         Use them to avoid assumption that state pointer is aligned.
2592         (__random_r): Avoid integer overflow if INT_MAX == UINT32_MAX.
2593         * tests/test-random_r.c (test_failed): New function.
2594         (main): Use it, to test for alignment bugs.
2596         random_r: omit unnecessary include
2597         * lib/random_r.c: Do not include limits.h.
2599         random, random_r: merge from glibc
2600         * lib/random.c, lib/random_r.c:
2601         Include libc-config.h if !_LIBC, not config.h unilaterally.
2602         * lib/random.c:
2603         Do not include stdint.h or time.h; not needed.
2604         Include libc-lock.h if _LIBC, and define substitute macros otherwise.
2605         (unsafe_state): Rename from generator.  All uses changed.
2606         Use C99-style initializers.
2607         (__random, __srandom, __initstate, __setstate): Rename from
2608         non-underscored version, but define it to non-underscored version
2609         on Gnulib.  Add a lock.
2610         * lib/random_r.c (__srandom_r, __initstate_r, __setstate_r, __random_r):
2611         Likewise.
2612         Do not include <stdint.h>; not needed since stdlib.h defines int32_t.
2613         (weak_alias, __set_errno) [!_LIBC]: Remove; now done by libc-config.
2614         (__srandom_r): Use int32_t instead of long int where int32_t will do.
2615         (__random_r): Use uint32 to fix glibc bug 17343.
2616         * modules/random, modules/random_r (Depends-on): Add libc-config.
2617         Depend on stdint only if $HAVE_RANDOM = 0.
2619 2018-06-19  Jim Meyering  <meyering@fb.com>
2621         README-release: also run any check-very-expensive tests
2622         * top/README-release: Adjust instructions so they run the
2623         check-very-expensive tests when there is such a target.
2625 2018-06-18  Bruno Haible  <bruno@clisp.org>
2627         pthread_rwlock_rdlock: Add comments regarding glibc behaviour.
2628         * m4/pthread_rwlock_rdlock.m4: Add comment.
2629         * doc/posix-functions/pthread_rwlock_rdlock.texi: Mention that rwlocks
2630         are reader-preferring in glibc.
2631         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likwise.
2632         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
2634 2018-06-17  Paul Eggert  <eggert@cs.ucla.edu>
2636         crypto: use byteswap
2637         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
2638         * lib/sm3.c: Include <byteswap.h>.
2639         (SWAP): Use its macros rather than reinventing the wheel.
2640         * modules/crypto/md4, modules/crypto/md5-buffer:
2641         * modules/crypto/sha1-buffer, modules/crypto/sha256-buffer:
2642         * modules/crypto/sha512-buffer, modules/crypto/sm3:
2643         (Depends-on): Add byteswap.
2645 2018-06-17  Pádraig Brady  <P@draigBrady.com>
2647         gendocs.sh: fix support for legacy --texi2html
2648         * build-aux/gendocs.sh: Restrict use of TOP_NODE_UP_URL
2649         to the default makeinfo invocation.
2650         Reported by Bruce Korb
2652 2018-06-17  Bruno Haible  <bruno@clisp.org>
2654         gettext po infrastructure: Update from current gettext git.
2655         Reported by Akim Demaille <akim@lrde.epita.fr>.
2656         * build-aux/po/Makefile.in.in: Update from current gettext git.
2657         * build-aux/po/remove-potcdate.sin: Likewise.
2658         * config/srclist.txt: Temporarily disable sync for these files.
2660 2018-06-17  Bruno Haible  <bruno@clisp.org>
2662         getloadavg: Return 0 on Windows without Cygwin.
2663         * lib/getloadavg.c: Don't assume that the symbol WINDOWS32 is defined.
2665 2018-06-17  Paul Smith  <psmith@gnu.org>
2667         getloadavg: Allow building on Windows without Cygwin
2668         * lib/getloadavg.c: Reinstate ifdef for HAVE_UNISTD_H.
2669         * m4/getloadavg.m4: Check for unistd.h.
2671 2018-06-03  Paul Eggert  <eggert@cs.ucla.edu>
2673         Port crypto/af_alg to GCC 4.8.4
2674         Problem reported by Peter Simons in:
2675         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00002.html
2676         * modules/crypto/af_alg (Depends-on): Add c99 if USE_AF_ALG.
2678 2018-05-27  Colin Watson  <cjwatson@debian.org>
2680         bootstrap: document source fetching in --help
2681         * build-aux/bootstrap (usage): Document how Gnulib sources are fetched.
2683 2018-04-09  Colin Watson  <cjwatson@debian.org>
2685         bootstrap: allow non-submodule control of gnulib
2686         * build-aux/bootstrap: Honour GNULIB_URL and GNULIB_REVISION in
2687         bootstrap.conf when fetching gnulib using "git clone" or via
2688         GNULIB_SRCDIR.
2690 2018-05-21  Paul Eggert  <eggert@cs.ucla.edu>
2692         crypto: omit stream ops Emacs doesn’t need
2693         * lib/md5.c (md5_stream):
2694         * lib/sha1.c (sha1_stream):
2695         * lib/sha256.c (shaxxx_stream, sha256_stream, sha224_stream):
2696         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
2697         Compile stream functions only if GL_COMPILE_CRYPTO_STREAM is
2698         defined.  Emacs needs this, as it does not use the stream
2699         operations and doesn’t need all the af_alg stuff we’ve recently
2700         added.  Perhaps a similar change is needed to the other crypto
2701         modules, but this patch changes only those needed for Emacs.
2702         * modules/crypto/md5-buffer, modules/crypto/sha1-buffer:
2703         * modules/crypto/sha256-buffer, modules/crypto/sha512-buffer:
2704         New modules, used by Emacs.
2705         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
2706         * modules/crypto/sha512: Rewrite to depend on the new modules.
2708 2018-05-20  Pádraig Brady  <P@draigBrady.com>
2710         fts: avoid a memory leak edge case
2711         * lib/fts.c (fts_open): Set an appropriate fts_level
2712         so that an immediate fts_close() will free the allocation.
2713         * tests/test-fts.c (fts_dealloc): Add a test case which
2714         will trigger under valgrind or address sanitizer.
2715         Fixes https://bugs.gnu.org/31439
2717 2018-05-20  Bruno Haible  <bruno@clisp.org>
2719         wcwidth tests: Fix link error.
2720         * modules/wcwidth-tests (Makefile.am): Link test-wcwidth against
2721         $(LIBUNISTRING).
2723 2018-05-20  Bruno Haible  <bruno@clisp.org>
2725         regex: Fix "error: possibly undefined macro: gl_GLIBC21".
2726         * modules/regex (Files): Add m4/glibc21.m4.
2728 2018-05-20  Bruno Haible  <bruno@clisp.org>
2730         localcharset: Optimize.
2731         * lib/localcharset.c (alias_table): Comment out no-op mappings for
2732         platforms where these don't matter. This reduces the table size,
2733         which in turn reduces the lookup time.
2735 2018-05-19  Bruno Haible  <bruno@clisp.org>
2737         localcharset: Map the locale encodings found in newer OSes.
2738         * lib/localcharset.c (alias_table): Add mapping for locale encodings
2739         found in FreeBSD 11, NetBSD 7, Solaris 10, Openindiana, HP-UX 11.31,
2740         IRIX 6.5, Minix 3.3.
2741         * lib/localcharset.h: Update comments accordingly. Also for Cygwin 2.9.
2743 2018-05-19  Bruno Haible  <bruno@clisp.org>
2745         localcharset: Move mapping tables into the code. Use a binary search.
2746         * lib/localcharset.h: Document the GNU canonical names for character
2747         encodings here.
2748         * lib/localcharset.c: Don't include <fcntl.h>, <unistd.h>,
2749         relocatable.h, configmake.h.
2750         (O_NOFOLLOW, ISSLASH, DIRECTORY_SEPARATOR, getc, volatile): Remove
2751         macros.
2752         (charset_aliases): Remove variable.
2753         (get_charset_aliases): Remove function.
2754         (struct table_entry): New type.
2755         (alias_table, locale_table): New constants.
2756         (locale_charset): Use the alias_table or locale_table to get the
2757         canonicalized encoding name.
2758         * lib/config.charset: Remove file.
2759         * lib/ref-add.sin: Remove file.
2760         * lib/ref-del.sin: Remove file.
2761         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't require gl_FCNTL_O_FLAGS,
2762         AC_CANONICAL_HOST, gl_GLIBC21. Don't check for getc_unlocked.
2763         * modules/localcharset (Notice): Remove.
2764         (Files): Remove config.charset, ref-add.sin, ref-del.sin, fcntl-o.m4,
2765         glibc21.m4.
2766         (Depends-on): Remove configmake.
2767         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT to empty.
2768         (Makefile.am): Simplify.
2769         * build-aux/prefix-gnulib-mk: Remove special code for the removed files.
2771 2018-05-19  Bruno Haible  <bruno@clisp.org>
2773         localcharset: Add a manual test.
2774         * tests/test-localcharset.c: New file.
2775         * modules/localcharset-tests: New file.
2777 2018-05-19  Bruno Haible  <bruno@clisp.org>
2779         localcharset: Remove support for obsolete platforms.
2780         * lib/config.charset: Remove support for Linux/libc5, glibc-2.0.x, and
2781         Mac OS X 10.2. Comment out dubious entry for Solaris.
2783 2018-05-19  Jim Meyering  <meyering@fb.com>
2785         gnupload: adjust comment
2786         * build-aux/gnupload: Add FIXME-2020 comment, to make it slightly
2787         more likely we'll remove the just-added code in a year or two.
2789 2018-05-19  Bruno Haible  <bruno@clisp.org>
2791         gnupload: Fix "gpg-agent is not available in this session" error.
2792         * build-aux/gnupload (GPG): Pick the right GNUPG executable to use.
2794 2018-05-16  Paul Eggert  <eggert@cs.ucla.edu>
2796         crypto/af_alg: fix --help
2797         * m4/af_alg.m4: Avoid spurious newline in --help output.
2799 2018-05-13  Bruno Haible  <bruno@clisp.org>
2801         nl_langinfo: Fix compilation error on Android.
2802         * lib/nl_langinfo.c (nl_langinfo): Define values for the items GROUPING,
2803         INT_CURR_SYMBOL, etc. only if these items are defined.
2805 2018-05-13  Bruno Haible  <bruno@clisp.org>
2807         truncate: Fix compilation error on Android.
2808         * m4/truncate.m4 (gl_FUNC_TRUNCATE): Test also whether 'truncate' is
2809         declared. Set HAVE_DECL_TRUNCATE, not HAVE_TRUNCATE.
2810         * lib/unistd.in.h (truncate): Test HAVE_DECL_TRUNCATE, not
2811         HAVE_TRUNCATE.
2812         * modules/truncate: Likewise.
2813         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_TRUNCATE,
2814         not HAVE_TRUNCATE.
2815         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TRUNCATE, not
2816         HAVE_TRUNCATE.
2817         * doc/posix-functions/truncate.texi: Mention the issue.
2819 2018-05-13  Bruno Haible  <bruno@clisp.org>
2821         pthread: Fix compilation error on Android.
2822         * lib/pthread.in.h: Use _GL_ALREADY_INCLUDING_PTHREAD_H to shortcut
2823         recursive inclusion of this file.
2825 2018-05-13  Bruno Haible  <bruno@clisp.org>
2827         posix_spawn: Fix compilation error on Android.
2828         * lib/spawn.in.h (posix_spawnattr_t): Consider also the case
2829         HAVE_POSIX_SPAWNATTR_T = 1 && HAVE_POSIX_SPAWN = 0.
2830         (posix_spawn_file_actions_t): Consider also the case
2831         HAVE_POSIX_SPAWN_FILE_ACTIONS_T = 1 && HAVE_POSIX_SPAWN = 0.
2833 2018-05-13  Bruno Haible  <bruno@clisp.org>
2835         tsearch: Move from K&R C to ANSI C.
2836         * lib/tsearch.c (tfind): Convert definition to ANSI C.
2838 2018-05-13  Bruno Haible  <bruno@clisp.org>
2840         tsearch: Fix compilation error on Android.
2841         * lib/search.in.h (twalk): Declare when HAVE_TWALK, not HAVE_TSEARCH,
2842         is 0.
2843         (GNULIB_defined_tsearch, GNULIB_defined_twalk): New macros.
2844         * lib/tsearch.c (tsearch, tfind, tdelete): Define only if
2845         GNULIB_defined_tsearch is true.
2846         (twalk): Define only if GNULIB_defined_twalk is true.
2847         * modules/tsearch (configure.ac): Compile tsearch.c also if HAVE_TWALK
2848         is 0.
2849         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Set HAVE_TWALK.
2850         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize HAVE_TWALK.
2851         * modules/search (Makefile.am): Substitute HAVE_TWALK.
2853 2018-05-13  Bruno Haible  <bruno@clisp.org>
2855         imaxdiv: Fix compilation error on Android.
2856         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Set HAVE_IMAXDIV_T to 0 if imaxdiv_t
2857         is not defined.
2858         * lib/inttypes.in.h (imaxdiv_t): Define if HAVE_IMAXDIV_T, not
2859         HAVE_DECL_IMAXDIV, is 0.
2860         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize HAVE_IMAXDIV_T.
2861         * modules/inttypes-incomplete (Makefile.am): Substitute HAVE_IMAXDIV_T.
2863 2018-05-13  Bruno Haible  <bruno@clisp.org>
2865         Support selective inclusion mechanism of recent mingw.org header files.
2866         Reported by Eli Zaretskii <eliz@gnu.org>.
2867         * lib/sys_types.in.h: On mingw, when __need_off_t, __need___off64_t,
2868         __need_ssize_t, or __need_time_t is defined, just include the system's
2869         <sys/types.h>.
2870         * lib/locale.in.h: On mingw, when __need_locale_t is defined, just
2871         include the system's <locale.h>.
2873 2018-05-13  Bruno Haible  <bruno@clisp.org>
2875         Avoid compilation error due to 'mmap' on Android.
2876         * lib/vma-iter.c (_FILE_OFFSET_BITS): Undefine on Android.
2877         * lib/get-rusage-as.c (_FILE_OFFSET_BITS): Likewise.
2878         * tests/zerosize-ptr.h (_FILE_OFFSET_BITS, __USE_FILE_OFFSET64):
2879         Undefine on Android.
2881 2018-05-13  Bruno Haible  <bruno@clisp.org>
2883         Add cross-compilation guesses for Linux systems without glibc.
2884         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for Linux.
2885         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
2886         * m4/link.m4 (gl_FUNC_LINK): Likewise.
2887         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
2888         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
2889         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
2890         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
2891         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
2892         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
2893         * m4/readlink.m4 (gl_FUNC_READLINK): Likewise.
2894         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
2895         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
2896         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
2897         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
2898         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
2899         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
2900         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
2901         * m4/utimens.m4 (gl_UTIMENS): Likewise.
2903 2018-05-13  Bruno Haible  <bruno@clisp.org>
2905         getpagesize: Fix compilation error on Android.
2906         * m4/getpagesize.m4 (gl_CHECK_FUNC_GETPAGESIZE): New macro.
2907         (gl_FUNC_GETPAGESIZE): Invoke it instead of AC_CHECK_FUNC.
2908         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Don't invoke
2909         AC_CHECK_FUNC. Instead, invoke gl_CHECK_FUNC_GETPAGESIZE and define
2910         HAVE_GETPAGESIZE accordingly.
2911         * modules/getcwd (Files): Add m4/getpagesize.m4.
2913 2018-05-13  Bruno Haible  <bruno@clisp.org>
2915         tcgetsid: Fix compilation error on Android.
2916         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use AC_LINK_IFELSE instead of
2917         AC_CHECK_FUNC.
2919 2018-05-13  Bruno Haible  <bruno@clisp.org>
2921         getpass: Fix configure test for Android.
2922         * m4/getpass.m4 (gl_PREREQ_GETPASS): Use AC_LINK_IFELSE instead of
2923         AC_CHECK_FUNC.
2925 2018-05-13  Bruno Haible  <bruno@clisp.org>
2927         ffs: Fix compilation error on Android.
2928         * m4/ffs.m4 (gl_FUNC_FFS): Use AC_LINK_IFELSE instead of AC_CHECK_FUNC.
2930 2018-05-13  Bruno Haible  <bruno@clisp.org>
2932         mkfifo: Fix compilation error on Android.
2933         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Use AC_LINK_IFELSE instead of
2934         AC_CHECK_FUNC.
2936 2018-05-13  Bruno Haible  <bruno@clisp.org>
2938         c-strtod: Fix configure test for Android.
2939         * m4/c-strtod.m4 (gl_C_STRTOD): Use AC_LINK_IFELSE instead of
2940         AC_CHECK_FUNC.
2942 2018-05-13  Bruno Haible  <bruno@clisp.org>
2944         random: Fix compilation error on Android.
2945         * m4/random.m4 (gl_FUNC_RANDOM): Use AC_LINK_IFELSE instead of
2946         AC_CHECK_FUNC.
2948 2018-05-13  Bruno Haible  <bruno@clisp.org>
2950         grantpt: Fix compilation error on Android.
2951         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Use AC_LINK_IFELSE instead of
2952         AC_CHECK_FUNC.
2954 2018-05-13  Bruno Haible  <bruno@clisp.org>
2956         stdioext: Fix compilation errors with newer Android headers.
2957         * lib/stdio-impl.h (fp_, fp_ub): Define differently for Android.
2958         (__SLBF, __SNBF, __SRD, __SWR, __SRW, __SEOF, __SERR, __SOFF): Define
2959         fallbacks for Android.
2960         * lib/fpending.c: Update comments.
2961         * lib/fpurge.c: Likewise.
2962         * lib/freadable.h: Likewise.
2963         * lib/freadable.c: Likewise.
2964         * lib/freadahead.c: Likewise.
2965         * lib/freading.h: Likewise.
2966         * lib/freadptr.c: Likewise.
2967         * lib/fseterr.c: Likewise.
2968         * lib/fwritable.h: Likewise.
2969         * lib/fwritable.c: Likewise.
2970         * lib/fwriting.h: Likewise.
2971         * lib/fwriting.c: Likewise.
2973 2018-05-13  Bruno Haible  <bruno@clisp.org>
2975         doc: Add info about Android versions 2.0 to 8.1.
2976         * doc/**/*.texi: Add info about functions in all released versions of
2977         Bionic.
2979 2018-05-12  Bruno Haible  <bruno@clisp.org>
2981         fseeko: On mingw, don't use the hidden function _fseeki64.
2982         Reported by Eli Zaretskii <eliz@gnu.org>.
2983         * m4/fseeko.m4 (gl_PREREQ_FSEEKO): Test whether _fseeki64 is declared.
2984         * lib/fseeko.c (fseeko): Use _fseeki64 only if it is declared.
2986 2018-05-12  Bruno Haible  <bruno@clisp.org>
2988         glob: Choose 'dirent_type' in a way that works better on mingw.
2989         Reported and suggested by Eli Zaretskii <eliz@gnu.org>.
2990         * lib/glob.c (dirent_type): Define as uint_fast32_t.
2992 2018-05-12  Bruno Haible  <bruno@clisp.org>
2994         execute, spawn-pipe: Avoid warning about redefining 'close'.
2995         Reported by Eli Zaretskii <eliz@gnu.org>.
2996         * lib/execute.c: Undefine 'close' before redefining it.
2997         * lib/spawn-pipe.c: Likewise.
2999 2018-05-12  Bruno Haible  <bruno@clisp.org>
3001         nanosleep: Avoid test failure on mingw when it has nanosleep.
3002         Reported by Eli Zaretskii <eliz@gnu.org>.
3003         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check whether alarm() exists.
3004         If it does not exist, use a simpler test program that does not call
3005         alarm().
3007 2018-05-10  Bruno Haible  <bruno@clisp.org>
3009         lock, cond, thread, tls: Use a different symbol as libpthread witness.
3010         Reported by Devin Hussey <husseydevin@gmail.com>.
3011         Based on a patch by Paul Eggert.
3012         * lib/glthread/lock.h (pthread_in_use): Use 'pthread_mutexattr_gettype'
3013         as witness of libpthread.
3014         * lib/glthread/cond.h (pthread_in_use): Likewise.
3015         * lib/glthread/thread.h (pthread_in_use): Likewise.
3016         * lib/glthread/tls.h (pthread_in_use): Likewise.
3018 2018-05-10  Bruno Haible  <bruno@clisp.org>
3020         cond tests: Fix compilation error on Solaris.
3021         * tests/test-cond.c: Include <unistd.h> before defining 'yield' as a
3022         macro.
3024 2018-05-10  Bruno Haible  <bruno@clisp.org>
3026         doc: Add partial info about Android 4.3.
3027         * doc/*-functions/*.texi: Add info about functions that were added
3028         to Bionic between Android 4.3 and Android 9.0.
3030 2018-05-10  Bruno Haible  <bruno@clisp.org>
3032         doc: Add info about Android 9.0.
3033         * doc/**/*.texi: Add info about functions and headers in Bionic from
3034         Android 9.0.
3036 2018-05-09  Paul Eggert  <eggert@cs.ucla.edu>
3038         af_alg: fix my typo in afalg_buffer
3039         * lib/af_alg.c (afalg_buffer): Fix typo I recently introduced.
3040         (afalg_stream): Simplify and avoid the need for a runtime test
3041         at the end.
3043         af_alg: recover better from crypto failures
3044         * lib/af_alg.c (afalg_stream): Recover from crypto failures if the
3045         input stream is seekable, by repositioning the stream back to
3046         where it was, possibly by just calling sendfile with an offset
3047         arg.  This lets us return -EAFNOSUPPORT instead of -EIO in some
3048         cases, which lets our callers try again with user-mode code.
3049         * modules/crypto/af_alg (Depends-on): Depend on fseeko and ftello
3050         instead of on fflush and lseek.
3052         af_alg: distiguish I/O errors better
3053         * lib/af_alg.c (afalg_buffer, afalg_stream): Return -EAFNOSUPPORT,
3054         not -EIO, if it’s OK for the caller to try again with user-mode code.
3055         (afalg_stream) [!_WIN32 || __CYGWIN__]: Return -EIO (not possibly
3056         some other error number) if fflush fails, as the caller should not
3057         try again that case.
3059         af_alg: avoid gotos
3060         * lib/af_alg.c (afalg_buffer, afalg_stream): Rewrite to avoid
3061         gotos, as they were a source of unreliability and made the code a
3062         bit harder to follow.
3064         af_alg: don’t leak file descriptors into children
3065         * lib/af_alg.c (alg_socket): Use SOCK_CLOEXEC when creating sockets.
3066         This code should be compiled only on recent GNU/Linux platforms
3067         so we shouldn’t have to also depend on the accept4 module.
3069         af_alg: coalesce socket creation
3070         * lib/af_alg.c (alg_socket): New function.
3071         (afalg_buffer, afalg_stream): Use it.  This avoids some
3072         code duplication and gotos.
3074         af_alg: fix file descriptor leak
3075         * lib/af_alg.c (afalg_stream): Close leak.
3077         af_alg: Pacify --enable-gcc-warnings on GCC 8
3078         * lib/af_alg.c (afalg_buffer, afalg_stream): Reorder local decls
3079         and checking to pacify gcc -Wjump-misses-init on GCC 8.
3081 2018-05-07  Paul Eggert  <eggert@cs.ucla.edu>
3083         af_alg: Pacify --enable-gcc-warnings
3084         Problem reported by Assaf Gordon in:
3085         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00041.html
3086         * lib/af_alg.c (afalg_buffer): Move local decls to pacify
3087         gcc -Wjump-misses-init.
3088         * lib/sha512.c (shaxxx_stream): Now static.
3090 2018-05-06  Bruno Haible  <bruno@clisp.org>
3092         af_alg: Add ability to use Linux kernel crypto API on data in memory.
3093         * lib/af_alg.h (afalg_buffer): New declaration.
3094         * lib/af_alg.c (afalg_buffer): New function.
3096 2018-05-06  Bruno Haible  <bruno@clisp.org>
3098         af_alg: Avoid warnings.
3099         * lib/af_alg.h (afalg_stream): Mark fallback declaration as inline.
3100         * m4/af_alg.m4 (gl_AF_ALG): Require AC_C_INLINE.
3102 2018-05-06  Bruno Haible  <bruno@clisp.org>
3104         crypto/{md5,sha1,sha256,sha512} tests: Add benchmarks.
3105         * tests/bench-digest.h: New file.
3106         * tests/bench-md5.c: New file.
3107         * tests/bench-sha1.c: New file.
3108         * tests/bench-sha224.c: New file.
3109         * tests/bench-sha256.c: New file.
3110         * tests/bench-sha384.c: New file.
3111         * tests/bench-sha512.c: New file.
3112         * modules/crypto/md5-tests (Files): Add tests/bench-md5.c,
3113         tests/bench-digest.h.
3114         (Depends-on): Add getrusage, gettimeofday.
3115         (Makefile.am): Add variables to build bench-md5.
3116         * modules/crypto/sha1-tests (Files): Add tests/bench-sha1.c,
3117         tests/bench-digest.h.
3118         (Depends-on): Add getrusage, gettimeofday.
3119         (Makefile.am): Add variables to build bench-sha1.
3120         * modules/crypto/sha256-tests (Files): Add tests/bench-sha224.c,
3121         tests/bench-sha256.c, tests/bench-digest.h.
3122         (Depends-on): Add getrusage, gettimeofday.
3123         (Makefile.am): Add variables to build bench-sha224, bench-sha256.
3124         * modules/crypto/sha512-tests (Files): Add tests/bench-sha384.c,
3125         tests/bench-sha512.c, tests/bench-digest.h.
3126         (Depends-on): Add getrusage, gettimeofday.
3127         (Makefile.am): Add variables to build bench-sha384, bench-sha512.
3129 2018-05-06  Bruno Haible  <bruno@clisp.org>
3131         af_alg: Fix a resource leak.
3132         * lib/af_alg.c (afalg_stream): Close socket before returning -EINVAL.
3133         New local variable 'result'.
3135 2018-05-06  Bruno Haible  <bruno@clisp.org>
3137         af_alg: Fix bug with streams that are not at position 0.
3138         * lib/af_alg.c (afalg_stream): Before sendfile, invoke fflush. Don't
3139         assume that the stream is positioned at position 0.
3140         * lib/af_alg.h (afalg_stream): Mention restriction regarding the state
3141         of the stream.
3142         * lib/md5.h (md5_stream): Likewise.
3143         * lib/sha1.h (sha1_stream): Likewise.
3144         * lib/sha256.h (sha256_stream, sha224_stream): Likewise.
3145         * lib/sha512.h (sha512_stream, sha384_stream): Likewise.
3146         * modules/crypto/af_alg (Depends-on): Add fflush, lseek.
3148         crypto/{md5,sha1,sha256,sha512} tests: Enhance test.
3149         * tests/test-digest.h (test_digest_on_files): Add a test with a FILE
3150         stream that is not positioned at the beginning.
3152 2018-05-06  Bruno Haible  <bruno@clisp.org>
3154         af_alg: Add configure option to enable/disable use of Linux crypto API.
3155         Suggested by Assaf Gordon <assafgordon@gmail.com>.
3156         * m4/af_alg.m4 (gl_AF_ALG): Add AC_ARG_WITH invocation. Define C macro
3157         USE_LINUX_CRYPTO_API.
3158         * lib/af_alg.h: Test USE_LINUX_CRYPTO_API, not HAVE_LINUX_IF_ALG_H.
3159         * lib/af_alg.c: Likewise.
3161 2018-05-06  Bruno Haible  <bruno@clisp.org>
3163         Followup to 'af_alg: New module.'.
3164         * modules/crypto/md5 (Depends-on): Remove sys_socket, sys_stat.
3165         * modules/crypto/sha1 (Depends-on): Likewise.
3166         * modules/crypto/sha256 (Depends-on): Likewise.
3167         * modules/crypto/sha512 (Depends-on): Likewise.
3169 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
3171         crypto/{md5,sha1,sha256,sha512}: simplify
3172         * lib/md5.c (md5_stream):
3173         * lib/sha1.c (sha1_stream):
3174         * lib/sha256.c (shaxxx_stream):
3175         Simplify, partly by assuming C99.
3176         * lib/sha256.c (shaxxx_stream):
3177         New function, which implements both sha256 and sha224.
3178         Simplify, partly by assuming C99.
3179         (sha256_stream, sha224_stream):
3180         Use it to avoid code duplication, removing a FIXME.
3181         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
3182         Likewise.
3184         af_alg: Improve comments.
3185         * lib/af_alg.h: Use imperatives and tighten up wording.
3187 2018-05-05  Bruno Haible  <bruno@clisp.org>
3189         af_alg: Improve comments.
3190         * lib/af_alg.c (afalg_stream): Improve comment about kernel bug.
3192 2018-05-05  Bruno Haible  <bruno@clisp.org>
3194         af_alg: New module.
3195         * lib/af_alg.h: Test HAVE_* macro through '#if', not '#ifdef'.
3196         * lib/af_alg.c: Include "af_alg.h" before the other header files.
3197         * lib/md5.c: Include "af_alg.h" unconditionally.
3198         (md5_stream): Invoke afalg_stream unconditionally.
3199         * lib/sha1.c: Include "af_alg.h" unconditionally.
3200         (sha1_stream): Invoke afalg_stream unconditionally.
3201         * lib/sha256.c: Include "af_alg.h" unconditionally.
3202         (sha256_stream, sha224_stream): Invoke afalg_stream unconditionally.
3203         * lib/sha512.c: Include "af_alg.h" unconditionally.
3204         (sha512_stream, sha384_stream): Invoke afalg_stream unconditionally.
3205         * m4/af_alg.m4: Renamed from m4/linux-if-alg.m4.
3206         (gl_AF_ALG): Renamed from gl_LINUX_IF_ALG_H.
3207         * modules/crypto/af_alg: New file.
3208         * modules/crypto/md5 (Files): Remove files that are now in the
3209         'crypto/af_alg' module.
3210         (Depends-on): Add crypto/af_alg.
3211         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
3212         (Makefile.am): Don't mention af_alg.c here.
3213         * modules/crypto/sha1 (Files): Remove files that are now in the
3214         'crypto/af_alg' module.
3215         (Depends-on): Add crypto/af_alg.
3216         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
3217         (Makefile.am): Don't mention af_alg.c here.
3218         * modules/crypto/sha256 (Files): Remove files that are now in the
3219         'crypto/af_alg' module.
3220         (Depends-on): Add crypto/af_alg.
3221         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
3222         (Makefile.am): Don't mention af_alg.c here.
3223         * modules/crypto/sha512 (Files): Remove files that are now in the
3224         'crypto/af_alg' module.
3225         (Depends-on): Add crypto/af_alg.
3226         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
3227         (Makefile.am): Don't mention af_alg.c here.
3229 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
3231         crypto tests: pacify GCC
3232         * tests/test-digest.h (test_digest_on_files):
3233         Don’t assume digest size fits in int (!).
3235         af_alg: minor style improvements
3236         * lib/af_alg.c (afalg_stream): Prefer C99 style
3237         decl-after-statement, since we’re already assuming C99.  Clarify
3238         by strengthening the bind test and omit unnecessary assignment.
3240 2018-05-05  Bruno Haible  <bruno@clisp.org>
3242         af_alg: Fix bug on empty files.
3243         * lib/af_alg.c (afalg_stream): Ignore the kernel's result if the input
3244         stream is empty.
3246 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
3248         sys-limits.h: new file for crypto and safe I/O
3249         * lib/af_alg.c: Include sys-limits.h.
3250         (MAX_RW_COUNT): Remove.  Use replaced by SYS_BUFSIZE_MAX.
3251         (afalg_stream): Also reject negative sizes for sendfile; they
3252         should not happen and the code is a bit cleaner and faster this way.
3253         * lib/safe-read.c: Include sys-limits.h.
3254         (BUGGY_READ_MAXIMUM): Remove.  All uses replaced by SYS_BUFSIZE_MAX.
3255         * lib/sys-limits.h: New file, with values and commentary derived
3256         from the old safe-read.c and from GNU Emacs sysdep.c.
3257         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
3258         * modules/crypto/sha512, modules/safe-read, modules/safe-write:
3259         Add lib/sys-limits.h to Files section.
3261 2018-05-05  Bruno Haible  <bruno@clisp.org>
3263         af_alg: Improve function signature.
3264         * lib/af_alg.h (afalg_stream): Swap second and third argument.
3265         * lib/af_alg.c (afalg_stream): Likewise.
3266         * lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c: Callers changed.
3268 2018-05-05  Bruno Haible  <bruno@clisp.org>
3270         crypto/{md5,sha1,sha256,sha512}: Fix compilation error (S_TYPEISTMO).
3271         * modules/crypto/md5 (Depends-on): Add 'sys_stat'.
3272         * modules/crypto/sha1 (Depends-on): Likewise.
3273         * modules/crypto/sha256 (Depends-on): Likewise.
3274         * modules/crypto/sha512 (Depends-on): Likewise.
3276 2018-05-05  Bruno Haible  <bruno@clisp.org>
3278         crypto/{md5,sha1,sha256,sha512}: Fix module description.
3279         * modules/crypto/md5 (Depends-on): Add 'sys_socket'.
3280         * modules/crypto/sha1 (Depends-on): Likewise.
3281         * modules/crypto/sha256 (Depends-on): Likewise.
3282         * modules/crypto/sha512 (Depends-on): Likewise.
3284 2018-05-05  Bruno Haible  <bruno@clisp.org>
3286         af_alg: Add documentation.
3287         * lib/af_alg.h: Add comments.
3289 2018-05-05  Bruno Haible  <bruno@clisp.org>
3291         sha512: Add tests.
3292         * tests/test-sha512.c: New file.
3293         * modules/crypto/sha512-tests: New file.
3295 2018-05-05  Bruno Haible  <bruno@clisp.org>
3297         sha256: Add tests.
3298         * tests/test-sha256.c: New file.
3299         * modules/crypto/sha256-tests: New file.
3301 2018-05-05  Bruno Haible  <bruno@clisp.org>
3303         sha1 tests: Add test for sha1_stream.
3304         * tests/test-sha1.c: Include test-digest.h.
3305         (main): Invoke test_digest_on_files on 'sha1_stream'.
3306         * modules/crypto/sha1-tests (Files): Add tests/test-digest.h.
3308 2018-05-05  Bruno Haible  <bruno@clisp.org>
3310         md5 tests: Add test for md5_stream.
3311         * tests/test-digest.h: New file.
3312         * tests/test-md5.c: Include test-digest.h.
3313         (main): Invoke test_digest_on_files on 'md5_stream'.
3314         * modules/crypto/md5-tests (Files): Add tests/test-digest.h.
3316 2018-04-28  Matteo Croce  <mcroce@redhat.com>
3318         md5sum: Use AF_ALG when available.
3319         * lib/md5.c: Include af_alg.h.
3320         (md5_stream): Use afalg_stream when available.
3321         * modules/crypto/md5 (Files): Add the af_alg files.
3322         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
3323         (Makefile.am): Add af_alg.c.
3325 2018-04-28  Matteo Croce  <mcroce@redhat.com>
3327         sha512sum: Use AF_ALG when available.
3328         * lib/sha512.c: Include af_alg.h.
3329         (sha512_stream, sha384_stream): Use afalg_stream when available.
3330         * modules/crypto/sha512 (Files): Add the af_alg files.
3331         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
3332         (Makefile.am): Add af_alg.c.
3334 2018-04-28  Matteo Croce  <mcroce@redhat.com>
3336         sha256sum: Use AF_ALG when available.
3337         * lib/sha256.c: Include af_alg.h.
3338         (sha256_stream, sha224_stream): Use afalg_stream when available.
3339         * modules/crypto/sha256 (Files): Add the af_alg files.
3340         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
3341         (Makefile.am): Add af_alg.c.
3343 2018-04-28  Matteo Croce  <mcroce@redhat.com>
3345         sha1sum: Use AF_ALG when available.
3346         * lib/af_alg.h: New file.
3347         * lib/af_alg.c: New file.
3348         * lib/sha1.c: Include af_alg.h.
3349         (sha1_stream): Use afalg_stream when available.
3350         * m4/linux-if-alg.m4: New file.
3351         * modules/crypto/sha1 (Files): Add the new files.
3352         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
3353         (Makefile.am): Add af_alg.c.
3355 2018-05-05  Bruno Haible  <bruno@clisp.org>
3357         all: Replace more http URLs by https URLs.
3358         * lib/localename.c: Use https: URL.
3359         * lib/timespec.h: Likewise.
3361 2018-05-03  Paul Eggert  <eggert@cs.ucla.edu>
3363         maint: port more modules to GCC 8
3364         * lib/dirname.h (base_name):
3365         * lib/exclude.h (new_exclude):
3366         * lib/xstrndup.h (xstrndup):
3367         Add malloc attribute.
3368         * lib/readutmp.c: Pacify GCC 8 about safe use of strncpy.
3369         * lib/sig-handler.h (get_handler) [SA_SIGINFO]: Simplify.
3370         This pacifies GCC 8.
3371         * m4/gnulib-common.m4 (gl_COMMON_BODY):
3372         Define _GL_ATTRIBUTE_MALLOC here.  All other definitions removed.
3374 2018-05-03  Bruno Haible  <bruno@clisp.org>
3376         Simplify code. Drop support for Borland C++ on Windows.
3377         Reported by Gisle Vanem <gisle.vanem@gmail.com>.
3378         * lib/accept4.c: Simplify 'defined _WIN32 || defined __WIN32__' to just
3379         'defined _WIN32'.
3380         * lib/canonicalize-lgpl.c: Likewise.
3381         * lib/classpath.c: Likewise.
3382         * lib/clean-temp.c: Likewise.
3383         * lib/csharpexec.c: Likewise.
3384         * lib/ctime.c: Likewise.
3385         * lib/dosname.h: Likewise.
3386         * lib/dup2.c: Likewise.
3387         * lib/errno.in.h: Likewise.
3388         * lib/error.c: Likewise.
3389         * lib/euidaccess.c: Likewise.
3390         * lib/execute.c: Likewise.
3391         * lib/fcntl.in.h: Likewise.
3392         * lib/fcntl.c: Likewise.
3393         * lib/filename.h: Likewise.
3394         * lib/findprog.c: Likewise.
3395         * lib/flock.c: Likewise.
3396         * lib/fopen.c: Likewise.
3397         * lib/freopen.c: Likewise.
3398         * lib/fstat.c: Likewise.
3399         * lib/fsync.c: Likewise.
3400         * lib/gc-gnulib.c: Likewise.
3401         * lib/get-rusage-data.c: Likewise.
3402         * lib/getaddrinfo.c: Likewise.
3403         * lib/getdelim.c: Likewise.
3404         * lib/getdtablesize.c: Likewise.
3405         * lib/gethostname.c: Likewise.
3406         * lib/getlogin.c: Likewise.
3407         * lib/getlogin_r.c: Likewise.
3408         * lib/getopt.c: Likewise.
3409         * lib/getpagesize.c: Likewise.
3410         * lib/getpass.c: Likewise.
3411         * lib/getrusage.c: Likewise.
3412         * lib/gettimeofday.c: Likewise.
3413         * lib/glob.c: Likewise.
3414         * lib/inttypes.in.h: Likewise.
3415         * lib/isapipe.c: Likewise.
3416         * lib/javaexec.c: Likewise.
3417         * lib/link.c: Likewise.
3418         * lib/localcharset.c: Likewise.
3419         * lib/localename.h: Likewise.
3420         * lib/localename.c: Likewise.
3421         * lib/localtime.c: Likewise.
3422         * lib/lseek.c: Likewise.
3423         * lib/mbsinit.c: Likewise.
3424         * lib/mkdir.c: Likewise.
3425         * lib/msvc-nothrow.h: Likewise.
3426         * lib/nanosleep.c: Likewise.
3427         * lib/nl_langinfo.c: Likewise.
3428         * lib/nonblocking.c: Likewise.
3429         * lib/nproc.c: Likewise.
3430         * lib/open.c: Likewise.
3431         * lib/openpty.c: Likewise.
3432         * lib/pathmax.h: Likewise.
3433         * lib/pipe-filter-aux.c: Likewise.
3434         * lib/pipe-filter-gi.c: Likewise.
3435         * lib/pipe-filter-ii.c: Likewise.
3436         * lib/pipe.c: Likewise.
3437         * lib/pipe2.c: Likewise.
3438         * lib/poll.c: Likewise.
3439         * lib/popen.c: Likewise.
3440         * lib/posix_openpt.c: Likewise.
3441         * lib/printf-parse.c: Likewise.
3442         * lib/progreloc.c: Likewise.
3443         * lib/putenv.c: Likewise.
3444         * lib/read.c: Likewise.
3445         * lib/relocatable.c: Likewise.
3446         * lib/rename.c: Likewise.
3447         * lib/same-inode.h: Likewise.
3448         * lib/secure_getenv.c: Likewise.
3449         * lib/select.c: Likewise.
3450         * lib/sethostname.c: Likewise.
3451         * lib/setlocale.c: Likewise.
3452         * lib/sigaction.c: Likewise.
3453         * lib/sigprocmask.c: Likewise.
3454         * lib/sleep.c: Likewise.
3455         * lib/spawn-pipe.h: Likewise.
3456         * lib/spawn-pipe.c: Likewise.
3457         * lib/spawni.c: Likewise.
3458         * lib/stat-time.h: Likewise.
3459         * lib/stat-w32.c: Likewise.
3460         * lib/stat.c: Likewise.
3461         * lib/stdio.in.h: Likewise.
3462         * lib/stdio-impl.h: Likewise.
3463         * lib/stdio-read.c: Likewise.
3464         * lib/stdio-write.c: Likewise.
3465         * lib/stdlib.in.h: Likewise.
3466         * lib/strerror_r.c: Likewise.
3467         * lib/strftime-fixes.c: Likewise.
3468         * lib/sys_stat.in.h: Likewise.
3469         * lib/sys_types.in.h: Likewise.
3470         * lib/sys_wait.in.h : Likewise.
3471         * lib/system-quote.h: Likewise.
3472         * lib/system-quote.c: Likewise.
3473         * lib/tmpdir.c: Likewise.
3474         * lib/tzset.c: Likewise.
3475         * lib/uname.c: Likewise.
3476         * lib/unistd.in.h: Likewise.
3477         * lib/utime.in.h: Likewise.
3478         * lib/utime.c: Likewise.
3479         * lib/utimecmp.c: Likewise.
3480         * lib/utimens.c: Likewise.
3481         * lib/vasnprintf.c: Likewise.
3482         * lib/vma-iter.h: Likewise.
3483         * lib/vma-iter.c: Likewise.
3484         * lib/wait-process.c: Likewise.
3485         * lib/wcsftime.c: Likewise.
3486         * lib/wctype.in.h: Likewise.
3487         * lib/write.c: Likewise.
3488         * tests/nap.h: Likewise.
3489         * tests/test-cloexec.c: Likewise.
3490         * tests/test-dup-safer.c: Likewise.
3491         * tests/test-dup2.c: Likewise.
3492         * tests/test-dup3.c: Likewise.
3493         * tests/test-fcntl.c: Likewise.
3494         * tests/test-get-rusage-data.c: Likewise.
3495         * tests/test-getaddrinfo.c: Likewise.
3496         * tests/test-getlogin.h: Likewise.
3497         * tests/test-isatty.c: Likewise.
3498         * tests/test-localename.c: Likewise.
3499         * tests/test-mbrtowc-w32.c: Likewise.
3500         * tests/test-nonblocking.c: Likewise.
3501         * tests/test-nonblocking-pipe-main.c: Likewise.
3502         * tests/test-nonblocking-socket-main.c: Likewise.
3503         * tests/test-nonblocking-socket.h: Likewise.
3504         * tests/test-pipe.c: Likewise.
3505         * tests/test-pipe2.c: Likewise.
3506         * tests/test-poll.c: Likewise.
3507         * tests/test-pthread_sigmask1.c: Likewise.
3508         * tests/test-select.h: Likewise.
3509         * tests/test-sethostname2.c: Likewise.
3510         * tests/test-sigprocmask.c: Likewise.
3511         * tests/test-spawn-pipe-child.c: Likewise.
3512         * tests/test-stat-time.c: Likewise.
3513         * tests/test-system-quote-main.c: Likewise.
3514         * tests/test-utimens-common.h: Likewise.
3515         * tests/test-wcrtomb-w32.c: Likewise.
3516         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
3517         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
3518         * m4/javacomp.m4 (gt_JAVACOMP): Likewise.
3519         * m4/javaexec.m4 (gt_JAVAEXEC): Likewise.
3520         * m4/locale-ar.m4 (gt_LOCALE_AR): Likewise.
3521         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
3522         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
3523         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
3524         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
3525         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
3526         * m4/nocrash.m4 (GL_NOCRASH): Likewise.
3527         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET): Likewise.
3528         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
3529         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
3530         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Likewise.
3531         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
3533 2018-05-02  Bruno Haible  <bruno@clisp.org>
3535         localename: Fix test failures on mingw.
3536         * lib/localename.c (gl_locale_name_thread): Remove code specific to
3537         native Windows.
3538         (gl_locale_name_posix): Move code specific to native Windows here.
3539         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
3540         Accept result without charset suffix, as it appears on mingw.
3542 2018-04-28  Paul Smith  <psmith@gnu.org>
3544         bootstrap: Avoid gnulib operations if not needed
3545         * build-aux/bootstrap: Remove unused variable gnulib_mk.
3546         Set $gnulib_extra_files early so it can be overridden in .conf.
3547         Remove redundant --import flag from $gnulib_tool_options.
3548         Set $use_gnulib to false if no gnulib modules or files are needed.
3549         If $use_gnulib is false, don't do anything related to gnulib.
3550         A lot of this is just whitespace (indentation) changes.
3552 2018-04-27  Paul Eggert  <eggert@cs.ucla.edu>
3554         manywarnings: port to GCC 8.0
3555         * build-aux/gcc-warning.spec: Add -Wcatch-value,
3556         -Wclass-memaccess, -Wdo-subscript, -Wextra-semi.  Adjust to the
3557         fact that the GCC help message now mentions operands for
3558         -Warray-bounds, -Wformat, -Wformat-overflow, -Wformat-truncation,
3559         -Wimplicit-fallthrough, -Wplacement-new, -Wshift-overflow,
3560         -Wstrict-aliasing, -Wstrict-overflow, -Wstringop-overflow,
3561         and -Wunused-const-variable.
3562         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wattribute-alias,
3563         -Wcast-align=strict, -Wcast-function-type, -Wif-not-aligned,
3564         -Wmissing-attributes, -Wmultistatement-macros,
3565         -Wpacked-not-aligned, -Wsizeof-pointer-div, -Wstringop-truncation,
3566         -Wsuggest-attribute=cold, -Wsuggest-attribute=malloc.
3568 2018-04-24  Bruno Haible  <bruno@clisp.org>
3570         sys_socket: Make SO_REUSEPORT available across platforms.
3571         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3572         * lib/sys_socket.in.h (SO_REUSEPORT): New macro.
3573         * doc/posix-headers/sys_socket.texi: Mention the issue.
3574         * tests/test-poll.c (SO_REUSEPORT): Remove.
3575         * tests/test-select.h: Include <sys/socket.h>.
3576         (SO_REUSEPORT): Remove.
3577         * modules/select-tests (Depends-on): Add 'sys_socket'.
3579 2018-04-21  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
3581         localcharset: short-circuit the search for an alias on a Mac
3582         * lib/localcharset.c (get_charset_aliases): Add a tautological
3583         UTF-8 entry to speed up the search for this case.
3584         Most machines default to a UTF-8 locale nowadays, so begin the
3585         list of aliases with a dummy UTF-8 entry so it will be found
3586         immediately and a time-consuming search through the rest of
3587         the list is avoided.
3589 2018-04-11  Paul Eggert  <eggert@cs.ucla.edu>
3591         fts: add comment
3592         * lib/fts.c (fts_build): Explain why ==, not >.
3593         See remark by Bernhard Voelker in:
3594         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00041.html
3596         fts: fix bug in find across filesystems
3597         This fixes a bug I introduced last summer.
3598         Problem reported by Kamil Dudka in:
3599         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00033.html
3600         * lib/fts.c (filesystem_type, dirent_inode_sort_may_be_useful)
3601         (leaf_optimization):
3602         New arg for file descriptor.  All callers changed.
3603         (fts_build): Check for whether inodes should be sorted
3604         before closing the directory.
3606 2018-04-07  Bruno Haible  <bruno@clisp.org>
3608         unicase/u*-context: Fix link errors with libunistring <= 0.9.9.
3609         Reported by Genki Sky <sky@genki.is>.
3610         * modules/unicase/u8-prefix-context (configure.ac): Require libunistring
3611         version 0.9.10 or newer.
3612         * modules/unicase/u8-suffix-context (configure.ac): Likewise.
3613         * modules/unicase/u16-prefix-context (configure.ac): Likewise.
3614         * modules/unicase/u16-suffix-context (configure.ac): Likewise.
3615         * modules/unicase/u32-prefix-context (configure.ac): Likewise.
3616         * modules/unicase/u32-suffix-context (configure.ac): Likewise.
3618 2018-04-07  Bruno Haible  <bruno@clisp.org>
3620         execute: Update comment.
3621         * lib/execute.h (execute): Refer to spawn-pipe.h, not pipe.h.
3623 2018-04-05  Paul Eggert  <eggert@cs.ucla.edu>
3625         fts: treat CIFS like NFS
3626         Problem reported by Kamil Dudka in:
3627         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00015.html
3628         * lib/fts.c (S_MAGIC_CIFS): New macro.
3629         (dirent_inode_sort_may_be_useful, leaf_optimization):
3630         Treat CIFS like NFS.
3632 2018-03-28  Bruno Haible  <bruno@clisp.org>
3634         c-stack: Fix possible build failure on some platforms.
3635         * lib/c-stack.c (die): Define whenever this function is referenced.
3637 2018-03-28  Paul Eggert  <eggert@cs.ucla.edu>
3639         time_rz: fix workaround for Mac OS X 10.6 infloop
3640         Problems reported by Charles A. Roelli (Bug#27736#117).
3641         * m4/time_rz.m4 (gl_TIME_RZ): Use a slightly different timestamp.
3642         Also, discard output, which clutters the 'configure' log.
3644 2018-03-27  Paul Eggert  <eggert@cs.ucla.edu>
3646         havelib: port to Solaris 10 /bin/sh
3647         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Use 'test ! EXPR'
3648         instead of '! test EXPR'.
3650 2018-03-26  Paul Eggert  <eggert@cs.ucla.edu>
3652         time_rz: work around Mac OS X 10.6 infloop
3653         * doc/posix-functions/localtime.texi:
3654         * doc/posix-functions/localtime_r.texi: Mention the bug.
3655         * lib/time_rz.c (localtime_rz): Work around the bug.  It’d be
3656         better to fix localtime and localtime_r instead, but that would be
3657         more work and is not needed to fix the Emacs problem.
3658         * m4/time_rz.m4 (gl_TIME_RZ): Detect the bug.
3660 2018-03-24  Jim Meyering  <meyering@fb.com>
3662         test-version-etc.sh: don't use diff directly: use init.sh's compare
3663         We'd rather not sacrifice readable "diff -u" output even for
3664         "diff -c" output (not supported by busybox) or for even less
3665         readable ed-style "diff" output.  So use init.sh's compare function
3666         * tests/test-version-etc.sh: Source init.sh and add "." to path.
3667         Remove "./" from invocation of test-version-etc, so we use path.
3668         And s/diff/compare/.
3669         * modules/version-etc-tests (Depends-on): Add test-framework-sh,
3670         to get init.sh.
3671         Prompted by Eric Blake's comments in
3672         https://lists.gnu.org/r/sed-devel/2018-03/msg00015.html
3674 2018-03-24  Bruno Haible  <bruno@clisp.org>
3676         javacomp-script, javacomp: Add support for Java 10.
3677         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 10 and
3678         target-version 10.
3679         * lib/javaversion.h: Update comments.
3680         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
3681         source_version_index, get_goodcode_snippet, get_failcode_snippet,
3682         TARGET_VERSION_BOUND, target_version_index,
3683         corresponding_classfile_version): Accept source_version 10 and
3684         target_version 10.
3685         * lib/javacomp.h: Update comments accordingly.
3687 2018-03-24  Bruno Haible  <bruno@clisp.org>
3689         javacomp-script, javacomp: Update comments.
3690         * m4/javacomp.m4: Update comments regarding gcj.
3691         * lib/javacomp.h: Likewise.
3693 2018-03-24  Bruno Haible  <bruno@clisp.org>
3695         javacomp-script, javacomp: Fix support for Java 7, 8, 9.
3696         * lib/javaversion.h: Update comments.
3697         * lib/javacomp.h: Likewise.
3698         * lib/javacomp.c (default_target_version, source_version_index,
3699         get_goodcode_snippet, get_failcode_snippet): Recognize "9" instead of
3700         "1.9".
3701         (TARGET_VERSION_BOUND): Bump to 9.
3702         (target_version_index, corresponding_classfile_version): Recognize "9"
3703         instead of "1.9".
3704         (get_source_version_for_javac): New function.
3705         (is_envjavac_nongcj_usable, is_javac_usable): Add
3706         source_version_for_javac argument.
3707         (compile_java_class): Determine and pass source_version_for_javac.
3708         * m4/javacomp.m4: Recognize version '9' instead of '1.9'. When invoking
3709         $JAVAC or javac, pass '-source 1.6' instead of '-source 1.5' when
3710         appropriate.
3712 2018-03-23  Jim Meyering  <meyering@fb.com>
3714         test-version-etc.sh: port to diff without -c
3715         * tests/test-version-etc.sh: Don't use diff's -c option.
3716         This caused spurious test failure on Alpine Linux, which
3717         uses busybox's diff. Reported by Assaf Gordon in
3718         https://lists.gnu.org/r/sed-devel/2018-03/msg00013.html
3720 2018-03-23  Paul Eggert  <eggert@cs.ucla.edu>
3722         c-stack: port to recent GCC build
3723         Problem reported by The Fireplace (Bug#30913).
3724         * lib/c-stack.c (die): Define only if used.
3726 2018-03-20  Bruno Haible  <bruno@clisp.org>
3728         euidaccess: Port to native Windows.
3729         * lib/euidaccess.c (euidaccess): On native Windows, just use _access().
3730         * posix-modules (exclude_for_mingw): Remove 'euidaccess'.
3732 2018-03-19  Bruno Haible  <bruno@clisp.org>
3734         javacomp: Add support for Java 7, 8, 9.
3735         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
3736         source_version_index, get_goodcode_snippet, get_failcode_snippet,
3737         corresponding_classfile_version): Accept source_version 1,7, 1.8, 1.9
3738         and target_version 1,7, 1.8, 1.9.
3739         * lib/javacomp.h: Update comments accordingly.
3741 2018-03-19  Bruno Haible  <bruno@clisp.org>
3743         javacomp-script: Add support for Java 9.
3744         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.9 and
3745         target-version 1.9.
3747 2018-03-16  Bruno Haible  <bruno@clisp.org>
3749         glob: Don't compile replacements on recent glibc systems.
3750         * lib/glob.in.h: Use the usual idiom for the double-inclusion guard. If
3751         REPLACE_GLOB is 0, include the system's <glob.h> and use
3752         _GL_CXXALIAS_SYS.
3753         * m4/glob.m4 (gl_GLOB): Set REPLACE_GLOB instead of GLOB_H. Accept
3754         _GNU_GLOB_INTERFACE_VERSION 2 as well. Delete the file conf$$-globtest
3755         inside the AC_RUN_IFELSE block. Remove GL_GENERATE_GLOB_H conditional.
3756         * modules/glob (Dependencies): Test REPLACE_GLOB instead of GLOB_H.
3757         Remove snippet/warn-on-use.
3758         (configure.ac): Test REPLACE_GLOB instead of GLOB_H.
3759         (Makefile.am): Create glob.h always. Update list of substitutions in
3760         glob.h. Don't depend on $(WARN_ON_USE_H).
3762 2018-03-16  Bruno Haible  <bruno@clisp.org>
3764         glob: Fix link error on native Windows.
3765         * modules/glob (Depends-on): Add 'lstat'.
3767 2018-03-15  Bruno Haible  <bruno@clisp.org>
3769         glob: Fix compilation error in C++ mode.
3770         * lib/glob.in.h (_Restrict_): Define, like in regex.h and spawn.in.h.
3772 2018-03-15  Bruno Haible  <bruno@clisp.org>
3774         host-cpu-c-abi: Support for RISC-V CPU.
3775         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the various
3776         riscv32 and riscv64 ABIs.
3777         References:
3778         https://github.com/riscv/riscv-toolchain-conventions
3779         https://gcc.gnu.org/onlinedocs/gcc-7.3.0/gcc/RISC-V-Options.html
3780         https://gnu-mcu-eclipse.github.io/toolchain/riscv/
3782 2018-03-08  Paul Eggert  <eggert@cs.ucla.edu>
3784         fflush: be more paranoid about libio.h change
3785         Suggested by Eli Zaretskii in:
3786         https://lists.gnu.org/r/emacs-devel/2018-03/msg00270.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         Look at _IO_ftrylockfile as well as at _IO_EOF_SEEN.
3803 2018-03-07  Paul Eggert  <eggert@cs.ucla.edu>
3805         maint: write-file-hooks -> before-save-hook
3806         write-file-hooks is obsolete since Emacs 22.1 (released June 2007) and
3807         it's time to use the recommended replacement.
3808         Problem reported by Glenn Morris in:
3809         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00008.html
3810         * build-aux/announce-gen, build-aux/bootstrap:
3811         * build-aux/do-release-commit-and-tag, build-aux/gendocs.sh:
3812         * build-aux/git-version-gen, build-aux/gitlog-to-changelog:
3813         * build-aux/gnu-web-doc-update, build-aux/gnupload:
3814         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
3815         * build-aux/update-copyright, build-aux/useless-if-before-free:
3816         * build-aux/vc-list-files:
3817         Update hook usage for files where Gnulib is the canonical source.
3819 2018-03-05  Paul Eggert  <eggert@cs.ucla.edu>
3821         binary-io: pacify gcc -Wunused-parameter
3822         Problem reported by Reuben Thomas in:
3823         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00005.html
3824         * lib/binary-io.h (__gl_setmode, __gl_setmode_check):
3825         Use _GL_UNUSED where appropriate.
3827         fflush: adjust to glibc 2.28 libio.h removal
3828         Problem reported by Daniel P. Berrangé in:
3829         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00000.html
3830         * lib/fbufmode.c (fbufmode):
3831         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
3832         (disable_seek_optimization, rpl_fflush):
3833         * lib/fpending.c (__fpending):
3834         * lib/fpurge.c (fpurge):
3835         * lib/freadable.c (freadable):
3836         * lib/freadahead.c (freadahead):
3837         * lib/freading.c (freading):
3838         * lib/freadptr.c (freadptr):
3839         * lib/freadseek.c (freadptrinc):
3840         * lib/fseeko.c (fseeko):
3841         * lib/fseterr.c (fseterr):
3842         * lib/fwritable.c (fwritable):
3843         * lib/fwriting.c (fwriting):
3844         Check _IO_EOF_SEEN instead of _IO_ftrylockfile.
3845         * lib/stdio-impl.h (_IO_IN_BACKUP) [_IO_EOF_SEEN]:
3846         Define if not already defined.
3848 2018-02-27  Paul Eggert  <eggert@cs.ucla.edu>
3850         environ: fix link error on 32-bit Cygwin
3851         Problem reported for GNU Emacs by Ken Brown in:
3852         https://lists.gnu.org/r/emacs-devel/2018-02/msg00765.html
3853         * lib/unistd.in.h (environ) [__i386__]: Do not redeclare.
3855 2018-02-24  Bruno Haible  <bruno@clisp.org>
3857         mbrtowc tests: Fix regression on glibc.
3858         Reported by Bernhard Voelker.
3859         * tests/test-mbrtowc.c (main): Fix expected value of wc.
3861 2018-02-24  Bruno Haible  <bruno@clisp.org>
3863         striconveha, uniconv/*: Avoid test failures on musl libc.
3864         * tests/iconvsupport.c: New file.
3865         * tests/test-striconveha.c (main): Skip autodetect_jp tests if iconv()
3866         does not support the ISO-2022-JP-2 encoding.
3867         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
3868         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
3869         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
3870         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
3871         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
3872         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
3873         * modules/striconveha-tests (Files): Add tests/iconvsupport.c.
3874         (Makefile.am): Link test-striconveha with iconvsupport.o.
3875         * modules/uniconv/u8-conv-from-enc-tests (Files): Add
3876         tests/iconvsupport.c.
3877         (Makefile.am): Link test-u8-conv-from-enc with iconvsupport.o.
3878         * modules/uniconv/u8-strconv-from-enc-tests (Files): Add
3879         tests/iconvsupport.c.
3880         (Makefile.am): Link test-u8-strconv-from-enc with iconvsupport.o.
3881         * modules/uniconv/u16-conv-from-enc-tests (Files): Add
3882         tests/iconvsupport.c.
3883         (Makefile.am): Link test-u16-conv-from-enc with iconvsupport.o.
3884         * modules/uniconv/u16-strconv-from-enc-tests (Files): Add
3885         tests/iconvsupport.c.
3886         (Makefile.am): Link test-u16-strconv-from-enc with iconvsupport.o.
3887         * modules/uniconv/u32-conv-from-enc-tests (Files): Add
3888         tests/iconvsupport.c.
3889         (Makefile.am): Link test-u32-conv-from-enc with iconvsupport.o.
3890         * modules/uniconv/u32-strconv-from-enc-tests (Files): Add
3891         tests/iconvsupport.c.
3892         (Makefile.am): Link test-u32-strconv-from-enc with iconvsupport.o.
3894 2018-02-24  Bruno Haible  <bruno@clisp.org>
3896         localename: Add support for musl libc.
3897         * m4/localename.m4 (gl_LOCALENAME): Check for <langinfo.h>.
3898         * lib/localename.c (gl_locale_name_thread_unsafe): Use NL_LOCALE_NAME
3899         on Linux platforms which define NL_LOCALE_NAME.
3901 2018-02-24  Bruno Haible  <bruno@clisp.org>
3903         mbrtowc tests: Don't make assumptions about the charset the C locale.
3904         * tests/test-mbrtowc.c (main): For bytes >= 0x80, don't assume a
3905         particular mapping in the C locale.
3907 2018-02-24  Bruno Haible  <bruno@clisp.org>
3909         ptsname_r: Don't expect that this function sets errno.
3910         * tests/test-ptsname_r.c (test_errors): Don't test errno after return
3911         from ptsname_r().
3912         * doc/glibc-functions/ptsname_r.texi: Mention the issue.
3914 2018-02-23  Bruno Haible  <bruno@clisp.org>
3916         xmalloca: pacify gcc -Wbad-function-cast
3917         * lib/xmalloca.h (xmalloca): Insert intermediate cast here as well.
3919 2018-02-23  Paul Eggert  <eggert@cs.ucla.edu>
3921         nl_langinfo: pacify gcc -Wunused-function
3922         * lib/nl_langinfo.c (ctype_codeset): Do not define if
3923         REPLACE_NL_LANGINFO && !GNULIB_defined_CODESET, as it is unused in
3924         this case.  Without this change, I got a diagnostic when building
3925         coreutils on Fedora 27 with gcc 7.3.1 20180130.
3927         same: pacify gcc -Wunused-variable
3928         * lib/same.c (same_nameat) [!CHECK_TRUNCATION]:
3929         Omit unused variable.
3931         malloca: pacify gcc -Wbad-function-cast
3932         * lib/malloca.h (malloca): Pacify gcc -Wbad-function-cast
3933         diagnostic that I got on Fedora 27 with gcc 7.3.1 20180130.
3934         To pacify GCC, I had to cast alloca’s result to some type other
3935         than void * before casting that to uintptr_t.
3937 2018-02-20  Paul Eggert  <eggert@cs.ucla.edu>
3939         utimecmp: new function utimecmpat
3940         * lib/utimecmp.c: Include fcntl.h, sys/stat.h and dirname.h.
3941         Do not include utimens.h.
3942         (utimecmpat): New function, generalizing utimecmp.
3943         (utimecmp): Now a thin layer around utimecmpat.
3944         * modules/utimecmp (Depends-on): Depend on dirname-lgpl, fstatat,
3945         utimensat instead of on lstat and utimens.
3947         same: new function same_nameat
3948         * lib/same.c: Include fcntl.h.
3949         * lib/same.c (same_nameat): New function, generalizing same_name.
3950         (same_name): Now a thin layer around same_nameat.
3951         * m4/same.m4 (gl_SAME): Check for fpathconf, not pathconf.
3952         * modules/same (Depends-on): Depend on fstatat, openat.
3954 2018-02-18  Eric Gallager  <egall@gwmail.gwu.edu>  (tiny change)
3956         warnings: Add support for Objective C.
3957         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(Objective C)): New
3958         macro.
3960 2018-02-17  Bruno Haible  <bruno@clisp.org>
3962         lock: Fix test-once1 crash on FreeBSD11.
3963         * lib/glthread/lock.h: On FreeBSD, test the weak value of the symbol
3964         'pthread_create', not 'pthread_cancel'.
3966 2018-02-17  Bruno Haible  <bruno@clisp.org>
3968         lock: Add test of gl_once.
3969         * tests/test-once.c: New file.
3970         * modules/lock-tests (Files): Add it.
3971         (Makefile.am): Build and test programs 'test-once1' and 'test-once2'.
3973 2018-02-17  Bruno Haible  <bruno@clisp.org>
3975         thread: Fix compilation error on IRIX.
3976         * lib/glthread/thread.h: Include <unistd.h>. Include <signal.h> when
3977         needed; include it outside the C++ extern "C" {} block.
3978         * doc/posix-headers/pthread.texi: Mention the problem with
3979         pthread_atfork on IRIX.
3981 2018-02-04  Bruno Haible  <bruno@clisp.org>
3983         nl_langinfo: Override the system's nl_langinfo() when needed.
3984         Reported by Jim Meyering.
3985         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Set REPLACE_NL_LANGINFO=1
3986         also when HAVE_LANGINFO_T_FMT_AMPM or HAVE_LANGINFO_ALTMON is 0.
3988 2018-02-04  Bruno Haible  <bruno@clisp.org>
3990         signal-h, monetary, strings: Fix build failure in some cases.
3991         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
3992         * modules/signal-h (Makefile.am): In the GNULIB_* substitutions, use '/'
3993         as delimiter in sed command, not '|'.
3994         * modules/monetary (Makefile.am): Likewise.
3995         * modules/strings (Makefile.am): Likewise.
3997 2018-02-03  Jim Meyering  <meyering@fb.com>
3999         maint.mk: exempt "/proc/filesystems" from "file system" syntax check
4000         * top/maint.mk (sc_file_system): Don't complain about
4001         "/proc/filesystems".
4003 2018-02-03  Bruno Haible  <bruno@clisp.org>
4005         stdlib: Fix compilation error on OpenIndiana.
4006         * lib/stdlib.in.h: Before including <sys/loadavg.h>, include
4007         <sys/time.h>.
4008         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
4009         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
4011 2018-02-03  Bruno Haible  <bruno@clisp.org>
4013         host-cpu-c-abi: Avoid use of 'grep -E' on OpenIndiana.
4014         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX): Require AC_PROG_EGREP,
4015         and use $EGREP instead of 'grep -E'.
4016         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Use 'grep' instead of
4017         'grep -E'.
4019 2018-02-02  Paul Eggert  <eggert@cs.ucla.edu>
4021         malloca: Add a compile-time verification.
4022         * lib/malloca.c (small_t): Verify that it is wide enough.
4023         * modules/malloca (Depends-on): Add verify.
4025 2018-02-02  Bruno Haible  <bruno@clisp.org>
4027         malloca: Add an argument check.
4028         Suggested by Paul Eggert.
4029         * lib/malloca.c (freea): Check against an invalid argument.
4031 2018-02-02  Bruno Haible  <bruno@clisp.org>
4033         localename: Add support for OpenIndiana.
4034         * lib/localename.c (gl_locale_name_thread_unsafe): Add code for
4035         Solaris 11 variants with uselocale() but without getlocalename_l().
4037 2018-02-02  Bruno Haible  <bruno@clisp.org>
4039         malloca, xmalloca: Make multithread-safe.
4040         Reported by Florian Weimer <fweimer@redhat.com>.
4041         Implements an idea by Ondřej Bílka <neleai@seznam.cz>.
4042         * lib/malloca.h (malloca): In the stack allocation case, return a
4043         pointer that is a multiple of 2 * sa_alignment_max.
4044         (sa_increment): Remove enum item.
4045         * lib/xmalloca.h (xmalloca): In the stack allocation case, return
4046         a pointer that is a multiple of 2 * sa_alignment_max.
4047         * lib/malloca.c (NO_SANITIZE_MEMORY): Remove macro.
4048         (MAGIC_NUMBER, MAGIC_SIZE, preliminary_header, HEADER_SIZE, header,
4049         HASH_TABLE_SIZE, mmalloca_results): Remove.
4050         (small_t): New type.
4051         (mmalloca, free): Rewritten.
4052         * lib/malloca.valgrind: Remove file.
4053         * modules/malloca (Files): Remove it.
4054         (Depends-on): Remove verify.
4056 2018-01-31  Bruno Haible  <bruno@clisp.org>
4058         environ: Fix link error on 64-bit Cygwin.
4059         * lib/unistd.in.h (environ): On Cygwin, redeclare with the
4060         __declspec(dllimport) attribute.
4061         * doc/posix-functions/environ.texi: Mention the Cygwin problem.
4063 2018-01-30  Bruno Haible  <bruno@clisp.org>
4065         get-rusage-data: Add support for Minix 3.
4066         * lib/get-rusage-data.c (get_rusage_data): Return 0 on Minix.
4068 2018-01-30  Bruno Haible  <bruno@clisp.org>
4070         vma-iter: Add support for Minix 3.
4071         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Minix.
4072         * lib/vma-iter.c: On Minix, read /proc/<pid>/map.
4074 2018-01-27  Bruno Haible  <bruno@clisp.org>
4076         Fix malfunction of socket functions on HP-UX in 64-bit mode.
4077         * m4/socketlib.m4 (gl_SOCKETLIB): Add comment.
4078         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define
4079         _HPUX_ALT_XOPEN_SOCKET_API.
4080         * modules/accept (Depends-on): Add 'extensions'.
4081         * modules/getpeername (Depends-on): Likewise.
4082         * modules/getsockname (Depends-on): Likewise.
4083         * modules/getsockopt (Depends-on): Likewise.
4084         * modules/recvfrom (Depends-on): Likewise.
4085         * doc/posix-functions/accept.texi: Mention the HP-UX socklen_t problem.
4086         * doc/posix-functions/getpeername.texi: Likewise.
4087         * doc/posix-functions/getsockname.texi: Likewise.
4088         * doc/posix-functions/getsockopt.texi: Likewise.
4089         * doc/posix-functions/recvfrom.texi: Likewise.
4091 2018-01-27  Bruno Haible  <bruno@clisp.org>
4093         getsockname tests: More tests.
4094         * tests/test-getsockname.c (open_server_socket): New function, mostly
4095         copied from test-poll.c.
4096         (main): Check that getsockname fills in addr.
4097         * modules/getsockname-tests (Depends-on): Add the necessary
4098         dependencies.
4099         (test_getsockname_LDADD): Link with $(INET_PTON_LIB).
4101 2018-01-26  Paul Eggert  <eggert@cs.ucla.edu>
4103         manywarnings: fix maintainer comment
4104         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Fix comment so that
4105         it does not mistakenly think that ‘-1)’ is an option.
4107 2018-01-26  Bruno Haible  <bruno@clisp.org>
4109         langinfo: Fix last commit.
4110         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
4111         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_ALTMON.
4113 2018-01-24  Bruno Haible  <bruno@clisp.org>
4115         langinfo, nl_langinfo: Add support for alternative month names.
4116         * m4/langinfo_h.m4 (gl_LANGINFO_H): Define HAVE_LANGINFO_ALTMON.
4117         * lib/langinfo.in.h (ALTMON_1...ALTMON_12): New macros.
4118         * lib/nl_langinfo.c (rpl_nl_langinfo): Treat ALTMON_i like MON_i.
4119         * tests/test-nl_langinfo.c (main): Test ALTMON_*.
4120         * doc/posix-headers/langinfo.texi: Document support of ALTMON_*.
4121         * doc/posix-functions/nl_langinfo.texi: Likewise.
4123 2018-01-23  Paul Eggert  <eggert@cs.ucla.edu>
4125         Merge strftime.c changes from glibc
4126         This incorporates:
4127         2017-11-14 [BZ #10871] Implement alternative month names
4128         2017-11-14 [BZ #10871] Abbreviated alternative month names (%Ob)
4129         2017-06-20 Use locale_t, not __locale_t, throughout glibc
4130         * lib/nstrftime.c (ABALTMON_1) [!COMPILE_WIDE]: New macro.
4131         (LOCALE_PARAM) [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL]:
4132         Use locale_t, not __locale_t.
4133         (a_altmonth, f_altmonth, aam_len) [_NL_CURRENT]: New macros.
4134         (__strftime_internal): Add support for alternate months.
4136 2018-01-23  Bruno Haible  <bruno@clisp.org>
4138         doc: Mention another prerequisite for using Gnulib.
4139         Reported at <https://stackoverflow.com/questions/48378214/>.
4140         * doc/gnulib-tool.texi (Initial import): Mention requirement to use
4141         AC_CONFIG_HEADERS.
4143 2018-01-22  Mathieu Lirzin  <mthl@gnu.org>
4145         build: GuixSD doesn't have /bin/bash
4146         * Makefile (SHELL): Search 'bash' in the PATH environment variable.
4148 2018-01-21  Bruno Haible  <bruno@clisp.org>
4150         Avoid test failures on Microsoft Windows Subsystem for Linux.
4151         * tests/test-fcntl.c (main): Allow a different errno.
4152         * tests/test-rename.h (test_rename): Likewise.
4153         * tests/test-renameat.c (main): Likewise.
4154         * tests/test-renameat2.c (main): Likewise.
4156 2018-01-14  Paul Eggert  <eggert@cs.ucla.edu>
4158         filenamecat: make base a suffix of result
4159         * lib/filenamecat-lgpl.c (longest_relative_suffix): Remove.
4160         (mfile_name_concat): Always make BASE a suffix of the result, as
4161         cp expects this.  To implement this, separate with '.' instead of
4162         '/' in some rare cases.  Clarify spec to say ./BASE not BASE.
4163         * tests/test-filenamecat.c (main): Adjust tests to match
4164         current behavior.  Check that BASE_IN_RESULT points to
4165         a copy of BASE and is a suffix of the resultk, and that DIR
4166         is a prefix of the result that is no longer than the prefix
4167         indicated by BASE_IN_RESULT.
4169 2018-01-04  Mathieu Lirzin  <mthl@gnu.org>
4171         update-copyright: Handle use of ©
4172         * build-aux/update-copyright ($circle_c_re): Update regex to
4173         handle use of © in headers.
4175 2018-01-04  Tim Rühsen  <tim.ruehsen@gmx.de>
4177         Fix -Wundef warning in user-included header lib/cdefs.h.
4178         * lib/cdefs.h: Check if defined before using __USE_FORTIFY_LEVEL.
4180 2018-01-04  Bruno Haible  <bruno@clisp.org>
4182         pthread_sigmask: Avoid compilation error on mingw.
4183         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
4184         * lib/signal.in.h (pthread_sigmask): Don't declare it it's defined as a
4185         macro.
4187 2018-01-03  Paul Eggert  <eggert@cs.ucla.edu>
4189         test-framework-sh: ‘ps -ef’, not ‘ps ef’
4190         * tests/init.sh (rand_bytes_): Put ‘-’ before new-style ps options.
4191         Suggested by Bob Proulx (Bug#29968).
4192         * build-aux/mktempd (rand_bytes): Make it like tests/init.sh.
4194 2018-01-02  Eric Blake  <eblake@redhat.com>
4196         stat-time: silence -Wunused-parameter regression
4197         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
4198         Prefer attribute over cast-to-void.
4199         (stat_time_normalize): Mark st as potentially unused.
4201 2018-01-02  Paul Eggert  <eggert@cs.ucla.edu>
4203         test-framework-sh: avoid netstat
4204         Problem reported by Kristýna Streitová (Bug#29947).
4205         * tests/init.sh (rand_bytes_): Stop using netstat, as it's
4206         deprecated on SuSE and it's not that important anyway.
4208 2018-01-01  Jim Meyering  <meyering@fb.com>
4210         update-copyright: add code to handle more special cases
4211         After running "make update-copyright" this year, five files
4212         required additional manual changes.  Automate those adjustments
4213         for next year.
4214         * Makefile (_year_and_prev): Define.
4215         (update-copyright): Add perl commands to induce this year's post-
4216         update-copyright adjustments.
4218 2018-01-01  Paul Eggert  <eggert@cs.ucla.edu>
4220         version-etc: new year
4221         * build-aux/gendocs.sh (version):
4222         * doc/gendocs_template:
4223         * doc/gendocs_template_min:
4224         * doc/gnulib.texi:
4225         * lib/version-etc.c (COPYRIGHT_YEAR):
4226         Update copyright dates by hand in templates and the like.
4228         maint: fix 'make update-copyright'
4229         * Makefile (update-copyright): Adjust to 2016-11-23 change
4230         to config/srclist-update, which changed the format of srclist.txt.
4232 2017-12-30  Paul Eggert  <eggert@cs.ucla.edu>
4234         chdir-safer: remove this module
4235         * MODULES.html.sh (func_all_modules): Remove chdir-safer.
4236         * NEWS: Document removal.
4237         * lib/chdir-safer.c, lib/chdir-safer.h, m4/afs.m4, m4/chdir-safer.m4:
4238         * modules/chdir-safer: Remove these files.
4240 2017-12-29  Samuel Thibault  <samuel.thibault@gnu.org>
4242         Add cross-compilation results for GNU/Hurd.
4243         * m4/calloc.m4: Add GNU/Hurd guess.
4244         * m4/cbrtl.m4: Likewise.
4245         * m4/ceil.m4: Likewise.
4246         * m4/ceilf.m4: Likewise.
4247         * m4/ceill.m4: Likewise.
4248         * m4/chown.m4: Likewise.
4249         * m4/duplocale.m4: Likewise.
4250         * m4/exp2l.m4: Likewise.
4251         * m4/expm1.m4: Likewise.
4252         * m4/fchdir.m4: Likewise.
4253         * m4/floor.m4: Likewise.
4254         * m4/floorf.m4: Likewise.
4255         * m4/fmod.m4: Likewise.
4256         * m4/fmodf.m4: Likewise.
4257         * m4/fmodl.m4: Likewise.
4258         * m4/getcwd.m4: Likewise.
4259         * m4/getgroups.m4: Likewise.
4260         * m4/gettimeofday.m4: Likewise.
4261         * m4/hypot.m4: Likewise.
4262         * m4/hypotf.m4: Likewise.
4263         * m4/hypotl.m4: Likewise.
4264         * m4/link-follow.m4: Likewise.
4265         * m4/link.m4: Likewise.
4266         * m4/linkat.m4: Likewise.
4267         * m4/log.m4: Likewise.
4268         * m4/log10.m4: Likewise.
4269         * m4/log10f.m4: Likewise.
4270         * m4/log1p.m4: Likewise.
4271         * m4/log1pf.m4: Likewise.
4272         * m4/log1pl.m4: Likewise.
4273         * m4/log2.m4: Likewise.
4274         * m4/log2f.m4: Likewise.
4275         * m4/logf.m4: Likewise.
4276         * m4/lstat.m4: Likewise.
4277         * m4/malloc.m4: Likewise.
4278         * m4/mbrlen.m4: Likewise.
4279         * m4/mbrtowc.m4: Likewise.
4280         * m4/mkdir.m4: Likewise.
4281         * m4/mkfifo.m4: Likewise.
4282         * m4/mknod.m4: Likewise.
4283         * m4/mkstemp.m4: Likewise.
4284         * m4/modf.m4: Likewise.
4285         * m4/modff.m4: Likewise.
4286         * m4/modfl.m4: Likewise.
4287         * m4/printf.m4: Likewise.
4288         * m4/pselect.m4: Likewise.
4289         * m4/ptsname.m4: Likewise.
4290         * m4/putenv.m4: Likewise.
4291         * m4/readlink.m4: Likewise.
4292         * m4/realloc.m4: Likewise.
4293         * m4/remainder.m4: Likewise.
4294         * m4/remainderf.m4: Likewise.
4295         * m4/remainderl.m4: Likewise.
4296         * m4/rmdir.m4: Likewise.
4297         * m4/round.m4: Likewise.
4298         * m4/roundf.m4: Likewise.
4299         * m4/roundl.m4: Likewise.
4300         * m4/select.m4: Likewise.
4301         * m4/setenv.m4: Likewise.
4302         * m4/signbit.m4: Likewise.
4303         * m4/sleep.m4: Likewise.
4304         * m4/stat.m4: Likewise.
4305         * m4/strerror.m4: Likewise.
4306         * m4/strtok_r.m4: Likewise.
4307         * m4/symlink.m4: Likewise.
4308         * m4/symlinkat.m4: Likewise.
4309         * m4/trunc.m4: Likewise.
4310         * m4/truncf.m4: Likewise.
4311         * m4/truncl.m4: Likewise.
4312         * m4/tzset.m4: Likewise.
4313         * m4/ungetc.m4: Likewise.
4314         * m4/usleep.m4: Likewise.
4315         * m4/wcwidth.m4: Likewise.
4317 2017-12-28  Bruno Haible  <bruno@clisp.org>
4319         gnulib-tool: Make --conditional-dependencies work better.
4320         Reported by Dmitry Selyutin <ghostman.sd@gmail.com>.
4321         * gnulib-tool (Options): Don't reject the combination of
4322         --conditional-dependencies with --with-tests.
4323         (func_emit_autoconf_snippets): Add argument referenceable_modules.
4324         Don't reference $modules.
4325         (func_import, func_create_testdir): Pass it.
4327 2017-12-19  Paul Eggert  <eggert@cs.ucla.edu>
4329         regex: use re_malloc etc. consistently
4330         Problem and original patch reported by Arnold Robbins in:
4331         https://sourceware.org/ml/libc-alpha/2017-12/msg00241.html
4332         * lib/regcomp.c (re_comp):
4333         * lib/regexec.c (push_fail_stack, build_trtable, match_ctx_clean):
4334         Use re_malloc/re_realloc/re_free instead of malloc/realloc/free.
4336 2017-12-15  Tim Rühsen  <tim.ruehsen@gmx.de>
4337             Paul Eggert  <eggert@cs.ucla.edu>
4339         glob: Silence warning about void pointer arithmetic.
4340         * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
4341         arithmetic.
4343 2017-12-15  Bruno Haible  <bruno@clisp.org>
4345         spawn-pipe: Silence a clang warning.
4346         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
4347         * lib/spawn-pipe.c: Disable clang -Wconditional-uninitialized warnings
4348         in this file.
4350 2017-12-12  Paul Eggert  <eggert@cs.ucla.edu>
4352         explicit_bzero: port to macOS + Clang 9.0.0
4353         Problem reported by Marcus Johnson (Bug#29658).
4354         * lib/explicit_bzero.c (explicit_bzero) [__clang__]:
4355         Don’t use asm.
4357 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
4359         doc: Improve explanation of supporting relocatable libraries.
4360         * doc/relocatable-maint.texi (Supporting Relocation): Explain
4361         properly how to build the relocatable module for
4362         libraries. (Method and example code from Bruno Haible.)
4364 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
4366         doc: Use better texinfo tags in a few cases.
4367         * doc/gnulib.texi (Extending Gnulib): Use @option or @command
4368         instead of @samp in a few places.
4370 2017-12-11  Bruno Haible  <bruno@clisp.org>
4372         unistr/base: Update comment.
4373         * lib/unistr.in.h: Update comment about u*_mbtouc_unsafe functions.
4375 2017-12-10  Pádraig Brady  <P@draigBrady.com>
4377         test-faccessat.c: unlink temp file to avoid subsequent test failure
4378         * tests/test-faccessat.c: Remove the file to avoid failure
4379         to open the file on subsequent runs due to being created
4380         with no permissions.
4382 2017-12-10  Bruno Haible  <bruno@clisp.org>
4384         doc: New sect. "Modifying the build rules of a Gnulib import directory".
4385         * doc/gnulib-tool.texi (Modified build rules): New node.
4387 2017-12-10  Bruno Haible  <bruno@clisp.org>
4389         doc: Tweak wording.
4390         * doc/gnulib-tool.texi (Multiple instances): Talk about "programs", not
4391         "binaries".
4393 2017-12-05  Sam Steingold  <sds@gnu.org>
4394             Bruno Haible  <bruno@clisp.org>
4396         no-c++: Avoid "egrep: repetition-operator operand invalid" error.
4397         * m4/no-c++.m4 (gt_NO_CXX): Don't use '+' characters nor spaces in the
4398         AC_EGREP_CPP pattern.
4400 2017-12-03  Bruno Haible  <bruno@clisp.org>
4402         all: Replace more http URLs by https URLs.
4403         * lib/sm3.h, lib/sm3.c, tests/test-sm3.c: Use https: URL.
4404         * lib/unigbrk/u-grapheme-breaks.h: Likewise.
4405         * lib/unigbrk/uc-grapheme-breaks.c: Likewise.
4406         * tests/unigbrk/test-uc-grapheme-breaks.c: Likewise.
4408 2017-11-28  Paul Eggert  <eggert@cs.ucla.edu>
4410         Port better to CentOS 5
4411         Problems reported by Tom G. Christensen in:
4412         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00053.html
4413         * doc/glibc-functions/strverscmp.texi (strverscmp):
4414         Document strverscmp bug with glibc 2.9 and earlier.
4415         * doc/posix-functions/tzset.texi (tzset):
4416         Document that TZ with angle brackets is POSIX-2001 and later.
4417         * tests/test-nstrftime.c: Include unistd.h.
4418         (TZ_ANGLE_BRACKETS_SHOULD_WORK): New macro.
4419         (TZ): Use it to skip tests with angle brackets in TZ,
4420         for older systems.
4422         stat: add missing module dependencies
4423         * modules/lstat, modules/stat, modules/utimensat (Depends-on):
4424         Add stat-time.
4426 2017-11-28  Benno Schulenberg  <bensberg@telfort.nl>
4428         stat: fix compilation failure on macOS Sierra
4429         Reported by Marius Schamschula <mschamschula@gmail.com> in:
4430         https://savannah.gnu.org/bugs/?52546
4431         * lib/stat.c: Add missing include of stat-time.h.
4433 2017-11-28  Jim Meyering  <meyering@fb.com>
4435         test-faccessat.c: correct BASE definition to avoid parallel test failure
4436         * tests/test-faccessat.c (BASE): Define using this file's name, not
4437         that of test-lstat.c.  Using the latter caused this test to fail
4438         sometimes when run concurrently with test-lstat.
4440 2017-11-27  Daiki Ueno  <ueno@gnu.org>
4442         unicase: fix VPATH build
4443         * modules/unicase/special-casing (Makefile.am): Ensure that the
4444         base directory is created when generating
4445         unicase/special-casing.h.
4447 2017-11-27  Daiki Ueno  <ueno@gnu.org>
4449         libunistring: update to Unicode 9.0.0
4450         * lib/gen-uni-tables.c (fill_properties): Recognize
4451         Sentence_Terminal and Prepended_Concatenation_Mark.
4452         (is_property_default_ignorable_code_point): Exclude U+08E2.
4453         (fill_arabicshaping): Allow missing whitespace when parsing;
4454         recognize "AFRICAN FEH", "AFRICAN QAF", and "AFRICAN MOON".
4455         (output_blocks): Increase the element size of the level1 table to
4456         accommodate more blocks.
4457         (get_lbp): Recognize ZWJ, E_Base, and E_Modifier characters;
4458         Update each class according to the standard.
4459         (get_wbp): Recognize ZWJ, E_Base, E_Modifier, Glue_After_Zwj, and
4460         E_Base_GAZ characters.
4461         (output_gbp_table): Recognize ZWJ, E_Base, E_Modifier,
4462         Glue_After_Zwj, and E_Base_GAZ characters.
4463         * lib/unictype.in.h (UC_JOINING_GROUP_AFRICAN_FEH)
4464         (UC_JOINING_GROUP_AFRICAN_QAF, UC_JOINING_GROUP_AFRICAN_MOON): New
4465         enum value.
4466         * lib/unilbrk/lbrktables.h (LBP_ZWJ, LBP_EB, LBP_EM): New enum
4467         value.
4468         * lib/unilbrk/lbrktables.c (unilbrk_table): Extend the table with
4469         LBP_ZWJ, LBP_EB, and LBP_EM.
4470         * lib/uniwbrk.in.h (WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, WBP_EBG): New
4471         enum value.
4472         * lib/uniwbrk/u-wordbreaks.h: Implement WB3c, WB15, and WB16.
4473         * lib/uniwbrk/wbrktable.h (uniwbrk_prop_index): New variable
4474         declaration.
4475         * lib/uniwbrk/wbrktable.c (uniwbrk_prop_index): New variable.
4476         (uniwbrk_table): Implement WB14.
4477         * tests/uniwbrk/test-uc-wordbreaks.c (wordbreakproperty_to_string):
4478         Check WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, and WBP_EBG.
4479         * modules/unigbrk/u{32,16,8}-grapheme-breaks: No longer depend on
4480         uc-is-grapheme-break.
4481         * modules/unigbrk/uc-grapheme-breaks: New module.
4482         * modules/unigbrk/uc-grapheme-breaks-tests: New module.
4483         * lib/unigbrk.in.h (GBP_ZWJ, GBP_EB, GBP_EM, GBP_GAZ, GBP_EBG): New
4484         enum value.
4485         (uc_grapheme_breaks): New function, replacing uc_is_grapheme_break.
4486         * lib/unigbrk/u-grapheme-breaks.h: New file.
4487         * lib/unigbrk/u{32,16,8}-grapheme-breaks.c: Rewrite using
4488         u-grapheme-breaks.h instead of uc_is_grapheme_break.
4489         * lib/unigbrk/uc-grapheme-breaks.c: New file.
4490         * lib/unigbrk/uc-is-grapheme-break.c: Partially update to TR29 rev
4491         29.
4492         * tests/unigbrk/test-uc-gbrk-prop.c
4493         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
4494         GBP_GAZ, and GBP_EBG.
4495         * tests/unigbrk/test-uc-grapheme-breaks.c: New test.
4496         * tests/unigbrk/test-uc-is-grapheme-break.c
4497         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
4498         GBP_GAZ, and GBP_EBG.
4499         (main): Skip unsupported rules involving 3 or more characters,
4500         namely GB10, GB12, and GB13.
4501         * lib/uniwidth/width.c (nonspacing_table_data): Update.
4502         * all generated files under lib/uni* and tests/uni*: Regenerate.
4503         * all the affected modules: Bump version.
4505 2017-11-26  Bruno Haible  <bruno@clisp.org>
4507         strfmon_l: Fix compilation error with glibc 2.5.
4508         Reported by Tom G. Christensen <tgc@jupiterrise.com>
4509         in <https://lists.gnu.org/r/bug-gnulib/2017-11/msg00051.html>.
4510         * lib/monetary.in.h: Include also <locale.h>.
4512 2017-11-24  Paul Eggert  <eggert@cs.ucla.edu>
4514         posixtm: remove PDS_LEADING_YEAR
4515         This changes the API slightly, in a hopefully-innocuous way.
4516         Without this change the code had undefined behavior when a
4517         caller specified neither PDS_LEADING_YEAR nor PDS_TRAILING_YEAR.
4518         Problem reported by Pádraig Brady in:
4519         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00048.html
4520         * NEWS: Mention this.
4521         * lib/posixtm.c (posix_time_parse): Treat the absence of
4522         PDS_TRAILING_YEAR as if PDS_LEADING_YEAR were present.
4523         * lib/posixtm.h (PDS_LEADING_YEAR): Remove (actually, leave it
4524         present, but define it as zero, for compatibility with existing
4525         source code).  All other PDS_* values moved up.
4526         * tests/test-posixtm.c (LY): New macro.
4527         (T): Use it.  Do not expect a particular numeric encoding
4528         for PDS_CENTURY etc.
4530 2017-11-23  Paul Eggert  <eggert@cs.ucla.edu>
4532         stat: work around Solaris bug with tv_nsec < 0
4533         * doc/posix-functions/fstat.texi (fstat):
4534         * doc/posix-functions/fstatat.texi (fstatat):
4535         * doc/posix-functions/lstat.texi (lstat):
4536         * doc/posix-functions/stat.texi (stat):
4537         Mention Solaris 11 bug.
4538         * lib/fstat.c, lib/fstatat.c, lib/lstat.c: Include stat-time.h.
4539         * lib/fstat.c (rpl_fstat) [!WINDOWS_NATIVE]:
4540         * lib/lstat.c (rpl_lstat):
4541         * lib/stat.c (rpl_stat):
4542         Normalize resulting timestamps.
4543         * lib/fstatat.c (normal_fstatat): New function.
4544         (rpl_fstatat): Use it.
4545         * lib/stat-time.h: Include intprops.h, errno.h, stddef.h.
4546         (stat_time_normalize): New function.
4547         * m4/fstat.m4 (gl_FUNC_FSTAT):
4548         * m4/fstatat.m4 (gl_FUNC_FSTATAT):
4549         * m4/lstat.m4 (gl_FUNC_LSTAT):
4550         * m4/stat.m4 (gl_FUNC_STAT):
4551         Replace on Solaris.
4552         * modules/fstat (Depends-on):
4553         * modules/fstatat (Depends-on):
4554         Add stat-time.
4555         * modules/stat-time (Depends-on): Add errno, intprops.
4557 2017-11-22  Paul Eggert  <eggert@cs.ucla.edu>
4559         regex: merge from glibc
4560         * lib/regcomp.c (init_word_char): Add comments.
4562 2017-11-20  Paul Eggert  <eggert@cs.ucla.edu>
4564         regex: merge from glibc
4565         * lib/regcomp.c (__regcomp, __regfree) [_LIBC]: Now hidden.
4566         * lib/regex_internal.h (internal_function): Remove.
4567         All uses removed.
4569 2017-11-20  Bruno Haible  <bruno@clisp.org>
4571         crypto/gc-sm3: Fix buffer overrun.
4572         * lib/gc-gnulib.c (MAX_DIGEST_SIZE): Bump to 32.
4573         Reported by Coverity.
4575 2017-11-12  Jim Meyering  <meyering@fb.com>
4577         maint: shorten https://lists.gnu.org/archive/html/... links
4578         Each /archive/html/ part can be replace with /r/.
4579         Run this to induce the change:
4580         git grep -l archive/html|xargs perl -pi -e 's,/archive/html/,/r/,g'
4581         * ChangeLog: Perform that substitution.
4582         * Makefile: Likewise.
4583         * STATUS-libposix: Likewise.
4584         * build-aux/bootstrap: Likewise.
4585         * doc/maintain.texi: Likewise.
4586         * gnulib-tool: Likewise.
4587         * lib/allocator.h: Likewise.
4588         * lib/argp-ba.c: Likewise.
4589         * lib/argp-pv.c: Likewise.
4590         * lib/canon-host.c: Likewise.
4591         * lib/canonicalize-lgpl.c: Likewise.
4592         * lib/float.in.h: Likewise.
4593         * lib/fstat.c: Likewise.
4594         * lib/getdelim.c: Likewise.
4595         * lib/getprogname.c: Likewise.
4596         * lib/glthread/thread.h: Likewise.
4597         * lib/intprops.h: Likewise.
4598         * lib/mbsrtowcs-state.c: Likewise.
4599         * lib/safe-read.c: Likewise.
4600         * lib/signal.in.h: Likewise.
4601         * lib/stat.c: Likewise.
4602         * lib/stdbool.in.h: Likewise.
4603         * lib/stdio-impl.h: Likewise.
4604         * lib/stdio.in.h: Likewise.
4605         * lib/sysexits.in.h: Likewise.
4606         * lib/timespec.h: Likewise.
4607         * lib/wcsrtombs-state.c: Likewise.
4608         * m4/alloca.m4: Likewise.
4609         * m4/extern-inline.m4: Likewise.
4610         * m4/fstatat.m4: Likewise.
4611         * m4/gnulib-common.m4: Likewise.
4612         * m4/lib-ignore.m4: Likewise.
4613         * m4/printf.m4: Likewise.
4614         * m4/regex.m4: Likewise.
4615         * m4/stat-size.m4: Likewise.
4616         * m4/std-gnu11.m4: Likewise.
4617         * m4/stdbool.m4: Likewise.
4618         * m4/sys_types_h.m4: Likewise.
4619         * m4/threadlib.m4: Likewise.
4620         * m4/vararrays.m4: Likewise.
4621         * pygnulib/GLImport.py: Likewise.
4622         * tests/test-exp.h: Likewise.
4623         * tests/test-exp2.h: Likewise.
4624         * tests/test-expm1.h: Likewise.
4625         * tests/test-fflush2.c: Likewise.
4626         * tests/test-getopt_long.h: Likewise.
4627         * tests/test-intprops.c: Likewise.
4628         * tests/test-log.h: Likewise.
4629         * tests/test-log10.h: Likewise.
4630         * tests/test-log1p.h: Likewise.
4631         * tests/test-log2.h: Likewise.
4632         * tests/test-printf-posix.h: Likewise.
4633         * tests/test-regex.c: Likewise.
4634         * tests/test-snprintf-posix.h: Likewise.
4635         * tests/test-sprintf-posix.h: Likewise.
4636         * tests/test-stdalign.c: Likewise.
4637         * tests/test-stdbool.c: Likewise.
4638         * tests/test-vasnprintf-posix.c: Likewise.
4639         * tests/test-vasprintf-posix.c: Likewise.
4640         * top/maint.mk: Likewise.
4642 2017-11-12  Bruno Haible  <bruno@clisp.org>
4644         faccessat: Make the last change more robust.
4645         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Require
4646         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Treat "guessing yes" like "yes".
4648 2017-11-11  Paul Eggert  <eggert@cs.ucla.edu>
4650         faccessat: port to macOS (Bug#29231)
4651         macOS faccessat has the same bug that lstat does: if the file
4652         name ends in '/' it ignores the trailing slash.
4653         Problem reported for Emacs by Vincent Zhang.
4654         * doc/posix-functions/faccessat.texi (faccessat): Document this.
4655         * lib/faccessat.c (_GL_INCLUDING_UNISTD_H): Define and undef
4656         around the initial includes.  Include errno.h, string.h, sys/stat.h.
4657         (orig_faccessat) [HAVE_FACCESSAT]: New function.
4658         Include "unistd.h" after defining it.
4659         (rpl_faccessat) [HAVE_FACCESSAT]: New implementation.
4660         * lib/unistd.in.h (faccessat) [REPLACE_FACCESSAT]:
4661         Handle in the usual way.
4662         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Replace faccessat if
4663         lstat dereferences symlinks, since faccessat is likely to
4664         have the same problem.
4665         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Default REPLACE_ACCESSAT.
4666         * modules/faccessat (Depends-on): Add fstatat.
4667         Depend if REPLACE_FACCESSAT is 1, too.
4668         (configure.ac): Link if REPLACE_FACCESSAT is 1.
4669         * modules/faccessat-tests (Depends-on): Add symlink.
4670         * modules/unistd (unistd.h): Substitute REPLACE_FACCESSAT.
4671         * tests/test-faccessat.c (main): Test for the bug.
4673 2017-11-11  Bruno Haible  <bruno@clisp.org>
4675         getprogname: Fix compilation error on IRIX.
4676         * lib/getprogname.c (getprogname) [__sgi]: Fix type of local variable
4677         'namesize'.
4679 2017-11-11  Bruno Haible  <bruno@clisp.org>
4681         year2038: Tweak last patch.
4682         * m4/year2038.m4 (gl_YEAR2038): Correct indentation.
4684 2017-11-06  Paul Eggert  <eggert@cs.ucla.edu>
4686         year2038: be more insistent about 64-bit time_t
4687         Applications requiring access to arbitrary files should not be
4688         built with 32-bit time_t on hosts that have 64-bit timestamps,
4689         as this can lead to real trouble at runtime.
4690         * m4/year2038.m4 (gl_YEAR2038): Do not require AC_CANONICAL_HOST.
4691         Check on all systems, not just MinGW.  Use a heuristic involving
4692         TIME_T_32_BIT_OK, cross_compiling, and the touch command to
4693         output a failure or just a warning, to make it more likely that
4694         builders will select 64-bit time_t.
4696 2017-11-05  Paul Eggert  <eggert@cs.ucla.edu>
4698         havelib: fix typo in previous change
4699         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Fix typo.
4701         Don’t use AC_EGREP_CPP if affected by CFLAGS
4702         * m4/float_h.m4 (gl_FLOAT_H):
4703         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI):
4704         * m4/lib-ld.m4 (AC_LIB_PROG_LD):
4705         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB):
4706         * m4/year2038.m4 (gl_YEAR2038):
4707         Prefer AC_COMPILE_IFELSE to AC_EGREP_CPP when testing conditions
4708         likely to be affected by the choice of CFLAGS, since CFLAGS are
4709         not used by AC_EGREP_CPP.  Without this patch, ‘./configure
4710         CFLAGS="-m32"’ fails on gzip with GNU/Linux x86-64.
4712         fstatat: pacify GCC on unusual platform
4713         * lib/fstatat.c (orig_fstatat) [!HAVE_WORKING_FSTATAT_ZERO_FLAG]:
4714         Omit, as it’s unused in this case.
4716 2017-10-29  Paul Eggert  <eggert@cs.ucla.edu>
4718         timespec: prefer ‘assume’ to ‘assure’
4719         This avoids some runtime tests.  The rest of the module makes
4720         similar assumptions and there is little point to testing here.
4721         * lib/timespec.h: Include verify.h instead of assure.h.
4722         (timespec_cmp): Use ‘assume’, not ‘assure’.
4723         Also, remove an unnecessary cast to ‘int’, as lots of other
4724         code in this module now causes -Wconversion to complain, and
4725         this is a problem with -Wconversion not with the code.
4727         * modules/timespec (Depends-on): Depend on ‘verify’, not ‘assure’.
4729         Port recent gnulib-tool change to Dash
4730         * gnulib-tool (func_create_testdir): Don't assume that the shell
4731         retokenizes after expanding "$@" inside the call to
4732         func_execute_command.  Dash 0.5.8-2.1ubuntu2 does not.
4734 2017-10-27  Jim Meyering  <meyering@fb.com>
4736         timespec.h: use "assure" to avoid a spurious warning
4737         * lib/timespec.h: Include "assure.h" and use it to help
4738         gcc7's -Wstrict-overflow avoid a false positive warning
4739         for a use in coreutils' ls.c.  Suggested by Paul Eggert in
4740         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00007.html
4741         * modules/timespec (Depends-on): Add assure.
4743 2017-10-29  Bruno Haible  <bruno@clisp.org>
4745         Avoid several test failures with traditional locales on Haiku.
4746         * m4/locale-ar.m4 (gt_LOCALE_AR): On BeOS and Haiku, set LOCALE_AR=none.
4747         * m4/locale-fr.m4 (gt_LOCALE_FR): On BeOS and Haiku, set LOCALE_FR=none.
4748         * m4/locale-ja.m4 (gt_LOCALE_JA): On BeOS and Haiku, set LOCALE_JA-none.
4749         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On BeOS and Haiku, set
4750         LOCALE_ZH_CN=none.
4752 2017-10-29  Bruno Haible  <bruno@clisp.org>
4754         strerror_r-posix: Fix behaviour and test failure on Haiku.
4755         * lib/strerror_r.c (strerror_r): Don't assume that valid error numbers
4756         are positive. Work around return value 0 instead of ERANGE on Haiku.
4757         For unknown error numbers, use a format string consistent with perror().
4758         * doc/posix-functions/strerror_r.texi: Mention the Haiku problem.
4759         * tests/test-strerror_r.c (main): Don't assume that valid error numbers
4760         are positive.
4762 2017-10-29  Bruno Haible  <bruno@clisp.org>
4764         get-rusage-data: Avoid crash on Haiku.
4765         * lib/get-rusage-data.c: Avoid the setlimit-based implementation.
4767 2017-10-29  Bruno Haible  <bruno@clisp.org>
4769         get-rusage-as: Avoid crash on Haiku.
4770         * lib/get-rusage-as.c: Avoid the setlimit-based implementation.
4772 2017-10-29  Bruno Haible  <bruno@clisp.org>
4774         ilogbl: Ensure replacement on Haiku.
4775         * m4/ilogbl.m4 (gl_FUNC_ILOGBL): Invoke gl_FUNC_ILOGBL_WORKS and set
4776         REPLACE_ILOGBL if ilogbl does not work.
4777         (gl_FUNC_ILOGBL_WORKS): New macro.
4778         * lib/math.in.h (ilogbl): Replace if REPLACE_ILOGBL is 1.
4779         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ILOGBL.
4780         * modules/math (Makefile.am): Substitute REPLACE_ILOGBL.
4781         * modules/ilogbl (Depends-on, configure.ac): Consider REPLACE_ILOGBL.
4782         * doc/posix-functions/ilogbl.texi: Mention the Haiku problem.
4784 2017-10-29  Bruno Haible  <bruno@clisp.org>
4786         expl: Ensure replacement on Haiku.
4787         * m4/expl.m4 (gl_FUNC_EXPL): Test whether an expl() return value is
4788         zero.
4789         * doc/posix-functions/expl.texi: Mention the Haiku problem.
4791 2017-10-29  Bruno Haible  <bruno@clisp.org>
4793         math: Fix test failure on Haiku.
4794         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Override on Haiku.
4795         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Update accordingly.
4796         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
4797         * doc/posix-headers/math.texi: Mention the Haiku problem.
4799 2017-10-29  Bruno Haible  <bruno@clisp.org>
4801         gnulib-tool: Avoid unnecessary config.h.in remaking in testdirs.
4802         * gnulib-tool (func_create_testdir): Use workaround against 'autoheader'
4803         bug reported at <https://savannah.gnu.org/support/index.php?109406>.
4805 2017-10-29  Bruno Haible  <bruno@clisp.org>
4807         crypto/*: Verify that the header file is self-contained.
4808         * tests/test-gc-*.c: Include the module's header file immediately after
4809         <config.h>.
4810         * tests/test-hmac-*.c: Likewise.
4811         * tests/test-arcfour.c: Likewise.
4812         * tests/test-arctwo.c: Likewise.
4813         * tests/test-des.c: Likewise.
4814         * tests/test-md2.c: Likewise.
4815         * tests/test-md4.c: Likewise.
4816         * tests/test-md5.c: Likewise.
4817         * tests/test-rijndael.c: Likewise.
4818         * tests/test-sha1.c: Likewise.
4819         * tests/test-sm3.c: Likewise.
4821 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
4822             Bruno Haible  <bruno@clisp.org>
4824         crypto/gc: fix build failure with -Werror=suggest-attribute=const
4825         * lib/gc.h (gc_hash_digest_length): Mark with 'const' attribute.
4827 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
4829         New module: crypto/gc-sm3
4830         * lib/gc.h: Declare SM3-related stuffs.
4831         * lib/gc-gnulib.c: Support sm3 in internal functions.
4832         * lib/gc-libgcrypt.c: Support sm3 with libgcrypt.
4833         * m4/gc-sm3.m4: m4 file for gc-sm3 module.
4834         * modules/crypto/gc-sm3: Define gc-sm3 module.
4835         * tests/test-gc-sm3.c: Implement SM3 test case with libgcrypt.
4836         * modules/crypto/gc-sm3-tests: Define gc-sm3 test module.
4837         * MODULES.html.sh: List gc-sm3 module.
4839 2017-10-29  Bruno Haible  <bruno@clisp.org>
4841         random, random_r: Mention different prototypes on Haiku.
4842         * doc/posix-functions/random.texi: Mention different prototype on Haiku.
4843         * doc/glibc-functions/random_r.texi: Likewise.
4844         * doc/glibc-functions/initstate_r.texi: Likewise.
4845         * doc/glibc-functions/setstate_r.texi: Likewise.
4847 2017-10-28  Bruno Haible  <bruno@clisp.org>
4849         posix_spawn: Avoid spurious message in configure output.
4850         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Discard stderr output from
4851         'cmp' command.
4853 2017-10-28  Bruno Haible  <bruno@clisp.org>
4855         inet_ntop, inet_pton: Determine needed library correctly on Haiku.
4856         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Search also in libnetwork.
4857         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
4859 2017-10-28  Bruno Haible  <bruno@clisp.org>
4861         ioctl: Override non-POSIX declaration on Haiku.
4862         * m4/ioctl.m4 (gl_FUNC_IOCTL): Include also <unistd.h>.
4863         * lib/sys_ioctl.in.h: Add comment about Haiku.
4864         * doc/posix-functions/ioctl.texi: Mention Haiku problem.
4865         * doc/glibc-headers/sys_ioctl.texi: Likewise.
4867 2017-10-28  Bruno Haible  <bruno@clisp.org>
4869         crypto/sm3: Add overview documentation to the .h file.
4870         * lib/sm3.h: Add comments.
4872 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
4874         New module: crypto/sm3
4875         This new module can be used to compute SM3 message digest of files or
4876         memory blocks according to the specification GM/T 004-2012
4877         Cryptographic Hash Algorithm SM3, published by State Cryptography
4878         Administration, China.
4879         The official SM3 cryptographic hash algorithm specification is
4880         available at
4881         http://www.sca.gov.cn/sca/xwdt/2010-12/17/content_1002389.shtml
4882         * lib/sm3.h: Declare the APIs of sm3 module.
4883         * lib/sm3.c: Implement SM3 hash algorithm.
4884         * m4/sm3.m4: m4 file for sm3 module.
4885         * modules/crypto/sm3: Define sm3 module.
4886         * tests/test-sm3.c: Implement SM3 test case.
4887         * modules/crypto/sm3-tests: Define sm3 test module.
4888         * MODULES.html.sh: List sm3 module.
4890 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
4892         gc-libgcrypt: fix undefined enum type in switch statement
4893         Resolve the following build failure:
4894         lib/gc-libgcrypt.c: In function 'gc_hash_open':
4895         lib/gc-libgcrypt.c:317:5: error: case value '0' not in enumerated type
4896         'Gc_hash_mode {aka enum Gc_hash_mode}' [-Werror=switch]
4897              case 0:
4898              ^~~~
4899         * lib/gc.h (enum Gc_hash_mode): Add value GC_NULL.
4900         * lib/gc-libgcrypt.c (gc_hash_open): Use this enum value instead of 0.
4902 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
4904         gc-libgcrypt: fix assignment error due to -Werror=pointer-sign
4905         Resolve the following build failure:
4906         lib/gc-libgcrypt.c: In function 'gc_hash_read':
4907         lib/gc-libgcrypt.c:460:14: error: pointer targets in assignment differ
4908         in signedness [-Werror=pointer-sign]
4909             digest = gcry_md_read (ctx->gch, 0);
4910                    ^
4911         * lib/gc-libgcrypt.c (gc_hash_read): Cast result of gcry_md_read.
4913 2017-10-26  Bruno Haible  <bruno@clisp.org>
4915         havelib: Fix value of LD for 32-bit compilation on NetBSD/sparc64.
4916         * m4/lib-ld.m4 (AC_LIB_PROG_LD): On NetBSD/sparc64 with CC="gcc -m32",
4917         set LD to '/usr/bin/ld -m elf32_sparc', not '/usr/bin/ld'.
4919 2017-10-21  Paul Eggert  <eggert@cs.ucla.edu>
4921         glob: fix another heap buffer overflow
4922         Problem reported by Tim Rühsen in:
4923         https://sourceware.org/bugzilla/show_bug.cgi?id=22332
4924         * lib/glob.c (glob): Avoid buffer overrun when unescaping.
4926 2017-10-19  Paul Eggert  <eggert@cs.ucla.edu>
4928         quotearg: pacify compiler re unsigned
4929         * lib/quotearg.c (quotearg_n_options):
4930         Rewrite to avoid diagnostic from overly-picky compiler.
4931         Problem reported by Sami Kerola in:
4932         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00060.html
4934         glob: fix heap buffer overflow
4935         * lib/glob.c (glob): Fix off-by-one error introduced into
4936         glibc in commit dd7d45e838a42b0ed470c44b55901ea98d0c2bab
4937         dated 1997-10-29 20:33:40.  Problem reported by Tim Rühsen in:
4938         https://sourceware.org/bugzilla/show_bug.cgi?id=22320
4939         Fix suggested by Bruno Haible.
4941 2017-10-18  Paul Eggert  <eggert@cs.ucla.edu>
4943         glob: pacify fuzzer for mempcpy
4944         Problem reported by Tim Rühsen in:
4945         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00054.html
4946         * lib/glob.c (glob): Do not pass NULL to mempcpy.
4948 2017-10-12  Bruno Haible  <bruno@clisp.org>
4950         doc: Fix syntax error (regression from 2017-10-03).
4951         * doc/posix-functions/strncpy.texi: Fix syntax error.
4953 2017-10-12  Bruno Haible  <bruno@clisp.org>
4955         doc: Update for Solaris 11.3.
4956         * doc/**/*.texi: For bugs that exist in both Solaris 11.0 and 11.3,
4957         mention Solaris 11.3.
4958         * m4/log2.m4: Fix comments.
4959         * m4/log2f.m4: Likewise.
4960         * m4/printf.m4: Update comments.
4961         * m4/rename.m4: Likewise.
4962         * m4/strncat.m4: Likewise.
4964         all: Write "Solaris 11.0" instead of "Solaris 11 2011-11".
4966 2017-10-10  Bruno Haible  <bruno@clisp.org>
4968         doc: Improve doc about ioctl.
4969         * doc/posix-functions/ioctl.texi: Fix list of platforms with non-POSIX
4970         prototype.
4972 2017-10-09  Bruno Haible  <bruno@clisp.org>
4974         wcwidth: Don't use obsolete syntax of 'test'.
4975         Reported by Eric Blake.
4976         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Don't optimize two 'test'
4977         invocations into one, as POSIX marks '-a' and '-o' as "obsolescent".
4979 2017-10-09  Bruno Haible  <bruno@clisp.org>
4981         getopt-posix: Fix build failure when using ac_cv_header_getopt_h=no.
4982         Reported by Christian Ehrhardt <christian.ehrhardt@canonical.com>
4983         and Daniel P. Berrange <berrange@redhat.com>.
4984         * lib/unistd.in.h (getopt): Don't attempt to avoid namespace pollution
4985         on glibc systems. The getopt-pfx-core.h file declares exactly what
4986         unistd.h needs, nothing more.
4988 2017-10-08  Bruno Haible  <bruno@clisp.org>
4990         vma-iter: Improve support for FreeBSD.
4991         * lib/vma-iter.c (vma_iterate_proc): New function, extracted from
4992         vma_iterate.
4993         (vma_iterate): Use it. For FreeBSD, try vma_iterate_bsd first.
4995 2017-10-08  Bruno Haible  <bruno@clisp.org>
4997         vma-iter: Fix truncated result on NetBSD (regression from 2017-10-07).
4998         * lib/vma-iter.c (MIN_LEFTOVER): Define to 1, not 0.
5000 2017-10-07  KO Myung-Hun  <komh@chollian.net>
5002         test-framework-sh: Fix 'invalid path dir' error.
5003         On OS/2, a path separator is ';' not ':'. And ':' is used as a
5004         separator between a drive letter and directory parts.
5005         As a result, an absolute path such as x:/path/to/dir on OS/2 is
5006         treated as an invalid path dir.
5007         * tests/init.sh (PATH_SEPARATOR): Set at startup.
5008         (path_prepend_): '?:*' is also an absolute path. Use $PATH_SEPARATOR
5009         instead of hard coded ':'.
5011 2017-10-07  Bruno Haible  <bruno@clisp.org>
5013         vma-iter: Fix truncated result on Linux (regression from 2017-09-26).
5014         * lib/vma-iter.c (MIN_LEFTOVER): New macro.
5015         (STACK_ALLOCATED_BUFFER_SIZE): Set to a minimal value if not needed.
5016         (rof_open): On Linux, do multiple read() calls and make sure
5017         MIN_LEFTOVER bytes are left when read() returns.
5019 2017-10-07  Bruno Haible  <bruno@clisp.org>
5021         vma-iter: Improve support for GNU/Hurd.
5022         * lib/vma-iter.c (vma_iterate): On GNU/Hurd, use the Mach vm_region()
5023         API, not the /proc file system.
5025 2017-10-07  Bruno Haible  <bruno@clisp.org>
5027         test-framework-sh: Don't require bash on Windows and OS/2.
5028         Reported by KO Myung-Hun.
5029         * tests/test-init.sh: Use 'shopt' only when running in bash.
5031 2017-10-06  KO Myung-Hun  <komh@chollian.net>
5033         wcwidth: check a macro version of wcwidth () as well
5034         * lib/wchar.in.h: Revert commit from 2016-01-14.
5035         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test if wcwidth is a macro.
5037 2017-10-06  Bruno Haible  <bruno@clisp.org>
5039         getopt-posix: Clarify copyright header.
5040         * lib/getopt.in.h: Don't state that gnulib is under LGPL.
5041         * lib/getopt-pfx-core.h: Likewise.
5042         * lib/getopt-pfx-ext.h: Likewise.
5043         * lib/getopt-cdefs.in.h: Likewise.
5045 2017-10-03  Bruno Haible  <bruno@clisp.org>
5047         Fix warning "`gl_HOST_CPU_C_ABI' was expanded before it was required".
5048         * modules/host-cpu-c-abi (configure.ac): Require, don't invoke
5049         gl_HOST_CPU_C_ABI.
5051 2017-10-03  Bruno Haible  <bruno@clisp.org>
5053         doc: warn about misuse of strncpy and wcsncpy.
5054         * doc/posix-functions/strcpy.texi: Describe requirements on prior
5055         memory allocation.
5056         * doc/posix-functions/wcscpy.texi: Likewise.
5057         * doc/posix-functions/strncpy.texi: Describe what this function is not
5058         useful for.
5059         * doc/posix-functions/wcsncpy.texi: Likewise.
5061 2017-10-02  Paul Eggert  <eggert@cs.ucla.edu>
5063         fsuage: fix typo in previous change
5064         * lib/fsusage.c: Remove stray include of full-read.h.
5065         Problem reported by Sam Steingold for macOS (Bug#28669).
5067 2017-10-01  Paul Eggert  <eggert@cs.ucla.edu>
5069         fsusage: remove SVR2 support
5070         SVR2 was obsolete by 1986 and is no longer supported by anybody,
5071         and its code was getting in the way of use of this module by
5072         Emacs, which has its own ‘read’ function anyway.
5073         * lib/fsusage.c: Do not include sys/filsys.h.
5074         (get_fs_usage): Remove SVR2-specific code.
5075         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE):
5076         Do not test for sys/filsys.h or set STAT_READ_FILSYS.
5077         * modules/fsusage (Depends-on): Do not depend on full-read.
5079         Simplify autoupdate of licenses
5080         * config/srclistvars.sh (GNUWWWLICENSES): Move to a more-typical
5081         place.
5083 2017-10-01  Bruno Haible  <bruno@clisp.org>
5085         vma-iter: Add support for GNU/Hurd.
5086         * lib/vma-iter.c: Treat GNU/Hurd like Linux.
5087         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
5089 2017-09-30  Bruno Haible  <bruno@clisp.org>
5091         vma-iter: Make it work on 32-bit Solaris with module 'largefile'.
5092         * modules/vma-iter: Don't test for sys/procfs.h, as this test would
5093         fail when module 'largefile' is in use.
5094         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't test HAVE_SYS_PROCFS_H.
5095         * lib/vma-iter.c: Undefine _FILE_OFFSET_BITS early.
5096         Don't test HAVE_SYS_PROCFS_H.
5098 2017-09-30  Bruno Haible  <bruno@clisp.org>
5100         havelib: Make it work for CC="gcc -m32" (regression from 2017-02-19).
5101         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Require gl_HOST_CPU_C_ABI.
5102         When $CC produces 32-bit code, set acl_libdirstem to 'lib', not 'lib64'.
5103         * modules/havelib (Depends-on): Add host-cpu-c-abi.
5105 2017-09-30  Bruno Haible  <bruno@clisp.org>
5107         uniname/uniname: Don't assume C99 compiler (regression from 2015-02-16).
5108         * lib/uniname/uniname.c (unicode_name_character): Add braces around
5109         scope of local variables.
5111 2017-09-28  Bruno Haible  <bruno@clisp.org>
5113         string: code style
5114         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Reorder list of
5115         substitutable variables.
5116         * modules/string (Makefile.am): Likewise.
5118 2017-09-26  Bruno Haible  <bruno@clisp.org>
5120         uniname/uniname-tests: Tighten code.
5121         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Merge two
5122         local variables into one.
5124 2017-09-26  Bruno Haible  <bruno@clisp.org>
5126         vma-iter: Improvements for Linux and BSD platforms.
5127         - Add support for DragonFly BSD.
5128         - Make it more reliable on Linux, GNU/kFreeBSD, FreeBSD, NetBSD.
5129         * lib/vma-iter.c (struct rofile, rof_open, rof_peekchar, rof_close):
5130         Read the entire file into memory in a single system call.
5131         (vma_iterate): Update. Read from /proc on DragonFly BSD like on FreeBSD.
5132         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on DragonFly BSD.
5134 2017-09-26  Bruno Haible  <bruno@clisp.org>
5136         vma-iter: Provide the protection flags on FreeBSD.
5137         * lib/vma-iter.c (vma_iterate) [FreeBSD]: When reading from /proc,
5138         skip three fields between the addresses and the protection flags.
5140 2017-09-26  Paul Eggert  <eggert@cs.ucla.edu>
5142         glob: remove bogus extern decl
5143         * lib/glob.c (__glob_pattern_type): Remove now-spurious
5144         extern declaration.  Problem reported by Adhemerval Zanella in:
5145         https://sourceware.org/ml/libc-alpha/2017-09/msg00972.html
5147 2017-09-25  Paul Eggert  <eggert@cs.ucla.edu>
5149         uniname/uniname-tests: integer overflow fix
5150         * tests/uniname/test-uninames.c (fill_names, fill_aliases):
5151         Check for integer overflow.
5153         duplocale-tests: fix unlikely crash
5154         * tests/test-duplocale.c (get_locale_dependent_values):
5155         Don’t crash with absurdly long month names.
5157         maint: fix overflow checking in nap.h
5158         * modules/chown-tests:
5159         * modules/fchownat-tests, modules/fdutimensat-tests:
5160         * modules/futimens-tests, modules/lchown-tests:
5161         * modules/stat-time-tests, modules/utime-tests:
5162         * modules/utimens-tests, modules/utimensat-tests:
5163         Depend on intprops.
5164         * tests/nap.h: Include intprops.h.
5165         (diff_timespec): Handle overflow properly.
5167         sys_types: update URL
5168         * m4/sys_types_h.m4: Use https: URL.
5170         parse-datetime: fix dependency
5171         * modules/parse-datetime (Depends-on): Depend
5172         on nstrftime, not strftime.
5174         parse-datetime, posixtm: avoid uninit access
5175         * lib/parse-datetime.y (parse_datetime2):
5176         * lib/posixtm.c (posixtime):
5177         Do not access uninitialized storage, even though the resulting
5178         value is never used.
5180 2017-09-25  Bruno Haible  <bruno@clisp.org>
5182         vma-iter: Improvements for BSD platforms.
5183         - Add support for GNU/kFreeBSD.
5184         - Make it work on FreeBSD and NetBSD even when /proc is not mounted.
5185         - Speed up on OpenBSD.
5186         * lib/vma-iter.c (struct rofile, rof*): Define also on GNU/kFreeBSD.
5187         (vma_iterate_bsd): New function.
5188         (vma_iterate): Use it as fallback on FreeBSD and NetBSD. Use it as
5189         first choice on OpenBSD. Treat GNU/kFreeBSD like Linux.
5190         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
5191         * modules/vma-iter (configure.ac): Require AC_C_INLINE.
5193 2017-09-23  Bruno Haible  <bruno@clisp.org>
5195         strfmon_l: New module.
5196         * modules/strfmon_l: New file.
5197         * lib/strfmon_l.c: New file.
5198         * m4/strfmon_l.m4: New file.
5199         * doc/posix-functions/strfmon_l.texi: Mention the new module.
5200         * modules/strfmon_l-tests: New file.
5201         * tests/test-strfmon_l.c: New file.
5203         monetary: New module.
5204         * modules/monetary: New file.
5205         * lib/monetary.in.h: New file.
5206         * m4/monetary_h.m4: New file.
5207         * doc/posix-headers/monetary.texi: Mention the new module.
5208         * modules/monetary-tests: New file.
5209         * tests/test-monetary.c: New file.
5210         * modules/monetary-c++-tests: New file.
5211         * tests/test-monetary-c++.cc: New file.
5212         * modules/duplocale-tests (configure.ac): Use AC_CHECK_HEADERS_ONCE.
5214 2017-09-23  Bruno Haible  <bruno@clisp.org>
5216         duplocale tests: Fix test crash on Linux/x86.
5217         * tests/test-duplocale.c (test_with_uselocale): Disconnect the mixed2
5218         locale from the current thread before freeing it.
5220 2017-09-21  Paul Eggert  <eggert@cs.ucla.edu>
5222         mktime: port to OpenVMS
5223         Problem reported by John E. Malmberg in:
5224         https://lists.gnu.org/r/bug-gnulib/2017-09/msg00100.html
5225         * m4/mktime.m4 (TIME_T_IS_SIGNED): Default to 0.
5227 2017-09-16  Paul Eggert  <eggert@cs.ucla.edu>
5229         manywarnings: port to GCC on 64-bit MS-Windows
5230         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Work better if
5231         LONG_MAX < PTRDIFF_MAX.  Problem reported by Richard Copley in:
5232         https://lists.gnu.org/r/emacs-devel/2017-09/msg00392.html
5234 2017-09-13  Bruno Haible  <bruno@clisp.org>
5236         all: Replace many more http URLs by https URLs. Update stale URLs.
5237         * users.txt: Remove mention of 'newts'.
5238         * lib/localename.c: Update comment about LANG_SOTHO.
5240 2017-09-13  Paul Eggert  <eggert@cs.ucla.edu>
5242         all: Replace many http URLs by https URLs.
5244 2017-09-12  Bruno Haible  <bruno@clisp.org>
5246         doc: Prefer https URLs where possible.
5247         * doc/**/*.texi: Use https URLs instead of http URLs where possible.
5248         * doc/ld-output-def.texi: Remove unavailable URL.
5250 2017-09-12  Paul Eggert  <eggert@cs.ucla.edu>
5252         maintainer-makefile: FTP -> HTTPS
5253         * top/maint.mk (url_dir_list, ftp-gnu): Use HTTPS protocol instead
5254         of FTP, which is planned to be decommissioned on 2017-11-01.
5256 2017-09-12  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
5258         libc-config: Fix __GNUC_PREREQ macro.
5259         * lib/libc-config.h (__GNUC_PREREQ): Use __GNUC_MINOR__, not
5260         __GNUC_MINOR.
5262 2017-09-09  Bruno Haible  <bruno@clisp.org>
5264         gnulib-tool: Simplify commit from 2015-08-20.
5265         * gnulib-tool (func_add_or_update): Remove local variable
5266         is_binary_file.
5268 2017-09-08  Bruno Haible  <bruno@clisp.org>
5270         stddef: Avoid conflict with system-defined max_align_t.
5271         The configure-determined HAVE_MAX_ALIGN_T may not always be accurate.
5272         Reported by Werner Lemberg <wl@gnu.org> in
5273         <https://lists.gnu.org/r/bug-gnulib/2017-08/msg00185.html>.
5274         * lib/stddef.in.h (rpl_max_align_t): Renamed from max_align_t.
5275         (max_align_t): Define as a macro.
5276         (GNULIB_defined_max_align_t): New macro. Guards against multiple
5277         definitions of rpl_max_align_t in different copies of gnulib-generated
5278         <stddef.h>.
5280 2017-09-05  Paul Eggert  <eggert@cs.ucla.edu>
5282         libc-config: port to MSVC
5283         Problems reported by Gisle Vanem in:
5284         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00016.html
5285         * lib/libc-config.h (__inline): Don't define if HAVE___INLINE.
5286         (libc_hidden_proto): Stick to Standard C syntax for varargs macro.
5287         * m4/__inline.m4: New file.
5288         * modules/libc-config (Files): Add it.
5289         (Depends-on): Use it.
5291         glob: Use enum for __glob_pattern_type result
5292         From a patch proposed by Adhemerval Zanella in:
5293         https://sourceware.org/ml/libc-alpha/2017-09/msg00212.html
5294         * lib/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
5295         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
5296         * lib/glob_internal.h (__glob_pattern_type):
5297         * lib/glob.c (glob):
5298         * lib/glob_pattern_p.c (__glob_pattern_p):
5299         Use them.
5301         glob: fix for use in glibc
5302         Problem reported by Adhemerval Zanella in:
5303         https://sourceware.org/ml/libc-alpha/2017-09/msg00213.html
5304         * lib/glob.c (DT_UNKNOWN, DT_DIR, DT_LINK):
5305         Do not redefine if _LIBC.
5307 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
5309         glob: fix bugs with long login names
5310         Problem reported by Adhemerval Zanella in:
5311         https://sourceware.org/ml/libc-alpha/2017-08/msg00455.html
5312         * lib/glob.c (GET_LOGIN_NAME_MAX): Remove.
5313         (glob): Use the same scratch buffer for both getlogin_r and
5314         getpwnam_r.  Don’t require preallocation of the login name.  This
5315         simplifies storage allocation, and corrects the handling of
5316         long login names.
5318 2017-09-02  Bruno Haible  <bruno@clisp.org>
5320         dirent: Update doc.
5321         * doc/posix-headers/dirent.texi: More concrete list of platforms.
5323 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
5325         glob: fix getpwnam_r errno typo
5326         * lib/glob.c (glob): Fix longstanding misuse of errno after
5327         getpwnam_r, which returns an error number rather than setting
5328         errno.
5330         glob: fix typo in recent change
5331         * lib/glob.c (glob) [!HAVE_GETPWNAM_R && !_LIBC]:
5332         Fix recently-introduced typo.
5334 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
5336         glob: don't save and restore errno unnecessarily
5337         * lib/glob.c (glob): Don't save and restore errno
5338         merely because we have getpwnam_r.
5340         glob: don't assume getpwnam_r
5341         * lib/glob.c (glob): Port recent patches to platforms
5342         lacking getpwnam_r.
5344         scratch_buffer: don’t use private glibc API
5345         Suggested by Florian Weimer in:
5346         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00004.html
5347         * lib/scratch_buffer.h: Rename to lib/malloc/scratch_buffer.h.
5348         * lib/scratch_buffer_grow.c: Rename to
5349         lib/malloc/scratch_buffer_grow.c.
5350         * lib/scratch_buffer_grow_preserve.c: Rename to
5351         lib/malloc/scratch_buffer_grow_preserve.c.
5352         * lib/scratch_buffer_set_array_size.c: Rename to
5353         lib/malloc/scratch_buffer_set_array_size.c.
5354         * lib/scratch_buffer.h: New file.
5355         * modules/scratch_buffer (Files, Makefile.am):
5356         Adjust to source-file renaming.
5358 2017-09-01  Paul Eggert  <eggert@cs.ucla.edu>
5360         glob: use scratch_buffer instead of extend_alloca
5361         Much of the lib/glob.c part of this patch comes from a glibc patch
5362         proposed by Adhemerval Zanella in:
5363         https://sourceware.org/ml/libc-alpha/2017-08/msg00456.html
5364         * lib/glob.c: Do not include <config.h>, since <libc-config.h>,
5365         included via glob.h, does this for us now.
5366         (__set_errno): Remove, as libc-config does this for us now.
5367         Include <scratch_buffer.h>.
5368         (GETPW_R_SIZE_MAX): Remove.
5369         (glob): Use struct scratch_buffer instead of extend_alloca.
5370         * lib/glob.in.h: Include libc-config.h rather than
5371         including <sys/cdefs.h> conditionally.
5372         (__BEGIN_DECLS, __END_DECLS, __THROW, __THROWNL, attribute_hidden)
5373         (__glibc_unlikely, __restrict, weak_alias):
5374         Remove, as libc-config does this for us now.
5375         * m4/glob.m4 (gl_PREREQ_GLOB):
5376         Remove sys/cdefs.h tests; no longer needed.
5377         * modules/glob (Depends-on): Add libc-config, scratch_buffer.
5378         (glob.h): Do not replace HAVE_SYS_CDEFS_H.
5380         scratch_buffer: new module
5381         * lib/scratch_buffer.h, lib/scratch_buffer_grow.c:
5382         * lib/scratch_buffer_grow_preserve.c:
5383         * lib/scratch_buffer_set_array_size.c:
5384         New files, copied from glibc with very minor changes that can be
5385         copied back.
5386         * modules/scratch_buffer: New file.
5388         libc-config: new module
5389         * MODULES.html.sh: Add libc-config.
5390         * lib/cdefs.h: New file, copied from the GNU C Library with very
5391         minor changes that can be copied back.
5392         * lib/libc-config.h, modules/libc-config: New files.
5394 2017-08-31  Paul Eggert  <eggert@cs.ucla.edu>
5396         glob: match dangling symlinks
5397         This fixes a bug I inadvertently introduced to Gnulib when I
5398         merged glibc glob back into gnulib on 2007-10-16.  This fix is
5399         inspired by a patch proposed for glibc by Adhemerval Zanella in:
5400         https://sourceware.org/ml/libc-alpha/2017-08/msg00446.html
5401         * doc/posix-functions/glob.texi: Update list of affected platforms.
5402         * lib/glob.c (__lstat64): New macro.
5403         (is_dir): New function.
5404         (glob, glob_in_dir): Match symlinks even if they are dangling.
5405         (link_stat, link_exists_p): Remove.  All uses removed.
5406         * lib/glob.in.h (__attribute_noinline__): Remove; no longer used.
5407         * m4/glob.m4 (gl_PREREQ_GLOB): Do not check for fstatat.
5408         * modules/glob-tests (Depends-on): Add symlink.
5409         * tests/test-glob.c: Include errno.h, unistd.h.
5410         (BASE): New macro.
5411         (main): Test dangling symlinks, if symlinks are supported.
5413         glob, backupfile: inode 0 is a valid inode number
5414         * doc/posix-functions/readdir.texi (readdir):
5415         * doc/posix-headers/dirent.texi (dirent.h):
5416         Document more readdir portability issues.
5417         * lib/backupfile.c (REAL_DIR_ENTRY): Remove.
5418         (numbered_backup): Don’t treat inode 0 any differently from
5419         other inode values.
5420         * lib/glob.c (struct readdir_result): Remove skip_entry member.
5421         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
5422         All uses removed.
5423         * modules/glob (Depends-on): Remove d-ino.
5425         glob: simplify symlink detection
5426         * lib/glob.c (dirent_type): New type.  Use uint_fast8_t not
5427         uint8_t, as C99 does not require uint8_t.
5428         (struct readdir_result): Use it.  Do not define skip_entry unless
5429         it is needed; this saves a byte on platforms lacking d_ino.
5430         (readdir_result_type, readdir_result_skip_entry):
5431         New functions, replacing ...
5432         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
5433         ... these functions, which were removed.  This makes the callers
5434         easier to read.  All callers changed.
5435         (D_INO_TO_RESULT): Now empty if there is no d_ino.
5437 2017-08-30  Pádraig Brady  <P@draigBrady.com>
5439         fts-tests: tag as a longrunning-test so not included by default
5440         * modules/fts-tests: This test takes about 20s on current systems,
5441         and uses about 285M of space on ext4.
5443 2017-08-30  Pádraig Brady  <P@draigBrady.com>
5445         renameat2: fix compilation on alpine linux
5446         * m4/renameat.m4: Check for <linux/fs.h> presence.
5447         * lib/renameat2.h: Only include <linux/fs.h> if present.
5448         Reported by Assaf Gordon on Alpine Linux.
5450 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
5452         glob: try to port recent changes to MS-Windows
5453         Problem reported by Bruno Haible in:
5454         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00170.html
5455         * lib/glob.c (__glob_pattern_p) [!_LIBC]: Move from here ...
5456         * lib/glob.in.h (__glob_pattern_p): ... to here.
5458 2017-08-24  Eric Blake  <eblake@redhat.com>
5460         warnings: fix compilation with old autoconf
5461         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C))
5462         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): Use m4_defun rather than
5463         AC_DEFUN.
5464         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C))
5465         (gl_MANYWARN_ALL_GCC(C++)): Likewise.
5467 2017-08-24  Bruno Haible  <bruno@clisp.org>
5469         glob: Fix compilation error on NetBSD 7.0 and OpenBSD 6.0.
5470         * modules/glob (Depends-on): Add c99.
5472 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
5474         glob: fix typo that broke platforms lacking d_ino
5475         This typo also hurt performance on GNU/Linux and similar hosts.
5476         * lib/glob.c (D_INO_TO_RESULT): Fix typo (reversed ifdef)
5477         in previous change.
5479 2017-08-23  Paul Eggert  <eggert@cs.ucla.edu>
5481         glob: merge from glibc with Zanella glob changes
5482         Merge glob from glibc, with changes for glob proposed
5483         by Adhemerval Zanella in the thread starting here:
5484         https://sourceware.org/ml/libc-alpha/2017-08/msg01079.html
5485         plus some fixes for this merge.
5486         * lib/glob_internal.h, lib/glob_pattern_p.c, lib/globfree.c:
5487         New files, ported from glibc.
5488         * lib/glob-libc.h (_Restrict_): Remove.  All uses replaced
5489         with __restrict.
5490         (__size_t): Remove.  All uses replaced by size_t.
5491         (size_t): Define by defining __need_size_t and including <stddef.h>.
5492         This should work even in non-glibc platforms, where any name
5493         pollution is OK.
5494         Use __USE_MISC instead of __USE_BSD || __USE_GNU.
5495         (struct stat64): Don’t worry about __GLOB_GNULIB.
5496         (glob, globfree, glob_pattern_p): Remove macros for
5497         __USE_FILE_OFFSET64 && __GNUC__ < 2 && !defined __GLOB_GNULIB
5498         case.  Remove _GL_ARG_NONNULL as GNU behavior is to accept NULL
5499         but set errno.
5500         * lib/glob.c (_GL_ARG_NONNULL) [!_LIBC]: Remove.  All uses
5501         removed since the glibc behavior works on null pointers.
5502         Do not include stdio.h; old SunOS is irrelevant now.
5503         Do not worry about GLOB_ONLY_P as we now mimic glibc here.
5504         Include glob_internal.h.
5505         (D_INO_TO_RESULT): Depend on (_LIBC || D_INO_IN_DIRENT), not
5506         ((POSIX || WINDOWS32) && !__GNU_LIBRARY__).  The latter probably
5507         worked only coincidentally.
5508         (attribute_hidden, __attribute_noinline__, __glibc_unlikely):
5509         Remove macros; now done in glob.in.h.
5510         (size_add_wrapv): Do not use __builtin_add_overflow if __ICC.
5511         (glob): Properly initialize glob structure with
5512         GLOB_BRACE|GLOB_DOOFFS (bug 20707).
5513         Remove old code using SHELL since Bash no longer
5514         uses this.
5515         (glob, prefix_array): Separate MS code better.
5516         (glob, glob_in_dir): Use C99 decls before statements when glibc
5517         does.
5518         (glob_in_dir): Remove old Amiga and VMS code.
5519         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
5520         separate files.
5521         * lib/glob.in.h (attribute_hidden, __attribute_noinline__)
5522         (__glibc_unlikely):
5523         Move here from glob.c.
5524         (__restrict): New macro here, replacing the _Restrict_ in glob.c.
5525         (weak_alias): New macro.
5526         (__size_t): Remove.  All uses replaced by size_t.
5527         * modules/d-ino (License): Now LGPLv2+, for compatibility with glob.
5528         * modules/glob (Files): Add +lib/glob_internal.h,
5529         lib/glob_pattern_p.c, lib/globfree.c.
5530         (Depends-on): Remove snippet/arg-nonnull.
5532 2017-08-22  Paul Eggert  <eggert@cs.ucla.edu>
5534         glob: port to clang's Undefined Sanitizer
5535         Problem reported by Tim Rühsen in:
5536         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00144.html
5537         * lib/glob.c (FLEXIBLE_ARRAY_MEMBER) [_LIBC]: Define to empty.
5538         (glob_in_dir): Do not rely on undefined behavior in accessing
5539         struct members beyond their bounds.  Use a flexible array member
5540         instead.
5542 2017-08-21  Paul Eggert  <eggert@cs.ucla.edu>
5544         vc-list-files: port to Solaris 10
5545         * build-aux/vc-list-files: Don't assume test -e works.
5547 2017-08-21  Karl Berry  <karl@freefriends.org>
5549         * doc/posix-functions/srandom.texi (srandom): typo }.
5551 2017-08-20  Paul Eggert  <eggert@cs.ucla.edu>
5553         git-version-gen: port to Solaris 10
5554         Problem reported by Dagobert Michelsen in:
5555         http://lists.gnu.org/r/grep-devel/2017-08/msg00002.html
5556         * build-aux/git-version-gen (v_from_git):
5557         Use expr instead of shell substitution.
5559 2017-08-19  Bruno Haible  <bruno@clisp.org>
5561         host-cpu-c-abi: Improve detection of MIPS ABI.
5562         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, test the value of
5563         _MIPS_SIM.
5565 2017-08-17  Bruno Haible  <bruno@clisp.org>
5567         hypot tests: Fix test failure on FreeBSD 11.0/x86.
5568         * tests/test-hypot.h (test_function): Declare z as 'volatile'.
5570 2017-08-17  Bruno Haible  <bruno@clisp.org>
5572         float: Fix LDBL_MIN value on FreeBSD/x86.
5573         * lib/float.in.h (LDBL_MIN) [__FreeBSD__]: Add more precision.
5575 2017-08-17  Bruno Haible  <bruno@clisp.org>
5577         random: Fix test compilation failure on Cygwin 1.5.25.
5578         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_INITSTATE,
5579         HAVE_DECL_SETSTATE.
5580         * m4/random.m4 (gl_FUNC_RANDOM): Test whether initstate and setstate are
5581         declared.
5582         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_INITSTATE,
5583         HAVE_DECL_SETSTATE.
5584         * lib/stdlib.in.h (initstate): Declare also if HAVE_DECL_INITSTATE is 0.
5585         (setstate): Declare also if HAVE_DECL_SETSTATE is 0.
5586         * doc/posix-functions/initstate.texi: Mention the Cygwin 1.5.x problem.
5587         * doc/posix-functions/random.texi: Likewise.
5588         * doc/posix-functions/setstate.texi: Likewise.
5589         * doc/posix-functions/srandom.texi: Likewise.
5591 2017-08-16  Bruno Haible  <bruno@clisp.org>
5593         stdnoreturn: Fix test compilation failure on Cygwin.
5594         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On Cygwin, use gnulib's
5595         <stdnoreturn.h> replacement.
5596         * lib/stdnoreturn.in.h (noreturn): Treat Cygwin like MSVC.
5597         * doc/posix-headers/stdnoreturn.texi: Mention the Cygwin problem.
5599 2017-08-16  Bruno Haible  <bruno@clisp.org>
5601         thread: Fix conflict with pthread_sigmask module.
5602         * lib/glthread/thread.h (pthread_sigmask): Don't declare it weak if
5603         it's defined as a macro.
5604         * modules/thread (Depends-on): Add pthread_sigmask.
5606 2017-08-16  Paul Eggert  <eggert@cs.ucla.edu>
5608         rename: port better to NetBSD
5609         * doc/posix-functions/rename.texi (rename): NetBSD 7
5610         does not have the link-count bug.
5611         * m4/rename.m4 (gl_FUNC_RENAME): Don’t consider NetBSD to be
5612         broken merely because rename ("a", "b") removes "a" when the two
5613         names are hard links to the same file.
5615 2017-08-16  Bruno Haible  <bruno@clisp.org>
5617         iconv_open, uni*: Add support for VPATH builds with OpenBSD 'make'.
5618         * modules/iconv_open (Makefile.am): In the rules that use gperf, prefix
5619         the target file names with '$(srcdir)/'.
5620         * modules/unicase/locale-language (Makefile.am): Likewise.
5621         * modules/unicase/special-casing (Makefile.am): Likewise.
5622         * modules/unictype/bidiclass-byname (Makefile.am): Likewise.
5623         * modules/unictype/category-byname (Makefile.am): Likewise.
5624         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
5625         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
5626         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
5627         * modules/unictype/property-byname (Makefile.am): Likewise.
5628         * modules/unictype/scripts (Makefile.am): Likewise.
5629         * modules/uninorm/composition (Makefile.am): Likewise.
5631 2017-08-16  Bruno Haible  <bruno@clisp.org>
5633         nonblocking-socket tests: Fix failure on OpenBSD 6.0.
5634         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE): Increase
5635         value for OpenBSD.
5637 2017-08-16  Bruno Haible  <bruno@clisp.org>
5639         rename, renameat: Update doc regarding NetBSD.
5640         * doc/posix-functions/rename.texi: Clarify that when using
5641         -D_XOPEN_SOURCE=500 on NetBSD 7.0, the hard link bug is gone.
5642         * doc/posix-functions/renameat.texi: Be more precise about NetBSD
5643         version.
5645 2017-08-15  Paul Eggert  <eggert@cs.ucla.edu>
5647         renameat2: port better to macOS
5648         * lib/renameat2.c (renameat2): Use renameatx_np if available.
5650         futimens: don’t assume struct timespec layout
5651         * m4/futimens.m4 (gl_FUNC_FUTIMENS):
5652         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT):
5653         * tests/test-fdutimensat.c (main):
5654         * tests/test-futimens.h (test_futimens):
5655         * tests/test-lutimens.h (test_lutimens):
5656         * tests/test-utimens.h (test_utimens):
5657         * tests/test-utimensat.c (main):
5658         Don’t assume that struct timespec is a two-member structure in
5659         tv_sec, tv_nsec order.  Although this is true on all platforms we
5660         know about, POSIX does not guarantee it.
5662         rename: document+test NetBSD rename
5663         Test failure reported by Bruno Haible in:
5664         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00104.html
5665         This is an area where NetBSD is better-behaved than POSIX,
5666         so allow the NetBSD behavior in tests.
5667         * doc/posix-functions/rename.texi:
5668         * doc/posix-functions/renameat.texi: Document NetBSD behavior.
5669         * tests/test-rename.h (test_rename): Allow NetBSD behavior.
5671 2017-08-15  Bruno Haible  <bruno@clisp.org>
5673         renameat: Ensure declaration in <stdio.h> on NetBSD.
5674         * lib/stdio.in.h: Include <unistd,h> also on NetBSD.
5675         * doc/posix-functions/renameat.texi: Mention this problem.
5677 2017-08-15  Bruno Haible  <bruno@clisp.org>
5679         duplocale: Work around NetBSD 7.0 bug.
5680         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Test against the NetBSD 7.0 bug.
5681         * lib/duplocale.c: Add comment about NetBSD problem.
5682         * doc/posix-functions/duplocale.texi: Mention the NetBSD problem.
5684 2017-08-15  Bruno Haible  <bruno@clisp.org>
5686         duplocale tests: Verify use with *_l functions.
5687         * modules/duplocale-tests (configure.ac): Test for uselocale and
5688         some *_l functions.
5689         * tests/test-duplocale.c (test_with_uselocale): New function, extracted
5690         from main.
5691         (get_locale_dependent_values_from, test_with_locale_parameter): New
5692         functions.
5693         (main): Test both test_with_uselocale and test_with_locale_parameter.
5695 2017-08-15  Bruno Haible  <bruno@clisp.org>
5697         extensions: Enable NetBSD specific extensions.
5698         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _NETBSD_SOURCE.
5700 2017-08-14  Bruno Haible  <bruno@clisp.org>
5702         open, openat: Update doc about O_CLOEXEC.
5703         * doc/posix-functions/open.texi: More concrete list of platforms.
5704         * doc/posix-functions/openat.texi: Likewise.
5706 2017-08-14  Paul Eggert  <eggert@cs.ucla.edu>
5708         open: support O_CLOEXEC
5709         * NEWS, doc/posix-functions/open.texi:
5710         * doc/posix-functions/openat.texi: Document this.
5711         * lib/fcntl.in.h (O_CLOEXEC): Default to a nonzero value.
5712         (GNULIB_defined_O_CLOEXEC): New symbol.
5713         * lib/open.c: Include cloexec.h.
5714         (open): Support O_CLOEXEC.
5715         * lib/openat.c: Include cloexec.h.
5716         (rpl_openat): Support O_CLOEXEC.
5717         * lib/popen-safer.c: Do not include cloexec.h.
5718         (open_noinherit): Remove.
5719         (popen_safer): Use O_CLOEXEC instead of set_cloexec_flag.
5720         * lib/save-cwd.c: Do not include cloexec.h.
5721         (save_cwd): Use O_CLOEXEC instead of set_cloexec_flag.
5722         * m4/open-cloexec.m4: New file.
5723         * m4/open.m4 (gl_FUNC_OPEN): Require gl_PREPROC_O_CLOEXEC.
5724         Replace 'open' if O_CLOEXEC is not present.
5725         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_PREPROC_O_CLOEXEC.
5726         Replace 'openat' if O_CLOEXEC is not present.
5727         * modules/freopen (Depends-on): Depend on 'open' if replacing freopen.
5728         * modules/open (Files): Add m4/open-cloexec.m4.
5729         (Depends-on): Depend on cloexec if replacing 'open'.
5730         * modules/openat (Files): Add m4/open-cloexec.m4.
5731         (Depends-on): Depend on cloexec if replacing openat.
5732         * modules/popen-safer (Depends-on): Remove cloexec.
5733         * modules/save-cwd (Depends-on): Remove cloexec, and add
5734         fd-safer-flag and 'open'.
5736 2017-08-13  Paul Eggert  <eggert@cs.ucla.edu>
5738         reallocarray: minor fixes
5739         * doc/glibc-functions/reallocarray.texi: Update version numbers.
5740         * m4/reallocarray.m4 (gl_FUNC_REALLOCARRAY): Don't trust _cv_ contents.
5741         * modules/reallocarray (License): Change from GPL to LGPL.
5742         * tests/test-reallocarray.c (main): Fix ENOMEM typo.
5743         Indent properly and don't use tabs.
5745 2017-08-13  Darshit Shah  <darnir@gnu.org>
5747         reallocarray: New module
5748         reallocarray is a new function in glibc 2.26 to safely allocate an array
5749         of memory locations with integer overflow protection.
5750         * MODULES.html.sh: Add reallocarray.
5751         * doc/glibc-functions/reallocarray.texi: Documentation for reallocarray.
5752         * lib/reallocarray.c: New file to implement module reallocarray.
5753         * lib/stdlib.in.h: Add function declarations for reallocarray.
5754         * m4/reallocarray.m4: New file.
5755         * m4/stdlib_h.m4: Declare reallocarray.
5756         * modules/reallocarray: New file.
5757         * modules/reallocarray-test: New file.
5758         * modules/stdlib: Coerce stdlib.h to export reallocarray.
5759         * tests/test-reallocarray.c: New test.
5761 2017-08-12  Paul Eggert  <eggert@cs.ucla.edu>
5763         dirent-safer: fix cloexec race
5764         * lib/opendir-safer.c: Include fcntl.h instead of unistd-safer.h.
5765         (opendir_safer): Use F_DUPFD_CLOEXEC.
5766         * modules/dirent-safer (Depends-on): Add fcntl.  Remove unistd-safer.
5767         * tests/test-dirent-safer.c: Do not include unistd-safer.h,
5768         as it is no longer a prerequisite.  Use F_DUPFD_CLOEXEC
5769         instead of dup_safer.
5771         fts: fix cloexec races
5772         * lib/fts.c [!_LIBC]: Do not include dirent--.h, unistd--.h, cloexec.h.
5773         (opendirat, diropen): Use O_CLOEXEC instead of set_cloexec_flag.
5774         (fts_build): Use F_DUPD_CLOEXEC rinstad of set_cloexec_flag.
5775         (fd_ring_check): Set cloexec flag on new file descriptors.
5776         (fts_build, fd_ring_check): While we’re at it, make sure the
5777         resulting file descriptor is not 0, 1, or 2, since that is easy.
5779 2017-08-11  Bruno Haible  <bruno@clisp.org>
5781         fts tests: Fix link error.
5782         Reported by Tom G. Christensen in
5783         https://lists.gnu.org/r/bug-gnulib/2017-08/msg00078.html
5784         * modules/fts-tests (Makefile.am): Link test-fts against LIBINTL.
5786 2017-08-10  Paul Eggert  <eggert@cs.ucla.edu>
5788         fts: port recent changes to CentOS 6
5789         Problem reported by Tom G. Christensen in:
5790         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00064.html
5791         * lib/fts.c (fsword): New type.
5792         (struct dev_type, filesystem_type): Use it.
5793         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for __fsword_t.
5794         Also, check for f_type only if fstatfs and sys/vfs.h work.
5796 2017-08-09  Paul Eggert  <eggert@cs.ucla.edu>
5798         tempname: do not depend on secure_getenv
5799         Excess dependency noted by Eli Zaretskii (Bug#28023#17).
5800         * lib/tempname.c (__secure_getenv) [!_LIBC]: Remove; unused.
5801         * modules/tempname (Depends-on): Remove secure_getenv.
5803 2017-08-08  Paul Eggert  <eggert@cs.ucla.edu>
5805         extensions: add _OPENBSD_SOURCE
5806         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _OPENBSD_SOURCE.
5808 2017-08-06  Reuben Thomas  <rrt@sc3d.org>
5809             Bruno Haible  <bruno@clisp.org>
5811         manywarnings: Add support for C++.
5812         * build-aux/g++-warning.spec: New file.
5813         * m4/manywarnings-c++.m4: New file.
5814         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C++)): New macro, that
5815         redirects to manywarnings-c++.m4.
5816         * modules/manywarnings (Files): Add m4/manywarnings-c++.m4.
5818 2017-08-06  Paul Eggert  <eggert@cs.ucla.edu>
5820         git-version-gen: another fix for tags with "-"
5821         * build-aux/git-version-gen: Improve fix for tags containing "-".
5822         Suggested by Markus Armbruster in:
5823         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00034.html
5825 2017-08-06  Bruno Haible  <bruno@clisp.org>
5827         warnings, manywarnings: Add support for multiple languages, not just C.
5828         * warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS_IMPL): Renamed from
5829         gl_UNKNOWN_WARNINGS_ARE_ERRORS.
5830         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C)): New macro.
5831         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): New macro.
5832         (gl_UNKNOWN_WARNINGS_ARE_ERRORS): Dispatch to
5833         gl_UNKNOWN_WARNINGS_ARE_ERRORS(_AC_LANG).
5834         (gl_WARN_ADD): Require the gl_UNKNOWN_WARNINGS_ARE_ERRORS specialization
5835         of the current language. If C++ is the current language, modify
5836         WARN_CXXFLAGS instead of WARN_CFLAGS.
5837         * manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): New macro, extracted from
5838         gl_MANYWARN_ALL_GCC.
5839         (gl_MANYWARN_ALL_GCC): Dispatch to gl_MANYWARN_ALL_GCC(_AC_LANG).
5841 2017-08-06  Markus Armbruster  <armbru@pond.sub.org>
5843         git-version-gen: Fix for tags containing '-'
5845         Really old versions of git-describe (before v1.5.0, Feb 2007)
5846         don't have the number of commits in their long format output,
5847         i.e. where modern 'git describe --abbrev=4 --match="v*"' prints
5848         "v0.1-1494-g124b9", they print "v0.1-1494-g124b9".  git-version-gen
5849         recognizes both patterns, and normalizes the old format to the new one.
5851         Unfortunately, this normalization code gets confused when the tag
5852         contains '-'.  Reproducer:
5854             $ git-tag -m test v0.2-rc1
5855             $ build-aux/git-version-gen .tarball-version; echo
5856             build-aux/git-version-gen: WARNING: git rev-list failed
5857             UNKNOWN
5859         We take exact tag "v0.2-rc1" for the old format, extract the presumed
5860         tag "v0.2" from it, then run "git rev-list v0.2..HEAD" to count
5861         commits since tha tag.  Fails, because tag "v0.2" does not exist.
5863         * git-version-gen: We could perhaps drop support for versions from
5864         more than a decade ago.  But tightening the pattern match is easy
5865         enough, so do that.  Still breaks when you use version tags ending in
5866         something matching -g????, but you arguably get what you deserve then.
5868 2017-08-05  Paul Eggert  <eggert@cs.ucla.edu>
5870         valgrind-tests: use ls, and cache
5871         * m4/valgrind-tests.m4: Test ls, not bash.
5872         Problem reported by Reuben Thomas.
5873         Also, cache the result so that it can be overridden.
5875 2017-08-04  Paul Eggert  <eggert@cs.ucla.edu>
5877         manywarnings: port to 64-bit GCC builds of Emacs
5878         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Compute max safe
5879         object size rather than hardwiring 2147483647.  This is needed to
5880         build GNU Emacs, which has one conditional (and used
5881         only-in-theory) call to malloc with a literal greater than
5882         2147483647.
5884 2017-08-04  Bruno Haible  <bruno@clisp.org>
5886         Relax the license of some modules with no runtime code.
5887         * modules/std-gnu11 (License): Set to 'unlimited'.
5888         * modules/c99 (License): Likewise.
5889         Reported by Reuben Thomas <rrt@sc3d.org>.
5890         * modules/d-ino (License): Set to 'LGPL'.
5891         * modules/host-os (License): Likewise.
5892         * modules/longlong (License): Likewise.
5894 2017-08-03  Paul Eggert  <eggert@cs.ucla.edu>
5896         renameat2: port to RHEL 7 + NFS
5897         * lib/renameat2.c (renameat2) [SYS_renameat2]:
5898         Port to RHEL 7 + NFS.  Problem reported by Ted Zlatanov in:
5899         http://lists.gnu.org/r/emacs-devel/2017-08/msg00082.html
5901 2017-08-02  Paul Eggert  <eggert@cs.ucla.edu>
5903         renameat2: port to non-renameat platforms
5904         Problem reported for MSVC-2015 by Gisle Vanem in:
5905         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00001.html
5906         * lib/renameat2.c [!HAVE_RENAMEAT]: Include <sys/stat.h> here too.
5907         (renameat2) [!HAVE_RENAMEAT]: Fix typo in arg passing.
5909 2017-08-01  Paul Eggert  <eggert@cs.ucla.edu>
5911         manywarnings: port to 32-bit GCC bug
5912         Problem reported by Pino Toscano in:
5913         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00150.html
5914         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Use 2**31 - 1,
5915         not 2**63 - 1, to work around the following GCC bug:
5916         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81650
5918 2017-07-30  Paul Eggert  <eggert@cs.ucla.edu>
5920         backupfile: new function to validate backup suffix
5921         * lib/backupfile.c (set_simple_backup_suffix): New function.
5922         (backupfile_internal): Use it.
5924         canonicalize: fix EOVERFLOW commentary
5925         Problem reported by Bruno Haible in:
5926         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00147.html
5927         * lib/canonicalize.c (canonicalize_filename_mode):
5928         * lib/canonicalize-lgpl.c (__realpath): Fix comments.
5930         Don't interpret EOVERFLOW to mean nonexistence
5931         * lib/fts.c (fts_stat): If lstat fails, report its errno, which
5932         may be EOVERFLOW; this is likely more useful than reporting the
5933         stat errno.
5934         * lib/glob.c (link_stat): Rename from link_exists2_p and
5935         return -1/0 instead of 0/1.  Caller changed.
5936         * lib/glob.c (link_exists_p):
5937         * lib/renameat2.c (rename_noreplace, renameat2):
5938         * lib/tempname.c (try_nocreate):
5939         If errno == EOVERFLOW then the directory entry exists, so do not
5940         act as if it does not exist.
5942         backup-rename: new module
5943         It is like backupfile, except it avoids some race conditions,
5944         and it does not output to stderr or exit.
5945         * MODULES.html.sh: Add backup-rename.
5946         * lib/backup-find.c, lib/backup-internal.h, lib/backup-rename.c:
5947         * modules/backup-rename: New files.
5948         * lib/backupfile.c: Turn this into an internals file, which
5949         contains code common to backupfile and backup_rename.  Include
5950         backupfile-internal.h instead of backupfile.h.  Do not include
5951         argmatch.h or xalloc.h: include xalloc-oversized.h.  Include
5952         renameat2.h and fcntl.h.
5953         (BACKUP_NOMEM): New constant.
5954         (numbered_backup): New args BASE_OFFSET and *DIRPP.  Do not exit
5955         on memory exhaustion; just return BACKUP_NOMEM.  Caller changed.
5956         (backupfile_internal): Rename from find_backup_file_name.
5957         Support new arg RENAME.
5958         (backup_args, backup_types, get_version, xget_version):
5959         Move to lib/backup-find.c.
5960         * lib/backupfile.h (backup_file_rename): New decl.
5961         * modules/backupfile (Files): Add lib/backup-internal.h,
5962         lib/backup-find.c.
5963         (Depends-on): Add dirfd, fcntl, renameat2.
5964         (lib_SOURCES): Add backup-find.c.
5966         renameat2: port better to older Solaris
5967         * lib/renameat2.c (renameat2): Set ret_val properly on old Solaris.
5968         Add goto to use a label, to silence picky compilers.
5970         fts-tests: port to gcc -Wwrite-strings
5971         * tests/test-fts.c (base, base_d): New static vars.
5972         (argv, remove_tree, main): Use them.
5974 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
5976         relocatable-lib{,-lgpl}: improve documentation
5977         * doc/relocatable-maint.texi: Document use of relocatable-lib{,-lgpl}.
5978         Various other updates.
5980 2017-07-30  Reuben Thomas  <rrt@sc3d.org>
5981             Bruno Haible  <bruno@clisp.org>
5983         relocatable-lib{,-lgpl}: add Valgrind suppressions
5984         * lib/relocatable.valgrind: New file.
5985         * modules/relocatable-lib (Files): Add relocatable.valgrind.
5986         * modules/relocatable-lib-lgpl: Likewise.
5988 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
5990         relocatable: Make the license on the sources the GPL.
5991         * lib/relocatable.h, lib/relocatable.c: Change the copyright notice from
5992         LGPL, which was a special case so that the relocatable source files
5993         could be used without gnulib-tool, to GPL. They can still be used under
5994         the LGPL, using the --lgpl option to gnulib-tool.
5996 2017-07-30  Bruno Haible  <bruno@clisp.org>
5998         host-cpu-c-abi: Detect ILP32 ABI on IA-64 HP-UX.
5999         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Distinguish ia64-ilp32
6000         from ia64. For arm64, test only __aarch64__, as __ARM_64BIT_STATE and
6001         __ARM_PCS_AAPCS64 are not reliable indicators: they are not defined on
6002         Ubuntu 14.04 (gcc 4.8.4) and Debian 8 (gcc 4.9.2).
6004 2017-07-27  Paul Eggert  <eggert@cs.ucla.edu>
6006         faccessat: document AT_SYMLINK_NOFOLLOW issue
6007         * doc/posix-functions/faccessat.texi: Modernize platform list.
6008         Document AT_SYMLINK_NOFOLLOW limitation.
6010         renameat2: port to Solaris 10
6011         * lib/renameat2.c (rename_noreplace): Use lstat, not faccessat
6012         with AT_SYMLINK_NOFOLLOW (which is not portable).
6013         (renameat): Undef before using, to avoid endless recursion when
6014         the replacement renameat calls renameat2 which calls the
6015         replacement renameat.
6016         (renameat2): Use lstatat, not faccessat with AT_SYMLINK_NOFOLLOW.
6017         * modules/renameat2 (Depends-on): Remove faccessat.
6018         * modules/renameat-tests (test_renameat_LDADD):
6019         * modules/renameat2-tests (test_renameat2_LDADD):
6020         Remove $(LIB_EACCESS).
6022         renameat2: new module
6023         Although the Linux syscall renameat2 is not in glibc (yet?), it is
6024         useful to have access to its RENAME_NOREPLACE flag.
6025         * MODULES.html.sh (func_all_modules): Add renameat2.
6026         * lib/renameat2.c, lib/renameat2.h, modules/renameat2:
6027         * modules/renameat2-tests, tests/test-renameat2.c: New files.
6028         * lib/renameat.c (renameat): Move most of the implementation
6029         to renameat2, and just call renameat2.
6030         * modules/renameat (Files): Remove lib/at-func2.c.
6031         (Depends-on): Depend only on renameat2.
6032         (Include): Remove <fcntl.h>.
6033         * modules/renameat-tests (test_renameat_LDADD): Add $(LIB_EACCESS),
6034         since renameat (via renameat2) might use faccessat.
6036 2017-07-27  Erik Skultety <eskultet@redhat.com>  (tiny change)
6038         vc-list-files: Adjust the script to support git worktrees
6039         * build-aux/vc-list-files: Require existence, not directory.
6041 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
6043         doc: bring MODULES.html.sh up to date
6044         Somehow a few months ago we stopped updating MODULES.html.sh.
6045         I don’t recall explicitly deciding this, so I updated it now.
6046         Alternatively I suppose we could remove it.
6047         * MODULES.html.sh: Add builtin-expect, c99, ctime, explicit_bzero,
6048         localtime, localtime-buffer, noreturn, nstrftime, strftime-fixes,
6049         truncate, utime, utime-h, windows-stat-inodes,
6050         windows-stat-override, windows-stat-timespec, year2038.  Sort.
6052 2017-07-26  Jim Meyering  <meyering@fb.com>
6054         fprintftime: fix build-break caused by recent renaming
6055         * lib/fprintftime.c: Include "nstrftime.c", not the now-renamed
6056         "strftime.c".
6057         * modules/fprintftime: Depend directly on nstrftime.
6059 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
6061         regex: work with GCC7's -Werror=implicit-fallthrough=
6062         * lib/regex_internal.h (FALLTHROUGH): New macro.
6063         * lib/regcomp.c (peek_token_bracket, parse_expression):
6064         * lib/regexec.c (check_node_accept): Use it.
6066 2017-07-24  Paul Eggert  <eggert@cs.ucla.edu>
6068         fts: simplify fts_build
6069         * lib/fts.c (fts_build): Simplify, and be lazier about
6070         calling leaf_optimization.
6072         fts: three levels of leaf optimization
6073         * lib/fts.c (enum leaf_optimization): New type with three values.
6074         (S_MAGIC_AFS): New macro.  Sort them.
6075         (leaf_optimization): Rename from leaf_optimization_applies, and
6076         return enum leaf_optimization instead of bool.  All uses changed.
6077         Add cases for unknown type and for AFS.
6078         (fts_build): Don’t rely on link counts if NO_LEAF_OPTIMIZATION.
6080         fts: cache dirent_inode_sort_may_be_useful too
6081         * lib/fts.c (struct dev_type): New struct.
6082         (DEV_TYPE_HT_INITIAL_SIZE): New constant.
6083         (dev_type_hash, dev_type_compare, filesystem_type): New functions.
6084         (dirent_inode_sort_may_be_useful, leaf_optimization_applies):
6085         Now takes FTSENT const *, not int.  All uses changed.  Use
6086         filesystem_type to cache.
6087         (link_count_optimize_ok): Remove.  Caller changed to use
6088         leaf_optimization_applies, which now uses shared cache.
6090         fts: introduce MIN_DIR_NLINK
6091         * lib/fts.c (MIN_DIR_NLINK): New constant.
6092         Use it instead of 2, whenever we are talking about link counts.
6094         fts: nlink_t signedness fixups
6095         * lib/fts.c (fts_open): Set rootparent n_dirs_remaining to -1
6096         so that root need not be a special case later.
6097         (fts_read): Remove now-redundant test for fts_level.
6098         Do not assume that nlink_t is signed.
6099         (fts_build): Remove useless decrement of nlinks.
6100         (fts_stat): Avoid unlikely signed integer overflow later, if
6101         nlink_t is signed.
6103         fts-tests: new module
6104         * modules/fts-tests, tests/test-fts.c: New files.
6106 2017-07-23  Bruno Haible  <bruno@clisp.org>
6108         Rename module 'strftime' to 'nstrftime'.
6109         * m4/nstrftime.m4: Renamed from m4/strftime.m4.
6110         * lib/nstrftime.c: Renamed from lib/strftime.c.
6111         * modules/nstrftime: Renamed from modules/strftime.
6112         (Files, Makefile.am): Update.
6113         * tests/test-nstrftime.c: Renamed from tests/test-strftime.c.
6114         Fix comment.
6115         * modules/nstrftime-tests: Renamed from modules/strftime-tests.
6116         (Files, Makefile.am): Update.
6117         * modules/strftime: New file, an obsolete indirection.
6118         * doc/posix-functions/strftime.texi: Update reference.
6119         * config/srclist.txt: Update info.
6120         * NEWS: Mention the change.
6122 2017-07-21  Tim Rühsen  <tim.ruehsen@gmx.de>
6124         malloca: Silence a warning from clang's memory sanitizer.
6125         * lib/malloca.c (NO_SANITIZE_MEMORY): New macro.
6126         (freea): Use it.
6128 2017-07-18  Bruno Haible  <bruno@clisp.org>
6130         host-cpu-c-abi: Fix detection of MIPS ABI.
6131         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, really test the
6132         ABI, not the CPU instruction set.
6134 2017-07-16  Paul Eggert  <eggert@cs.ucla.edu>
6136         explicit_bzero: new module
6137         The explicit_bzero function has been added to glibc.
6138         This module is intended to supports its use in GNU programs.
6139         * doc/glibc-functions/explicit_bzero.texi, lib/explicit_bzero.c:
6140         * m4/explicit_bzero.m4, modules/explicit_bzero:
6141         New files.
6142         * doc/gnulib.texi (Glibc string.h): Link to new doc.
6143         * lib/string.in.h (explicit_bzero): Declare.
6144         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add defaults for it.
6145         * modules/string (string.h): Substitute its vars.
6147 2017-07-16  Bruno Haible  <bruno@clisp.org>
6149         threadlib: Support static linking.
6150         * m4/threadlib.m4 (gl_THREADLIB_BODY): When static linking is in use,
6151         set gl_cv_have_weak to 'no'.
6153 2017-07-16  Bruno Haible  <bruno@clisp.org>
6155         unicase/locale-language: Fix link dependencies.
6156         * modules/unicase/locale-language (Link): New section.
6157         * modules/unicase/locale-language-tests (Makefile.am): Link
6158         test-locale-language program with $(LIBTHREAD).
6160 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
6162         sys_socket: Add support for OpenVMS.
6163         * lib/sys_socket.in.h [__VMS]: Define CMSG_SPACE, CMSG_LEN.
6164         * doc/posix-headers/sys_socket.texi: Mention OpenVMS issues.
6166 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
6168         sys_resource: Add support for OpenVMS.
6169         * lib/resource.in.h [__VMS]: Define RUSAGE_SELF, RUSAGE_CHILDREN.
6170         * doc/posix-headers/sys_resource.texi: Mention OpenVMS issues.
6172 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
6173             Bruno Haible  <bruno@clisp.org>
6175         math: Add support for OpenVMS.
6176         * lib/math.in.h [__VMS]: Include <fp.h>.
6177         * doc/posix-headers/math.texi: Mention OpenVMS issues.
6179 2017-07-15  Bruno Haible  <bruno@clisp.org>
6181         getdtablesize: Add minimal support for OpenVMS.
6182         Reported by John E. Malmberg <wb8tyw@qsl.net>.
6183         * modules/getdtablesize (Description): Fix.
6184         * lib/getdtablesize.c: Fix comment.
6185         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Don't replace the
6186         getdtablesize() function, even though the test fails.
6187         * doc/glibc-functions/getdtablesize.texi: Reference SUSv2. Describe
6188         limitation on OpenVMS.
6190 2017-07-13  Bruno Haible  <bruno@clisp.org>
6192         Revisit cross-compilation guesses.
6193         * m4/wctype_h.m4 (gl_WCTYPE_H): Add comment.
6195 2017-07-13  Bruno Haible  <bruno@clisp.org>
6197         Improve cross-compilation guesses for native Windows.
6198         * m4/btowc.m4 (gl_FUNC_BTOWC): Add cross-compilation guess for native
6199         Windows.
6200         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Likewise.
6201         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Likewise.
6202         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
6203         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): Likewise.
6204         * m4/cbrtl.m4 (gl_FUNC_CBRTL, gl_FUNC_CBRTL_WORKS): Likewise.
6205         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
6206         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
6207         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
6208         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
6209         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
6210         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
6211         * m4/exp2.m4 (gl_FUNC_EXP2_WORKS): Likewise.
6212         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
6213         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
6214         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): Likewise.
6215         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
6216         * m4/fabsl.m4 (gl_FUNC_FABSL_WORKS): Likewise.
6217         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
6218         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
6219         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
6220         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
6221         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
6222         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Likewise.
6223         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Likewise.
6224         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Likewise.
6225         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
6226         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
6227         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
6228         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
6229         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): Likewise.
6230         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
6231         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
6232         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
6233         * m4/hypotf.m4 (gl_FUNC_HYPOTF, gl_FUNC_HYPOTF_WORKS): Likewise.
6234         * m4/hypotl.m4 (gl_FUNC_HYPOTL, gl_FUNC_HYPOTL_WORKS): Likewise.
6235         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
6236         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
6237         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
6238         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
6239         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
6240         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
6241         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
6242         * m4/log.m4 (gl_FUNC_LOG, gl_FUNC_LOG_WORKS): Likewise.
6243         * m4/logf.m4 (gl_FUNC_LOGF, gl_FUNC_LOGF_WORKS): Likewise.
6244         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
6245         * m4/log10.m4 (gl_FUNC_LOG10, gl_FUNC_LOG10_WORKS): Likewise.
6246         * m4/log10f.m4 (gl_FUNC_LOG10F, gl_FUNC_LOG10F_WORKS): Likewise.
6247         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Likewise.
6248         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
6249         * m4/log1pf.m4 (gl_FUNC_LOG1PF, gl_FUNC_LOG1PF_WORKS): Likewise.
6250         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
6251         * m4/log2.m4 (gl_FUNC_LOG2, gl_FUNC_LOG2_WORKS): Likewise.
6252         * m4/log2f.m4 (gl_FUNC_LOG2F, gl_FUNC_LOG2F_WORKS): Likewise.
6253         * m4/log2l.m4 (gl_FUNC_LOG2L_WORKS): Likewise.
6254         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): Likewise.
6255         * m4/logbf.m4 (gl_FUNC_LOGBF_WORKS): Likewise.
6256         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Likewise.
6257         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
6258         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT, gl_MBRTOWC_C_LOCALE): Likewise.
6259         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
6260         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
6261         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
6262         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
6263         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
6264         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
6265         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
6266         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
6267         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
6268         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE,
6269         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2,
6270         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
6271         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
6272         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
6273         * m4/regex.m4 (gl_REGEX): Likewise.
6274         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
6275         * m4/remainderf.m4 (gl_FUNC_REMAINDERF,
6276         gl_FUNC_REMAINDERF_WORKS): Likewise.
6277         * m4/remainderl.m4 (gl_FUNC_REMAINDERL,
6278         gl_FUNC_REMAINDERL_WORKS): Likewise.
6279         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
6280         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
6281         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
6282         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
6283         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
6284         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
6285         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
6286         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
6287         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): Likewise.
6288         * m4/stdint.m4 (gl_STDINT_H): Likewise.
6289         * m4/strerror.m4 (gl_FUNC_STRERROR_0): Likewise.
6290         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
6291         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
6292         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
6293         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
6294         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
6295         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
6296         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
6297         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
6298         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
6299         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
6300         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
6301         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
6302         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
6303         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
6304         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
6305         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
6306         Likewise.
6307         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
6308         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for native
6309         Windows. Enable also on Autoconf 2.70.
6310         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
6311         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
6312         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
6313         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO,
6314         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
6315         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): Add cross-compilation guess
6316         for native Windows.
6317         (gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
6318         gl_VSNPRINTF_ZEROSIZE_C99): Add comment.
6320 2017-07-13  Bruno Haible  <bruno@clisp.org>
6322         Improve cross-compilation guesses for native Windows.
6323         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add cross-compilation guess for native
6324         Windows.
6325         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Don't use internals of
6326         memchr.m4.
6327         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
6329 2017-07-13  Bruno Haible  <bruno@clisp.org>
6331         Improve cross-compilation guesses for native Windows.
6332         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Add cross-compilation guess for
6333         native Windows.
6334         (gl_FUNC_FFLUSH): Update accordingly.
6335         * m4/fclose.m4 (gl_FUNC_FCLOSE): Likewise.
6336         * m4/fseeko.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
6338 2017-07-11  Bruno Haible  <bruno@clisp.org>
6340         More systematic m4 quoting and indentation.
6341         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Quote systematically.
6342         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
6343         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
6344         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
6345         * m4/host-os.m4 (gl_HOST_OS): Likewise.
6346         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H,
6347         gl_WINSIZE_IN_PTEM): Likewise.
6348         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Likewise.
6349         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
6350         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
6351         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Quote systematically.
6352         Correct indentation.
6353         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
6354         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
6355         * m4/jm-winsz2.m4 (gl_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Likewise.
6356         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
6357         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
6358         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
6360 2017-07-10  Bruno Haible  <bruno@clisp.org>
6362         round, roundf: Avoid compiler warning in configure test.
6363         * m4/round.m4 (gl_FUNC_ROUND): Use 'return' instead of exit().
6364         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
6366 2017-07-10  Bruno Haible  <bruno@clisp.org>
6368         getlogin tests: Avoid #ifdefs when sharing code between modules.
6369         * modules/getlogin_r-tests (Files): Add tests/test-getlogin.h.
6370         * modules/getlogin-tests (Files): Likewise. Remove
6371         tests/test-getlogin_r.c.
6372         * tests/test-getlogin.h: Extracted from tests/test-getlogin_r.c.
6373         * tests/test-getlogin.c: Extracted from tests/test-getlogin_r.c.
6374         * tests/test-getlogin_r.c: Include test-getlogin.h. Omit code that tests
6375         getlogin().
6377 2017-07-10  Paul Eggert  <eggert@cs.ucla.edu>
6379         getlogin: don’t assume one name per uid
6380         Problem reported by Wolfgang F. Muthmann (Bug#27640).
6381         * modules/getlogin-tests (Files): Add tests/test-getlogin_r.c.
6382         (ttyname): Remove test.
6383         * modules/getlogin_r-tests (ttyname): Remove test.
6384         * tests/test-getlogin.c: Replace this near-clone of test-getlogin_r.c
6385         with ‘#define TEST_LOGIN’ followed by ‘#include "test-getlogin_r.c"’.
6386         * tests/test-getlogin_r.c: If TEST_GETLOGIN is defined, test
6387         getlogin rather than getlogin_r.  This avoids code duplication.
6388         (main): Use isatty and fstat rather than ttyname and stat.
6389         Use getpwnam instead of getpwuid, to be portable to test platforms
6390         that have multiple login names for the same uid.
6392 2017-07-10  Tim Rühsen  <tim.ruehsen@gmx.de>
6393             Bruno Haible  <bruno@clisp.org>
6395         glob: Fix more memory leaks.
6396         * lib/glob.c (glob): Use 'goto out' in order to free dirname before
6397         returning.
6398         Reported by Tim Rühsen.
6400 2017-07-10  Bruno Haible  <bruno@clisp.org>
6402         Make sure $host and $host_os are defined when used.
6403         * m4/argz.m4 (gl_FUNC_ARGZ): Require AC_CANONICAL_HOST.
6404         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Likewise.
6405         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
6406         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
6407         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
6408         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
6409         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
6410         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
6411         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
6412         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
6413         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
6414         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
6415         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
6416         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST outside the
6417         m4_ifdef block.
6419 2017-07-09  Bruno Haible  <bruno@clisp.org>
6421         *printf: Fix cross-compilation guess for Solaris.
6422         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): Fix copy-and-paste mistake from
6423         2010-12-21.
6425 2017-07-07  Paul Eggert  <eggert@cs.ucla.edu>
6426             Bruno Haible  <bruno@clisp.org>
6428         vasnprintf: port to macOS 10.13
6429         Problem reported by comex in:
6430         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00056.html
6431         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on macOS.
6433 2017-07-06  Bruno Haible  <bruno@clisp.org>
6435         imaxdiv tests: Fix logic.
6436         * tests/test-imaxdiv.c (main): Use == instead of =.
6437         Reported by Coverity.
6439 2017-07-06  Bruno Haible  <bruno@clisp.org>
6441         uninorm/filter: Fix use-after-free bug.
6442         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Maintain
6443         sortbuf == filter->sortbuf invariant.
6444         Reported by Coverity.
6446 2017-07-06  Bruno Haible  <bruno@clisp.org>
6448         glob: Fix more memory leaks.
6449         * lib/glob.c (glob): Free dirname before returning.
6450         Reported by Coverity and Tim Rühsen.
6452 2017-07-06  Paul Eggert  <eggert@cs.ucla.edu>
6454         parse-datetime: fix uninit var bug
6455         Reported by Bruno Haible in:
6456         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00038.html
6457         * lib/parse-datetime.y (parse_datetime2): Do not use
6458         uninitialized.
6460 2017-07-05  Bruno Haible  <bruno@clisp.org>
6462         doc: Update for MSVC 14.
6463         * doc/posix-headers/*.texi: Add info about MSVC 14.
6464         * doc/posix-functions/*.texi: Likewise.
6465         * doc/pastposix-functions/*.texi: Likewise.
6466         * doc/glibc-headers/*.texi: Likewise.
6467         * doc/glibc-functions/*.texi: Likewise.
6469 2017-07-05  Bruno Haible  <bruno@clisp.org>
6471         sched: Fix build failure on native Windows (regression from 2017-06-19).
6472         * m4/sched_h.m4 (gl_SCHED_H): Set HAVE_STRUCT_SCHED_PARAM always.
6474 2017-07-03  John E. Malmberg  <wb8tyw@gmail.com>
6476         stdioext: Port to OpenVMS.
6477         * lib/stdio-impl.h: OpenVMS uses struct _iobuf for FILE information.
6478         * lib/fpending.c (fpending): Remove non-working VMS specific code.
6479         * lib/fbufmode.c (fbufmode): Fix _IOLBF test to use fp_ macro.
6480         * lib/fflush.c (clear_ungetc_buffer): Add OpenVMS to comments.
6481         * lib/fpurge.c (fpurge): Likewise.
6482         * lib/freadable.c (freadable): Likewise.
6483         * lib/freadahead.c (freadahead): Likewise.
6484         * lib/freading.c (freading): Likewise.
6485         * lib/freadptr.c (freadptr): Likewise.
6486         * lib/freadseek.c (freadseek): Likewise.
6487         * lib/fseeko.c (fseeko): Likewise.
6488         * lib/fseterr.c (fseterr): Likewise.
6489         * lib/fwritable.c (fwriteable): Likewise.
6490         * lib/fwriting.c (fwriting): Likewise.
6492 2017-07-01  Benno Schulenberg  <bensberg@telfort.nl>
6494         glob: Declare variables at the very start of their scope.
6495         * lib/glob.c (convert_dirent, convert_dirent64): Give each fragment
6496         its separate scope, so the functions will compile on Haiku.
6498 2017-07-01  Bruno Haible  <bruno@clisp.org>
6500         logbl: Work around a glibc bug on PowerPC64LE.
6501         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Test also negative subnormal
6502         numbers.
6503         * doc/posix-functions/logbl.texi: Update.
6505 2017-06-29  Bruno Haible  <bruno@clisp.org>
6507         stat, fstat: Compile stat-w32.c only on platforms that need it.
6508         Suggested by Paul Eggert.
6509         * modules/stat (configure.ac): Request stat-w32.o only on native
6510         Windows.
6511         * modules/fstat (configure.ac): Likewise.
6513 2017-06-25  Bruno Haible  <bruno@clisp.org>
6515         stat: Improve last change.
6516         * lib/stat-w32.c: Revert last change. Use generic idiom instead.
6518 2017-06-25  Paul Eggert  <eggert@cs.ucla.edu>
6520         stat: port to xlc 12.01
6521         * lib/stat-w32.c: Always include <sys/types.h>.  Otherwise, xlc
6522         12.01 complains "Compilation unit is empty."
6524 2017-06-24  Paul Eggert  <eggert@cs.ucla.edu>
6526         xalloc-oversized: port to icc
6527         * lib/xalloc-oversized.h (xalloc_oversized): Do not use
6528         __builtin_mul_overflow if ICC is defined, as this results in
6529         "undefined reference to `__builtin_mul_overflow'" with icc 17.0.2
6530         20170213.
6532 2017-06-19  Bruno Haible  <bruno@clisp.org>
6534         classpath: Avoid including config.h twice, as it produces warnings.
6535         Reported by John E. Malmberg <wb8tyw@gmail.com>.
6536         * lib/classpath.h: Conditionalize the include of config.h.
6538 2017-06-19  Bruno Haible  <bruno@clisp.org>
6539             John E. Malmberg  <wb8tyw@gmail.com>  (tiny change)
6541         sched: Fix compilation failure on OpenVMS.
6542         * m4/sched_h.m4 (gl_SCHED_H): Require AC_CANONICAL_HOST. On OpenVMS,
6543         test whether <pthread.h> exists and defines struct sched_param.
6544         * lib/sched.in.h: On OpenVMS, include <pthread.h>.
6546 2017-06-17  Paul Eggert  <eggert@cs.ucla.edu>
6548         diffseq: port to GCC 7 with --enable-gcc-warnings
6549         * lib/diffseq.h (diag): Use an if, not an ifdef, for most of the
6550         heuristic check.  This way, GCC 7 with --enable-gcc-warnings does
6551         not complain about big_snake being defined but not used.
6553 2017-06-15  Bruno Haible  <bruno@clisp.org>
6555         gettext-h: Update theoretical condition for use of variable size arrays.
6556         Reported by Paul Eggert.
6557         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Extend comment
6558         to include the theoretical condition for availability of variable size
6559         arrays, if we could trust the value of __STDC_VERSION__.
6561 2017-06-12  Bruno Haible  <bruno@clisp.org>
6563         Relicense some modules under LGPLv2+.
6564         Daiki Ueno's approval is in
6565         https://lists.gnu.org/r/bug-gnulib/2017-06/msg00058.html.
6566         * modules/uniwidth/base (License): Change to LGPLv2+.
6567         * modules/uniwidth/width (License): Likewise.
6569 2017-06-11  Bruno Haible  <bruno@clisp.org>
6571         localename: Fix test failure on DragonFly BSD.
6572         * lib/localename.c (gl_locale_name_thread_unsafe): Treat DragonFly BSD
6573         like FreeBSD.
6575 2017-06-11  Bruno Haible  <bruno@clisp.org>
6577         float: Fix 'float' and 'isinf' failures on DragonFly BSD.
6578         * m4/float_h.m4 (gl_FLOAT_H): Treat DragonFly BSD like FreeBSD.
6579         * lib/float.in.h: Likewise.
6580         * m4/fmal.m4, m4/frexpl.m4, m4/logbl.m4: Update accordingly.
6582 2017-06-11  Bruno Haible  <bruno@clisp.org>
6584         gnulib-tool: Clean up after autotools.
6585         * gnulib-tool (func_create_testdir, func_create_megatestdir): Remove
6586         useless directory left over by the Autotools.
6588 2017-06-11  Paul Eggert  <eggert@cs.ucla.edu>
6590         getopt-posix: port to glibc 2.25.90
6591         Problem reported by Daniel P. Berrange in:
6592         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00003.html
6593         * lib/getopt-pfx-core.h (_GETOPT_CORE_H):
6594         * lib/getopt-pfx-ext.h (_GETOPT_EXT_H):
6595         #undef if __GETOPT_PREFIX is defined.
6597 2017-06-11  Bruno Haible  <bruno@clisp.org>
6599         strtod-obsolete: Fix license.
6600         * modules/strtod-obsolete (License): Change to LGPL.
6602 2017-06-10  Jim Meyering  <meyering@fb.com>
6604         maint: update to work with GCC7's -Werror=implicit-fallthrough=
6605         * lib/savewd.c (FALLTHROUGH): Define.
6606         (savewd_save, savewd_restore): Use this, rather than a comment,
6607         whenever one switch case falls through into the next.
6609 2017-06-08  Bruno Haible  <bruno@clisp.org>
6611         host-cpu-c-abi: Support for aarch64 ILP32 ABI.
6612         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the aarch64 ILP32
6613         ABI. Set HOST_CPU_C_ABI=arm64-ilp32 and define __arm64_ilp32__ in this
6614         case.
6616 2017-06-08  Paul Eggert  <eggert@cs.ucla.edu>
6618         doc: remove robots, add prereqs
6619         * doc/build-automation.texi, doc/gnulib.texi: Mention prereqs for
6620         builds.  Simon's robot site does not seem to be up, so remove
6621         mentions of it for now.
6623 2017-06-08  Bruno Haible  <bruno@clisp.org>
6625         gnulib-tool: Fix bug in func_symlink_if_changed, from 2006-11-13.
6626         * gnulib-tool (func_symlink_target): New function, extracted from
6627         func_symlink.
6628         (func_symlink, func_symlink_if_changed): Use it.
6630 2017-06-08  Bruno Haible  <bruno@clisp.org>
6632         gnulib-tool: Fix bug in func_ln_s, from 2016-01-15.
6633         * gnulib-tool (func_ln_s): Determine cp_src correctly.
6635 2017-06-07  Bruno Haible  <bruno@clisp.org>
6637         canonicalize-lgpl: Avoid conflict with gnulib 'getcwd' module on VMS.
6638         Reported by John E. Malmberg <wb8tyw@gmail.com> in
6639         <https://lists.gnu.org/r/bug-gnulib/2017-06/msg00029.html>.
6640         * lib/canonicalize-lgpl.c (__getcwd): On VMS, when using gnulib's getcwd
6641         override, pass 2 arguments to getcwd, not 3.
6643 2017-06-04  Paul Eggert  <eggert@cs.ucla.edu>
6645         same-inode: port better to VMS 8.2 and later
6646         Problem reported by John E. Malmberg in:
6647         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00005.html
6648         * lib/same-inode.h (SAME_INODE) [__VMS && 80200000 <= __CRTL_VER]:
6649         Use the usual POSIX definition.
6650         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define _USE_STD_STAT.
6652 2017-06-01  Paul Eggert  <eggert@cs.ucla.edu>
6654         error: fix POSIX violation for va_end
6655         Problem reported by Bruno Haible in:
6656         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00001.html
6657         * lib/error.c (error_tail): Do not call va_end here.
6658         (error, error_at_line): Call it here instead.
6660 2017-05-28  Bruno Haible  <bruno@clisp.org>
6662         c-strtod: Make it usable in C++ mode.
6663         * lib/c-strtod.h: Add 'extern "C"' marker for C++.
6665 2017-05-25  Jim Meyering  <meyering@fb.com>
6667         quotearg: fix compilation failure due to FALLTHROUGH misuse
6668         * lib/quotearg.c (quotearg_buffer_restyled): Revert one FALLTHROUGH
6669         macro back to /* fall through */ comment.  The macro can apply only
6670         to a following case statement.  Reported by Assaf Gordon.
6672 2017-05-25  Paul Eggert  <eggert@cs.ucla.edu>
6674         intprops: port to recent icc
6675         Port to icc (ICC) 17.0.4 20170411, which defines __GNUC__ to be 5
6676         but does not support __builtin_add_overflow etc.
6677         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW) [__ICC]:
6678         Define to 0.
6680 2017-05-23  Karl Berry  <karl@freefriends.org>
6682         * config/srclist.txt (iconv.m4): sync broken, comment out
6683         until (hopefully) the next gettext release.
6685 2017-05-22  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
6687         Remove repeated words in comments.
6689 2017-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
6691         fallthrough: reinstate a FALLTHROUGH instance in quotearg
6692         quotearg.c: Reinstate this instance which is significant
6693         when the if branch is not taken.
6695 2017-05-21  Bruno Haible  <bruno@clisp.org>
6697         gnulib-tool: Add options to create hard links.
6698         * gnulib-tool (func_usage): Document options --hardlink,
6699         --local-hardlink, --more-hardlinks.
6700         (func_symlink): Renamed from func_ln.
6701         (func_symlink_if_changed): Renamed from func_ln_if_changed.
6702         (func_hardlink): New function.
6703         (copymode, lcopymode): New variables.
6704         (symbolic, lsymbolic): Remove variables.
6705         (Options): Implement options --hardlink, --local-hardlink,
6706         --more-hardlinks.
6707         (func_should_link): Renamed from func_should_symlink. Set copyaction.
6708         (func_add_file, func_update_file): Update invocation of
6709         func_should_link. Invoke func_hardlink when appropriate.
6710         (func_import): Update comments.
6711         (func_create_testdir): Update invocation of func_should_link. Invoke
6712         func_hardlink when appropriate.
6713         Finally, invoke 'git update-index --refresh' to mitigate the effects of
6714         the hard links on git.
6716 2017-05-20  Bruno Haible  <bruno@clisp.org>
6718         argp: Simplify bit manipulation.
6719         * lib/argp-parse.c (parser_parse_opt): Use &, |, ~ instead of shifts
6720         on a signed integer type.
6722 2017-05-20  Bruno Haible  <bruno@clisp.org>
6724         Avoid wrong configure results with gcc -fsanitize=address.
6725         This completes the work done on 2016-02-06 on this topic.
6726         * m4/memmem.m4 (gl_FUNC_MEMMEM): Free allocated memory before returning.
6727         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
6728         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
6729         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
6730         * m4/fopen.m4 (gl_FUNC_FOPEN): Close allocated FILE streams before
6731         returning.
6732         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
6733         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
6734         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
6735         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
6736         * m4/signbit.m4 (gl_FLOATTYPE_SIGN_LOCATION): Likewise.
6737         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
6738         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Close allocated FILE streams and
6739         free allocated memory before returning.
6740         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
6741         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Close allocated DIR
6742         objects before returning.
6743         * m4/iconv.m4 (AM_ICONV_LINK): Close allocated iconv_t handles before
6744         returning.
6746 2017-05-20  Bruno Haible  <bruno@clisp.org>
6748         gnulib-tool: Don't create hard links between gnulib and its testdirs.
6749         * gnulib-tool (func_create_testdir): Don't invoke 'ln'.
6751 2017-05-20  Bruno Haible  <bruno@clisp.org>
6753         argp, tsearch tests: Fix file list.
6754         * modules/argp-tests (Files): Add tests/macros.h.
6755         * modules/tsearch-tests (Files): Likewise.
6757 2017-05-20  Bruno Haible  <bruno@clisp.org>
6759         getopt-posix tests: Remove redundant include.
6760         * tests/test-getopt.h: Don't include "macros.h". It's already included
6761         by tests/test-getopt-main.h.
6763 2017-05-19  Jim Meyering  <meyering@fb.com>
6765         dfa: two small simplifications
6766         * lib/dfa.c (build_state): Avoid repeating longer expressions.
6768 2017-05-18  Jim Meyering  <meyering@fb.com>
6770         fallthrough: update for GCC 7/8
6771         * lib/quotearg.c (FALLTHROUGH): New macro.
6772         Use it whenever one switch case falls through into the next,
6773         replacing "/* Fall through */" comments.  This exposed one
6774         instance of an unwarranted "fall through" comment: unwarranted
6775         because it preceded a "goto" label not a case statement.
6776         * lib/freopen-safer.c (freopen_safer): Likewise.
6777         * lib/fts.c (leaf_optimization_applies): Likewise.
6778         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
6779         * tests/test-getopt_long.h (getopt_long_loop): Likewise.
6780         * tests/test-tsearch.c (mangle_tree): Likewise.  Also include
6781         tests/macros.h for the definition.
6782         * tests/test-argp.c (group1_parser): Likewise.
6783         * tests/test-getopt.h (getopt_loop): Likewise.
6785 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
6787         argp: fix shift bug
6788         * lib/argp-parse.c (parser_parse_opt): Rework to avoid undefined
6789         behavior on shift overflow, caught by gcc -fsanitize=undefined.
6791         argp: fix pointer-subtraction bug
6792         * lib/argp-help.c (hol_append): Don’t subtract pointers to
6793         different arrays, as this can run afoul of -fcheck-pointer-bounds.
6794         See the thread containing Bruno Haible’s report in:
6795         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00171.html
6797 2017-05-19  Bruno Haible  <bruno@clisp.org>
6799         printf-posix tests: Avoid test failure with "gcc --coverage".
6800         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
6801         * tests/test-printf-posix2.c (main): Test a width of 10000000 rather
6802         than 5000000.
6803         * tests/test-fprintf-posix2.c (main): Likewise.
6805 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
6807         closeout: don’t close stderr when sanitizing
6808         * NEWS: Document this.
6809         * lib/closeout.c (__has_feature): New macro, if not already defined.
6810         (SANITIZE_ADDRESS): New constant.
6811         (close_stdout): Don’t close stderr if sanitizing addresses.
6813 2017-05-19  Bruno Haible  <bruno@clisp.org>
6815         get-rusage-data tests: Avoid failure on Linux/glibc.
6816         * tests/test-get-rusage-data.c (main): Don't expect a strict increase
6817         on glibc systems.
6819 2017-05-18  Bruno Haible  <bruno@clisp.org>
6821         localename: Include necessary header files on Cygwin.
6822         * lib/localename.c [__CYGWIN__]: Include <langinfo.h>, since this is
6823         where NL_LOCALE_NAME is defined.
6825 2017-05-18  Bruno Haible  <bruno@clisp.org>
6827         gettext: Update macros from gettext git.
6828         * m4/intldir.m4: Require Autoconf >= 2.60.
6829         * m4/progtest.m4: Fix typos in copyright notice.
6831 2017-05-18  Bruno Haible  <bruno@clisp.org>
6833         copy-file tests: Fix link error (regression from 2017-05-01).
6834         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6835         * modules/copy-file-tests (Makefile.am): Link test-copy-file with
6836         $(LIB_CLOCK_GETTIME).
6838 2017-05-18  Bruno Haible  <bruno@clisp.org>
6840         unicase/special-casing: Fix incompatibility with gperf-3.0.4
6841         (regression from 2017-02-13).
6842         * lib/unicase/special-casing.in.h: Renamed from
6843         lib/unicase/special-casing.h.
6844         * modules/unicase/special-casing (Files): Add
6845         lib/unicase/special-casing.in.h. Remove lib/unicase/special-casing.h.
6846         (Makefile.am): Add rule for generating unicase/special-casing.h.
6847         Update BUILT_SOURCES and MOSTLYCLEANFILES accordingly.
6848         * lib/unicase/special-casing.c: Include "unicase/special-casing.h",
6849         not "special-casing.h".
6850         * lib/unicase/u*.c: Likewise.
6852 2017-05-17  Bruno Haible  <bruno@clisp.org>
6854         README: Don't ask people to read a TeXinfo file.
6855         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
6856         * README: Tell people how to read the HTML formatted manual.
6858 2017-05-16  Tim Rühsen  <tim.ruehsen@gmx.de>
6860         parse-datetime: Fix memleak
6861         * lib/parse-datetime.y (parse_datetime2): Cleanup on
6862         localtime_rz() failure.
6864 2017-05-16  Bruno Haible  <bruno@clisp.org>
6866         javacomp: Fix handle leak.
6867         Found by Coverity.
6868         * lib/javacomp.c (get_classfile_version): Close fd before returning.
6870 2017-05-16  Bruno Haible  <bruno@clisp.org>
6872         relocate: Make it easier to reclaim allocated memory.
6873         * lib/relocatable.h (relocate2): New declaration/macro.
6874         * lib/relocatable.c (relocate2): New function.
6875         * doc/relocatable-maint.texi (Supporting Relocation): Mention the
6876         relocate2 function.
6877         * lib/localcharset.c (relocate2): Define fallback.
6878         (get_charset_aliases): Invoke relocate2 instead of relocate. Free the
6879         allocated memory.
6880         * lib/javaversion.c (relocate2): Define fallback.
6881         (javaexec_version): Invoke relocate2 instead of relocate. Free the
6882         allocated memory.
6884 2017-05-16  Bruno Haible  <bruno@clisp.org>
6886         relocate: Simplify EMX specific code.
6887         * lib/relocatable.c (relocate): Assume pathname is non-NULL. Use
6888         ISSLASH macro consistently. Avoid dangerous string concatenation idiom.
6890 2017-05-16  Bruno Haible  <bruno@clisp.org>
6892         sigpipe tests: Fix file list.
6893         * modules/sigpipe-tests (Files): Add tests/macros.h.
6895 2017-05-16  Paul Eggert  <eggert@cs.ucla.edu>
6897         manywarnings: update for GCC 7
6898         * build-aux/gcc-warning.spec:
6899         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
6900         Add GCC 7 warnings, notably -Wimplicit-fallthrough=5, which
6901         requires a non-comment fallthrough attribute.  This is a bit
6902         cleaner than the comment versions.
6903         * lib/strftime.c, lib/dfa.c, lib/fnmatch.c, lib/mbrtowc.c:
6904         * lib/vasnprintf.c, tests/macros.h (FALLTHROUGH): New macro.
6905         Use it whenever one switch case falls through into the next.
6906         * lib/fnmatch_loop.c, tests/test-mbrtowc.c, tests/test-sigpipe.c:
6907         Use FALLTHROUGH macro.
6909 2017-05-15  Bruno Haible  <bruno@clisp.org>
6911         gnulib-tool: Fix generated code when libtests contains module 'alloca'.
6912         * gnulib-tool (func_emit_tests_Makefile_am): For libtests.a, use
6913         @ALLOCA@, not @LTALLOCA@.
6915 2017-05-15  Bruno Haible  <bruno@clisp.org>
6917         sys_select: Avoid "was expanded before it was required" warning.
6918         * modules/sys_select (configure.ac): Require, not invoke,
6919         gl_HEADER_SYS_SELECT.
6921 2017-05-14  Paul Eggert  <eggert@cs.ucla.edu>
6923         gnulib-tool: improve GNU Make debugging
6924         * gnulib-tool (func_emit_lib_Makefile_am): Omit unnecessary echo.
6925         Report autoconf diagnostics when it fails, in the output makefile.
6927 2017-05-14  Bruno Haible  <bruno@clisp.org>
6929         stat-time tests: Improve comment.
6930         * tests/test-stat-time.c: Add hyperlink, from Paul Eggert.
6932 2017-05-14  Bruno Haible  <bruno@clisp.org>
6934         same-inode: Adapt for windows-stat-inodes.
6935         * lib/same-inode.h: Include <sys/types.h>.
6936         (SAME_INODE) [_GL_WINDOWS_STAT_INODES]: Define specifically.
6937         * modules/same-inode (Depends-on): Add sys_types.
6939 2017-05-14  Bruno Haible  <bruno@clisp.org>
6941         windows-stat-inodes: New module.
6942         * m4/windows-stat-inodes.m4: New file.
6943         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_STAT_INODES.
6944         * modules/sys_types (Makefile.am): Substitute WINDOWS_STAT_INODES.
6945         * lib/sys_types.in.h [WINDOWS_STAT_INODES]: Override dev_t and ino_t.
6946         (_GL_WINDOWS_STAT_INODES): New macro.
6947         * lib/stat-w32.c: Set _WIN32_WINNT. Include <string.h>, verify.h.
6948         (GetFileInformationByHandleExFunc): New variable.
6949         (initialize): Initialize it.
6950         (_gl_fstat_by_handle) [_GL_WINDOWS_STAT_INODES]: Initialize st_dev and
6951         st_ino appropriately.
6952         * lib/stat.c (rpl_stat): Use the directory entry based approach only as
6953         a fallback, because it does not provide st_dev and st_ino values.
6954         * modules/fstat (Depends-on): Add 'verify'.
6955         * modules/windows-stat-inodes: New file.
6956         * doc/windows-stat-inodes.texi: New file.
6957         * doc/gnulib.texi: Include it.
6958         * doc/posix-headers/sys_stat.texi: Mention the new module.
6960 2017-05-14  Bruno Haible  <bruno@clisp.org>
6962         stat-time tests: Workaround for native Windows.
6963         * tests/test-stat-time.c: Include <stdio.h>, <time.h>.
6964         (filename_stamp1, filename_testfile, filename_stamp2, filename_stamp3):
6965         New variables.
6966         (initialize_filenames): New function.
6967         (main): Invoke it.
6968         (cleanup, prepare_test): Update.
6970 2017-05-14  Bruno Haible  <bruno@clisp.org>
6972         stat-time: Adapt for windows-stat-timespec.
6973         * lib/stat-time.h (get_stat_birthtime) [_GL_WINDOWS_STAT_TIMESPEC]: Use
6974         entire st_ctim field.
6976 2017-05-13  Jim Meyering  <meyering@fb.com>
6978         maint.mk: update regex to reflect 2013 addition of "assume" to verify.h
6979         * top/maint.mk (sc_prohibit_verify_without_use): Don't reject a source
6980         file that uses the assume macro, claiming that verify.h is unused.
6982 2017-05-13  Bruno Haible  <bruno@clisp.org>
6984         Use symbolic values for _WIN32_WINNT.
6985         * lib/ftruncate.c (_WIN32_WINNT): Use symbolic value _WIN32_WINNT_WIN2K.
6986         * lib/sethostname.c (_WIN32_WINNT): Likewise.
6988 2017-05-13  Bruno Haible  <bruno@clisp.org>
6990         year2038: New module.
6991         * m4/year2038.m4: New file.
6992         * modules/year2038: New file.
6993         * doc/year2038.texi: New file.
6994         * doc/gnulib.texi: Include it.
6996 2017-05-13  Bruno Haible  <bruno@clisp.org>
6998         largefile: Simplify.
6999         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Remove unused definition
7000         of _GL_WINDOWS_64_BIT_ST_SIZE.
7002 2017-05-13  Bruno Haible  <bruno@clisp.org>
7004         largefile: Improve and document.
7005         * m4/largefile.m4 (gl_LARGEFILE): Set WINDOWS_64_BIT_ST_SIZE to 0 if
7006         the mingw headers already define 'stat' appropriately.
7007         * modules/largefile (Description): Clarify.
7008         * doc/largefile.texi: New file.
7009         * doc/gnulib.texi: Include it.
7010         * doc/posix-headers/sys_types.texi: Update.
7012 2017-05-13  Bruno Haible  <bruno@clisp.org>
7014         truncate: New module.
7015         * lib/unistd.in.h (truncate): New declaration.
7016         * lib/truncate.c: New file.
7017         * m4/truncate.m4: New file.
7018         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'truncate' is declared.
7019         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TRUNCATE, HAVE_TRUNCATE,
7020         REPLACE_TRUNCATE.
7021         * modules/unistd (Makefile.am): Substitute GNULIB_TRUNCATE,
7022         HAVE_TRUNCATE, REPLACE_TRUNCATE.
7023         * modules/truncate: New file.
7024         * tests/test-unistd-c++.cc (truncate): Test signature.
7025         * doc/posix-functions/truncate.texi: Mention the new module.
7027         * tests/test-truncate.c: New file.
7028         * modules/truncate-tests: New file.
7030 2017-05-13  Bruno Haible  <bruno@clisp.org>
7032         windows-stat-timespec: New module.
7033         * modules/windows-stat-timespec: New file.
7034         * m4/windows-stat-timespec.m4: New file.
7035         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_STAT_TIMESPEC.
7036         * modules/sys_stat (Makefile.am): Substitute WINDOWS_STAT_TIMESPEC.
7037         * lib/sys_stat.in.h (struct stat) [WINDOWS_STAT_TIMESPEC]: Declare with
7038         fields st_atim, st_mtim, st_ctim.
7039         (st_atime, st_mtime, st_ctime): Define as macros.
7040         (_GL_WINDOWS_STAT_TIMESPEC): New macro.
7041         * lib/stat-w32.h (_gl_convert_FILETIME_to_timespec)
7042         [_GL_WINDOWS_STAT_TIMESPEC]: New declaration.
7043         * lib/stat-w32.c (_gl_convert_FILETIME_to_timespec)
7044         [_GL_WINDOWS_STAT_TIMESPEC]: New function.
7045         (_gl_convert_FILETIME_to_POSIX): Adjust coding style.
7046         (_gl_fstat_by_handle): If _GL_WINDOWS_STAT_TIMESPEC, convert the
7047         FILETIME to 'struct timespec', not 'time_t'.
7048         * lib/stat.c (rpl_stat): If _GL_WINDOWS_STAT_TIMESPEC, convert the
7049         FILETIME to 'struct timespec', not 'time_t'.
7050         * lib/stat-time.h (STAT_TIMESPEC): Define also if
7051         _GL_WINDOWS_STAT_TIMESPEC.
7052         * doc/windows-stat-timespec.texi: New file.
7053         * doc/gnulib.texi: Include it.
7055 2017-05-13  Bruno Haible  <bruno@clisp.org>
7057         windows-stat-override: New module.
7058         * lib/sys_stat.in.h (stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provide own
7059         definition. Define GNULIB_defined_struct_stat.
7060         (fstat, fstatat, lstat, stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provoke
7061         link error if this symbol is used and the corresponding module is not
7062         in use.
7063         (_stat64, _stat32i64, _stati64, _stat32, _stat64i32): Don't redefine if
7064         GNULIB_OVERRIDES_STRUCT_STAT.
7065         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
7066         GNULIB_OVERRIDES_STRUCT_STAT.
7067         * modules/sys_stat (Makefile.am): Substitute
7068         GNULIB_OVERRIDES_STRUCT_STAT.
7069         * modules/windows-stat-override: New file.
7071 2017-05-13  Bruno Haible  <bruno@clisp.org>
7073         fstat: Fix module dependency conditions.
7074         * modules/fstat (Depends-on): Fix typo.
7076 2017-05-13  Bruno Haible  <bruno@clisp.org>
7078         stat, fstat: Complete removal of old native Windows code.
7079         * lib/stat.c: Remove old macrology for WINDOWS_NATIVE.
7080         * lib/fstat.c: Likewise.
7081         * lib/stat-w32.c: Likewise.
7083 2017-05-13  Bruno Haible  <bruno@clisp.org>
7085         stat: Complete removal of REPLACE_FUNC_STAT_DIR code.
7086         * lib/stat.c: Remove all REPLACE_FUNC_STAT_DIR code.
7088 2017-05-11  Paul Eggert  <eggert@cs.ucla.edu>
7090         getopt-posix: port to mingw
7091         * lib/getopt.c (flockfile, funlockfile): Define on mingw.
7092         Problem reported by Daniel P. Berrage in:
7093         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00086.html
7095 2017-05-11  Bruno Haible  <bruno@clisp.org>
7097         gettimeofday: Increase precision on mingw.
7098         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Require AC_CANONICAL_HOST.
7099         Set REPLACE_GETTIMEOFDAY to 1 on mingw.
7100         * lib/gettimeofday.c (gettimeofday): On native Windows, use the
7101         GetSystemTimePreciseAsFileTime based implementation always.
7102         * doc/posix-functions/gettimeofday.texi: Mention precision problem on
7103         mingw.
7105 2017-05-11  Bruno Haible  <bruno@clisp.org>
7107         poll: Fix confusion between SOCKETs and FDs on native Windows.
7108         Fix proposed by Daniel P. Berrange <berrange@redhat.com>.
7109         * lib/poll.c [WINDOWS_NATIVE]: Undefine select.
7111 2017-05-11  Bruno Haible  <bruno@clisp.org>
7113         doc: Clarify doc about socket functions on native Windows.
7114         This reworks doc that was added on 2008-09-29.
7115         * doc/posix-functions/select.texi: Fix copy-and-paste mistake and use
7116         clearer wording.
7117         * doc/posix-functions/accept.texi: Use clearer wording.
7118         * doc/posix-functions/bind.texi: Likewise.
7119         * doc/posix-functions/connect.texi: Likewise.
7120         * doc/posix-functions/getpeername.texi: Likewise.
7121         * doc/posix-functions/getsockname.texi: Likewise.
7122         * doc/posix-functions/getsockopt.texi: Likewise.
7123         * doc/posix-functions/ioctl.texi: Likewise.
7124         * doc/posix-functions/listen.texi: Likewise.
7125         * doc/posix-functions/recv.texi: Likewise.
7126         * doc/posix-functions/recvfrom.texi: Likewise.
7127         * doc/posix-functions/send.texi: Likewise.
7128         * doc/posix-functions/sendto.texi: Likewise.
7129         * doc/posix-functions/setsockopt.texi: Likewise.
7130         * doc/posix-functions/shutdown.texi: Likewise.
7131         * doc/posix-functions/socket.texi: Likewise.
7133 2017-05-10  Bruno Haible  <bruno@clisp.org>
7135         poll: Fix link error on native Windows.
7136         * lib/poll.c [WINDOWS_NATIVE]: Undefine recv.
7138 2017-05-10  Bruno Haible  <bruno@clisp.org>
7140         time: Fix missing initialization of HAVE_TIMEZONE_T.
7141         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEZONE_T
7142         here...
7143         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): ... not here.
7144         * m4/time_rz.m4 (gl_TIME_RZ): Require gl_HEADER_TIME_H_DEFAULTS, not
7145         gl_HEADER_SYS_TIME_H_DEFAULTS.
7146         * modules/time_rz (Depends-on): Add 'time'. Remove useless quoting.
7147         (configure.ac): Remove useless quoting.
7149 2017-05-10  Bruno Haible  <bruno@clisp.org>
7151         Implement a way to opt out from MSVC support, part 2.
7152         * modules/msvc-inval (Include): Document recommended idiom.
7153         * modules/msvc-nothrow (Include): Likewise.
7155         Implement a way to opt out from MSVC support.
7156         This is useful for Emacs.
7157         * modules/msvc-nothrow (configure.ac): Invoke gl_MODULE_INDICATOR.
7158         * lib/accept4.c: Include <io.h> as an alternative to msvc-nothrow.h.
7159         * lib/error.c: Likewise.
7160         * lib/fcntl.c: Likewise.
7161         * lib/flock.c: Likewise.
7162         * lib/fstat.c: Likewise.
7163         * lib/fsync.c: Likewise.
7164         * lib/ioctl.c: Likewise.
7165         * lib/isapipe.c: Likewise.
7166         * lib/lseek.c: Likewise.
7167         * lib/nonblocking.c: Likewise.
7168         * lib/poll.c: Likewise.
7169         * lib/select.c: Likewise.
7170         * lib/sockets.h: Likewise.
7171         * lib/sockets.c: Likewise.
7172         * lib/stdio-read.c: Likewise.
7173         * lib/stdio-write.c: Likewise.
7174         * lib/utimens.c: Likewise.
7175         * lib/w32sock.h: Likewise.
7176         * lib/w32spawn.h: Likewise.
7177         * tests/test-cloexec.c: Likewise.
7178         * tests/test-dup-safer.c: Likewise.
7179         * tests/test-dup2.c: Likewise.
7180         * tests/test-dup3.c: Likewise.
7181         * tests/test-fcntl.c: Likewise.
7182         * tests/test-pipe.c: Likewise.
7183         * tests/test-pipe2.c: Likewise.
7184         * lib/ftruncate.c: Likewise.
7185         (chsize_nothrow): Renamed from chsize.
7186         * lib/msvc-nothrow.c: Don't include msvc-inval.h if
7187         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
7188         * lib/close.c: Likewise.
7189         * lib/dup.c: Likewise.
7190         * lib/fclose.c: Likewise.
7191         * lib/raise.c: Likewise.
7192         * tests/test-fgetc.c: Likewise.
7193         * tests/test-fputc.c: Likewise.
7194         * tests/test-fread.c: Likewise.
7195         * tests/test-fwrite.c: Likewise.
7196         * lib/getdtablesize.c: Likewise.
7197         (_setmaxstdio_nothrow): Renamed from _setmaxstdio.
7198         * lib/isatty.c: Don't include msvc-inval.h if
7199         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
7200         Include <io.h> as an alternative to msvc-nothrow.h.
7201         * lib/read.c: Likewise.
7202         * lib/write.c: Likewise.
7203         * lib/dup2.c: Likewise.
7204         (dup2_nothrow): New function.
7205         (ms_windows_dup2): Use it.
7206         * m4/close.m4 (gl_FUNC_CLOSE): Invoke gl_MSVC_INVAL and test
7207         HAVE_MSVC_INVALID_PARAMETER_HANDLER only if gl_MSVC_INVAL is defined.
7208         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
7209         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
7210         * m4/raise.m4 (gl_FUNC_RAISE): Likewise.
7211         * m4/read.m4 (gl_FUNC_READ): Likewise.
7212         * m4/write.m4 (gl_FUNC_WRITE): Likewise.
7213         * doc/windows-without-msvc.texi: New file.
7214         * doc/gnulib.texi (Native Windows Support without MSVC Support): New
7215         section.
7217 2017-05-10  Bruno Haible  <bruno@clisp.org>
7219         wait-process: Adjust native Windows support.
7220         * lib/wait-process.c: Use the usual condition for recognizing a native
7221         Windows platform.
7223 2017-05-10  Bruno Haible  <bruno@clisp.org>
7225         doc: New chapter "Native Windows Support".
7226         * doc/gnulib.texi (Native Windows Support): New chapter.
7227         * doc/windows-libtool.texi: Small wording changes.
7228         * doc/windows-sockets.texi: Small wording and formatting changes.
7230 2017-05-10  Bruno Haible  <bruno@clisp.org>
7232         doc: Move section "Library version handling".
7233         * doc/gnulib.texi: Move section "Library version handling"
7234         from chapter "Miscellaneous Notes" to chapter "Particular Modules".
7236 2017-05-10  Bruno Haible  <bruno@clisp.org>
7238         doc: Move section "Running self-tests under valgrind".
7239         * doc/gnulib.texi: Move section "Running self-tests under valgrind"
7240         from chapter "Particular Modules" to chapter "Miscellaneous Notes".
7242 2017-05-10  Bruno Haible  <bruno@clisp.org>
7244         doc: New chapter "Build Infrastructure Modules".
7245         * doc/gnulib.texi (Build Infrastructure Modules): New chapter.
7247 2017-05-10  Bruno Haible  <bruno@clisp.org>
7249         Prepare for reordering sections in the manual.
7250         * doc/gnulib.texi: Move several sections to separate files. Include
7251         these files.
7252         * doc/out-of-memory.texi: New file, extracted from doc/gnulib.texi.
7253         * doc/obsolete.texi: Likewise.
7254         * doc/extra-tests.texi: Likewise.
7255         * doc/transversal.texi: Likewise.
7256         * doc/namespace.texi: Likewise.
7257         * doc/check-version.texi: Likewise.
7258         * doc/windows-sockets.texi: Likewise.
7259         * doc/windows-libtool.texi: Likewise.
7260         * doc/licenses-texi.texi: Likewise.
7261         * doc/build-automation.texi: Likewise.
7262         * doc/c-locale.texi: Likewise.
7264 2017-05-10  Bruno Haible  <bruno@clisp.org>
7266         Fix instructions how to update manual on www.gnu.org.
7267         * doc/README: Add -I option, so that texi2dvi finds texinfo.tex.
7269 2017-05-09  Bruno Haible  <bruno@clisp.org>
7271         tzset: Expand comment about TZ problem on native Windows.
7272         * lib/tzset.c (tzset): Elaborate comment, based on explanations by
7273         Paul Eggert.
7274         * lib/ctime.c (rpl_ctime): Likewise.
7275         * lib/localtime.c (rpl_localtime): Likewise.
7276         * lib/mktime.c (mktime): Likewise.
7277         * lib/strftime-fixes.c (rpl_strftime): Likewise.
7278         * lib/wcsftime.c (rpl_wcsftime): Likewise.
7280 2017-05-08  Paul Eggert  <eggert@cs.ucla.edu>
7282         intprops: don’t depend on ‘verify’
7283         Problem reported by Ævar Arnfjörð Bjarmason in:
7284         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00054.html
7285         * lib/intprops.h: Do not include verify.h, and move compile-time
7286         checks from here ...
7287         * tests/test-intprops.c (main): ... to here, if they’re not here
7288         already.  Check widths of other standard integer types.
7289         * modules/intprops (Depends-on): Remove ‘verify’.
7291 2017-05-07  Bruno Haible  <bruno@clisp.org>
7293         utimens: On native Windows, support 100ns resolution also if fd < 0.
7294         * lib/utime.in.h: Include <time.h>.
7295         (_gl_utimens_windows): New declaration.
7296         * lib/utime.c (_gl_utimens_windows): New function, based on utime.
7297         (utime): Invoke it.
7298         * lib/utimens.c (fdutimens): On native Windows, call _gl_utimens_windows
7299         instead of utime.
7300         * modules/utime (Depends-on): Add 'time'.
7302 2017-05-07  Bruno Haible  <bruno@clisp.org>
7304         utimens: Improve error code on native Windows.
7305         * lib/utimens.c (fdutimens): If fd was not opened with O_RDWR, fail with
7306         error code EACCES, not EINVAL.
7308 2017-05-07  Bruno Haible  <bruno@clisp.org>
7310         utime: Handle more Windows error codes.
7311         * lib/utime.c (utime): Handle ERROR_BAD_NETPATH.
7312         Based on explanations by Billy O'Neal.
7314 2017-05-05  Bruno Haible  <bruno@clisp.org>
7316         crypto/rijndael: Fix "strict-aliasing rules" warnings, alignment issues.
7317         * lib/rijndael-api-fst.c (rijndaelBlockEncrypt): Declare 'block' as a
7318         union.
7319         (rijndaelPadEncrypt, rijndaelBlockDecrypt): Likewise.
7320         (rijndaelPadDecrypt): Likewise. Use local variable 'iv' to cache the
7321         value of cipher->IV.
7323 2017-05-05  Bruno Haible  <bruno@clisp.org>
7325         wctype-h-c++-tests: Update.
7326         * tests/test-wctype-h-c++.cc: Reorder to match lib/wchar.in.h.
7328 2017-05-05  Bruno Haible  <bruno@clisp.org>
7330         wchar-c++-tests: Update.
7331         * tests/test-wchar-c++.cc (wcsftime): Declare, missing since 2017-04-30.
7333 2017-05-05  Bruno Haible  <bruno@clisp.org>
7335         utime-h-c++-tests: New module.
7336         * tests/test-utime-h-c++.cc: New file.
7337         (utime): Declare, missing since 2017-04-30.
7338         * modules/utime-h-c++-tests: New file.
7340 2017-05-05  Bruno Haible  <bruno@clisp.org>
7342         unistd-c++-tests: Update.
7343         * tests/test-unistd-c++.cc (isatty): Declare, missing since 2012-01-03.
7344         (read): Declare, missing since 2011-04-15.
7345         (sethostname): Declare, missing since 2011-12-03.
7347 2017-05-05  Bruno Haible  <bruno@clisp.org>
7349         time-c++-tests: Update.
7350         * tests/test-time-c++.cc (tzset): Declare, missing since 2017-05-01.
7351         (localtime, gmtime): Declare, missing since 2017-04-30.
7352         (ctime): Declare, missing since 2017-04-30.
7353         (strftime): Declare, missing since 2017-04-30.
7354         (tzalloc, tzfree, localtime_rz, mktime_z): Declare, missing since
7355         2015-07-24.
7357 2017-05-05  Bruno Haible  <bruno@clisp.org>
7359         sys_resource-c++-tests: New module.
7360         * tests/test-sys_resource-c++.cc: New file.
7361         (getrusage): Declare, missing since 2012-04-13.
7362         * modules/sys_resource-c++-tests: New file.
7364 2017-05-05  Bruno Haible  <bruno@clisp.org>
7366         strings-c++-tests: New module.
7367         * tests/test-strings-c++.cc: New file.
7368         (ffs): Declare, missing since 2011-07-12.
7369         * modules/strings-c++-tests: New file.
7371 2017-05-05  Bruno Haible  <bruno@clisp.org>
7373         string-c++-tests: Update.
7374         * tests/test-string-c++.cc (ffsl): Declare, missing since 2011-07-15.
7375         (ffsll): Declare, missing since 2011-07-15.
7377 2017-05-05  Bruno Haible  <bruno@clisp.org>
7379         stdlib-c++-tests: Update.
7380         * tests/test-stdlib-c++.cc (posix_openpt): Declare, missing since
7381         2011-10-18.
7382         (ptsname_r): Declare, missing since 2011-11-07.
7383         (qsort_r): Declare, missing since 2014-08-29.
7384         (random, srandom, initstate, setstate): Declare, missing since
7385         2012-01-14.
7386         (secure_getenv): Declare, missing since 2013-02-05.
7388 2017-05-05  Bruno Haible  <bruno@clisp.org>
7390         stdio-c++-tests: Update.
7391         * tests/test-stdio-c++.cc (pclose): Declare, missing since 2011-09-18.
7393 2017-05-05  Bruno Haible  <bruno@clisp.org>
7395         signal-h-c++-tests: Update.
7396         * tests/test-signal-h-c++.cc (raise): Remove redundant declaration.
7398 2017-05-05  Bruno Haible  <bruno@clisp.org>
7400         math-c++-tests: Update.
7401         * tests/test-math-c++.cc (fmaf): Declare, missing since 2011-10-17.
7402         (fma): Declare, missing since 2011-10-17.
7403         (fmal): Declare, missing since 2011-10-17.
7405 2017-05-05  Bruno Haible  <bruno@clisp.org>
7407         locale-c++-tests: Update.
7408         * tests/test-locale-c++.cc (localeconv): Declare, missing since
7409         2012-03-25.
7411 2017-05-05  Bruno Haible  <bruno@clisp.org>
7413         inttypes-c++-tests: New module.
7414         * tests/test-inttypes-c++.cc: New file.
7415         (strtoimax): Declare, missing since 2012-01-05.
7416         (strtoumax): Declare, missing since 2012-01-05.
7417         * modules/inttypes-c++-tests: New file.
7419 2017-05-05  Bruno Haible  <bruno@clisp.org>
7421         dirent-c++-tests: Update.
7422         * tests/test-dirent-c++.cc (readdir): Declare, missing since 2011-09-13.
7423         (rewinddir): Declare, missing since 2011-09-13.
7424         (dirfd): Declare, missing since 2010-03-08.
7426 2017-05-04  Bruno Haible  <bruno@clisp.org>
7428         argp: Fix mistake in 2017-04-23 commit.
7429         * lib/argp-help.c (__argp_failure): If GNULIB_STRERROR_R_POSIX is set,
7430         assume that strerror_r returns 'int', not 'char *'.
7432 2017-05-04  Reuben Thomas  <rrt@sc3d.org>
7434         argp: Fix typo.
7435         * lib/argp-help.c (argp_doc): Fix spelling mistake in comment.
7437 2017-05-02  Paul Eggert  <eggert@cs.ucla.edu>
7439         utimens: port to Emacs + MS-Windows
7440         Skip the new MS-Windows-specific code if Emacs.
7441         * lib/utimens.c [EMACS_CONFIGUATION]:
7442         Avoid new MS-Windows-specific code.
7443         (USE_SETFILETIME): New macro.
7444         (fdutimens): Use it.
7446 2017-05-01  Paul Eggert  <eggert@cs.ucla.edu>
7448         tzset: update doc for TZ problems on MS-Windows
7449         * doc/posix-functions/ctime.texi,  doc/posix-functions/daylight.texi:
7450         * doc/posix-functions/localtime.texi, doc/posix-functions/mktime.texi:
7451         * doc/posix-functions/strftime.texi, doc/posix-functions/timezone.texi:
7452         * doc/posix-functions/tzname.texi, doc/posix-functions/tzset.texi:
7453         * doc/posix-functions/wcsftime.texi:
7454         Mention some issues with TZ under MS-Windows.
7456 2017-05-01  Bruno Haible  <bruno@clisp.org>
7458         copy-file: Fix build error on mingw.
7459         * modules/copy-file (Depends-on): Add 'close'.
7461 2017-05-01  Bruno Haible  <bruno@clisp.org>
7463         tzset: Work around TZ problem on native Windows.
7464         * m4/tzset.m4 (gl_FUNC_TZSET): Require AC_CANONICAL_HOST. On native
7465         Windows, set REPLACE_TZSET to 1.
7466         * lib/tzset.c (tzset): On native Windows, fix TZ if necessary, and
7467         invoke '_tzset' instead of 'tzset'.
7468         * doc/posix-functions/tzset.texi: Mention the native Windows workaround.
7470         * modules/time_rz (Depends-on): Add tzset.
7471         * lib/time_rz.c (tzset): Remove fallback definition.
7472         * m4/time_rz.m4 (gl_TIME_RZ): Don't test for tzset.
7474 2017-05-01  Bruno Haible  <bruno@clisp.org>
7476         mktime: Fix dependencies.
7477         * modules/mktime (Depends-on): Add 'time'.
7479 2017-05-01  Bruno Haible  <bruno@clisp.org>
7481         New module 'localtime-buffer', split off from module 'gettimeofday'.
7482         * lib/localtime-buffer.h: New file.
7483         * lib/localtime-buffer.c: New file, extracted from lib/gettimeofday.c.
7484         * lib/time.in.h (tzset): New declaration.
7485         (localtime, gmtime): Don't test GNULIB_GETTIMEOFDAY.
7486         * lib/tzset.c: New file, extracted from lib/gettimeofday.c.
7487         * lib/gettimeofday.c: Include localtime-buffer.h. Remove code that was
7488         moved to lib/localtime-buffer.c or lib/tzset.c.
7489         * m4/localtime-buffer.m4: New file.
7490         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TZSET,
7491         HAVE_TZSET, REPLACE_TZSET.
7492         * m4/tzset.m4 (gl_FUNC_TZSET): Move code from m4/gettimeofday.m4 to
7493         here, with modifications. Set HAVE_TZSET, REPLACE_TZSET. Invoke
7494         gl_LOCALTIME_BUFFER_NEEDED.
7495         (gl_FUNC_TZSET_CLOBBER): Don't require gl_HEADER_SYS_TIME_H; not needed
7496         since 2007-01-18.
7497         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Remove code that deals with
7498         tzset.
7499         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require gl_LOCALTIME_BUFFER_DEFAULTS.
7500         Invoke gl_LOCALTIME_BUFFER_NEEDED instead of
7501         gl_GETTIMEOFDAY_REPLACE_LOCALTIME.
7502         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Remove macro.
7503         * modules/localtime-buffer: New file.
7504         * modules/time (Depends-on): Remove 'gettimeofday'.
7505         (Makefile.am): Substitute GNULIB_TZSET, HAVE_TZSET,
7506         REPLACE_TZSET. Don't substitute GNULIB_GETTIMEOFDAY.
7507         * modules/tzset (Description): Enable hyperlink to POSIX spec.
7508         (Files): Add lib/tzset.c.
7509         (Depends-on): Remove gettimeofday. Add localtime-buffer, time.
7510         (configure.ac): Arrange to conditionally compile lib/tzset.c. Invoke
7511         gl_TIME_MODULE_INDICATOR.
7512         * modules/gettimeofday (Depends-on): Add localtime-buffer.
7514 2017-05-01  Bruno Haible  <bruno@clisp.org>
7516         copy-file: Preserve sub-second time stamps.
7517         * lib/copy-file.c: Include stat-time.h, utimens.h instead of <utime.h>.
7518         (qcopy_file_preserving): Use 'struct timespec' and utimens() to
7519         transport the time stamps from the original file to the destination
7520         file.
7521         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for utime, utimes.
7522         * modules/copy-file (Depends-on): Add stat-time, utimns instead of
7523         utime-h.
7525 2017-05-01  Bruno Haible  <bruno@clisp.org>
7527         wctype-t: Fix problems if <wchar.h> gets included after <wctype.h>.
7528         * lib/wctype.in.h: Include not only <ctype.h> but also <wchar.h>. Do so
7529         also on MSVC.
7530         Reported by Eli Zaretskii <eliz@gnu.org>.
7532 2017-05-01  Bruno Haible  <bruno@clisp.org>
7534         wchar: Fix compilation error with the original mingw.org mingw.
7535         * lib/wchar.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
7536         <stddef.h> instead.
7537         * m4/wint_t.m4 (gl_TYPE_WINT_T_PREREQ): New macro, extracted from
7538         gl_WCTYPE_H.
7539         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set HAVE_CRTDEFS_H here; require
7540         gl_TYPE_WINT_T_PREREQ instead.
7541         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_TYPE_WINT_T_PREREQ.
7542         * modules/wchar (Makefile.am): Substitute HAVE_CRTDEFS_H.
7543         Reported by Eli Zaretskii <eliz@gnu.org>.
7545 2017-04-30  Bruno Haible  <bruno@clisp.org>
7547         utimecmp: Add support for native Windows.
7548         * lib/utimecmp.c (SYSCALL_RESOLUTION): Set to 100 on native Windows.
7550 2017-04-30  Bruno Haible  <bruno@clisp.org>
7552         utimens: Add support for native Windows.
7553         * lib/utimens.c: Include <windows.h>, msvc-nothrow.h.
7554         (fdutimens): Provide a native Windows implementation, like utime.c with
7555         added tv_nsec support.
7556         * modules/utimens (Depends-on): Add msvc-nothrow, utime.
7557         Suggested by Tim Rühsen <tim.ruehsen@gmx.de>.
7559 2017-04-30  Bruno Haible  <bruno@clisp.org>
7561         wcsftime: New module.
7562         * lib/wchar.in.h (wcsftime): New declaration.
7563         * lib/wcsftime.c: New file.
7564         * m4/wcsftime.m4: New file.
7565         * m4/wchar_h.m4 (gl_WCHAR_H): Test for wcsftime declaration.
7566         (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_WCSFTIME,
7567         HAVE_WCSFTIME, REPLACE_WCSFTIME.
7568         * modules/wchar (Makefile.am): Substitute GNULIB_WCSFTIME,
7569         HAVE_WCSFTIME, REPLACE_WCSFTIME.
7570         * modules/wcsftime: New file.
7571         * doc/posix-functions/wcsftime.texi: Mention the new module.
7573 2017-04-30  Bruno Haible  <bruno@clisp.org>
7575         strftime-fixes: New module.
7576         * lib/time.in.h (strftime): New declaration.
7577         * lib/strftime-fixes.c: New file.
7578         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Inline gl_FUNC_STRFTIME macro.
7579         (gl_FUNC_STRFTIME): Remove macro.
7580         * m4/strftime-fixes.m4: New file.
7581         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_STRFTIME,
7582         REPLACE_STRFTIME.
7583         * modules/time (Makefile.am): Substitute GNULIB_STRFTIME,
7584         REPLACE_STRFTIME.
7585         * modules/strftime-fixes: New file.
7586         * doc/posix-functions/strftime.texi: Mention the new module.
7588 2017-04-30  Bruno Haible  <bruno@clisp.org>
7590         mktime: Work around TZ problem on native Windows.
7591         * lib/mktime.c: Add #ifs to make the algorithmic workaround independent
7592         from the native Windows workaround.
7593         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): New macro, extracted from
7594         gl_FUNC_MKTIME. If guessing, set gl_cv_func_working_mktime to
7595         'guessing no'.
7596         (gl_FUNC_MKTIME): Require it. Require AC_CANONICAL_HOST.
7597         Set REPLACE_MKTIME to 1 on native Windows. Define NEED_MKTIME_WORKING,
7598         NEED_MKTIME_WINDOWS.
7599         (gl_FUNC_MKTIME_INTERNAL): Require gl_FUNC_MKTIME_WORKS, not
7600         gl_FUNC_MKTIME. Set WANT_MKTIME_INTERNAL, not REPLACE_MKTIME. Define
7601         NEED_MKTIME_INTERNAL.
7602         * m4/timegm.m4 (gl_FUNC_TIMEGM): Require gl_FUNC_MKTIME_WORKS, not
7603         gl_FUNC_MKTIME. Cope with 'guessing yes' value.
7604         * modules/mktime-internal (configure.ac): Test WANT_MKTIME_INTERNAL,
7605         not REPLACE_MKTIME.
7606         * doc/posix-functions/mktime.texi: Mention the native Windows
7607         workaround.
7609 2017-04-30  Bruno Haible  <bruno@clisp.org>
7611         localtime: New module.
7612         * lib/time.in.h (localtime): Declare also if requested by module
7613         'localtime'.
7614         * lib/localtime.c: New file.
7615         * m4/localtime.m4: New file.
7616         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_LOCALTIME.
7617         * modules/time (Makefile.am): Substitute GNULIB_LOCALTIME.
7618         * modules/localtime: New file.
7619         * doc/posix-functions/localtime.texi: Mention the new module.
7621 2017-04-30  Bruno Haible  <bruno@clisp.org>
7623         ctime: New module.
7624         * lib/time.in.h (ctime): New declaration.
7625         * lib/ctime.c: New file.
7626         * m4/ctime.m4: New file.
7627         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_CTIME,
7628         REPLACE_CTIME.
7629         * modules/time (Makefile.am): Substitute GNULIB_CTIME, REPLACE_CTIME.
7630         * modules/ctime: New file.
7631         * doc/posix-functions/ctime.texi: Mention the new module.
7633 2017-04-30  Bruno Haible  <bruno@clisp.org>
7635         gettimeofday: Provide higher resolution on native Windows.
7636         * lib/gettimeofday.c: Don't include <sys/timeb.h>.
7637         (GetSystemTimePreciseAsFileTimeFuncType): New variable.
7638         (initialize): Initialize it.
7639         (gettimeofday) [WINDOWS_NATIVE]: Use it, and convert from FILETIME to
7640         'struct timeval'. Don't use _ftime().
7641         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): Don't test for
7642         <sys/timeb.h> and _ftime.
7644 2017-04-30  Bruno Haible  <bruno@clisp.org>
7646         Document the problem with the Cygwin environment variable TZ.
7647         * doc/posix-functions/tzset.texi: Add note about TZ.
7648         * doc/posix-functions/ctime.texi: Likewise.
7649         * doc/posix-functions/localtime.texi: Likewise.
7650         * doc/posix-functions/mktime.texi: Likewise.
7651         * doc/posix-functions/strftime.texi: Likewise.
7652         * doc/posix-functions/wcsftime.texi: Likewise.
7653         * doc/pastposix-functions/ftime.texi: Likewise.
7655 2017-04-30  Bruno Haible  <bruno@clisp.org>
7657         utime-tests: New module.
7658         * tests/test-utime.c: New file, based on tests/test-utimens.h.
7659         * tests/test-utimens-common.h: Include <sys/stat.h>.
7660         * modules/utime-tests: New file.
7662 2017-04-29  Bruno Haible  <bruno@clisp.org>
7664         utime: New module.
7665         * lib/utime.in.h: Add comment for snippets.
7666         (utime): New declaration.
7667         * lib/utime.c: New file.
7668         * m4/utime.m4: New file.
7669         * m4/utime_h.m4 (gl_UTIME_H): Test for utime declaration.
7670         (gl_UTIME_H_DEFAULTS): Initialize GNULIB_UTIME, HAVE_UTIME,
7671         REPLACE_UTIME.
7672         * modules/utime-h (Depends-on): Add snippets.
7673         (Makefile.am): Substitute GNULIB_UTIME, HAVE_UTIME, REPLACE_UTIME.
7674         Insert snippets.
7675         * modules/utime: New file.
7676         * doc/posix-functions/utime.texi: Mention the new module.
7678 2017-04-29  Bruno Haible  <bruno@clisp.org>
7680         utime-h: Modernize handling of 'struct utimbuf'.
7681         * lib/utime.in.h: Include next <utime.h> if it exists.
7682         (utimbuf): Define to _utimbuf on native Windows.
7683         * m4/utime_h.m4 (gl_UTIME_H): Check for prerequisites of include_next.
7684         Set UTIME_H on native Windows.
7685         (gl_UTIME_MODULE_INDICATOR, gl_HEADER_UTIME_H_DEFAULTS): New macros.
7686         * modules/utime-h (Depends-on): Add include_next.
7687         (Makefile.am): Substitute also HAVE_UTIME_H, INCLUDE_NEXT,
7688         PRAGMA_SYSTEM_HEADER, PRAGMA_COLUMNS, NEXT_UTIME_H.
7690         * lib/utimens.c (utimbuf): Remove fallback definition.
7691         * m4/utimens.m4 (gl_UTIMENS): Don't require
7692         gl_CHECK_TYPE_STRUCT_UTIMBUF.
7693         * m4/utimbuf.m4: Remove file.
7694         * modules/utimens (Files): Remove m4/utimbuf.m4.
7696 2017-04-29  Bruno Haible  <bruno@clisp.org>
7698         Make use of module 'utime-h'.
7699         * modules/copy-file (Depends-on): Add utime-h.
7700         * lib/copy-file.c: Assume that <utime.h> exists.
7701         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for <utime.h>.
7703         * modules/utimens (Depends-on): Add utime-h.
7704         * lib/utimens.c: Assume that <utime.h> exists.
7706 2017-04-29  Bruno Haible  <bruno@clisp.org>
7708         utime-h: New module.
7709         * m4/utime_h.m4: New file.
7710         * lib/utime.in.h: New file.
7711         * modules/utime-h: New file.
7712         * doc/posix-headers/utime.texi: Mention the new module.
7714         * tests/test-utime-h.c: New file.
7715         * modules/utime-h-tests: New file.
7717 2017-04-30  Bruno Haible  <bruno@clisp.org>
7719         Fix a few typos.
7720         * m4/fstat.m4 (gl_FUNC_FSTAT): Require AC_CANONICAL_HOST.
7721         * m4/stat.m4 (gl_FUNC_STAT): Fix comment.
7722         * doc/posix-functions/fstat.texi: Fix a plural typo.
7723         * doc/posix-functions/stat.texi: Likewise.
7724         * m4/include_next.m4: Update comments.
7726 2017-04-29  Bruno Haible  <bruno@clisp.org>
7728         error: Fix mistake in 2017-04-23 commit.
7729         * lib/error.c (print_errno_message): If GNULIB_STRERROR_R_POSIX is set,
7730         assume that strerror_r returns 'int', not 'char *'.
7732 2017-04-29  Bruno Haible  <bruno@clisp.org>
7734         stat: Fix time_t values and other problems on native Windows platforms.
7735         * doc/posix-functions/stat.texi: Mention the problem with the Microsoft
7736         implementations of stat().
7737         * lib/stat.c: Include filename.h instead of dosname.h. Include
7738         malloca.h, stat-w32.h.
7739         (is_unc_root): New function.
7740         (rpl_stat): New implementation for native Windows. Remove
7741         REPLACE_FUNC_STAT_DIR code.
7742         * m4/stat.m4 (gl_FUNC_STAT): On native Windows, set REPLACE_STAT always.
7743         Don't define REPLACE_FUNC_STAT_DIR.
7744         (gl_PREREQ_STAT): Require gl_HEADER_SYS_STAT_H.
7745         * modules/stat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
7746         (Depends-on): Remove dosname. Add filename, malloca.
7747         (configure.ac): Also compile lib/stat-w32.c.
7749 2017-04-29  Bruno Haible  <bruno@clisp.org>
7751         fstat: Fix time_t values on native Windows platforms.
7752         * doc/posix-functions/fstat.texi: Mention the problem with st_*time.
7753         * lib/stat-w32.h: New file.
7754         * lib/stat-w32.c: New file.
7755         * lib/fstat.c: Don't include msvc-inval.h. Include msvc-nothrow.h,
7756         stat-w32.h instead.
7757         (fstat_nothrow): Remove function.
7758         (rpl_fstat): Implement by means of _gl_fstat_by_handle.
7759         * m4/fstat.m4 (gl_FUNC_FSTAT): On native Windows, set REPLACE_FSTAT
7760         always.
7761         (gl_PREREQ_FSTAT): Require gl_HEADER_SYS_STAT_H.
7762         * modules/fstat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
7763         (Depends-on): Remove msvc-inval. Add pathmax, msvc-nothrow.
7764         (configure.ac): Also compile lib/stat-w32.c.
7766 2017-04-29  Paul Eggert  <eggert@cs.ucla.edu>
7768         getopt: port to Solaris 10 with circa-1997 glibc getopt.h
7769         Problem reported by Assaf Gordon and Gavin Smith in:
7770         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00157.html
7771         * lib/getopt-pfx-ext.h (_getopt_internal) [__GETOPT_PREFIX]:
7772         #define this, too.
7774 2017-04-29  Bruno Haible  <bruno@clisp.org>
7776         strerror_r-posix: Fixes for MSVC 14.
7777         * lib/strerror_r.c: Include <stdarg.h>.
7778         (strerror_r): Provide error messages for errno values 100...140.
7779         * doc/posix-functions/strerror_r.texi: Mention the MSVC 14 problem.
7781 2017-04-28  Bruno Haible  <bruno@clisp.org>
7783         noreturn: New module.
7784         * lib/noreturn.h: New file.
7785         * modules/noreturn: New file.
7786         * tests/test-noreturn.c: New file.
7787         * modules/noreturn-tests: New file.
7788         * tests/test-noreturn-c++.cc: New file.
7789         * modules/noreturn-c++-tests: New file.
7791 2017-04-27  Bruno Haible  <bruno@clisp.org>
7793         wctype-h: Fix compilation error with the original mingw.org mingw.
7794         * m4/wctype_h.m4 (gl_WCTYPE_H): Test for <crtdefs.h>. Set
7795         HAVE_CRTDEFS_H.
7796         * modules/wctype-h (Makefile.am): Substitute HAVE_CRTDEFS_H.
7797         * lib/wctype.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
7798         <stddef.h> instead.
7799         Reported and proposed by Eli Zaretskii <eliz@gnu.org>.
7801 2017-04-26  Pádraig Brady  <P@draigBrady.com>
7803         nap.h: Fix compilation on non windows platforms
7804         * tests/nap.h: Move misplaced endif.
7806 2017-04-26  Pádraig Brady  <P@draigBrady.com>
7807         and Paul Eggert  <eggert@cs.ucla.edu>
7809         time_rz: fix heap buffer overflow vulnerability
7810         Reported and analyzed at https://bugzilla.redhat.com/CVE-2017-7476
7811         * lib/time_rz.c (save_abbr): Rearrange the calculation determining
7812         whether there is enough buffer space available, thus avoiding
7813         the problematic promotion of signed to unsigned causing an invalid
7814         comparison when zone_copy is more than ABBR_SIZE_MIN bytes beyond
7815         the start of the buffer.
7816         * tests/test-parse-datetime.c (main): Add a test case written by
7817         Paul Eggert, which overwrites enough of the heap so that
7818         standard glibc will fail with "free(): invalid pointer"
7819         without the patch applied.
7821 2017-04-26  Paul Eggert  <eggert@cs.ucla.edu>
7823         xalloc: add missing integer overflow check
7824         * lib/xalloc.h (x2nrealloc): Also check for multiplication
7825         overflow when P is null.
7827 2017-04-25  Paul Eggert  <eggert@cs.ucla.edu>
7829         parse-datetime: make it standalone
7830         * lib/parse-datetime.y: Include <stdarg.h>, for va_start etc.
7831         (_GL_ATTRIBUTE_FORMAT): New macro.
7832         These are needed to get './gnulib-tool --test parse-datetime' to work.
7834 2017-04-23  Bruno Haible  <bruno@clisp.org>
7836         nap.h: Port to native Windows.
7837         * tests/nap.h (nap_get_stat): Renamed from get_stat. Remove argument fd;
7838         use nap_fd instead. On native Windows, close and reopen nap_fd.
7839         (nap_works): Don't compare the ctimes, because on native Windows, these
7840         are the creation times.
7841         (nap): Update.
7843 2017-04-23  Bruno Haible  <bruno@clisp.org>
7845         nap.h: Fix logic.
7846         * tests/nap.h (nap): Avoid signed integer overflow in loop.
7848 2017-04-23  Bruno Haible  <bruno@clisp.org>
7850         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
7851         * modules/strerror_r-posix (configure.ac): Invoke gl_MODULE_INDICATOR.
7852         * lib/error.c: Test GNULIB_STRERROR_R_POSIX before testing
7853         HAVE_DECL_STRERROR_R, HAVE_STRERROR_R, or STRERROR_R_CHAR_P.
7854         * lib/argp-help.c (__argp_failure): Likewise.
7856 2017-04-23  Bruno Haible  <bruno@clisp.org>
7858         strerror_r-posix: Revert commits from 2016-10-16,2016-11-04,2016-11-14.
7859         * m4/strerror_r.m4: Revert changes since 2016-10-16.
7860         * lib/strerror_r.c: Likewise.
7862 2017-04-23  Paul Eggert  <eggert@cs.ucla.edu>
7864         Target a C99 subset, not a C89 subset
7865         For many years Gnulib has targeted C89 and has resisted using C99
7866         features, as some Gnulib-using programs still wanted to target
7867         C89.  As this no longer seems to be the case, relax the porting
7868         requirements to allow some C99 features.  This is merely a change
7869         to the documentation, to give other Gnulib developers a chance to
7870         weigh in on the topic.
7871         * doc/extern-inline.texi (extern inline):
7872         * doc/gnulib-readme.texi (Portability guidelines):
7873         * doc/gnulib-tool.texi (Initial import):
7874         * doc/gnulib.texi (Header files):
7875         Modernize to talk about C99 and C11 instead of C89 and C99.
7876         * doc/gnulib-readme.texi (Portability guidelines):
7877         Now a section, not merely a subsection, so that it
7878         can be split up.  Modernize a bit.
7879         (C language versions, C99 features assumed)
7880         (C99 features avoided):
7881         New sections.
7883 2017-04-23  Bruno Haible  <bruno@clisp.org>
7885         doc: New section "Modules that modify the way other modules work".
7886         * doc/gnulib.texi (Modules that modify the way other modules work): New
7887         section.
7889 2017-04-23  Bruno Haible  <bruno@clisp.org>
7891         stat-time: Update comments.
7892         * lib/stat-time.h: Fix reference regarding st_ctime on Windows.
7893         * tests/test-utimens-common.h: Add reference regarding st_ctime on
7894         Windows.
7896 2017-04-01  Bruno Haible  <bruno@clisp.org>
7898         glob: Fix more memory leaks.
7899         * lib/glob.c (glob): Free allocated memory before returning.
7900         Reported by Coverity via Tim Rühsen.
7902 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
7904         poll: improve fast check for out-of-range NFD
7905         * lib/poll.c: Do not include intprops.h.
7906         (poll): Compare NFD to INT_MAX, not to TYPE_MAXIMUM (nfds_t) / 2.
7907         * modules/poll (Depends-on): Remove intprops.
7909         ftoastr: cite a newer paper
7910         * lib/ftoastr.c (FTOASTR): In comment, cite Andrysco et al. 2016
7911         instead of Loitsch 2010.
7913 2017-04-22  Bruno Haible  <bruno@clisp.org>
7915         poll: Enable argument check also in the Windows implementation.
7916         * lib/poll.c (poll) [WINDOWS_NATIVE]: Check value of nfd correctly.
7917         Reported by Paul Eggert.
7919 2017-04-22  Bruno Haible  <bruno@clisp.org>
7921         getlogin_r: Work around bug in Mac OS X 10.12.
7922         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test also against the Mac OS X
7923         bug.
7924         * lib/getlogin_r.c (getlogin_r): When getlogin_r returns a string of the
7925         given size minus 1, call getlogin_r a second time, on a larger buffer.
7926         * modules/getlogin_r (Depends-on): Add malloca.
7927         * doc/posix-functions/getlogin_r.texi: Mention the Mac OS X bug.
7929 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
7931         parse-datetime: fix %z and prefer signed int
7932         %z problem reported by Pádraig Brady in:
7933         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00103.html
7934         While fixing it, I decided to prefer signed ints to size_t, as
7935         they are less error-prone (e.g., ubsan catches overflow).
7936         * lib/parse-datetime.y (textint, parser_control, lookup_word, yylex)
7937         (parse_datetime2): Prefer ptrdiff_t to size_t for sizes and object
7938         counts, since signed integers make for better debugging.
7939         (date): Don’t assume %z works in printf formats.
7940         (debug_strfdatetime, debug_strfdate, debug_strftime): Use int for
7941         sizes of buffers known to be small, e.g., because we’re using snprintf.
7942         (parse_datetime2): Simplify call to debug_mktime_not_ok.
7944 2017-04-22  Bruno Haible  <bruno@clisp.org>
7946         *printf: Work around rounding bug on Mac OS X.
7947         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Test for Mac OS X 10.12 bug.
7948         * doc/posix-functions/*printf.texi: Mention the rounding bugs of
7949         Mac OS X and FreeBSD.
7950         * doc/glibc-functions/*printf.texi: Likewise.
7952 2017-04-22  Bruno Haible  <bruno@clisp.org>
7954         vasnprintf tests: Avoid warnings.
7955         * tests/test-vasnprintf-posix3.c (test_function, my_asnprintf,
7956         test_vasnprintf, test_asnprintf): Don't define if there's nothing to
7957         test.
7959 2017-04-22  Bruno Haible  <bruno@clisp.org>
7961         sys_file tests: Avoid warning.
7962         * tests/test-sys_file.c (main): Add a default clause to the switch
7963         statement.
7965 2017-04-22  Bruno Haible  <bruno@clisp.org>
7967         sethostname: Update doc.
7968         * doc/glibc-functions/sethostname.texi: Mention differing prototype on
7969         Mac OS X.
7971 2017-04-22  Bruno Haible  <bruno@clisp.org>
7973         quotearg tests: Avoid warnings.
7974         * tests/test-quotearg.c: Don't include test-quotearg.h if ENABLE_NLS is
7975         false.
7977 2017-04-22  Bruno Haible  <bruno@clisp.org>
7979         poll: Enable argument check.
7980         * lib/poll.c: Include intprops.h.
7981         (poll): Check value of nfd correctly.
7982         * modules/poll (Depends-on): Add intprops.
7984 2017-04-22  Bruno Haible  <bruno@clisp.org>
7986         get-rusage-data: Avoid warnings on Mac OS X.
7987         * lib/get-rusage-data.c: On Mac OS X, don't define
7988         get_rusage_data_via_setrlimit nor get_rusage_data_via_iterator.
7989         (get_rusage_data) [Mac OS X]: Just return 0.
7991 2017-04-22  Bruno Haible  <bruno@clisp.org>
7993         xbinary-io: Fix build error.
7994         * modules/xbinary-io (Depends-on): Add gettext-h.
7995         * lib/xbinary-io.c: Include gettext.h and define _().
7996         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
7997         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00089.html>.
7999 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
8001         parse-datetime: overflow and debug cleanups
8002         This long patch was triggered by this bug report from Ruediger Meier:
8003         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00028.html
8004         I fixed the bug he noted, then found some others nearby, and then
8005         still others.  Oh my goodness, there were a lot of bugs.  I cleaned
8006         up some of the code to follow GNU standards while I was at it.
8007         * lib/parse-datetime.y (ISDIGIT): Remove; all callers changed to
8008         use c_isdigit.
8009         (EPOCH_YEAR): Remove; unused.
8010         (TM_YEAR_BASE): Now an enum rather than a macro.
8011         (HOUR, debug_strfdatetime): Multiply hour by 3600, not 60, to get
8012         time zone offset, since timezones now are in terms of seconds and
8013         not minutes.
8014         (long_time_t): Remove.  All uses replaced by time_t or intmax_t as
8015         appropriate.  Verify that intmax_t is wide enough.
8016         (time_overflow, time_zone_str): New functions, used to deal
8017         more reliably with overflow.
8018         (dbg_printf): Add printf attribute, to help catch integer width errors.
8019         (textint, relative_time, parser_control, time_zone_hhmm, set_hhmmss)
8020         (%union, to_hour, yylex, parse_datetime2):
8021         Use intmax_t instead of long int and/or long_time_t.
8022         All uses changed.
8023         (DBGBUFSIZE): Move earlier.
8024         (relative_time, set_hhmmss, parser_control):
8025         Just use int for nanoseconds and for time zones; that’s wide enough.
8026         (parser_control): Use bool for members like year_seen that can
8027         be booleans instead of counters.  All uses changed.
8028         Remove debug_default_input_timezone; no longer needed.
8029         All uses removed.
8030         (apply_relative_time): Return a bool overflow flag.
8031         All uses changed to check for overflow.
8032         (apply_relative_time, zone, date, relunit, relunit_snumber)
8033         (signed_seconds, unsigned_seconds, yylex, parse_datetime2):
8034         Check for integer overflow portably.
8035         (str_days): Use just int for N, as it’s wide enough.
8036         Prefer 2D char arrays to arrays of char * when it looks like
8037         2D is a win on typical platforms.
8038         Prefer snprintf to strncpy/strncat, for simplicity;
8039         all buffers are smaller than INT_MAX so this is safe.
8040         (TIME_ZONE_BUFSiZE, TM_YEAR_BUFSIZE): New constants.
8041         (debug_print_current_time): Don’t assume tv_nsec is of type long,
8042         as this is not true on x32.  Output "." before any nanoseconds.
8043         (debug_print_current_time, parse_datetime2):
8044         Output local zones using a more-consistent format.
8045         (debug_print_current_time, date, parse_datetime2):
8046         (main) [TEST]:
8047         Don’t assume time_t is the same width as long.
8048         (print_rel_part): New function, replacing ...
8049         (PRINT_REL_PART): ... this macro, which was removed.  All uses changed.
8050         (debug_print_relative_time): Use bool for boolean.
8051         (local_zone): dsts_seen now counts only tDST instances.
8052         (date): Fix printf of size_t to use %z.  Do not assume numeric
8053         tokens have negative values merely because the context suggests
8054         a syntax with "-" separating tokens.
8055         (time_zone_hhmm): Return bool success indicator, which checks for
8056         overflow.  Store result into PC->time_zone instead.  All callers
8057         changed.
8058         (tm_year_str): New function.  Return a bool success indicator and
8059         store the result into a buffer.  All callers changed.  Output the
8060         numerically correct string even if adding 1900 to the year would
8061         overflow.
8062         (to_tm_year): New function, replacing the old to_year.  All
8063         callers changed.
8064         (tm_diff): Sync with glibc.
8065         (lookup_word): Use to_uchar instead of doing it by hand.
8066         (TZBUFSIZE): Now local to the only function that needs it.
8067         (debug_strfdatetime): Simplify now that time zones are int seconds.
8068         (debug_strfdate): Work even if tm_year + 1900 would overflow.
8069         (get_effective_timezone): Remove.  All uses removed.
8070         (parse_datetime2): Use fprintf in pieces instead of snprintfing
8071         to a fixed-size buffer.  Don’t assume that gmtime succeeds iff
8072         localtime succeeds.  Use tm_gmtoff if available.  Simplify how
8073         ‘goto fail;’ works in conjunction with the ‘ok’ flag.
8074         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Don’t define
8075         TIME_T_FITS_IN_LONG_INT, as it is no longer needed.
8076         * modules/parse-datetime (Depends-on): Add inttypes.
8078 2017-04-21  Bruno Haible  <bruno@clisp.org>
8080         gettext-h: Avoid -Wundef warning.
8081         * lib/gettext.h: Test the value of ENABLE_NLS only if it is defined.
8082         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
8083         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00022.html>.
8085 2017-04-05  Tim Rühsen  <tim.ruehsen@gmx.de>
8087         error: Avoid "function declaration isn't a prototype" warning.
8088         * lib/error.c (strerror_r): Turn K&R C prototype to an ANSI C prototype.
8090 2017-04-21  Bruno Haible  <bruno@clisp.org>
8092         vasnprintf: Fix for MSVC 14.
8093         * lib/vasnprintf.c (USE_MSVC__SNPRINTF): New macro.
8094         Everywhere, use !HAVE_SNPRINTF_RETVAL_C99 || USE_MSVC__SNPRINTF instead
8095         of !HAVE_SNPRINTF_RETVAL_C99.
8097 2017-04-21  Bruno Haible  <bruno@clisp.org>
8099         mbrtowc tests: Fix test failures on MSVC 14.
8100         * tests/test-mbrtowc-w32.c (test_one_locale): Accept MSVC's conversion
8101         behaviour for invalid input.
8103 2017-04-21  Bruno Haible  <bruno@clisp.org>
8105         mbsinit: Fix for MSVC 14.
8106         * lib/mbsinit.c (mbsinit): If GNULIB_defined_mbstate_t, provide an
8107         implementation that is in sync with mbrtowc.c. On other platforms, use
8108         an adequate ad-hoc implementation.
8110 2017-04-21  Bruno Haible  <bruno@clisp.org>
8112         Fix test-mbrtowc5.sh failure on native Windows.
8113         * lib/setlocale.c (setlocale_unixlike): Accept "POSIX" as an alias for
8114         "C".
8116 2017-04-21  Bruno Haible  <bruno@clisp.org>
8118         Avoid accidental use of native Windows APIs on Cygwin.
8119         * lib/getaddrinfo.c (WINDOWS_NATIVE): Don't define on Cygwin.
8120         * lib/localcharset.c (WINDOWS_NATIVE): Likewise.
8121         * lib/localename.c (WINDOWS_NATIVE): Likewise.
8123 2017-04-20  Bruno Haible  <bruno@clisp.org>
8125         Remove red warnings from the generated MODULES.html.
8126         * modules/fcntl (Description): Disambiguate function references.
8127         * modules/getcwd-lgpl (Description): Likewise.
8128         * modules/hostent (Description): Likewise.
8129         * modules/servent (Description): Likewise.
8130         * modules/tempname (Description): Likewise.
8132 2017-04-20  Bruno Haible  <bruno@clisp.org>
8134         verify tests: Fix spurious failure with parallel make.
8135         * gnulib-tool (func_emit_tests_Makefile_am): Emit initialization of
8136         EXTRA_PROGRAMS.
8137         * tests/test-verify.sh: Build test-verify-try.o, not test-verify.o.
8138         * tests/test-verify-try.c: New file.
8139         * modules/verify-tests (Files): Add it.
8140         (EXTRA_PROGRAMS): Add test-verify-try.
8141         (MOSTLYCLEANFILES): Update accordingly.
8142         Reported by Adam James Stewart <ajstewart@anl.gov>.
8144 2017-04-18  Bruno Haible  <bruno@clisp.org>
8146         vma-iter: Fix compilation error on Solaris 7.
8147         * lib/vma-iter.c (vma_iterate): Treat missing MAP_ANONYMOUS on Solaris
8148         like on IRIX, OSF/1.
8149         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8151 2017-04-18  Bruno Haible  <bruno@clisp.org>
8153         vma-iter: Fix conflict with module 'largefile' on 32-bit Solaris 9.
8154         * modules/vma-iter (configure.ac): Test whether <sys/procfs.h> can be
8155         included.
8156         * lib/vma-iter.c: On Solaris, test HAVE_SYS_PROCFS_H before including
8157         <sys/procfs.h>.
8158         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't define on Solaris when
8159         <sys/procfs.h> cannot be included.
8160         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8162 2017-04-18  Bruno Haible  <bruno@clisp.org>
8164         getopt-gnu: Add comments.
8165         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Add comments.
8166         * modules/getopt-gnu (configure.ac): Likewise.
8168 2017-04-16  Paul Eggert  <eggert@cs.ucla.edu>
8170         regex: port better to Solaris 10
8171         Solaris 10 <locale.h> includes <libintl.h>, which #defines
8172         gettext, and this causes a double #define.
8173         Problem reported by Gavin Smith in:
8174         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00056.html
8175         * lib/regex_internal.h (gettext): #undef before #defining.
8177 2017-04-15  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
8179         intprops: improve comments
8180         * lib/intprops.h: Improve and shorten commentary.
8181         For the record, if we ever run into a pedantic compiler that
8182         behaves differently from GCC when converting an out-of-range value
8183         to a signed integer, we can work around the problem with something
8184         like the following code, where UCT is the signed counterpart of T
8185         (UCT is sometimes narrower than UT) and all callers are changed
8186         accordingly:
8187         #if __SUNPRO_C <= 0x5120
8188         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
8189            ((t) ((ut) (a) op (ut) (b)))
8190         #else
8191         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
8192            (TYPE_MINIMUM (t) <= (uct) ((ut) (a) op (ut) (b)) \
8193             ? ((t) (uct) (((ut) (a) op (ut) (b)) - TYPE_MINIMUM (t)) \
8194                + TYPE_MINIMUM (t)) \
8195             : (t) (uct) ((ut) (a) op (ut) (b)))
8196         #endif
8198 2017-04-14  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
8200         intprops: try to avoid tickling similar bugs
8201         * lib/intprops.h (_GL_INT_OP_CALC): Document that UT no longer
8202         needs to be the same width as T; it can be wider.
8203         Change callers so that UT is at least as wide as unsigned int,
8204         as I suspect that this is less likely to run into compiler bugs.
8206         intprops: port to Oracle Studio 12.3 x86
8207         Problem reported by Gavin Smith in:
8208         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00049.html
8209         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
8210         Convert unsigned to signed via the usual rather than the standard way,
8211         to avoid a compiler bug in Oracle Studio 12.3 x86.
8213 2017-04-08  Paul Eggert  <eggert@cs.ucla.edu>
8215         getopt: prefer - to _ in new file names
8216         * lib/getopt-cdefs.in.h: Rename from lib/getopt_cdefs.in.h.
8217         * lib/getopt-core.h: Rename from lib/getopt_core.h.
8218         * lib/getopt-ext.h: Rename from lib/getopt_ext.h.
8219         * lib/getopt-pfx-core.h: Rename from lib/getopt_pfx_core.h.
8220         * lib/getopt-pfx-ext.h: Rename from lib/getopt_pfx_ext.h.
8221         All uses changed.
8223         getopt: port recent getopt changes to macOS
8224         Problem reported by Harald Maier (Bug#26398).
8225         The macOS C compiler uses __nonnull for its own purposes and that
8226         clashes with glibc's __nonnull.
8227         * lib/getopt.in.h: Add comment for _GL_ARG_NONNULL snippet.
8228         * lib/getopt_cdefs.in.h (__nonnull): Remove.
8229         * lib/getopt_core.h (getopt):
8230         * lib/getopt_ext.h (getopt_long, getopt_long_only):
8231         Use _GL_ARG_NONNULL, not __nonnull.
8232         * lib/unistd.in.h: Move snippet hooks to before where the getopt
8233         .h files are included, so that _GL_ARG_NONNULL is defined in time.
8234         * modules/getopt-posix (Depends-on): Add snippet/arg-nonnull.
8235         (getopt.h): Interpolate _GL_ARG_NONNULL snippet.
8237 2017-04-06  Paul Eggert  <eggert@cs.ucla.edu>
8239         getopt-gnu: omit some duplicate code
8240         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Don’t require
8241         gl_FUNC_GETOPT_POSIX, as the configure.ac code generated by
8242         gnulib-tool already does this.
8243         * modules/getopt-gnu (configure.ac): Omit code duplicated from
8244         getopt-posix, which we depend on.
8246         getopt-posix: use angle-bracket include
8247         * lib/getopt1.c: Include <config.h>, not "config.h".
8249 2017-04-06  Zack Weinberg  <zackw@panix.com>
8251         getopt: annotate files with relationship to glibc
8253         As the final act in this patchset, adjust the message at the top of
8254         each file to indicate which files are synced with glibc.  (This has
8255         already been done for most of the headers.)
8257         * lib/getopt.c, lib/getopt1.c, lib/getopt_int.h:
8258         Mention in top-of-file boilerplate that these files are shared
8259         between glibc and gnulib.
8262         getopt: split up getopt.in.h and eliminate __need_getopt
8264         Over in glibc, all of the __need macros are being phased out in favor
8265         of small headers that declare only the necessary components, as this
8266         is much simpler and less prone to bugs.  As getopt is shared with
8267         glibc, gnulib needs to do the same for __need_getopt.
8269         __need_getopt is misnamed; what it really means is "we want only the
8270         getopt features specified in POSIX, not the GNU extensions".  glibc
8271         placed the "meat" of getopt.h into getopt_core.h and getopt_ext.h;
8272         these files can be shared verbatim with gnulib.  The portability
8273         wrapper, on the other hand, they have renounced altogether; glibc's
8274         getopt.h will no longer be shared with gnulib at all.  In exchange,
8275         certain glibc-specific quirks (having to do with __posix_getopt) no
8276         longer need appear in gnulib's headers at all.
8278         This patch merges getopt_core.h and getopt_ext.h from glibc, and
8279         splits up the current gnulib-side portability wrapper into three
8280         additional headers: getopt_pfx_core.h and getopt_pfx_ext.h handle
8281         __GETOPT_PREFIX for their respective headers, getopt_cdefs.in.h
8282         handles things like __BEGIN_DECLS and __THROW, and getopt.in.h and
8283         unistd.in.h just use them.  All new files are clearly marked with
8284         whether they are shared with glibc.
8286         * lib/getopt.in.h: Eliminate __need_getopt.  Break up into ...
8287         * lib/getopt_core.h, lib/getopt_ext.h: ... these new files shared
8288         with glibc, and ...
8289         * lib/getopt_cdefs.in.h, lib/getopt_pfx_core.h
8290         * lib/getopt_pfx_ext.h: ... these new files not shared with glibc.
8291         * lib/unistd.in.h: Include getopt_cdefs.h and getopt_pfx_core.h,
8292         instead of defining __need_getopt and including the full getopt.h.
8294         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): Check for sys/cdefs.h.
8295         Define substitution variables GETOPT_CDEFS_H and HAVE_SYS_CDEFS_H.
8296         * modules/getopt-posix (Files): Add new headers and sort list.
8297         (Depends-on): No longer need snippet/arg-nonnull.
8298         (Makefile.am): Generate getopt_cdefs.h.
8301         getopt: better handling of ambiguous options
8303         glibc's getopt uses alloca to construct a linked list of possibilities
8304         for an "ambiguous" long option.  In gnulib, malloc should be used
8305         instead.  Providing for both cases complicates things a fair bit.
8307         This patch rewrites ambiguous-option handling to use a boolean vector
8308         instead of a linked list.  There is then only one allocation that
8309         might need freeing; in glibc it can honor __libc_use_alloca as usual,
8310         and in gnulib we define __libc_use_alloca to always be false, so we
8311         don't need ifdefs in the middle of the function.  This should also be
8312         slightly more efficient in the normal case of long options being fully
8313         spelled out -- I think most people aren't even aware they _can_
8314         sometimes abbreviate long options.
8316         One interesting consequence is that the list of possibilities is now
8317         printed in exactly the order they appear in the list of long options,
8318         instead of the first possibility being shuffled to the end.
8320         (The patch looks bigger than it really is because there's a fair bit
8321         of reindentation and code rearrangement.)
8323         * lib/getopt.c: When used standalone, define __libc_use_alloca
8324         as always false and alloca to abort if called.
8325         (process_long_option): Rewrite handling of ambiguous long options
8326         to use a single boolean vector, not a linked list; use
8327         __libc_use_alloca to decide whether to allocate this using alloca.
8330         getopt: refactor long-option handling
8332         There were two copies of the bulk of the code to handle long options.
8333         Now there is only one.
8335         This change temporarily removes the logic to avoid using alloca when
8336         standalone; the next patch in the series will restore it.
8338         * lib/getopt.c (process_long_option): New function split out
8339         from _getopt_internal_r.
8340         (_getopt_internal_r): Replace both copies of the long-option
8341         processing code with calls to process_long_option.
8344         getopt: tidy up _getopt_initialize a bit
8346         _getopt_data.__posixly_correct is completely redundant to
8347         _getopt_data.__ordering, and some work that logically belongs in
8348         _getopt_initialize was being done by _getopt_internal_r, making the
8349         code harder to understand.
8351         As a side effect, getenv will no longer be called if the first
8352         character of the options string is '+' or '-', which is probably a
8353         Good Thing.  (Perhaps we should have a flag character that
8354         specifically asks for the permutation behavior?)
8356         * lib/getopt_int.h (_getopt_data): Remove __posixly_correct field.
8357         * lib/getopt.c (_getopt_internal_r): Move some initialization code...
8358         (_getopt_initialize): ...here. Don't set d->__posixly_correct.
8361         getopt: merge from glibc: repetition reduction
8363         The definitions of the entry point functions 'getopt' and
8364         '__posix_getopt' can be made substantially less repetitive with a
8365         helper macro.
8367         While I was merging the const-correctness changes from gnulib into
8368         glibc I noticed there are still some unnecessary casts in
8369         _getopt_internal_r.
8371         * lib/getopt.c (getopt, __posix_getopt): Eliminate repetition with
8372         a macro.  Consistently cast 'argv' to 'char **' when calling
8373         _getopt_internal.
8374         (_getopt_internal_r): Remove unnecessary casts when calling exchange.
8377         getopt: clean up error reporting
8379         getopt can print a whole bunch of error messages, and when used
8380         standalone (from gnulib) it uses fprintf to do that.  But fprintf is a
8381         cancellation point and getopt isn't, and also applying fprintf to a
8382         stream in wide-character mode is not allowed.  So every single error
8383         reporting case has an #ifdef _LIBC block in which it calls internal
8384         libc functions instead.  The counterpart patch series in glibc makes
8385         it possible to simplify all of that down to a set of #defines at the
8386         top of the file; core code is written as if it is safe to just call
8387         fprintf, flockfile, and funlockfile.  (One caveat: it's *not* safe to
8388         call any *other* stdio functions.)
8390         * lib/getopt.c: When _LIBC is defined, define fprintf to
8391         __fxprintf_nocancel, flockfile to _IO_flockfile, and funlockfile
8392         to _IO_funlockfile.  When neither _LIBC nor
8393         _POSIX_THREAD_SAFE_FUNCTIONS is defined, define flockfile and
8394         funlockfile as no-ops.
8395         (_getopt_internal_r): Remove all internal #ifdef _LIBC blocks; the
8396         standalone error-printing code can now be used for libc as well.
8397         Add an flockfile/funlockfile pair around one case where the error
8398         message is printed in several chunks.  Don't use fputc.
8401         getopt: fix fencepost error in ambiguous-W-option handling
8403         getopt_long contains an undocumented (AFAICT) feature in which, if you
8404         put "W;" in the short-options list, then '-W foo' and '-Wfoo' are
8405         treated as equivalent to '--foo'.  This is implemented with a partial
8406         second copy of the code for handling long options, and that code
8407         increments optind one too many times when recovering from an ambiguous
8408         abbreviated option, which can cause the main loop to walk past the end
8409         of argv and crash.
8411         I discovered this while writing a test case that tries to exercise all
8412         of getopt's error reporting paths; I wouldn't be surprised to learn
8413         that this feature is never used by real applications.
8415         * lib/getopt.c (_getopt_internal_r): Don't increment
8416         d->optind a second time when reporting ambiguous -W options.
8419         getopt: clean up getopt.c and getopt1.c file headers
8421         In getopt.c, there is no need to include wchar.h at all, and it is
8422         safe nowadays to assume that stdlib.h does declare getenv (several
8423         other gnulib modules make this assumption).
8425         In getopt1.c, the #ifdef _LIBC block at the top can be simplified
8426         by using "" inclusions consistently, and there is no actual need to
8427         include stdlib.h (except in the #ifdef TEST block, where it should be
8428         unconditional), nor to provide a backup definition of NULL at all.
8430         * lib/getopt1.c: Simplify #ifdeffage at top of file.
8431         Move inclusion of stdlib.h to #ifdef TEST block and make
8432         unconditional.  Do not define NULL.
8433         * lib/getopt.c: Don't include wchar.h. No need to declare getenv.
8434         * m4/getopt.m4 (gl_PREREQ_GETENV): Delete.
8435         * modules/getopt-gnu, modules/getopt-posix: Don't call
8436         gl_PREREQ_GETENV.
8439         getopt: harmonize comments with glibc
8441         The comments explaining how the behavior of 'getopt' varies depending
8442         on whether it's the standalone version and whether there are special
8443         characters at the beginning of the options string were inconsistent
8444         between gnulib and glibc, and also out of sync with the code.
8446         * lib/getopt.c, lib/getopt_int.h: Harmonize comments with glibc.
8449         getopt: remove USE_NONOPTION_FLAGS
8451         getopt includes code to parse an environment variable named
8452         _XXX_GNU_nonoption_argv_flags_ (where XXX is the current process's PID
8453         in decimal); but all of it has been #ifdefed out since 2001, with no
8454         official way to turn it back on.
8456         According to commentary in glibc's config.h.in, bash version 2.0
8457         set this environment variable to indicate argv elements that were
8458         the result of glob expansion and therefore should not be treated
8459         as options, but the feature was "disabled later" because "it
8460         caused problems".  According to bash's CHANGES file, "later" was
8461         release 2.01; it gives no more detail about what the problems
8462         were.
8464         Version 2.0 of bash was released on the last day of 1996, and version
8465         2.01 in June of 1997.  Twenty years later, I think it is safe to
8466         assume that this environment variable isn't coming back.
8468         * lib/getopt_int.h: Remove all #ifdef USE_NONOPTION_FLAGS blocks.
8469         * lib/getopt.c: Likewise. Also remove SWAP_FLAGS and the
8470         __libc_argc and __libc_argv externs, which were only used by
8471         #ifdef USE_NONOPTION_FLAGS blocks.
8474         getopt: tabify, in preparation for merge with glibc
8476         glibc sticks to the GNU default of indenting with a mix of
8477         8-column tabs and spaces; make the gnulib copy match.
8479         getopt.h is not included because it is *not* going to be merged in its
8480         present form.
8482         * getopt.c, getopt1.c, getopt_int.h: Tabify.
8484 2017-04-02  Bruno Haible  <bruno@clisp.org>
8486         relocatable-lib-lgpl: Fix link error (regression from 2011-06-16).
8487         * modules/relocatable-lib-lgpl (configure.ac): Add AC_LIBOBJ invocation,
8488         like it was done in modules/relocatable-lib on 2011-05-21 and in
8489         modules/relocatable-prog on 2011-08-15.
8490         Reported by Reuben Thomas <rrt@sc3d.org>.
8492 2017-03-31  Bruno Haible  <bruno@clisp.org>
8494         glob: Fix invalid free() call.
8495         * lib/glob.c (glob): Reset malloc_home_dir when assigning a pointer to
8496         static storage to home_dir.
8497         Reported by Coverity via Tim Rühsen.
8499 2017-03-31  Bruno Haible  <bruno@clisp.org>
8501         glob: Fix memory leaks.
8502         * lib/glob.c (glob): Free allocated memory before returning.
8503         Reported by Coverity via Tim Rühsen.
8505 2017-03-31  Bruno Haible  <bruno@clisp.org>
8507         md5, sha1, sha256, sha512: Add comments regarding correctness.
8508         * lib/md5.h (buflen): Add comments regarding range.
8509         * lib/sha1.h (buflen): Likewise.
8510         * lib/sha256.h (buflen): Likewise.
8511         * lib/sha512.h (buflen): Likewise.
8512         * lib/md5.c (md5_process_bytes): Add comment why memmove is not needed.
8513         * lib/sha1.c (sha1_process_bytes): Likewise.
8514         * lib/sha256.c (sha256_process_bytes): Likewise.
8515         * lib/sha512.c (sha512_process_bytes): Likewise.
8516         Reported by Coverity via Tim Rühsen.
8518 2017-03-22  Paul Eggert  <eggert@cs.ucla.edu>
8520         getopt: merge from glibc
8521         This does not change anything substantial; it merely simplifies
8522         hypothetical merges back to glibc.
8523         * lib/getopt.c, lib/getopt.in.h, lib/getopt1.c, lib/getopt_int.h:
8524         Change copyright notice to match what is in glibc.
8525         * lib/getopt.c: Reorder includes to match glibc.  Remove uses of
8526         USE_IN_LIBIO.  Remove 'register'.  In __LIBC code, use
8527         __open_memstream rather than open_memstream and __glibc_likely
8528         instead of __builtin_expect.
8529         * lib/getopt.in.h (__posix_getopt) [!__GETOPT_PREFIX]: New decl.
8531 2017-03-21  Paul Eggert  <eggert@cs.ucla.edu>
8533         dfa: make [0-9] faster in non-C locales
8534         Problem reported by John P. Linderman (Bug#26193).
8535         * lib/dfa.c (parse_bracket_exp): Remove redundant assignment.
8536         If both ends of the range are ASCII digits, do not worry about
8537         multi-character collating sequences and the like.  Be consistent
8538         about using isalpha as a precondition for setbit_case_fold_c.
8540 2017-03-19  Bruno Haible  <bruno@clisp.org>
8542         lock: Fix compilation error with HP-UX IA64 cc.
8543         * lib/glthread/lock.h (pthread_rwlockattr_setkind_np): Don't declare
8544         weak on non-glibc platforms.
8546 2017-03-19  Paul Eggert  <eggert@cs.ucla.edu>
8548         stdalign: tweak version# and test for HP-UX IA64
8549         Problems reported by Bruno Haible in:
8550         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00078.html
8551         * lib/stdalign.in.h (_Alignas):
8552         * m4/stdalign.m4 (gl_STDALIGN_H):
8553         Use octal, not decimal, for __HP_cc version.  Perhaps HP formerly
8554         used octal (as that is how they document it), but it is decimal in
8555         practice now and the ancient implementations no longer matter.
8556         * tests/test-stdalign.c (main) [__HP_cc && __ia64]: Skip test.
8558 2017-03-19  Bruno Haible  <bruno@clisp.org>
8560         vma-iter: Add support for Solaris.
8561         * lib/vma-iter.c (vma_iterate): On Solaris, use the /proc filesystem
8562         approach.
8563         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on Solaris.
8564         * lib/get-rusage-as.c: Update comment about Solaris.
8565         * lib/get-rusage-data.c: Likewise.
8567 2017-03-19  Bruno Haible  <bruno@clisp.org>
8569         vma-iter: Prefer HP-UX specific API on HP-UX.
8570         * lib/vma-iter.c (vma_iterate): Move HP-UX specific implementation up.
8571         * lib/vma-iter.h: Update.
8572         Just in case HP-UX ever implements mquery().
8574 2017-03-18  Paul Eggert  <eggert@cs.ucla.edu>
8576         stdalign: restore previous behavior for HP-UX IA64
8577         See Bruno Haible's email in:
8578         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
8579         which cites p 150 of a manual saying that 'aligned' works on Itanium.
8580         * lib/stdalign.in.h (_Alignas):
8581         Assume the '061200' applies to Itanium, not to PA-RISC.
8582         * m4/stdalign.m4 (gl_STDALIGN_H): Adjust to match stdalign.in.h.
8584 2017-03-17  Bruno Haible  <bruno@clisp.org>
8586         stat-time, timespec: Support use of the header files in C++ mode.
8587         * lib/stat-time.h: Add "C" linkage declaration.
8588         * lib/timespec.h: Likewise.
8590 2017-03-17  Bruno Haible  <bruno@clisp.org>
8592         stdalign: Make it work with HP-UX cc.
8593         * lib/stdalign.in.h (_Alignas): Don't define for HP-UX cc.
8594         * m4/stdalign.m4 (gl_STDALIGN_H): No need to enable the extra test
8595         for HP-UX cc.
8597 2017-03-17  Paul Eggert  <eggert@cs.ucla.edu>
8599         flexmember: try to detect HP-UX 11.31 cc bug
8600         Problem reported by Bruno Haible in:
8601         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
8602         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
8603         Attempt to detect bug in HP-UX 11.31 cc.
8605 2017-03-16  Bruno Haible  <bruno@clisp.org>
8607         stdint: Fix test compilation failure with HP-UX 11 cc.
8608         * lib/stdint.in.h (_STDINT_MIN): Remove macro.
8609         (_STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN): New macros.
8610         (PTRDIFF_MIN, SIG_ATOMIC_MIN, WCHAR_MIN, WINT_MIN): Define using
8611         _STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN.
8613 2017-03-14  Bruno Haible  <bruno@clisp.org>
8615         gnulib-tool: Don't produce a tests directory with only snippet .h files.
8616         * gnulib-tool (func_modules_transitive_closure_separately): If
8617         testsrelated_modules ends up with no "real" modules, aside from
8618         modules with applicability 'all', set it to empty.
8620 2017-03-14  Bruno Haible  <bruno@clisp.org>
8622         vma-iter: Add support for HP-UX.
8623         * modules/vma-iter (configure.ac): Check for 'pstat_getprocvm'.
8624         * lib/vma-iter.c (vma_iterate): On HP-UX, use pstat_getprocvm().
8625         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on HP-UX.
8626         * lib/get-rusage-as.c: Update comment about HP-UX.
8627         * lib/get-rusage-data.c: Likewise.
8628         (get_rusage_data): Use get_rusage_data_via_setrlimit.
8630 2017-03-14  Bruno Haible  <bruno@clisp.org>
8632         limits-h: Make it work with HP-UX cc.
8633         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define if not
8634         defined.
8636 2017-03-14  Bruno Haible  <bruno@clisp.org>
8638         Fix test failures on DragonFlyBSD.
8639         * tests/test-localeconv.c (main): Treat DragonFlyBSD like FreeBSD.
8640         * tests/test-select.h (test_bad_fd): Likewise.
8641         * tests/test-get-rusage-data.c (main): Treat DragonFlyBSD like OpenBSD.
8643 2017-03-14  Bruno Haible  <bruno@clisp.org>
8645         freadahead: Silence warning on DragonFlyBSD.
8646         * lib/freadahead.c (__sreadahead): Declare ourselves.
8648 2017-03-14  Bruno Haible  <bruno@clisp.org>
8650         vma-iter: Add comment about AIX.
8651         * lib/vma-iter.c: Add comment about why this module is not implemented
8652         on AIX.
8654 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
8656         snippets: move unadjusted snippet sources to lib
8657         Problem reported by Michal Privoznik in:
8658         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00039.html
8659         * lib/_Noreturn.h: Rename from build-aux/snippet/_Noreturn.h.
8660         * lib/arg-nonnull.h: Rename from build-aux/snippet/arg-nonnull.h.
8661         * lib/c++defs.h: Rename from build-aux/snippet/c++defs.h.
8662         * lib/unused-parameter.h: Rename from
8663         build-aux/snippet/unused-parameter.h.
8664         * lib/warn-on-use.h: Rename from build-aux/snippet/warn-on-use.h.
8665         * modules/snippet/_Noreturn (Files:, _NORETURN_H):
8666         * modules/snippet/arg-nonnull (Files:, ARG_NONNULL_H):
8667         * modules/snippet/c++defs (Files:, CXXDEFS_H):
8668         * modules/snippet/unused-parameter (Files:, UNUSED_PARAMETER_H):
8669         * modules/snippet/warn-on-use (Files: WARN_ON_USE_H):
8670         Adjust to file renamings.
8672 2017-03-14  Mathieu Lirzin  <mthl@gnu.org>
8674         gnulib-tool: don't automatically distribute files from top/
8675         * gnulib-tool (func_get_automake_snippet_unconditional): To be able to
8676         not distribute top/README-release by default, don't distribute files
8677         from top/ unconditionally.
8678         * modules/gnumakefile (Makefile.am): Distribute top/GNUmakefile.
8679         * modules/maintainer-makefile (Makefile.am): Distribute top/maint.mk.
8681 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
8683         gnulib-tool: fix typo in comment output
8684         * gnulib-tool (func_import): Fix typo with previous change.
8686         snippets: work around GNU Make 3.82 VPATH
8687         When using 'gnulib-tool --gnu-make' on Emacs, and building
8688         the resulting tarball on Solaris 10 which bundles GNU Make 3.82,
8689         an out-of-source (VPATH) build failed because the sans-copyright
8690         snippet file was not built before the file that used it.
8691         Presumably this is some sort of VPATH thing.  Work around the
8692         problem by using the original snippet, i.e., don’t bother to
8693         remove its copyright notice.
8694         * modules/snippet/_Noreturn, modules/snippet/link-warning:
8695         Don’t assume Automake in comments.  Omit long-incorrect comment.
8696         * modules/snippet/arg-nonnull (BUILT_SOURCES, arg-nonnull.h)
8697         (MOSTLYCLEANFILES):
8698         * modules/snippet/c++defs (BUILT_SOURCES, c++defs.h)
8699         (MOSTLYCLEANFILES):
8700         * modules/snippet/unused-parameter (BUILT_SOURCES, unused-parameter.h)
8701         (MOSTLYCLEANFILES):
8702         * modules/snippet/warn-on-use (BUILT_SOURCES, warn-on-use.h)
8703         (MOSTLYCLEANFILES):
8704         Remove.
8705         * modules/snippet/arg-nonnull (ARG_NONNULL_H):
8706         * modules/snippet/c++defs (CXXDEFS_H):
8707         * modules/snippet/unused-parameter (UNUSED_PARAMETER_H):
8708         * modules/snippet/warn-on-use (WARN_ON_USE_H):
8709         Don’t bother to remove the copyright notice; just use the
8710         original snippet as-is.
8712 2017-03-13  Paul Eggert  <eggert@cs.ucla.edu>
8714         gnulib-tool: minor --gnu-make fixups
8715         * gnulib-tool (func_emit_lib_Makefile_am):
8716         Remove useless code that was a blind alley during implementation.
8717         Problem reported by Thien-Thi Nguyen in:
8718         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00029.html
8719         (func_import): Note the "--gnu-make" option in the output comment.
8721 2017-03-12  Paul Eggert  <eggert@cs.ucla.edu>
8723         gnulib-tool: new option --gnu-make
8724         This is for applications like GNU Emacs that use GNU Make
8725         features instead of Automake.
8726         * doc/gnulib-tool.texi (Initial import): Mention --gnu-make.
8727         * doc/gnulib.texi (Unit test modules, Build robot for gnulib):
8728         Do not assume Automake.
8729         * gnulib-tool (func_determine_path_separator)
8730         (func_modules_transitive_closure, func_update_file)
8731         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
8732         (func_import): Add support for --gnu-make.
8734 2017-03-11  Paul Eggert  <eggert@cs.ucla.edu>
8736         gnulib-common.m4: avoid aclocal.m4 bloat
8737         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB):
8738         Hide AM_PROG_AR from aclocal, so that aclocal does not
8739         install irrelevant macro definitions into aclocal.m4.
8741 2017-03-10  Bruno Haible  <bruno@clisp.org>
8743         vma-iter: Let callers know about error.
8744         * lib/vma-iter.h (vma_iterate): Return 'int', not 'void'.
8745         * lib/vma-iter.c (vma_iterate): Return -1 in case of error.
8747 2017-03-05  Bruno Haible  <bruno@clisp.org>
8749         Fix value of LD for 64-bit compilers on AIX.
8750         * m4/lib-ld.m4 (AC_LIB_PROG_LD): For 64-bit compilers on AIX
8751         ("gcc -maix64" and "xlc -q64"), add option -b64 to $LD.
8753 2017-03-04  Paul Eggert  <eggert@cs.ucla.edu>
8755         dtotimespec: simplify
8756         * lib/dtotimespec.c (dtotimespec): Simplify.
8758 2017-03-04  Bruno Haible  <bruno@clisp.org>
8760         test-calloc-gnu: Reenable test also for GCC 7.
8761         * tests/test-calloc-gnu.c (eight): New function.
8762         (main): Don't skip test; use eight() instead.
8764 2017-03-04  Jim Meyering  <meyering@fb.com>
8766         test-calloc-gnu: port to GCC7
8767         * tests/test-calloc-gnu.c (main) [__GNUC__ >= 7]: Skip a test
8768         that attempts to calloc more than SIZE_MAX bytes, because GCC7
8769         and newer would detect that at compilation time.
8771 2017-03-04  Bruno Haible  <bruno@clisp.org>
8773         tests: Avoid compiler warning about uses of null_ptr.
8774         * tests/null-ptr.h: New file.
8775         * tests/test-canonicalize.c: Include null-ptr.h.
8776         (null_ptr): Remove function.
8777         * tests/test-canonicalize-lgpl.c: Likewise.
8778         * tests/test-memmem.c: Likewise.
8779         * tests/test-ptsname_r.c: Likewise.
8780         * modules/canonicalize-tests (Files): Add tests/null-ptr.h.
8781         * modules/canonicalize-lgpl-tests: Likewise.
8782         * modules/memmem-tests: Likewise.
8783         * modules/ptsname_r-tests: Likewise.
8784         Reported by Jim Meyering.
8786 2017-03-03  Bruno Haible  <bruno@clisp.org>
8788         doc: Mention Mac OS X deficiencies regarding semaphores.
8789         * doc/posix-functions/sem_init.texi: Mention status on Mac OS X.
8790         * doc/posix-functions/sem_destroy.texi: Likewise.
8791         * doc/posix-functions/sem_getvalue.texi: Likewise.
8793 2017-03-03  Bruno Haible  <bruno@clisp.org>
8795         lock tests: Fix test failure on Mac OS X (regression from 2017-01-05).
8796         Reported by Assaf Gordon <assafgordon@gmail.com> via
8797         Pádraig Brady <P@draigBrady.com>.
8798         * tests/test-lock.c: On Mac OS X, use named semaphores, not unnamed
8799         semaphores.
8800         (USE_NAMED_SEMAPHORE, USE_UNNAMED_SEMAPHORE): New macros.
8801         (atomic_int_semaphore): New macro.
8803 2017-02-28  Bruno Haible  <bruno@clisp.org>
8805         perror tests: Tweak for z/OS.
8806         Reported by Daniel Richard G. <skunk@iskunk.org>.
8807         * tests/test-perror.sh: Don't fail z/OS style perror output.
8809 2017-02-26  Bruno Haible  <bruno@clisp.org>
8811         nproc: Refactor large function.
8812         * lib/nproc.c (num_processors_ignoring_omp): New function, extracted
8813         from num_processors.
8814         (num_processors): In this function, only deal with OMP.
8816 2017-02-26  Pádraig Brady  <P@draigBrady.com>
8818         nproc: adjust handling of OpenMP environment variables
8819         to match the return value from omp_get_num_threads(), i.e.:
8820          - honor OMP_THREAD_LIMIT without OMP_NUM_THREADS
8821          - Treat 0 as an invalid value and ignore
8822         Also remove the call to omp_get_num_threads() because
8823         it's ineffective without the omp pragmas in place.
8824         * lib/nproc.c (parse_omp_threads): Return 0 if specified,
8825         so that it can be ignored.
8826         (num_processors): Honor OMP_THREAD_LIMIT even without
8827         OMP_NUM_THREADS being set.  Also fix a typo in the environment
8828         variable being checked, from the previous recent commit.
8830 2017-02-26  Pádraig Brady  <P@draigBrady.com>
8832         nproc: support nested OMP_NUM_THREADS, and OMP_THREAD_LIMIT
8833         * lib/nproc.c (parse_omp_threads): A new function refactored
8834         from num_processors() to support parsing both of the
8835         above environment variables.
8836         (num_processors): Prefer using omp_get_num_threads() with [_OPENMP]
8837         to accurately reflect the current OpenMP nesting level.
8838         Also support the OMP_THREAD_LIMIT environment variable
8839         to limit the max value determined from OMP_NUM_THREADS.
8840         * modules/nproc: Depend on minmax header.
8841         Suggested by Oliver Heimlich.
8843 2017-02-25  Bruno Haible  <bruno@clisp.org>
8845         maintainer-makefile: Fix AC_PROG_SED with autoconf cache.
8846         * m4/gnulib-common.m4 (AC_PROG_SED): Fix AC_CACHE_CHECK invocation.
8848 2017-02-24  Paul Eggert  <eggert@cs.ucla.edu>
8850         ftoastr: port to -Wdouble-promotion
8851         Work around -Wdouble-promotion false alarm in recent GCCs.
8852         * lib/ftoastr.c (PROMOTED_FLOAT): New macro.
8853         (ftoastr_snprintf, FTOASTR): Use it.
8855 2017-02-21  Bruno Haible  <bruno@clisp.org>
8857         lock tests: Fix build failure on GNU/Hurd (regression from 2017-01-05).
8858         Reported by Rene Saavedra <rennes@openmailbox.org> in
8859         https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25821 via Paul Eggert.
8860         * lib/glthread/lock.h: On glibc systems without
8861         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP, use the fallback
8862         implementation of rwlocks.
8863         * lib/glthread/lock.c: Likewise.
8865 2017-02-20  Bruno Haible  <bruno@clisp.org>
8867         lock tests: Fix build failure on z/OS.
8868         Reported by Daniel Richard G. <skunk@iskunk.org>.
8869         * modules/lock-tests (configure.ac): Test for <semaphore.h>.
8870         * tests/test-lock.c (USE_SEMAPHORE): Don't set if <semaphore.h> does not
8871         exist.
8873 2017-02-19  Bruno Haible  <bruno@clisp.org>
8875         havelib: Prefer the search path of /usr/bin/gcc over the one of $CC.
8876         This helps when CC=clang.
8877         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Prefer the search path
8878         of /usr/bin/gcc.
8880         havelib: Support overriding the result of AC_LIB_PREPARE_MULTILIB.
8881         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use AC_CACHE_CHECK.
8883 2017-02-19  Bruno Haible  <bruno@clisp.org>
8885         gnulib-tool: Avoid conflict of havelib-tests with --single-configure.
8886         * gnulib_tool (func_create_testdir): Avoid havelib-tests when
8887         --with-tests --single-configure is specified.
8889 2017-02-16  Tim Rühsen  <tim.ruehsen@gmx.de>
8891         users.txt: Update links, use HTTPS where possible
8892         * users.txt: Updated to HTTPS where possible,
8893         fixed some links to new locations.
8895 2017-02-16  Bruno Haible  <bruno@clisp.org>
8897         xbinary-io: Fix inlining.
8898         * lib/xbinary-io.c: Set XBINARY_IO_INLINE, not XSETMODE_INLINE.
8900 2017-02-16  Paul Eggert  <eggert@cs.ucla.edu>
8902         xbinary-io: rename from xsetmode
8903         This patch is taken from suggestions by Bruno Haible in:
8904         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00060.html
8905         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00061.html
8906         * lib/binary-io.c (__gl_setmode_check): Set errno to EINVAL,
8907         not ENOTTY, when it is an inappropriate device.
8908         * lib/binary-io.h (SET_BINARY): Resurrect.
8909         * lib/xbinary-io.c: Rename from lib/xsetmode.c.
8910         (xset_binary_mode_error): Rename from xsetmode_error.
8911         * lib/xbinary-io.h: Rename from lib/xsetmode.h.
8912         (xset_binary_mode): Rename from xsetmode.
8913         All uses changed.
8914         * modules/xbinary-io: Rename from modules/xsetmode.
8915         Update file names.
8916         * tests/test-binary-io.sh (tmpfiles): Remove no-longer-used file name.
8917         * NEWS: Update to match revised behavior.
8919 2017-02-15  Paul Eggert  <eggert@cs.ucla.edu>
8921         tests: Adjust to recent SET_BINARY change
8922         * tests/test-binary-io.c (main):
8923         * tests/test-binary-io.sh: Remove test for SET_BINARY.
8924         * tests/test-closein.c, tests/test-fflush2.c, tests/test-ftell.c:
8925         * tests/test-ftello.c, tests/test-nonblocking-pipe-child.c:
8926         * tests/test-yesno.c: Use set_binary_mode, not SET_BINARY.
8928         xsetmode: new module
8929         This is to fix a problem noted by Eric Blake.
8930         Code was using xfreopen to change files to binary mode, but this
8931         fails for stdout when in append mode.  Such code should use
8932         xsetmode instead.
8933         * NEWS: Document incompatible changes to binary-io module.
8934         * lib/binary-io.c (__gl_setmode_check) [__DJGPP__ || __EMX__]:
8935         New function.
8936         * lib/binary-io.h (__gl_setmode): Rename from set_binary_mode.
8937         (set_binary_mode): New function, which also checks for tty.
8938         * lib/xsetmode.c, lib/xsetmode.h, modules/xsetmode: New files.
8940 2017-02-14  Paul Eggert  <eggert@cs.ucla.edu>
8942         headers: fix begin-end typos
8943         * lib/mbfile.h, lib/se-selinux.in.h: Fix typos by replacing
8944         _GL_INLINE_HEADER_BEGIN with _GL_INLINE_HEADER_END.
8946         selinux-h: port to PGI 16.10
8947         * lib/se-selinux.in.h: Don't assume that include_next skips over
8948         duplicate -I DIR options.
8950         argp: port to PGI 16.10
8951         * lib/argp-pin.c (dummy): Declare as needed to make file nonempty.
8953 2017-02-13  Darshit Shah  <darnir@gnu.org>
8955         unicase: Update function protoype to match definition.
8956         * lib/unicase/special-casing.h (gl_unicase_special_lookup): Gperf 3.1
8957         uses 'size_t' as the datatype for the 'len' parameter in the functions
8958         it generates. Update the prototype specified here to match the newly
8959         generated function.
8961 2017-02-12  Bruno Haible  <bruno@clisp.org>
8963         times test: Avoid gcc warnings on Linux/x32.
8964         * tests/test-times.c (main): Really cast printf arguments from clock_t
8965         to 'long int'.
8967 2017-02-12  Paul Eggert  <eggert@cs.ucla.edu>
8969         glob: port better to emscripten
8970         Problem reported by Bruno Haible in:
8971         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00031.html
8972         * lib/glob.c (glob): Don't assume HAVE_GETPWNAM_R || _LIBC.
8974 2017-02-11  Bruno Haible  <bruno@clisp.org>
8976         host-cpu-c-abi: Support for 64-bit AIX, 32-bit armhf on arm64, hppa64.
8977         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Define also HOST_CPU.
8978         For the x32 ABI on x86_64, set HOST_CPU_C_ABI to 'x86_64-x32' and define
8979         both __x86_64__ and __x86_64_x32__. For the ELFv2 ABI on powerpc64,
8980         define both __powerpc64__ and __powerpc64_elfv2__. Recognize 64-bit
8981         compilation on AIX. Recognize 32-bit compilation on arm64/Linux.
8982         Distinguish hppa64 from hppa.
8984 2017-02-10  Bruno Haible  <bruno@clisp.org>
8986         search: Don't assume that tsearch() exists if 'VISIT' is defined.
8987         * m4/search_h.m4 (gl_SEARCH_H): Determine HAVE_TYPE_VISIT.
8988         * modules/search (Makefile.am): Substitute HAVE_TYPE_VISIT.
8989         * lib/search.in.h (VISIT): Define if HAVE_TYPE_VISIT is 0.
8991 2017-02-09  Bruno Haible  <bruno@clisp.org>
8993         doc: Don't mention obsolete AC_LIBTOOL_WIN32_DLL macro.
8994         * doc/gnulib.texi (Libtool and Windows): Recommend
8995         LT_INIT([win32-dll]) instead of AC_LIBTOOL_WIN32_DLL.
8996         Reported by Reuben Thomas <rrt@sc3d.org>.
8998 2017-02-08  Paul Eggert  <eggert@cs.ucla.edu>
9000         stddef-tests: port to SIZE_MAX <= INT_MAX
9001         * tests/test-stddef.c: Include <limits.h>, for INT_MAX.
9002         Do not assume that INT_MAX < SIZE_MAX.
9004 2017-02-01  Bruno Haible  <bruno@clisp.org>
9006         lock tests: Fix link error.
9007         * modules/lock-tests (test_rwlock1_LDADD): Add @YIELD_LIB@.
9008         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9010 2017-01-31  Bruno Haible  <bruno@clisp.org>
9012         lock: Fix link error (regression from 2017-01-05).
9013         * lib/glthread/lock.h [USE_POSIX_THREADS_WEAK]: Declare also
9014         pthread_rwlockattr_init, pthread_rwlockattr_setkind_np,
9015         pthread_rwlockattr_destroy weak.
9016         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9018 2017-01-30  Paul Eggert  <eggert@cs.ucla.edu>
9020         Port to PGI 16.10 x86-64
9021         This patch fixes one real bug in gl_anylinked_list2.h, along with
9022         some minor glitches that are not bugs.  It does not silence PGI’s
9023         thousands of bogus warnings when compiling test-intprops.c.
9024         Fortunately, the warnings do not cause a failure.
9025         * lib/c-ctype.h (_C_CTYPE_LOWER_A_THRU_F_N, _C_CTYPE_LOWER_N):
9026         Rename parameter to avoid PGI warning about ‘#define f(n) 'n'’.
9027         My goodness, PGI goes back a long ways - this predates C89!
9028         * lib/gl_anylinked_list2.h (ASYNCSAFE): Fix bug caught by PGI.
9029         For example, ASYNCSAFE (const void *) should expand to
9030         ‘const void *volatile’, not to ‘volatile const void *’.
9031         * lib/spawn.in.h (POSIX_SPAWN_USEVFORK): Don't define if already defined.
9032         * lib/verify.h (verify) [!__GNUC__]:
9033         Use shorter albeit meaningless string to bypass silly compiler limits.
9034         * tests/infinity.h (Infinityf, Infinityd, Infinityl) [__PGI]:
9035         * tests/nan.h (NaNf, NaNd, NaNl):
9036         Use static functions to avoid misguided compiler diagnostics.
9037         Is there some reason we don’t use static functions on all platforms?
9039 2017-01-20  Paul Eggert  <eggert@cs.ucla.edu>
9041         parse-datetime: handle timezones reentrantly
9042         This API change was prompted by a report by Pádraig Brady in:
9043         https://bug.debian.org/851934#10
9044         To help fix the bug, make parse_datetime2 more reentrant.
9045         * NEWS: Document this incompatible change.
9046         * lib/parse-datetime.h, lib/parse-datetime.y (parse_datetime2):
9047         Add two arguments, the timezone and the timezone name.
9048         All callers changed.  If TZ="..." is specified, use it for
9049         calculating defaults.
9050         * lib/parse-datetime.y: Don't include xalloc.h or use xmalloc, as
9051         this code should be usable in a library.
9052         (mktime_ok, get_effective_timezone):
9053         Accept timezone arg too.  All callers changed.
9054         (get_tz): Remove.
9055         (get_effective_timezone): Check for failures.
9057 2017-01-20  Eric Blake  <eblake@redhat.com>
9059         localename: port to cygwin 2.6
9060         * lib/localename.c (gl_locale_name_thread_unsafe): Add clause for
9061         Cygwin.
9062         * modules/localename (Depends-on): Add extensions, since
9063         NL_LOCALE_NAME() is not visible without it.
9065 2017-01-17  Pádraig Brady  <P@draigBrady.com>
9067         parse-datetime: fix dependence on AC_PROG_SED
9068         * modules/parse-datetime: Use `sed` directly like all other modules.
9069         Reported by J William Piggott
9071 2017-01-16  Paul Eggert  <eggert@cs.ucla.edu>
9073         intprops: update doc URLs
9074         * doc/intprops.texi (Integer Range Overflow): Update URLs.
9076 2017-01-16  Bruno Haible  <bruno@clisp.org>
9078         host-cpu-c-abi: Add support for armhf, arm64, x32, s390x.
9079         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Require gl_C_ASM. On x86_64
9080         systems, distinguish x86_64 and x32. On arm systems, distinguish arm,
9081         armhf, arm64, and no longer distinguish arm and armel. On s390x systems,
9082         distinguish s390 and s390x.
9083         * modules/host-cpu-c-abi (Files): Add m4/asm-underscore.m4.
9084         * NEWS: Mention the change regarding 'armel'.
9086 2017-01-15  Paul Eggert  <eggert@cs.ucla.edu>
9088         localeinfo: case_folded_counterparts and WEOF
9089         * NEWS: Document this.
9090         * lib/localeinfo.c (case_folded_counterparts):
9091         First arg is now wint_t, not wchar_t.  This generalizes the
9092         function to also work on WEOF, where it returns 0.
9094         dfa: port to gcc -fsanitize=undefined
9095         * lib/dfa.c (copy): Don’t pass NULL with size 0 to memcpy,
9096         as this runs afoul of gcc -fsanitize=undefined.
9098 2017-01-14  Paul Eggert  <eggert@cs.ucla.edu>
9100         strftime: %z is -00 if unknown
9101         * lib/strftime.c (DO_TZ_OFFSET): Omit arg 'negative'; it's now
9102         the caller's responsibility to set 'negative_number'.  All uses changed.
9103         (__strftime_internal): Put '-' before a zero UTC offset if the time
9104         zone abbreviation starts with "-", which is the recently-introduced
9105         tzdb convention for an unknown UTC offset that is arbitrarily set to 0.
9106         * tests/test-strftime.c: Test for this.
9108 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
9110         dfa: port to older GCC
9111         Problem reported by Assaf Gordon in:
9112         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00103.html
9113         * modules/c99: New module.  This merely attempts to use the latest
9114         C version, which should be enough to solve this particular problem.
9115         The idea is to document which Gnulib modules assume C99 or later.
9116         * modules/dfa (Depends-on): Add it.
9118 2017-01-10  Bruno Haible  <bruno@clisp.org>
9120         Update DEPENDENCIES.
9121         * DEPENDENCIES: List only https URLs. Update recommended version for
9122         autoconf, automake, gperf.
9124 2017-01-10  Jim Meyering  <meyering@fb.com>
9126         maint.mk: enforce spelling of "timestamp" (i.e., no space)
9127         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
9128         disallow /\btime\s+stamps?\b/.  Prefer "timestamp".
9130 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
9132         dfa: minor simplification with emptyset
9133         * lib/dfa.c (build_state): Simplify by using emptyset.
9135 2017-01-09  Paul Eggert  <eggert@cs.ucla.edu>
9137         dfa: shrink constraints from 4 bits to 3
9138         * lib/dfa.c (newline_constraint, letter_constraint)
9139         (other_constraint, prev_newline_dependent)
9140         (prev_letter_dependent, NO_CONSTRAINT, BEGLINE_CONSTRAINT)
9141         (ENDLINE_CONSTRAINT, BEGWORD_CONSTRAINT, ENDWORD_CONSTRAINT)
9142         (LIMWORD_CONSTRAINT, NOTLIMWORD_CONSTRAINT):
9143         Constraints need only 3 bits, not 4.  Using smaller integers
9144         shrinks the code a bit and makes grep a tad faster on x86-64.
9146         dfa: omit unnecessary ptrdiff_t check
9147         * lib/dfa.c (alloc_position_set): Do not worry about ptrdiff_t
9148         overflow, since xnmalloc does that now.
9150         dfa: omit unnecessary allocation
9151         * lib/dfa.c (dfaanalyze): Do not allocate follow set, since
9152         an all-zero follow set works just fine.
9154         dfa: omit unused local
9155         * lib/dfa.c (build_state): Fix up recent change.
9157         maint: remove stray .texi files
9158         Although these were superseded by other files like
9159         doc/posix-functions/ctime.texi, the old files were not removed.
9160         * doc/ctime.texi, doc/inet_ntoa.texi: Remove.
9162 2017-01-08  Paul Eggert  <eggert@cs.ucla.edu>
9164         getprogname: fix port to IRIX
9165         * lib/getprogname.c (getprogname) [__sgi]:
9166         Don't dump core if malloc returns NULL.
9168         dfa: fix reallocation bug when matching newlines
9169         Problem reported for sed by S. Gilles (Bug#25390).
9170         * lib/dfa.c (realloc_trans_if_necessary): Move earlier.
9171         (dfastate): Reallocate before moving any newline transition ...
9172         (build_state): ... instead of reallocating here, where it is too late.
9174 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
9176         Avoid -Wundef warning about undefined WINDOWS_SOCKETS.
9177         * lib/sockets.h: Test if WINDOWS_SOCKETS is defined.
9179 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
9181         Avoid -Wundef warning about undefined __USE_FILE_OFFSET64.
9182         * lib/glob-libc.h: Test if __USE_FILE_OFFSET64 is defined.
9184 2017-01-07  Bruno Haible  <bruno@clisp.org>
9186         stdioext: Port to Minix 3.2 and newer.
9187         * lib/stdio-impl.h: Treat __minix like the newest NetBSD.
9188         * lib/fseeko.c (fseeko): Likewise.
9189         Reported by Nelson Beebe via Paul Eggert.
9191 2017-01-06  Paul Eggert  <eggert@cs.ucla.edu>
9193         getprogname: port to IRIX
9194         * lib/getprogname.c (getprogname): Port to IRIX.
9195         Based on an idea by Bastien Roucariès at:
9196         http://lists.gnu.org/r/bug-gnulib/2010-12/msg00096.html
9197         via code from Bruno Haible at:
9198         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
9200         localename-tests: port to NetBSD 7
9201         Problem reported by Nelson H. F. Beebe.
9202         * tests/test-localename.c:
9203         Test newlocale and uselocale only if both exist.
9205         glob, intprops, xalloc: work around Clang bug
9206         Work around LLVM bug 16404, which is still not fixed.
9207         https://llvm.org/bugs/show_bug.cgi?id=16404
9208         Problem reported by Nelson H. F. Beebe.
9209         * lib/glob.c, lib/intprops.h, lib/xalloc-oversized.h (__has_builtin):
9210         Remove.
9211         * lib/glob.c (size_add_wrapv):
9212         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW, _GL_HAS_BUILTIN_OVERFLOW_P):
9213         * lib/xalloc-oversized.h (xalloc_oversized):
9214         Do not use overflow builtins if Clang.
9216         dfa: fix 'return' typo
9217         Problem reported by Nelson H. F. Beebe.
9218         * lib/dfa.c (merge): Fix typo that Sun compilers rejected.
9220 2017-01-05  Pádraig Brady  <P@draigBrady.com>
9222         parse-datetime: fix generated paths for coverage files
9223         * modules/parse-datetime: Adjust the paths for parse-datetime.y
9224         within parse-datetime.c, so that gcc generates appropriate .gcno
9225         files, allowing lcov to proceed without error.  Previously it
9226         would error trying to find "lib/lib/parse-datetime.y".
9228 2017-01-05  Pádraig Brady  <P@draigBrady.com>
9230         maint.mk: support parallel execution of coverage
9231         * top/maint.mk (coverage): Run dependencies serially,
9232         thus supporting parallel processing of each one,
9233         particularly build-coverage, which builds and runs tests.
9235 2017-01-05  Bruno Haible  <bruno@clisp.org>
9237         lock tests: Prefer semaphore over mutex.
9238         * tests/test-lock.c (USE_SEMAPHORE): New constant.
9239         (struct atomic_int, init_atomic_int, get_atomic_int_value,
9240         set_atomic_int_value) [USE_SEMAPHORE]: Define using a POSIX semaphore.
9241         Suggested by Torvald Riegel <triegel@redhat.com>.
9243 2017-01-05  Bruno Haible  <bruno@clisp.org>
9245         lock: Provide guarantee to avoid writer starvation for rwlocks.
9246         The rationale is: 1) Read-preferring read-write locks are prone to
9247         writer starvation if the number of reader threads multiplied by the
9248         percentage of time they have the lock held is too high. 2) Write-
9249         preferring read-write locks are the only reliable way to avoid this.
9250         3) There have been reports of 'test-lock' hanging on glibc systems
9251         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00009.html,
9252         and glibc indeed implements read-preferring rwlocks by default, see
9253         http://man7.org/linux/man-pages/man3/pthread_rwlockattr_setkind_np.3.html
9254         and https://sourceware.org/bugzilla/show_bug.cgi?id=13701 .
9255         * m4/pthread_rwlock_rdlock.m4: New file.
9256         * m4/lock.m4 (gl_LOCK): Invoke gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
9257         * lib/glthread/lock.h [USE_POSIX_THREADS]: Test
9258         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
9259         of rwlock initialization on glibc systems without
9260         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
9261         of rwlocks altogether on non-glibc systems without
9262         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
9263         [USE_PTH_THREADS]: Use a different implementation of rwlocks altogether.
9264         * lib/glthread/lock.c [USE_POSIX_THREADS]
9265         (glthread_rwlock_init_for_glibc): New function.
9266         [USE_POSIX_THREADS] (glthread_rwlock_rdlock_multithreaded): Update
9267         comment.
9268         [USE_PTH_THREADS]: New implementation of rwlocks.
9269         [USE_WINDOWS_THREADS] (glthread_rwlock_rdlock_func): Prefer writers over
9270         readers.
9271         * modules/lock (Files): Add m4/pthread_rwlock_rdlock.m4.
9272         (Depends-on): Add 'extensions'.
9273         * tests/test-rwlock1.c: New file.
9274         * lock-tests (Files): Add it.
9275         (Depends-on): Add usleep.
9276         (Makefile.am): Add test-rwlock1 to the tests.
9278 2017-01-05  Bruno Haible  <bruno@clisp.org>
9280         thread: Fix pth port.
9281         * lib/glthread/thread.h (pth_init): Declare weak.
9282         (glthread_create, glthread_sigmask, glthread_join, gl_thread_self,
9283         gl_thread_exit): Make sure Pth is initialized before invoking any Pth
9284         function.
9286 2017-01-04  Assaf Gordon  <assafgordon@gmail.com>
9288         parse-datetime: fix debug message on lone year number
9289         Input dates such as
9290           date -d "Apr 11 22:59:00 2011"
9291         are parsed as date (Apr 11, with default year 2016), then time, then a
9292         number (2011). Based on the combination of previously seen tokens,
9293         'digits_to_date_time' determines 2011 to be a year value.
9294         This fixes the debug messages to correctly show the updated year.
9295         Before:
9296             $ date --debug -d 'Apr 11 22:59:00 2011'
9297             date: parsed date part: (Y-M-D) 2016-04-11
9298             date: parsed time part: 22:59:00
9299             date: parsed number part: today/this/now
9300         After:
9301             $ ./src/date --debug -d 'Apr 11 22:59:00 2011'
9302             date: parsed date part: (Y-M-D) 2016-04-11
9303             date: parsed time part: 22:59:00
9304             date: parsed number part: year: 2011
9305         * lib/parse-datetime.y (struct parser_control): Add 'year_seen',
9306         'debug_year_seen' member fields.
9307         (digits_to_date_time): Update 'year_seen' as needed.
9308         (debug_print_current_time): Inform about year updates.
9309         (parse_datetime2): Initialize year_seen,debug_year_seen member fields.
9311         parse-datetime: fix local timezone debug messages
9312         "Local timezones" are strings that affect only DST relative to the
9313         default timezone. The debug messages in parse-datetime.y printed
9314         wrong information when encountering local timezones.
9315         Examples:
9316         Here EET/EEST are time zones ('zone' token, with values +02:00/+03:00):
9317              TZ=Asia/Tokyo ./src/date --debug -d '2011-12-11 EET'
9318              TZ=Asia/Tokyo ./src/date --debug -d '2011-06-11 EEST'
9319         When the default timezone relates to the zone strings, EET/EEST are
9320         parsed as local timezones (tLOCAL_ZONE), and only change the DST
9321         value (0/1, respectively):
9322              TZ=Europe/Helsinki ./src/date --debug -d '2011-12-11 EET'
9323              TZ=Europe/Helsinki ./src/date --debug -d '2011-06-11 EEST'
9324         * lib/parse-datetime.y (debug_print_current_time): If local timezone
9325         was seen, inform about DST change, don't print actual timezone.
9326         (debug_strfdatetime): If local timezone was seen, use default timezone
9327         (and adjust as needed) instead of using incorrect timezone.
9328         (parse_datetime2): Use correct time-zone source string, and adjust
9329         default timezone as needed.
9331         parse-datetime: add debug warning about DST changes
9332         Incorrect date arithmetic due to daylight saving time (DST) are a
9333         common (false) bug report in coreutils.
9334         Detect two such cases and print a warning:
9335         1. year/month/day adjustments (performed on 'struct tm'),
9336            where 'mktime' returns a different isdst value.
9337         2. hour/minute/seconds/ns adjustments (performed on 'time_t'),
9338            where the result of 'localtime(3)' on the value will return a
9339            different isdst value.
9340         Note: DST changes could be harmless or unnoticeable.
9341         Examples (with 'TZ=America/New_York'):
9342         Unnoticeable: result is 2016-Dec-14
9343            $ date -d '2016-06-15 EDT + 6 months' +%b
9344            Dec
9345         Unnoticeable: result is 2016-Dec-15 11:00:00
9346            $ date -d '2016-06-15 12:00:00 EDT + 6 months' +%F
9347            2016-12-15
9348         This is unexpected:
9349            $ date -d '2016-06-01 EDT + 6 months' +%F
9350            2016-11-30
9351         The new debug warnings will show:
9352            $ ./src/date --debug -d '2016-06-01 EDT + 6 months' +%F
9353            ...
9354            date: warning: daylight saving time changed after date adjustment
9355            ...
9356         * lib/parse-datetime.y (parse_datetime2): Detect DST changes, and
9357         print an appropriate warning message.
9359         parse-datetime: add debug warning about date arithmetic
9360         Date arithmetic are done directly on the fields of 'struct tm',
9361         which can result in invalid dates. Normalization with 'mktime(3)'
9362         will then produce a different date - which might cause unexpected
9363         results.
9364         Examples:
9365           '2016-10-31 - 1 month' => 2016-09-31 normalized to 2016-10-01.
9366           '2016-02-29 + 1 year'  => 2017-02-29 normalized to 2017-03-01.
9367         Note that date normalization is not inherently wrong and not rejected,
9368         as it has legitimate uses:
9369           '2016-12-29 + 5 days' => 2016-12-34 noramlized to 2017-01-03.
9370         If the user asked to adjust months but 'mday' changed,
9371         or user asked to adjust years but 'month' changed - warn about it.
9372             $ ./src/date --debug -d '2016-10-31 - 1 month'
9373             ...
9374             date: warning: when adding relative months/years, \
9375                            it is recommended to specify the 15th of the month
9376             ...
9377             date: warning: month/year adjustment resulted in shifted dates:
9378             date:      adjusted Y M D: 2016 09 31
9379             date:    normalized Y M D: 2010 10 01
9380             ...
9381         * lib/parse-datetime.y (parse_datetime2): Detect such cases and print
9382         a warning message. Improve recommendation of when to use 15 of the
9383         month or noon for date arithmetic.
9385         parse-datetime: fix debug message of relative part after timezone
9386         Relative part (e.g '+8 days') after a timezone string was not
9387         reported (was only reported after a timezone number). Due to the
9388         parser's structure, timezone strings with numbers were handled
9389         separately.
9390         before:
9391              # Timezone number + relative part: OK
9392              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 +00:00 -8 days'
9393              ...
9394              date: parsed relative part: -8 day(s)
9395              # Timezone string + relative part: missing
9396              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 UTC -8 days'
9397              [ missing message ]
9398         After: messages are printed in both cases.
9399         * lib/parse-datetime.y ('zone' token): Call debug_print_relative_time.
9401         parse-datetime: fix incorrect debug message on lone number
9402         A lone number is an absolute value, not a relative time part.
9403         before:
9404            $ date --debug -d '20130101'
9405            date: parsed number part: today/this/now
9406         After:
9407            $ ./src/date --debug -d '20130101'
9408            date: parsed number part: (Y-M-D) 2013-01-01
9409         * lib/parse-datetime.y ('item'/'number' tokens): Call
9410         'debug_print_current_time' instead of 'debug_print_relative_time'.
9412 2017-01-02  Paul Eggert  <eggert@cs.ucla.edu>
9414         doc: modernize for C11 etc.
9415         * doc/gnulib-readme.texi (Portability guidelines): Modernize a bit
9416         for C11, MinGW, etc.  This responds to Paul Smith's question in:
9417         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00014.html
9419         dfa: prefer functions to FETCH_WC macro
9420         * lib/dfa.c (FETCH_WC): Remove, replacing with ...
9421         (fetch_wc, bracket_fetch_wc): ... new functions.  These store the
9422         wint_t result into DFA->lex.wctok instead of to a separate arg.
9423         All callers changed.  Move more local decls closer to where
9424         they're used.
9426         dfa: narrow more local var scopes
9427         * lib/dfa.c: Move more local decls to be more local.
9429         dfa: remove duplicate assignment
9430         Problem reported by Bruno Haible in:
9431         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00007.html
9432         * lib/dfa.c (parse_bracket_exp): Simplify.
9434 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
9436         dfa: simplify constraint-dependency checking
9437         * lib/dfa.c (prev_newline_constraint, prev_letter_constraint)
9438         (prev_other_constraint): Remove.
9439         (prev_newline_dependent, prev_letter_dependent):
9440         Simplify, to avoid an unnecessary bitwise AND operation.
9442         dfa: prefer functions and constants to macros
9443         * lib/dfa.c: Prefer constants to macros where either will do.
9444         (streq, isasciidigit, newline_constraint)
9445         (letter_constraint, other_constraint, succeeds_in_context)
9446         (prev_newline_constraint, prev_letter_constraint)
9447         (prev_other_constraint, prev_newline_dependent)
9448         (prev_letter_dependent, accepting, accepts_in_context):
9449         Now static functions instead of function-like macros.
9450         Use lower-case names accordingly.  All uses changed.
9452         dfa: narrow more local var scopes
9453         * lib/dfa.c: Move some more local decls down to nearer where
9454         they're needed.
9456 2016-12-31  Jim Meyering  <meyering@fb.com>
9458         dfa: narrow the scope of many local variables
9459         * lib/dfa.c: Now that we are no longer constrained to c89, move
9460         declarations of many variables (often indices) "down" into the
9461         scope(s) where used or to the point of definition.  This is a
9462         no-semantic-change diff.
9464 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
9466         version-etc: new year
9467         * build-aux/gendocs.sh (version):
9468         * doc/gendocs_template:
9469         * doc/gendocs_template_min:
9470         * doc/gnulib.texi:
9471         * lib/version-etc.c (COPYRIGHT_YEAR):
9472         Update copyright dates by hand in templates and the like.
9473         * all files: Run 'make update-copyright'.
9475 2016-12-31  Eric Blake  <eblake@redhat.com>
9477         do-release-commit-and-tag: avoid shell syntax error
9478         * build-aux/do-release-commit-and-tag (curr_br): $branch can
9479         contain spaces when rebasing.
9481         maint.mk: hoist gnulib_dir definition earlier
9482         * top/maint.mk (gnulib_dir): Move near top of file.
9484 2016-12-31  Jim Meyering  <meyering@fb.com>
9486         maint.mk: do not always evaluate intprops-related shell
9487         * top/maint.mk (_intprops_names): Change := to just "=" to avoid
9488         using gnulib_dir undefined (gnulib_dir is defined later in the
9489         file, which will be fixed separately), and besides, there is no
9490         need to incur the cost of this shell invocation for every single
9491         use of this .mk file.  Reported by Eric Blake in
9492         https://lists.gnu.org/r/bug-gnulib/2016-12/msg00137.html
9494 2016-12-30  Jim Meyering  <meyering@fb.com>
9496         maint.mk: improve sc_prohibit_intprops_without_use
9497         * top/maint.mk (_intprops_names): Don't hard-code the list of
9498         symbol names.  Instead, derive it on the fly.
9500 2016-12-30  Paul Eggert  <eggert@cs.ucla.edu>
9502         dfa: shorten sbit, success
9503         * lib/dfa.c (struct regex_syntax.sbit):
9504         (struct dfa.success): Use char, not int, for array elements, since
9505         they are all in the range 0..7.
9507         dfa: simplify multibyte_prop etc.
9508         This follows up on a change made when dfa.c was in grep, namely grep
9509         commit c797046c7c13c2647182b919a79a4c5b4ecf82b1
9510         dated 2015-08-12 07:35:03 -0700, which removed unused multibyte support.
9511         That earlier simplification allows for some more simplification
9512         and trimming down here.
9513         * lib/dfa.c (struct mb_char_classes): New member nchars_alloc.
9514         (struct lexer_state): New mamber brack.
9515         (struct dfa, addtok_mb): multibyte_prop elements are now char, not int,
9516         since they must be in the range 0..3 now.
9517         Remove members mbcsets, nmbcsets, mbcsets_alloc, since
9518         the brack member now supersedes them.
9519         (parse_bracket_exp): Update dfa->lex.brack instead of dfa->mbcsets.
9520         (addtok): Use dfa->lex.brack instead of dfa->mbcsets.
9521         (dfaparse): Remove unnecessary initializations of already-0 storage.
9522         (free_mbdata): Free d->lex.brack.chars instead of d->mbcsets.
9523         (dfassbuild): No need to clear sup->mbcsets.
9525         dfa: minor performance tweak
9526         * lib/dfa.c (setbit_wc): Test < 0, not == EOF.
9528         dfa: wrap charclass inside a struct
9529         On my platform (gcc Ubuntu 5.4.0-6ubuntu1~16.04.4 x86-64,
9530         en_US.utf8 locale) this makes 'grep -Fi -f list.txt list.txt >out'
9531         about 5% faster, where list.txt is generated by 'aspell dump
9532         master | head -n 100000 >list.txt'.  See Bug#22239.
9533         * lib/dfa.c (charclass): Wrap inside a struct.  All uses changed.
9534         (CHARCLASS_INIT, tstbit, setbit, clrbit, zeroset, fillset, notset)
9535         (equal, emptyset, charclass_index, setbit_wc, setbit_case_fold_c):
9536         Adjust to this, e.g., by using charclass * rather than charclass.
9537         All callers changed as needed.
9538         (copyset): Remove.  All uses changed to simple assignment.
9539         (parse_bracket_exp): Use zeroset instead of memset.
9541 2016-12-30  Jim Meyering  <meyering@fb.com>
9543         maint.mk: update list of intprops.h symbol names
9544         * top/maint.mk (_intprops_names): Regenerate the list of symbol names.
9545         This avoids a false failure of the sc_prohibit_intprops_without_use
9546         rule in grep.
9548 2016-12-29  Eric Blake  <eblake@redhat.com>
9550         getopt: fix parallel test failure
9551         * tests/test-getopt-posix.c (TEST_GETOPT_TMP_NAME): Set name.
9552         * tests/test-getopt-gnu.c (TEST_GETOPT_TMP_NAME): Likewise.
9553         * tests/test-getopt-main.h (main): Use different file names
9554         in case test-getopt-gnu and test-getopt-posix run in parallel.
9556 2016-12-29  Paul Eggert  <eggert@cs.ucla.edu>
9558         xalloc: x2nrealloc check for ptrdiff_t overflow
9559         * lib/xalloc.h (x2nrealloc): Check for ptrdiff_t overflow, too.
9560         * modules/xalloc, modules/xvasprintf (Depends-on): Add stdint.
9562 2016-12-24  Bruno Haible  <bruno@clisp.org>
9564         lock test: Fix performance problem on multi-core machines.
9565         * tests/test-lock.c (USE_VOLATILE): New macro.
9566         (struct atomic_int): New type.
9567         (init_atomic_int, get_atomic_int_value, set_atomic_int_value): New
9568         functions.
9569         (lock_checker_done, rwlock_checker_done, reclock_checker_done): Define
9570         as 'struct atomic_int'.
9571         (lock_checker_thread, test_lock, rwlock_checker_thread, test_rwlock,
9572         reclock_checker_thread, test_recursive_lock): Use the new functions.
9573         Reported by Eric Blake in
9574         https://www.redhat.com/archives/libvir-list/2012-March/msg00854.html
9575         and by Pádraig Brady in
9576         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00117.html.
9578 2016-12-19  Bruno Haible  <bruno@clisp.org>
9580         vma-iter: Fix endless loop on 64-bit Windows.
9581         * lib/vma-iter.c (vma_iterate): On Windows, use 'uintptr_t' instead of
9582         'unsigned long'.
9584 2016-12-19  Bruno Haible  <bruno@clisp.org>
9586         stdint: Fix WINT_MAX to match the gnulib provided wint_t on minw.
9587         * m4/wint_t.m4 (gt_TYPE_WINT_T): Define GNULIB_OVERRIDES_WINT_T here.
9588         * m4/stdint.m4 (gl_STDINT_H): Don't define GNULIB_OVERRIDES_WINT_T.
9589         Invoke gt_TYPE_WINT_T instead.
9590         (gl_STDINT_TYPE_PROPERTIES): Test GNULIB_OVERRIDES_WINT_T.
9591         * modules/stdint (Files): Add m4/wint_t.m4.
9592         * modules/wchar (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
9593         * modules/wctype-h (Makefile.am): Likewise.
9594         * lib/wchar.in.h (wint_t): Override if GNULIB_OVERRIDES_WINT_T is set,
9595         not only on MSVC.
9596         * lib/wctype.in.h (wint_t): Likewise.
9598 2016-12-19  Paul Eggert  <eggert@cs.ucla.edu>
9600         getopt-posix-tests: fix Makefile typo
9601         * modules/getopt-posix-tests (test_getopt_posix_LDADD):
9602         Fix typo: the last ‘_’ was missing in the name.
9603         I suspect that the typo explains this build failure:
9604         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/39
9605         although I can’t reproduce the problem on Solaris 10 sparc.
9607 2016-12-18  Paul Eggert  <eggert@cs.ucla.edu>
9609         dfa: improve worst-case 'replace' performance
9610         See my note in Bug#22357#71.
9611         * lib/dfa.c (insert, delete): Rework to avoid duplicate test.
9612         (merge_constrained): New function, which is like
9613         the old 'merge' function, except with a new argument C2.
9614         Simplify the body by avoiding the need for different sections
9615         of code depending on whether one input is exhausted.
9616         (merge): Use the new function.
9617         (delete): Return the constraint of the deleted position,
9618         not the entire position.  Caller changed.
9619         (replace): Change from O(N*(N + log N)) to O(N log N) algorithm.
9621 2016-12-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
9623         dfa: performance improvement for removal of epsilon closure
9624         See Bug#22357#32.
9625         * lib/dfa.c (delete): Use binary search to find deleted index.
9626         (replace): New function.  It replaces a position with the followed set.
9627         (epsclosure): Replace it with a new algorithm.  Update caller.
9629 2016-12-18  Bruno Haible  <bruno@clisp.org>
9631         Split tests for getopt-posix and getopt-gnu.
9632         * tests/test-getopt-posix.c: New file.
9633         * tests/test-getopt-gnu.c: New file, with code from test-getopt.c.
9634         * tests/test-getopt-main.h: Renamed from tests/test-getopt.c. Remove
9635         stuff moved to test-getopt-gnu.c. Test TEST_GETOPT_GNU instead of
9636         GNULIB_TEST_GETOPT_GNU.
9637         * modules/getopt-posix-tests (Files): Add test-getopt-posix.c,
9638         test-getopt-main.h. Remove test-getopt.c, test-getopt_long.h.
9639         (Makefile.am): Test test-getopt-posix instead of test-getopt.
9640         * modules/getopt-gnu-tests: New file.
9641         * modules/getopt-gnu (configure.ac): Don't define GNULIB_TEST_GETOPT_GNU.
9643 2016-12-18  Bruno Haible  <bruno@clisp.org>
9645         posix-modules: Add options for specific platforms.
9646         * posix-modules (func_usage): Document options --for-mingw, --for-msvc.
9647         (exclude_for_mingw, exclude_for_msvc, exclude): New variables.
9648         Invoke func_tmpdir. Filter out the excludes.
9650 2016-12-18  Bruno Haible  <bruno@clisp.org>
9652         getopt: Fix link error for users of getopt() in <unistd.h>.
9653         * lib/getopt.in.h (getopt etc.): Do the macro definitions also when
9654         __need_getopt is defined. Undefine all macros before defining them.
9655         * modules/getopt (Include): Clarify that including <unistd.h> is also
9656         OK.
9657         * tests/test-getopt.c: Add comment.
9659 2016-12-17  Bruno Haible  <bruno@clisp.org>
9661         getaddrinfo tests: Avoid compilation error on MSVC.
9662         * tests/test-getaddrinfo.c: Don't check the prototypes of freeaddrinfo,
9663         getaddrinfo on native Windows.
9665 2016-12-17  Bruno Haible  <bruno@clisp.org>
9667         getlogin, getlogin_r: Fix link errors on MSVC.
9668         * m4/getlogin.m4 (gl_LIB_GETLOGIN): New macro.
9669         * modules/getlogin (configure.ac): Require gl_LIB_GETLOGIN.
9670         (Link): New section.
9671         * modules/getlogin_r (Files): Add m4/getlogin.m4.
9672         (configure.ac): Require gl_LIB_GETLOGIN.
9673         (Link): New section.
9674         * NEWS: Mention the new link requirements.
9675         * modules/getlogin-tests (test_getlogin_LDADD): New variable.
9676         * modules/getlogin_r-tests (test_getlogin_r_LDADD): New variable.
9678 2016-12-17  Bruno Haible  <bruno@clisp.org>
9680         Un-deprecate the 'progname' module.
9681         * NEWS: Describe the appropriate use-cases of 'progname' versus
9682         'getprogname'. Based on discussion summary at
9683         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00105.html
9685 2016-12-17  Bruno Haible  <bruno@clisp.org>
9687         Reorganize NEWS a bit.
9688         * NEWS: Move some not so important changes away from section
9689         "Important Notes".
9691 2016-12-17  Bruno Haible  <bruno@clisp.org>
9693         tanhf: Avoid redefinition error on MSVC.
9694         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANHF.
9695         * m4/tanhf.m4 (gl_FUNC_TANHF): Set REPLACE_TANHF to 1 if the function
9696         may be defined as an inline function.
9697         * modules/math (Makefile.am): Substitute REPLACE_TANHF.
9698         * lib/math.in.h (tanhf): Override if REPLACE_TANHF is 1.
9700 2016-12-17  Bruno Haible  <bruno@clisp.org>
9702         tanf: Avoid redefinition error on MSVC.
9703         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANF.
9704         * m4/tanf.m4 (gl_FUNC_TANF): Set REPLACE_TANF to 1 if the function
9705         may be defined as an inline function.
9706         * modules/math (Makefile.am): Substitute REPLACE_TANF.
9707         * lib/math.in.h (tanf): Override if REPLACE_TANF is 1.
9709 2016-12-17  Bruno Haible  <bruno@clisp.org>
9711         sqrtf: Avoid redefinition error on MSVC.
9712         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SQRTF.
9713         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Set REPLACE_SQRTF to 1 if the function
9714         may be defined as an inline function.
9715         * modules/math (Makefile.am): Substitute REPLACE_SQRTF.
9716         * lib/math.in.h (sqrtf): Override if REPLACE_SQRTF is 1.
9718 2016-12-17  Bruno Haible  <bruno@clisp.org>
9720         sinhf: Avoid redefinition error on MSVC.
9721         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINHF.
9722         * m4/sinhf.m4 (gl_FUNC_SINHF): Set REPLACE_SINHF to 1 if the function
9723         may be defined as an inline function.
9724         * modules/math (Makefile.am): Substitute REPLACE_SINHF.
9725         * lib/math.in.h (sinhf): Override if REPLACE_SINHF is 1.
9727 2016-12-17  Bruno Haible  <bruno@clisp.org>
9729         sinf: Avoid redefinition error on MSVC.
9730         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINF.
9731         * m4/sinf.m4 (gl_FUNC_SINF): Set REPLACE_SINF to 1 if the function
9732         may be defined as an inline function.
9733         * modules/math (Makefile.am): Substitute REPLACE_SINF.
9734         * lib/math.in.h (sinf): Override if REPLACE_SINF is 1.
9736 2016-12-17  Bruno Haible  <bruno@clisp.org>
9738         logf: Avoid redefinition error on MSVC.
9739         * m4/logf.m4 (gl_FUNC_LOGF): Set REPLACE_LOGF to 1 if the function
9740         may be defined as an inline function.
9742 2016-12-17  Bruno Haible  <bruno@clisp.org>
9744         log10l: Avoid redefinition error on MSVC.
9745         * m4/log10l.m4 (gl_FUNC_LOG10L): Set REPLACE_LOG10L to 1 if the function
9746         may be defined as an inline function.
9748 2016-12-17  Bruno Haible  <bruno@clisp.org>
9750         log10f: Avoid redefinition error on MSVC.
9751         * m4/log10f.m4 (gl_FUNC_LOG10F): Set REPLACE_LOG10F to 1 if the function
9752         may be defined as an inline function.
9754 2016-12-17  Bruno Haible  <bruno@clisp.org>
9756         hypotl: Avoid redefinition error on MSVC.
9757         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Set REPLACE_HYPOTL to 1 if the function
9758         may be defined as an inline function.
9760 2016-12-17  Bruno Haible  <bruno@clisp.org>
9762         hypotf: Avoid redefinition error on MSVC.
9763         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Set REPLACE_HYPOTF to 1 if the function
9764         may be defined as an inline function.
9766 2016-12-17  Bruno Haible  <bruno@clisp.org>
9768         fmodl: Avoid redefinition error on MSVC.
9769         * m4/fmodl.m4 (gl_FUNC_FMODL): Set REPLACE_FMODL to 1 if the function
9770         may be defined as an inline function.
9772 2016-12-17  Bruno Haible  <bruno@clisp.org>
9774         fmodf: Avoid redefinition error on MSVC.
9775         * m4/fmodf.m4 (gl_FUNC_FMODF): Set REPLACE_FMODF to 1 if the function
9776         may be defined as an inline function.
9778 2016-12-17  Bruno Haible  <bruno@clisp.org>
9780         expf: Avoid redefinition error on MSVC.
9781         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_EXPF.
9782         * m4/expf.m4 (gl_FUNC_EXPF): Set REPLACE_EXPF to 1 if the function
9783         may be defined as an inline function.
9784         * modules/math (Makefile.am): Substitute REPLACE_EXPF.
9785         * lib/math.in.h (expf): Override if REPLACE_EXPF is 1.
9787 2016-12-17  Bruno Haible  <bruno@clisp.org>
9789         coshf: Avoid redefinition error on MSVC.
9790         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSHF.
9791         * m4/coshf.m4 (gl_FUNC_COSHF): Set REPLACE_COSHF to 1 if the function
9792         may be defined as an inline function.
9793         * modules/math (Makefile.am): Substitute REPLACE_COSHF.
9794         * lib/math.in.h (coshf): Override if REPLACE_COSHF is 1.
9796 2016-12-17  Bruno Haible  <bruno@clisp.org>
9798         cosf: Avoid redefinition error on MSVC.
9799         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSF.
9800         * m4/cosf.m4 (gl_FUNC_COSF): Set REPLACE_COSF to 1 if the function
9801         may be defined as an inline function.
9802         * modules/math (Makefile.am): Substitute REPLACE_COSF.
9803         * lib/math.in.h (cosf): Override if REPLACE_COSF is 1.
9805 2016-12-17  Bruno Haible  <bruno@clisp.org>
9807         atan2f: Avoid redefinition error on MSVC.
9808         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATAN2F.
9809         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Set REPLACE_ATAN2F to 1 if the function
9810         may be defined as an inline function.
9811         * modules/math (Makefile.am): Substitute REPLACE_ATAN2F.
9812         * lib/math.in.h (atan2f): Override if REPLACE_ATAN2F is 1.
9814 2016-12-17  Bruno Haible  <bruno@clisp.org>
9816         atanf: Avoid redefinition error on MSVC.
9817         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATANF.
9818         * m4/atanf.m4 (gl_FUNC_ATANF): Set REPLACE_ATANF to 1 if the function
9819         may be defined as an inline function.
9820         * modules/math (Makefile.am): Substitute REPLACE_ATANF.
9821         * lib/math.in.h (atanf): Override if REPLACE_ATANF is 1.
9823 2016-12-17  Bruno Haible  <bruno@clisp.org>
9825         asinf: Avoid redefinition error on MSVC.
9826         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ASINF.
9827         * m4/asinf.m4 (gl_FUNC_ASINF): Set REPLACE_ASINF to 1 if the function
9828         may be defined as an inline function.
9829         * modules/math (Makefile.am): Substitute REPLACE_ASINF.
9830         * lib/math.in.h (asinf): Override if REPLACE_ASINF is 1.
9832 2016-12-17  Bruno Haible  <bruno@clisp.org>
9834         acosf: Avoid redefinition error on MSVC.
9835         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ACOSF.
9836         * m4/acosf.m4 (gl_FUNC_ACOSF): Set REPLACE_ACOSF to 1 if the function
9837         may be defined as an inline function.
9838         * modules/math (Makefile.am): Substitute REPLACE_ACOSF.
9839         * lib/math.in.h (acosf): Override if REPLACE_ACOSF is 1.
9841 2016-12-17  Bruno Haible  <bruno@clisp.org>
9843         Avoid redefinition errors on MSVC.
9844         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): Set REPLACE_SNPRINTF to 1 if
9845         the function may be defined as an inline function.
9846         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): Set REPLACE_VSNPRINTF to 1 if
9847         the function may be defined as an inline function.
9849 2016-12-17  Bruno Haible  <bruno@clisp.org>
9851         Avoid redefinition errors on MSVC.
9852         * lib/stdio.in.h: Include <stdlib.h> and <io.h> when necessary.
9853         * lib/unistd.in.h: Include <stdio.h> when necessary.
9855 2016-12-17  Bruno Haible  <bruno@clisp.org>
9857         stdint: Fix WINT_MAX to match the gnulib provided wint_t on MSVC.
9858         * m4/stdint.m4 (gl_STDINT_H): Define GNULIB_OVERRIDES_WINT_T.
9859         * modules/stdint (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
9860         * lib/stdint.in.h [GNULIB_OVERRIDES_WINT_T]: Redefine WINT_MIN and
9861         WINT_MAX.
9863 2016-12-17  Bruno Haible  <bruno@clisp.org>
9865         Avoid autoconf warning.
9866         * modules/frexpl (configure.ac): Require, not invoke, gl_FUNC_FREXPL.
9867         * modules/frexp (configure.ac): Require, not invoke, gl_FUNC_FREXP.
9869 2016-12-17  Bruno Haible  <bruno@clisp.org>
9871         fpending: Revert workaround against Emacs bug.
9872         * lib/stdio-impl.h [__MINGW32__]: Revert conditional.
9873         The Emacs bug is fixed by Eli Zaretskii in
9874         http://lists.gnu.org/r/emacs-devel/2016-12/msg00715.html
9876 2016-12-17  Bruno Haible  <bruno@clisp.org>
9878         getlogin_r tests: Port to mingw.
9879         * tests/test-getlogin_r.c: Don't include <pwd.h> on native Windows. Fixes
9880         regression introduced on 2014-05-19.
9882 2016-12-17  Bruno Haible  <bruno@clisp.org>
9884         getlogin: Port to newer mingw.
9885         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_GETLOGIN.
9886         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Set HAVE_DECL_GETLOGIN.
9887         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETLOGIN, not
9888         HAVE_GETLOGIN.
9889         * lib/unistd.in.h (getlogin): Test HAVE_DECL_GETLOGIN, not
9890         HAVE_GETLOGIN.
9891         * doc/posix-functions/getlogin.texi: Mention the issue.
9892         * tests/test-getlogin.c: Don't include <pwd.h> on native Windows. Fixes
9893         regression introduced on 2014-05-14.
9895 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
9897         builtin-expect: improve port to IBM XL C
9898         Problem reported for z/OS by Daniel Richard G. in:
9899         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00079.html
9900         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
9901         Test for <builtins.h> directly.
9903         builtin-expect: port to IBM XL C
9904         Problem reported for z/OS by Daniel Richard G. in:
9905         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00074.html
9906         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
9907         Also allow __builtin_expect defined via a standard include file.
9909         regex: fix dependency
9910         Problem reported by Bruno Haible in:
9911         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00073.html
9912         * modules/regex: Depend on builtin-expect.
9914         builtin-expect: new module
9915         Fix fnmatch to use it.
9916         Problem reported for z/OS by Daniel Richard G.
9917         * lib/fnmatch.c (__builtin_expect):
9918         * lib/glob.c (__builtin_expect):
9919         * lib/grantpt.c (__builtin_expect) [!_LIBC]:
9920         * lib/memmem.c (__builtin_expect) [!_LIBC]:
9921         * lib/scandir.c (__builtin_expect):
9922         * lib/strstr.c (__builtin_expect) [!_LIBC]:
9923         Remove macro; config.h now does this.
9924         * lib/gl_anytreehash_list1.h (add_to_bucket):
9925         * lib/regex_internal.h (BE):
9926         Assume __builtin_expect.
9927         * m4/builtin-expect.m4, modules/builtin-expect: New files.
9928         * modules/avltreehash-list, modules/fnmatch, modules/glob:
9929         * modules/grantpt, modules/memmem-simple, modules/rbtreehash-list:
9930         * modules/scandir, modules/strstr-simple:
9931         Depend on builtin-expect.
9933 2016-12-15  Bruno Haible  <bruno@clisp.org>
9935         init.sh: Add possibility to not delete temporary files.
9936         * tests/init.sh (remove_tmp_): If the environment variable KEEP is set
9937         to yes, don't erase the temporary directory.
9939 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
9941         regex: fix integer-overflow bug in never-used code
9942         Problem reported by Clément Pit–Claudel in:
9943         http://lists.gnu.org/r/emacs-devel/2016-12/msg00654.html
9944         * lib/regex_internal.h: Include intprops.h.
9945         * lib/regexec.c (re_search_2_stub): Use it to avoid undefined
9946         behavior on integer overflow.
9947         * modules/regex (Depends-on): Add intprops.
9949         fpending: fix port to MinGW on Emacs
9950         * lib/stdio-impl.h [__MINGW32__]: Do not include errno.h.
9951         Problem reported by Eli Zaretskii in:
9952         http://lists.gnu.org/r/emacs-devel/2016-12/msg00642.html
9953         Is Plan 9 still a valid porting target, anyway?
9955 2016-12-15  Paul Eggert  <eggert@cs.ucla.edu>
9957         safe-alloc: use xalloc-oversized
9958         * lib/safe-alloc.c: Include xalloc-oversized.h.
9959         (safe_alloc_oversized): Remove.  All uses changed to xalloc_oversized.
9960         * modules/safe-alloc (Depends-on): Add xalloc-oversized.
9962         xalloc: do not exceed PTRDIFF_MAX
9963         * lib/xmalloc.c (xcalloc) [HAVE_GNU_CALLOC]: Do not omit
9964         xalloc_oversized check, since objects larger than PTRDIFF_MAX
9965         bytes have pointer-subtraction problems.
9967         malloca: do not exceed PTRDIFF_MAX
9968         * lib/malloca.h: Include xalloc-oversized.
9969         (nmalloca): Use xalloc_oversized instead of rolling our own.
9970         * modules/malloca (Depends-on):
9971         * modules/relocatable-prog-wrapper (Depends-on):
9972         Add xalloc-oversized.
9974         quotearg: pacify GCC better
9975         * modules/quotearg (Depends-on): Add minmax, stdint.
9976         * lib/quotearg.c: Include minmax.h, stdint.h.
9977         (nslots): Now int, as there seems little point to going to extra
9978         work merely to support the INT_MAX slot, which nobody ever uses.
9979         (quotearg_n_options): Redo size-overflow checks to pacify GCC
9980         and to catch (mostly-theoretical) ptrdiff_t problems too.
9981         This can be done via one comparison.
9983 2016-12-14  Paul Eggert  <eggert@cs.ucla.edu>
9985         xalloc-oversized: check for PTRDIFF_MAX too
9986         This avoids undefined behavior when subtracting pointers to
9987         objects containing more than PTRDIFF_MAX bytes.
9988         * lib/xalloc-oversized.h (__xalloc_oversized, xalloc_oversized):
9989         Also return 1 if the result would exceed PTRDIFF_MAX>
9990         * modules/xalloc-oversized (Depends-on):
9991         Add stdint.
9993         dfa: fix glitches in previous commit
9994         Sorry, I don't know how I managed to commit the wrong version.
9995         * lib/dfa.c (MIN): Move up.
9996         (xpalloc): Now static.
9998         dfa: fix some unlikely integer overflows
9999         I found these while reviewing the recent Coverity-related fix.
10000         This patch changes part of dfa.c to prefer ptrdiff_t instead of
10001         size_t for object counts.  Using ptrdiff_t is the style typically
10002         used in Emacs; although it wastes a sign bit as sizes can never be
10003         negative, it makes -fsanitize=undefined more likely to catch
10004         integer overflows in index calculation, and nowadays the upside is
10005         typically more important than the downside.  Although perhaps the
10006         rest of dfa.c should be changed to prefer ptrdiff_t as well (much
10007         of dfa.c already does, since it uses state_num which is signed),
10008         that is a bigger change and is not needed to fix the bugs I found.
10009         * lib/dfa.c: Include stdint.h and intprops.h.
10010         (TOKEN_MAX): New macro.
10011         (position_set, struct mb_char_classes, struct dfa, maybe_realloc)
10012         (charclass_index, parse_bracket_exp, addtok, insert, merge)
10013         (realloc_trans_if_necessary, free_mbdata):
10014         Use ptrdiff_t instead of size_t for object counts related to xpalloc.
10015         This is safe because xpalloc checks that the sizes do not exceed
10016         either SIZE_MAX or PTRDIFF_MAX.
10017         (xpalloc): New function, mostly taken from Emacs.
10018         (maybe_realloc, copy, realloc_trans_if_necessary): Use it.
10019         (maybe_realloc): Add NITEMS_MAX to signature.  All callers changed.
10020         (charclass_index): Check for integer overflow in computing
10021         charclass index; it must not exceed TOKEN_MAX - CSET, as CSET is
10022         added to it later.
10023         (alloc_position_set): Check for integer overflow.  On typical
10024         platforms this check has zero overhead, since the constant
10025         expression is false.
10026         (realloc_trans_if_necessary):
10027         Remove assertion, which I hope Coverity no longer needs.
10029         * modules/dfa (Depends-on): Add intprops, stdint.
10031 2016-12-12  Jim Meyering  <meyering@fb.com>
10033         dfa: add an assertion to avoid coverity false positive
10034         * lib/dfa.c (realloc_trans_if_necessary): Otherwise, coverity
10035         warned that "newalloc1 - 2" could overflow.
10037 2016-12-13   Arnold D. Robbins  <arnold@skeeve.com>
10039         dfa: remove DFA_CASE_FOLD flag in favor of RE_ICASE
10040         * dfa.h (DFA_CASE_FOLD): Remove.
10041         * dfa.c (dfasyntax): Set dfa->syntax.case_fold based on RE_ICASE.
10043 2016-12-13  John W. Eaton  <gnu@jweaton.org>
10045         link: fix test to declare use of rename()
10046         * m4/link.m4 (gl_FUNC_LINK): Include <stdio.h> needed with
10047         -Werror=implicit-function-declaration
10049 2016-12-12  Bruno Haible  <bruno@clisp.org>
10051         fpending: Port to native Windows with MSVC.
10052         * lib/fpending.c: Include stdio-impl.h.
10053         (__fpending): Include all known implementations. Err out if it's not
10054         ported.
10055         * m4/fpending.m4 (gl_PREREQ_FPENDING): Remove macro.
10056         * modules/fpending (Files): Add lib/stdio-impl.h.
10057         (configure.ac): Don't invoke gl_PREREQ_FPENDING.
10059 2016-12-12  Bruno Haible  <bruno@clisp.org>
10061         stdioext: Port to native Windows with MSVC.
10062         * lib/stdio-impl.h (WINDOWS_OPAQUE_FILE): New macro.
10063         (struct _gl_real_FILE): New type.
10064         (fp_, _IOREAD, _IOWRT, _IORW, _IOEOF, _IOERR): New macros, for native
10065         Windows.
10066         * lib/fbufmode.c (fbufmode): Add code for native Windows.
10067         * lib/fflush.c (clear_ungetc_buffer): Treat native Windows like the
10068         other SystemV derived implementations.
10069         * lib/fpurge.c (fpurge): Likewise.
10070         * lib/freadable.c (freadable): Likewise.
10071         * lib/freadahead.c (freadahead): Likewise.
10072         * lib/freading.c (freading): Likewise.
10073         * lib/freadptr.c (freadptr): Likewise.
10074         * lib/freadseek.c (freadptrinc): Likewise.
10075         * lib/fseeko.c (fseeko): Likewise.
10076         * lib/fseterr.c (fseterr): Likewise.
10077         * lib/fwritable.c (fwritable): Likewise.
10078         * lib/fwriting.c (fwriting): Likewise.
10079         Reported by Gisle Vanem <gvanem@yahoo.no>.
10081 2016-12-11  Jim Meyering  <meyering@fb.com>
10083         non-recursive-gnulib-prefix-hack.m4: remove leading "(" in case stmt
10084         * m4/non-recursive-gnulib-prefix-hack.m4: That leading "(" happens
10085         to work with most shells, but not with the one provided by many
10086         Solaris 10 systems, so running configure with such a /bin/sh evokes
10087         e.g., "./configure: syntax error at line 33602: `(' unexpected".
10088         Reported by Assaf Gordon in
10089         https://lists.gnu.org/r/sed-devel/2016-12/msg00002.html
10091 2016-12-10  Bruno Haible  <bruno@clisp.org>
10093         threadlib: Optimize out runtime test on Solaris >= 10.
10094         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't set
10095         PTHREAD_IN_USE_DETECTION_HARD if configuring on Solaris 10 or newer.
10096         Reported by Peter Felecan at <https://savannah.gnu.org/bugs/?32087>.
10098 2016-12-10  Bruno Haible  <bruno@clisp.org>
10100         stdint: Update doc about Solaris 9.
10101         * doc/posix-headers/stdint.texi: Add info about Solaris 9.
10103 2016-12-09  Bruno Haible  <bruno@clisp.org>
10105         c-ctype tests: Fix link error on Solaris 9.
10106         * modules/c-ctype-tests (Depends-on): Add 'isblank'.
10107         Reported at <https://savannah.gnu.org/bugs/?46827>.
10109 2016-12-09  Paul Eggert  <eggert@cs.ucla.edu>
10111         dfa: fix performance bug that recomputes trans
10112         * lib/dfa.c (build_state): Fix performance bug introduced in Nov
10113         25 on-demand changes.  The bug caused build_state to reset all
10114         d->trans elements to -2 even when d->trans was already non-null.
10115         Use C99 style decls after statements in this function.
10117         same-inode: port to MinGW
10118         Here st_ino is always 0, so change the definition of SAME_INODE so
10119         that 1 means the two files are the same, 0 with st_ino != 0 means
10120         they differ, and 0 with st_ino == 0 means we don’t know.  Problem
10121         reported by Bruno Haible (Bug#25146).
10122         * doc/posix-headers/sys_stat.texi (sys/stat.h): Update.
10123         * lib/same-inode.h (SAME_INODE): Return 0 on MinGW.
10125 2016-12-04  Bruno Haible  <bruno@clisp.org>
10127         javacomp-script: Support Java 7 and 8.
10128         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.7, 1.8 and
10129         target-version 1.7, 1.8.
10131 2016-12-02  Daiki Ueno  <ueno@gnu.org>
10133         * gnulib-tool (func_import): Relax the regex used for "LGPLv3+ or
10134         GPLv2" rewriting.
10136 2016-12-02  Nikos Mavrogiannopoulos  <nmav@gnutls.org>
10138         * gnulib-tool (func_import): Adhere to the license guideline when
10139         rewriting the license text to "LGPLv3+ or GPLv2":
10140         https://www.gnu.org/prep/maintain/maintain.html#Licensing-of-GNU-Packages
10142 2016-12-02  Bruno Haible  <bruno@clisp.org>
10144         localcharset: Avoid theoretical buffer overrun.
10145         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Don't use the
10146         return value from setlocale if it would lead to a buffer overrun.
10148 2016-12-01  Bruno Haible  <bruno@clisp.org>
10150         Relicense some modules under LGPLv2+.
10151         Kevin Cernekee's approval is in
10152         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00090.html.
10153         * modules/fseterr (License): Change to LGPLv2+.
10154         * modules/mbchar (License): Likewise.
10155         * modules/mbiter (License): Likewise.
10156         * modules/mbsnlen (License): Likewise.
10157         * modules/wcwidth (License): Likewise.
10159 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
10161         scandir: Fix _D_ALLOC_NAMLEN() on OS/2 kLIBC
10162         * lib/scandir.c (_D_ALLOC_NAMLEN): Consider the fields after d_name on
10163         OS/2 kLIBC.
10165 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
10167         alphasort, scandir: Port to OS/2 kLIBC
10168         * lib/alphasort.c (alphasort): Implement according to OS/2 kLIBC
10169         declaration.
10170         * lib/scandir.c (scandir): Add declaration for OS/2 kLIBC.
10172 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
10174         relocatable: Fix that /@unixroot prefix is not working on OS/2 kLIBC
10175         * lib/relocatable.c (relocate): Do not touch pathname if it is started
10176         with '/@unixroot'.
10178 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
10180         sys_socket: typedef sa_family_t correctly on OS/2 kLIBC
10181         * lib/sys_socket.in.h (sa_family_t): Typedef to unsigned char on
10182         OS/2 kLIBC unless TCPV40HDRS is defined.
10184 2016-11-29  Jim Meyering  <meyering@fb.com>
10186         dfa: avoid new infinite loop
10187         This would infloop: echo cx | LC_ALL=C grep -E 'c\b[x ]'
10188         * lib/dfa.c (dfastate): When constructing a new state table, we could
10189         initially declare that we had found a match, and later find that
10190         constraints eliminate that possibility, yet continue to use the
10191         now stale "matched" indicator.  That would lead to an infinite loop.
10192         The solution is to update "matched" when necessary.
10193         Introduced by commit v0.1-983-g403adf1.
10195 2016-11-27  Norihiro Tanaka  <noritnk@kcn.ne.jp>
10197         dfa: avoid match middle in multibyte character
10198         * lib/dfa.c (transit_state): If fails in matching single byte characters
10199         on a state including period expression in non-UTF8 multibyte locales,
10200         skip trailing bytes.
10201         (dfa_supported): Revert previous change.
10203 2016-11-27  Jim Meyering  <meyering@fb.com>
10205         dfa: avoid false match in non-UTF8 multibyte locales
10206         * lib/dfa.c (dfa_supported): Treat any non-UTF8 multibyte locale
10207         as "not supported" so that callers will resort to using regex-based
10208         matcher.  This will surely hurt performance, but correctness trumps
10209         performance here, and the affected locales are less and less relevant,
10210         these days.  See grep's bug report https://bugs.gnu.org/24975.
10212 2016-11-27  Mike Frysinger  <vapier@gentoo.org>
10214         ptsname_r: leverage AC_HEADER_MAJOR to provide major()
10215         * lib/ptsname_r.c: Include the appropriate headers.
10216         [__sun]: Delete sys/sysmacros.h include.
10217         [_AIX || __osf__]: Likewise.
10218         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Depend on AC_HEADER_MAJOR.
10220 2016-11-27  Pádraig Brady  <P@draigBrady.com>
10222         md4,md5,sha*: allow _STRING_INLINE_unaligned enable unaligned operation
10223         * lib/md4.c (md4_process_bytes): The existing define is made internal
10224         in recent versions of glibc, so also use this new public define.
10225         * lib/md5.c (md5_process_bytes): Likewise.
10226         * lib/sha1.c (sha1_process_bytes): Likewise.
10227         * lib/sha256.c (sha256_process_bytes): Likewise.
10228         * lib/sha512.c (sha512_process_bytes): Likewise.
10230 2016-11-27  Pádraig Brady  <P@draigBrady.com>
10232         maint: use a more standard return from mbrtowc test
10233         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Don't return 1
10234         from the test program as this often indicates an
10235         unhandled case in the test program.
10236         (gl_MBRTOWC_INCOMPLETE_STATE): Likewise.
10237         (gl_MBRTOWC_SANITYCHECK): Likewise.
10238         (gl_MBRTOWC_NULL_ARG2): Likewise.
10239         (gl_MBRTOWC_NUL_RETVAL): Likewise.
10241 2016-11-26  Paul Eggert  <eggert@cs.ucla.edu>
10243         freopen: work around glibc bug with closed fd
10244         Work around glibc bug#15589, where freopen mishandles the case
10245         where stdin etc. are already closed.
10246         * doc/posix-functions/freopen.texi (freopen): Document the bug.
10247         * lib/freopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this
10248         instead of __need_FILE, as the latter does not work with glibc.
10249         Include <fcntl.h>, for open flags.
10250         (rpl_freopen): Work around glibc bug.
10251         * m4/freopen.m4 (gl_FUNC_FREOPEN): Check for bug.
10252         * modules/freopen (Depends-on): Add fcntl-h.
10253         * tests/test-freopen.c (main): Test for bug.
10255 2016-11-25  Paul Eggert  <eggert@cs.ucla.edu>
10257         fnmatch: fix typo introduced on 2016-08-17
10258         This fixes the port to non-GCC compilers that lack __builtin_expect.
10259         * lib/fnmatch.c (__builtin_expect): Change A&&B to !A||B.
10261         dfa: simplify with new function fillset
10262         * lib/dfa.c (fillset): New function.
10263         Use it for clarity when applicable.
10265         dfa: fix glitches with on-demand states
10266         Also, adjust commentary to better match new code.
10267         Some of these glitches predate the recent change.
10268         * lib/dfa.c (dfaanalyze): Clear trcount here, so that it counts
10269         only non-initial states.
10270         (dfastate): Rename locals to better match new roles.
10271         Move them into nested scopes if this is easy.
10272         Omit unnecessary calls to zeroset.
10273         Simplify test for whether to throw in the positions of state 0.
10274         Omit C99-ism (decl after statement) since Gawk still wants C89.
10275         (build_state): Omit unnecessary test and assignment.
10276         Fix some confusion that counted transition tables inaccurately
10277         and could cause a memory leak.
10278         (dfaexec_main): Redo to make it clearer to the compiler that
10279         -1 and -2 are the only negative state numbers here.
10281 2016-11-25  Norihiro Tanaka  <noritnk@kcn.ne.jp>
10283         dfa: addition of new state on demand
10284         * src/dfa.c (dfastate): Add argument UC, the current input character.
10285         Fill only a group including the character in transition table.
10286         (realloc_trans_if_necessary): Add the dummy state which means that a
10287         transition table is assigned but the next state is not assigned.
10288         (build_state): Return the next state.  All callers updated.
10289         (transit_state_singlebyte): If we get the dummy state,
10290         fill the transition table.
10291         (dfaexec_main): Handle the dummy state.
10292         (free_mbdata, dfafree): Consider the dummy state.
10294 2016-11-24  Daiki Ueno  <ueno@gnu.org>
10296         srclist: sync with released gettext
10297         * config/srclist.txt: Set "release" option to the files under
10298         $GETTEXT.
10300 2016-11-24  Daiki Ueno  <ueno@gnu.org>
10302         srclist: add "release" option
10303         * config/srclist.txt: Change the format so that the first column
10304         of each line points to the top-level directory of the source
10305         archive.
10306         * config/srclist-update: Accept "release" option that checks files
10307         from the most recently tagged revision in the source archive.
10309 2016-11-21  Bruno Haible  <bruno@clisp.org>
10311         snippet/c++defs: Simplify _GL_CXXALIAS_* macros.
10312         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
10313         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1,
10314         _GL_CXXALIAS_SYS, _GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2):
10315         Inline and remove member function 'rpl ()' of the wrapper struct.
10317 2016-11-20  Paul Eggert  <eggert@cs.ucla.edu>
10319         dfa: fix logic typo
10320         Problem reported by Stephane Chazelas (Bug#24973).
10321         * lib/dfa.c (using_simple_locale): Fix typo that caused some
10322         non-simple locales like fr_FR to be treated as simple.
10324 2016-11-20  Jim Meyering  <meyering@fb.com>
10326         fix test driver leaks: exclude, malloc, realloc
10327         * tests/test-exclude.c (main): Fix trivial leak.
10328         * tests/test-malloc-gnu.c (main): Likewise.
10329         * tests/test-realloc-gnu.c (main): Likewise.
10330         With these changes, grep's tests are now leak free.
10331         I.e., running them with ASAN elicits no failure:
10332           make CFLAGS='-O0 -ggdb3' AM_CFLAGS=-fsanitize=address \
10333             AM_LDFLAGS='-fsanitize=address -static-libasan' check
10335 2016-11-11  Bruno Haible  <bruno@clisp.org>
10337         libunistring: Relicense under dual "LGPLv3+ or GPLv2" license.
10338         * modules/libunistring: (License): Change from LGPL to
10339         "LGPLv3+ or GPLv2".
10340         * modules/libunistring-optional: Likewise.
10341         * modules/unicase/*: Likewise.
10342         * modules/uniconv/*: Likewise.
10343         * modules/unictype/*: Likewise.
10344         * modules/unigbrk/*: Likewise.
10345         * modules/unilbrk/*: Likewise.
10346         * modules/uniname/*: Likewise.
10347         * modules/uninorm/*: Likewise.
10348         * modules/unistdio/*: Likewise.
10349         * modules/unistr/*: Likewise.
10350         * modules/uniwbrk/*: Likewise.
10351         * modules/uniwidth/*: Likewise.
10353 2016-11-12  Bruno Haible  <bruno@clisp.org>
10355         Relicense some modules under LGPLv2+.
10356         Paul Eggert's approval is in
10357         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00037.html.
10358         Eric Blake's approval is in
10359         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00042.html.
10360         Ludovic Courtès's approval is in
10361         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00038.html.
10362         * modules/isnand-nolibm (License): Change to LGPLv2+.
10363         * modules/isnanf-nolibm (License): Likewise.
10364         * modules/isnanl-nolibm (License): Likewise.
10366 2016-11-19  Bruno Haible  <bruno@clisp.org>
10368         Relicense some modules under LGPLv2+.
10369         lib/float+.h is already under LGPLv2+ since 2007-07-13, per
10370         modules/vasnprintf.
10371         Paolo Bonzini's approval for lib/frexp.c and lib/frexpl.c is in
10372         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00074.html.
10373         All other significant changes to the files in lib/ of these modules
10374         are from me.
10375         * modules/memcmp2 (License): Change to LGPLv2+.
10376         * modules/amemxfrm (License): Likewise.
10377         * modules/fpieee (License): Likewise.
10378         * modules/fpucw (License): Likewise.
10379         * modules/frexp-nolibm (License): Likewise.
10380         * modules/frexpl-nolibm (License): Likewise.
10381         * modules/printf-frexp (License): Likewise.
10382         * modules/printf-frexpl (License): Likewise.
10383         * modules/printf-safe (License): Likewise.
10384         * modules/signbit (License): Likewise.
10386 2016-11-17  Bruno Haible  <bruno@clisp.org>
10388         Enable Unicode decoder safety unconditionally.
10389         * lib/unistr.in.h (u32_mbtouc_unsafe): Assume CONFIG_UNICODE_SAFETY.
10390         * lib/unistr/u8-mblen.c (u8_mblen): Likewise.
10391         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
10392         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
10393         * lib/unistr/u8-prev.c (u8_prev): Likewise.
10394         * lib/unistr/u8-strmblen.c (u8_strmblen): Likewise.
10395         * lib/unistr/u8-strmbtouc.c (u8_strmbtouc): Likewise.
10396         * lib/unistr/u16-mblen.c (u16_mblen): Likewise.
10397         * lib/unistr/u16-mbtouc-unsafe.c (u16_mbtouc_unsafe): Likewise.
10398         * lib/unistr/u16-mbtouc-unsafe-aux.c (u16_mbtouc_unsafe_aux): Likewise.
10399         * lib/unistr/u16-prev.c (u16_prev): Likewise.
10400         * lib/unistr/u16-strmblen.c (u16_strmblen): Likewise.
10401         * lib/unistr/u16-strmbtouc.c (u16_strmbtouc): Likewise.
10402         * lib/unistr/u32-mblen.c (u32_mblen): Likewise.
10403         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Likewise.
10404         * lib/unistr/u32-prev.c (u32_prev): Likewise.
10405         * lib/unistr/u32-next.c (u32_next): Likewise.
10406         * lib/unistr/u32-strmblen.c (u32_strmblen): Likewise.
10407         * lib/unistr/u32-strmbtouc.c (u32_strmbtouc): Likewise.
10408         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
10409         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
10410         * tests/unistr/test-u16-prev.c (check_invalid): Enable the
10411         CONFIG_UNICODE_SAFETY tests unconditionally.
10412         * tests/unistr/test-u32-mblen.c (main): Likewise.
10413         * tests/unistr/test-u32-mbtouc.h (test_function): Likewise.
10414         * tests/unistr/test-u32-prev.c (check_invalid): Likewise.
10415         * tests/unistr/test-u32-next.c (main): Likewise.
10416         * tests/unistr/test-u32-strmblen.c (main): Likewise.
10417         * tests/unistr/test-u32-strmbtouc.c (main): Likewise.
10418         * tests/unistr/test-u32-mbtouc.c (FULL_SAFETY): Remove macro.
10419         * lib/unistr/u8-check.c (u8_check): Remove old dead code.
10420         * lib/unistr/u8-mbtouc.c (u8_mbtouc): Likewise.
10421         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
10422         * lib/unistr/u8-mbtoucr.c (u8_mbtoucr): Likewise.
10423         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
10424         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
10425         * lib/unistr/u16-check.c (u16_check): Update comment.
10426         * NEWS: Mention the changes that callers should be aware of.
10428 2016-11-19  Bruno Haible  <bruno@clisp.org>
10430         relocatable-prog-wrapper: Fix breakage on Cygwin.
10431         * modules/relocatable-prog-wrapper (Files): Add lib/stat.c, lib/lstat.c.
10432         (Depends-on): Remove intprops.
10433         * lib/relocwrapper.c: Update dependency tree.
10434         (strerror): Undefine.
10435         * build-aux/install-reloc (func_create_wrapper): Do not compile
10436         strerror.c and strerror-override.c. Erase stat.o and lstat.o.
10438 2016-11-19  Bruno Haible  <bruno@clisp.org>
10440         strerror: Make it compile in C++ mode.
10441         * lib/strerror.c (strerror): Ignore the return value of memcpy().
10443 2016-11-15  Pedro Alves  <palves@redhat.com>
10445         sys_time: add gnulib::timeval for C++
10446         * lib/sys_time.in.h [__cplusplus && defined GNULIB_NAMESPACE]:
10447         Define "timeval" in the GNULIB_NAMESPACE namespace, and #undef any
10448         timeval macro.
10450 2016-11-14  Pedro Alves  <palves@redhat.com>
10452         snippet/c++defs: fix real-floating arg functions in C++ mode
10453         Also, define isfinite, isinf, isnan, signbit in the gnulib
10454         namespace instead of in the global namespace.
10455         * build-aux/snippet/c++defs.h (_GL_BEGIN_NAMESPACE)
10456         (_GL_END_NAMESPACE): New.
10457         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Use them.
10458         (isfinite, isinf, isnan, signbit) [__cplusplus &&
10459         GNULIB_NAMESPACE]: Define them in the GNULIB_NAMESPACE namespace
10460         instead of in the global namespace.
10461         * tests/test-math-c++.cc: Check that the isfinite, isinf, isnan,
10462         signbit overloads exist in the GNULIB_NAMESPACE namespace, instead
10463         of in the global namespace.
10465 2016-11-13  Jim Meyering  <meyering@fb.com>
10467         strftime: don't use __THROW
10468         Each use of __THROW would provoke this from gcc-7-to-be:
10470           lib/strftime.c:371:1: warning: '__leaf__' attribute has no effect \
10471             on unit local functions [-Wattributes]
10472           static int iso_week_days (int, int) __THROW;
10473           ^~~~~~
10474         * lib/strftime.c (__THROW): Don't define.
10475         Remove each use of __THROW.
10476         * lib/strftime.c (memcpy_lowcase, memcpy_uppcase): Remove __THROW.
10477         (tm_diff, iso_week_days, __strftime_internal): Likewise.
10479 2016-11-14  Paul Eggert  <eggert@union>
10481         obstack: port to gcc -fcheck-pointer-bounds
10482         Problem found by 'make check' failure on bleeding-edge coreutils
10483         on an MPX-enabled CPU (Intel Core i3-7100U) running GCC (Ubuntu
10484         6.2.0-5ubuntu12), configured via "./configure
10485         --enable-gcc-warnings CFLAGS='-mmpx -fcheck-pointer-bounds -g3
10486         -O2' LDFLAGS='-static-libmpx -static-libmpxwrappers'".
10487         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER):
10488         New macro, copied from fts_.h.
10489         (struct _obstack_chunk.contents): Use it.
10491 2016-11-14  Eric Blake  <eblake@redhat.com>
10493         strerror_r-posix: Another fix, for HAVE_DECL_STRERROR_R on mingw.
10494         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R, gl_FUNC_STRERROR_R_WORKS):
10495         Avoid _ONCE variants, which may supply a conflicting AC_DEFINE().
10497 2016-11-14  Pádraig Brady  <P@draigBrady.com>
10499         strptime: fix compile error in recent change
10500         * lib/strptime.c (__strptime_internal): Fix ported code.
10502 2016-11-11  Bruno Haible  <bruno@clisp.org>
10504         gnulib-tool: Support for the dual "LGPLv3+ or GPLv2" license.
10505         * gnulib-tool (--lgpl): Accept value 3orGPLv2.
10506         (func_import): Extend determination of license_incompatibilities.
10507         (func_create_testdir): Extend table of license compatibility. Handle
10508         also the licenses GPLv3+, GPL, LGPLv3+.
10510 2016-11-12  Paul Eggert  <eggert@cs.ucla.edu>
10512         strftime: tune %q
10513         * lib/strftime.c (__strftime_internal): Assume tp->tm_mon is in range.
10515         Merge strftime.c changes from glibc
10516         This incorporates:
10517         2007-10-16 [BZ #5184] Add tzset_called argument
10518         2008-06-13 [BZ #6612] pass reference to tzset_called around
10519         2009-10-30 Implement Burmese language locale for Myanmar
10520         2010-01-09 Add support for XPG7 testing
10521         2015-09-26 [BZ #18985] out of range data to strftime() causes a segfault
10522         2015-10-20 Convert miscellaneous function definitions to prototype style
10523         * lib/strftime.c: Copy glibc license, since gnulib-tool rewrites
10524         it anyway and this lessens the difference between gnulib and glibc.
10525         (USE_IN_EXTENDED_LOCALE_MODEL) [_LIBC]: Define.
10526         (__THROW): Define if standard headers do not.
10527         (LOCALE_PARAM): Rename from LOCALE_PARAM_PROTO.  All uses changed.
10528         (memcpy_locase, memcpy_uppcase, tm_diff, __strftime_internal):
10529         Declare with __THROW.
10530         (__strftime_internal): Rename from strftime_case_. Add arg for
10531         whether tzset is called.  All uses changed.  Call tzset at most
10532         once.  Allow %OC, for Burmese.
10533         (a_wkday, f_wkday, a_month, f_month) [_NL_CURRENT]:
10534         Don't assume values are in range.
10536 2016-11-12  Eric Blake  <eblake@redhat.com>
10538         strerror_r-posix: Fix override of AC_FUNC_STRERROR_R
10539         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): New override.
10540         (gl_FUNC_STRERROR_R): Don't reuse AC_DEFINE() with a potentially
10541         different value.
10543 2006-11-12  Pedro Alves  <palves@redhat.com>
10545         Fix gnulib C++ namespace support and std::frexp
10546         * lib/math.in.h (frexp): Use _GL_CXXALIASWARN1 instead of
10547         _GL_CXXALIASWARN.
10549 2006-11-12  Pedro Alves  <palves@redhat.com>
10551         GNULIB_NAMESPACE::func need not pull in rpl_func
10552         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
10553         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1, _GL_CXXALIAS_SYS)
10554         (_GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2): Define a wrapper
10555         struct instead of a function pointer.
10557 2016-11-09  Frediano Ziglio  <fziglio@redhat.com>
10559         manywarnings: fix -Wno-missing-field-initializers detection
10560         * m4/manywarnings.m4: Fix -Wno-missing-field-initializers detection
10561         to be independent of -Wunused-variable.  I.E. ensure the latter
10562         warning doesn't occur so that detection of the former is accurate.
10564 2016-11-05  Pádraig Brady  <pbrady@fb.com>
10566         strftime,strptime: support %q to represent the quarter
10567         * lib/strftime.c (strftime_case_): Add %q case.
10568         * lib/strptime.c (__strptime_internal): Likewise.
10569         * tests/test-strftime.c (quarter_test): A new test case.
10571 2016-11-03  Eric Blake  <eblake@redhat.com>
10573         bootstrap: Fix get_version() for AIX 5.3
10574         * build-aux/bootstrap (get_version): Factor out sed script, since
10575         indented comments choke AIX 5.3 sed.
10576         Reported-by: Michael Felt <aixtools@gmail.com>
10578 2016-11-03  Paul Eggert  <eggert@cs.ucla.edu>
10580         intprops: port to older XL C
10581         Problem reported by Alexander Samoilov in:
10582         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00166.html
10583         http://savannah.nongnu.org/bugs/?49448
10584         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM__TYPEOF__]:
10585         Define to 1 only for XL C 12.1 or later, since this bug
10586         occurs in XL C for AIX 6.0 but not in 12.1.
10588 2016-11-02  Pádraig Brady  <P@draigBrady.com>
10590         backupfile: initialize default suffix within the implementation
10591         * lib/backupfile.c (find_backup_file_name): Initialize the
10592         global variable here, to simplify usage, and to only call
10593         getenv() when needed.
10595 2016-11-01  Paul Eggert  <eggert@cs.ucla.edu>
10597         futimens: remove FIXME for old Linux kernels
10598         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Belatedy do a "simplify
10599         this in 2012" FIXME, like that for utimensat.
10601         utimensat: remove FIXME for old Linux kernels
10602         * lib/utimensat.c (rpl_utimensat): Update FIXME comment.
10603         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Belatedy do a "simplify
10604         this in 2012" FIXME, by assuming the file system bug is absent
10605         unless demonstrated to be present.  We no longer need to worry
10606         about Linux kernel 2.6.32 when building with newer kernels.
10608 2016-10-16  Bruno Haible  <bruno@clisp.org>
10610         qsort_r: Fix macrology for platforms that lack the function.
10611         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for qsort_r.
10612         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_QSORT_R.
10613         * modules/stdlib (Makefile.am): Substitute HAVE_QSORT_R.
10614         * lib/stdlib.in.h (qsort_r): Provide declaration if the function does
10615         not exist.
10616         * m4/qsort_r.m4 (gl_FUNC_QSORT_R): Use AC_CHECK_FUNCS to test whether
10617         the function exists.
10618         * modules/qsort_r: Add comments.
10620 2016-10-26  Paul Eggert  <eggert@cs.ucla.edu>
10622         sys_types: fix Texinfo typos
10623         * doc/glibc-functions/gnu_dev_major.texi:
10624         * doc/glibc-functions/gnu_dev_makedev.texi:
10625         * doc/glibc-functions/gnu_dev_minor.texi: Fix typos.
10627 2016-10-26  John David Anglin  <dave.anglin@bell.net>
10629         getprogname: port to HP-UX
10630         See Bug#24805.
10631         * lib/getprogname.c (getprogname) [__hpux]: Port.
10632         * tests/test-getprogname.c (STREQ) [__hpux]:
10633         Special-case for HP-UX limitations on program name length.
10635 2016-10-20  Bruno Haible  <bruno@clisp.org>
10637         Update doc about target platforms.
10638         * doc/gnulib-intro.texi (Target Platforms): Update list.
10640 2016-10-15  Bruno Haible  <bruno@clisp.org>
10642         opendir, readdir, closedir: Relicense under LGPLv2+.
10643         * modules/opendir (License): Change to LGPLv2+.
10644         * modules/readdir (License): Likewise.
10645         * modules/closedir (License): Likewise.
10647 2016-10-16  Bruno Haible  <bruno@clisp.org>
10649         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
10650         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Override the values set by the
10651         AC_FUNC_STRERROR_R macro. Define HAVE_DECL_STRERROR_R_ORIG.
10652         * lib/strerror_r.c: Use HAVE_DECL_STRERROR_R_ORIG instead of
10653         HAVE_DECL_STRERROR_R.
10655 2016-10-16  Bruno Haible  <bruno@clisp.org>
10657         Make the 'argp' module work without the 'error' module.
10658         * m4/argp.m4 (gl_ARGP): Require AC_FUNC_STRERROR_R.
10660 2016-10-25  Paul Eggert  <eggert@cs.ucla.edu>
10662         diffseq: restore TOO_EXPENSIVE heuristic
10663         * lib/diffseq.h: Problem with diffutils reported by Andreas Schwab
10664         (Bug#24715).  The simplest solution is to restore the
10665         TOO_EXPENSIVE heuristic that I added to GNU diff in 1993, while
10666         using a higher threshold to avoid Bug#16848 on smaller files.
10667         * lib/diffseq.h (struct context): Restore member too_expensive.
10668         (struct partition): Restore members lo_minimal, hi_minimal.
10669         (diag, compareseq): Restore arg find_minimal.  All uses changed.
10670         (diag): Restore the TOO_EXPENSIVE heuristic that I added back in
10671         1993 to make 'diff' run faster (but not as well) on large inputs,
10672         but use a threshold of 4096 instead of the old 256.
10673         * lib/fstrcmp.c (strcmp_bounded):
10674         * lib/git-merge-changelog.c (compute_differences):
10675         Adjust to diffseq.h changes.
10677 2016-10-22  Bruno Haible  <bruno@clisp.org>
10679         iconv: Avoid compilation error when bootstrapping GNU libiconv.
10680         * m4/iconv.m4 (AM_ICONV): When the system does not have an iconv()
10681         declaration yet, define ICONV_CONST to empty.
10683 2016-10-15  Bruno Haible  <bruno@clisp.org>
10685         Avoid gnulib-tool warnings about the dependencies of 'parse-datetime'.
10686         * gnulib-tool (func_get_license): Special-case the 'parse-datetime'
10687         module.
10689 2016-10-16  Bruno Haible  <bruno@clisp.org>
10691         system-quote tests: Avoid compiler warning on AIX.
10692         * tests/test-system-quote-child.c (fopen): Redefine like the system's
10693         <stdio.h> does.
10695 2016-10-16  Bruno Haible  <bruno@clisp.org>
10697         Fix some "gcc -Wall" warnings.
10698         * tests/test-ffsl.c (main): Use variable x, not i.
10699         * tests/test-posix_spawn3.c (parent_main): Consider the return value of
10700         freopen.
10701         * tests/test-sethostname1.c (main): Explicitly ignore the return value
10702         of sethostname.
10704 2016-10-16  Bruno Haible  <bruno@clisp.org>
10706         gnulib-tool: Make --create-testdir on all modules work again.
10707         * gnulib-tool (func_create_testdir): Don't include the
10708         non-recursive-gnulib-prefix-hack module.
10710 2016-10-21  Daiki Ueno  <ueno@gnu.org>
10712         libunistring: change the maintainer to 'all'
10713         * modules/gen-uni-tables, modules/libunistring:
10714         * modules/ucs4-utf16, modules/ucs4-utf8, modules/unicodeio:
10715         * modules/unitypes, modules/utf16-ucs4, modules/utf16-ucs4-unsafe:
10716         * modules/utf8-ucs4, modules/utf8-ucs4-unsafe:
10717         * modules/unicase/*, modules/uniconv/*, modules/unictype/*:
10718         * modules/unilbrk/*, modules/uniname/*, modules/uninorm/*:
10719         * modules/unistdio/*, modules/unistr/*, modules/uniwbrk/*:
10720         * modules/uniwidth/*: Change the maintainer to 'all'.
10722 2016-10-16  Bruno Haible  <bruno@clisp.org>
10724         Simplify "configure: checking ..." messages.
10725         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use AC_MSG_CHECKING instead of
10726         AC_MSG_NOTICE.
10727         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
10729 2016-10-20  Paul Eggert  <eggert@cs.ucla.edu>
10731         quotearg-tests: pacify gcc -Wall
10732         Problem reported by Bruno Haible in:
10733         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00066.html
10734         * tests/test-quotearg-simple.c (use_quote_double_quotes): Move here ...
10735         * tests/test-quotearg.h: ... from here.
10737 2016-10-20  Pádraig Brady  <P@draigBrady.com>
10739         canonicalize-lgpl: fix for missing SIZE_MAX on older systems
10740         * lib/canonicalize-lgpl.c [SIZE_MAX]: Define if needed.
10741         Needed on Centos <= 4.
10743 2016-10-20  Jim Meyering  <meyering@fb.com>
10745         printf.m4: fix a bug in detecting printf %j support
10746         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Fail any system for which
10747         uintmax_t is defined in neither stdint.h nor inttypes.h.
10748         Before, this macro might have mistakenly set
10749         gl_cv_func_printf_sizes_c99=yes on such a system.
10750         Spotted by Zev Weiss.
10752 2016-10-19  Paul Eggert  <eggert@cs.ucla.edu>
10754         sched: substitute HAVE_SYS_CDEFS_H too
10755         Problem reported by Tom G. Christensen in:
10756         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00084.html
10757         * m4/sched_h.m4 (gl_SCHED_H): Set and substitute HAVE_SYS_CDEFS_H.
10758         * modules/sched (Depends-on): Substitute HAVE_SYS_CDEFS_H.
10760 2016-10-19  Pádraig Brady  <P@draigBrady.com>
10762         quotearg: never write beyond the returned length
10763         * lib/quotearg.c (quotearg_buffer_restyled): Switch to a read-only
10764         scan of the string when we initially encounter a single quote when
10765         shell quoting, so that if we then switch to a more concise quoting method
10766         we will not have written beyond that returned length.
10767         This is significant for sh-quote, which has separate routines
10768         to determine the length and do the actual quoting.
10769         * tests/test-quotearg.h: Reinstate the buffer bounds checking
10770         now that we never write more than the returned length.
10772 2016-10-18  Bruno Haible  <bruno@clisp.org>
10774         getprogname tests: Avoid failure in packages that use libtool.
10775         * tests/test-getprogname.c (main): Strip "lt-" prefix.
10776         Based on a patch by Jim Meyering.
10778 2016-10-16  Bruno Haible  <bruno@clisp.org>
10780         getprogname: Fix test failure on Cygwin. Comments.
10781         * lib/getprogname.h: Add comments.
10782         * lib/getprogname.c: Add comments. Fix #elif indentation.
10783         * tests/test-getprogname.c (main): On Cygwin, expect a result without
10784         ".exe" suffix.
10786 2016-10-16  Bruno Haible  <bruno@clisp.org>
10788         Make sure the libunistring detection rejects older versions with a
10789         known bug.
10790         * modules/unistr/u8-strtok (configure.ac): Bump required version.
10791         * modules/unistr/u16-strtok (configure.ac): Likewise.
10792         * modules/unistr/u32-strtok (configure.ac): Likewise.
10794 2016-10-18  Bruno Haible  <bruno@clisp.org>
10796         sh-quote, system-quote: revert regression of unit test.
10797         * tests/test-sh-quote.c (check_one): Do detect buffer overruns.
10798         * tests/test-system-quote-main.c (check_one): Likewise.
10800 2016-10-16  Pádraig Brady  <P@draigBrady.com>
10802         quotearg: fix stale tests
10803         * tests/test-quotearg.c [locale_results]: Add the missing str7
10804         entries to the expected results.
10805         * tests/test-system-quote-main.c (check_one): Don't enforce that we
10806         don't write beyond the returned length, since that's no longer the
10807         case if we switch to a more concise quoting style.
10808         * tests/test-sh-quote.c (check_one): Likewise.
10809         (main): Adjust for the new more concise quoting style.
10810         Reported by Bruno Haible.
10812 2016-10-16  Jim Meyering  <meyering@fb.com>
10814         non-recursive-gnulib-prefix-hack: fix inconsequential typo
10815         * m4/non-recursive-gnulib-prefix-hack.m4: Change a hard-coded "lib"
10816         to "$1".  This macro is always invoked with $1 == lib.
10817         Spotted by Bruno Haible
10819 2016-10-16  Bruno Haible  <bruno@clisp.org>
10821         Fix a test crash.
10822         * tests/test-duplocale.c (main): Skip the test if the 'newlocale' call
10823         fails.
10825 2016-10-16  Pádraig Brady  <P@draigBrady.com>
10827         test-limits-h: suppress -Woverlength-strings
10828         * tests/test-limits-h.c [__GNUC__]: Ignore -Woverlength-strings.
10830 2016-10-15  Bruno Haible  <bruno@clisp.org>
10832         gettime, timespec, utimens: Relicense under LGPL.
10833         * modules/gettime (License): Change to LGPL.
10834         * modules/timespec (License): Likewise.
10835         * modules/utimens (License): Likewise.
10837 2016-10-14  Bruno Haible  <bruno@clisp.org>
10838             Pádraig Brady  <P@draigBrady.com>
10840         canonicalize-lgpl: Support the case path_max > INT_MAX.
10841         * lib/canonicalize-lgpl.c (__realpath): Declare n as ssize_t, not int.
10842         Fix overflow check, for platforms where 'size_t' is larger than 'long'.
10844 2016-10-13  Jim Meyering  <meyering@fb.com>
10846         getprogname: IBM z/OS: avoid NULL-dereference
10847         * lib/getprogname.c (getprogname) [__MVS__]: Don't dereference NULL
10848         upon strdup failure.
10850 2016-10-12  Jim Meyering  <meyering@fb.com>
10852         test-stdint: use _GL_VERIFY rather than "verify" for some tests
10853         * tests/test-stdint.c (verify_width): Implement with _GL_VERIFY
10854         and an abbreviated diagnostic rather than verify with the full one,
10855         because the full-length strings would evoke warnings from gcc with
10856         -Woverlength-strings.
10858 2016-10-13  Paul Eggert  <eggert@cs.ucla.edu>
10860         stdint: port SIZE_MAX to glibc s390
10861         Problem reported by Eric Blake in:
10862         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00031.html
10863         * doc/posix-headers/stdint.texi (stdint.h): Document the fix.
10864         * m4/stdint.m4 (gl_STDINT_H): Check that SIZE_MAX has the
10865         correct type, if possible.
10867 2016-10-13  Daniel Richard G.  <skunk@iSKUNK.ORG>
10869         getprogname: port to IBM z/OS
10870         * lib/getprogname.c (getprogname): Use w_getpsent() to get the name.
10872 2016-10-11  Jim Meyering  <meyering@fb.com>
10874         maint: remove stray space after "." in AC_DEFINE comment.
10875         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Remove space-after-".".
10876         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
10878 2016-10-05  Jim Meyering  <meyering@fb.com>
10880         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
10881         * lib/long-options.c (parse_long_options): Add a break statement
10882         to avoid this new warning/failure:
10883         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
10884           --create-testdir --dir=/t/x --with-tests --test long-options
10885         ../../gllib/long-options.c: In function 'parse_long_options':
10886         ../../gllib/long-options.c:66:12: error: this statement may \
10887           fall through [-Werror=implicit-fallthrough]
10888                    (*usage_func) (EXIT_SUCCESS);
10889                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
10891 2016-10-05  Jim Meyering  <meyering@fb.com>
10893         utimecmp: avoid new GCC 7 warning from -Wbool-operation
10894         Testing this module would fail when using GCC 7 like this:
10895         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
10896           --dir=/tmp/x --with-tests --test utimecmp
10897         ../../gllib/utimecmp.c: In function ‘utimecmp’:
10898         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
10899           [-Werror=bool-operation]
10900                          time_t s = src_s & ~ (res == 2 * BILLION);
10901                                             ^
10902         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
10903           [-Werror=bool-operation]
10904                src_s &= ~ (res == 2 * BILLION);
10905                         ^
10906         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
10907         Instead, make it explicit that we intend to apply it to 0 or 1.
10909 2016-10-10  Norihiro Tanaka  <noritnk@kcn.ne.jp>
10911         dfa: save memory for states
10912         * src/dfa (dfaexec_main): Beginning of dfa execution, release caches of
10913         states if dfa has a lot of caches.
10915 2016-10-10  Eli Zaretskii  <eliz@gnu.org>
10917         wchar, wctype-h: fix for MinGW 3.22.2
10918         * lib/wchar.in.h [__MINGW32__]: Add one more condition for
10919         special invocation, to fix issues with MinGW 3.22.2 wchar.h
10920         when included from <string.h>.
10921         * lib/wctype.in.h [__MINGW32__]: Add special invocation
10922         convention for MinGW 3.22.2, to solve issues with their
10923         wctype.h when included from <ctype.h>.
10925 2016-10-05  Jim Meyering  <meyering@fb.com>
10927         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
10928         * lib/long-options.c (parse_long_options): Add a break statement
10929         to avoid this new warning/failure:
10930         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
10931           --create-testdir --dir=/t/x --with-tests --test long-options
10932         ../../gllib/long-options.c: In function ‘parse_long_options’:
10933         ../../gllib/long-options.c:66:12: error: this statement may \
10934           fall through [-Werror=implicit-fallthrough]
10935                    (*usage_func) (EXIT_SUCCESS);
10936                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
10938         utimecmp: avoid new GCC 7 warning from -Wbool-operation
10939         Testing this module would fail when using GCC 7 like this:
10940         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
10941           --dir=/tmp/x --with-tests --test utimecmp
10942         ../../gllib/utimecmp.c: In function ‘utimecmp’:
10943         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
10944           [-Werror=bool-operation]
10945                          time_t s = src_s & ~ (res == 2 * BILLION);
10946                                             ^
10947         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
10948           [-Werror=bool-operation]
10949                src_s &= ~ (res == 2 * BILLION);
10950                         ^
10951         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
10952         Instead, make it explicit that we intend to apply it to 0 or 1.
10954 2016-10-03  Pádraig Brady  <P@draigBrady.com>
10956         quotearg: minimize shell quoting using double quotes
10957         * lib/quotearg.c (quotearg_buffer_restyled): If an ASCII single
10958         quote in encountered then use double quotes (c style quoting)
10959         when possible, as it simplifies the quoting.
10960         * tests/test-quotearg-simple.c: Add test cases.
10961         * tests/test-quotearg.h (use_quotearg_buffer): Adjust to account
10962         for the fact we now may write beyond the returned length.
10964 2016-10-02  Jim Meyering  <meyering@fb.com>
10966         vasnprintf.c: avoid spurious warning from GCC 7
10967         The presence of cpp directives renders this "FALLTHROUGH" comment
10968         ineffective, so does not suppress the -Wimplicit-fallthrough warning
10969         from GCC 7 built from git on 2016-10-02.
10970         * lib/vasnprintf.c (VASNPRINTF): Move comment down past two cpp
10971         directives, so that it takes effect once again.  This is clearly
10972         not a proper change, and I will revert it once this bug is fixed:
10973         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77817
10975 2016-10-01  Jim Meyering  <meyering@fb.com>
10977         getprogname: correct the test for a __progname variable
10978         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Use AC_CACHE_CHECK
10979         and AC_LINK_IFELSE to check for a global __progname.  If found,
10980         define HAVE_VAR___PROGNAME.
10981         * lib/getprogname.c (getprogname): Reflect the new name of the
10982         feature- checked preprocessor symbol:
10983         s/HAVE_DECL___PROGNAME/HAVE_VAR___PROGNAME/
10985 2016-09-28  Jim Meyering  <meyering@fb.com>
10987         u8-uctomb-aux.c: build: placate GCC 7's new -Wimplicit-fallthrough
10988         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Mark each end of
10989         fall-through case with a /* fallthrough */ comment.
10991         dfa: build: avoid warning from GCC 7's new -Wimplicit-fallthrough
10992         * lib/dfa.c (dfassbuild): Mark the end of this case with a
10993         /* fallthrough */ comment.
10995         getprogname: avoid __progname vs program_invocation_short_name pitfall
10996         I.e., don't let the OpenBSD 5.1 fix induce failure when using newer
10997         glibc.  Would have caused failure with Fedora 25's glibc-2.24-3, but
10998         not with Fedora 24's glibc-2.23.1-10.
10999         * lib/getprogname.c (__progname): Move this declaration down...
11000         (getprogname): ... into the #elif block where used, and make it
11001         explicitly "extern".
11003         getprogname: port to OpenBSD 5.1
11004         * lib/getprogname.c (__progname) [HAVE_DECL___PROGNAME]: Declare.
11005         (getprogname) [HAVE_DECL___PROGNAME]: Return __progname or "?".
11006         * modules/getprogname (configure.ac): Move most of this code...
11007         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): ... to this function,
11008         increment serial number, and add a test for __progname.
11009         https://bugs.gnu.org/24562
11010         Reported by Nelson H. F. Beebe.
11012 2016-09-24  Paul Eggert  <eggert@cs.ucla.edu>
11014         sched: port to GCC 6.2.1 on macOS Sierra
11015         Problem reported by Denis Davydov in:
11016         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00056.html
11017         * lib/sched.in.h [HAVE_SYS_CDEFS_H]:
11018         Include <sys/cdefs.h> before <sched.h>.
11019         * m4/nproc.m4 (gl_PREREQ_NPROC): Include errno.h before sched.h,
11020         so that we needn’t worry about the sched.h include bug here.
11021         * m4/sched_h.m4 (gl_SCHED_H): Check for sys/cdefs.h,
11022         and include it before <sched.h> if it exists, when
11023         checking for <sched.h>.
11025         tests/init.sh: port Alpine fix to AIX 7.1
11026         * tests/init.sh (compare_): When attempting to use diff -U3,
11027         prefer diff -u to -U3 to -c to plain diff.  Do not insist on
11028         diff -u not outputting a space after leading '+', as the users
11029         of 'compare' should not be that picky about its output format.
11030         In the AIX 7.1 case, return with diff exit status (or with 2 if
11031         trouble), instead of some random nonzero exit status.
11032         * tests/test-init.sh (test_compare): Remove space after leading
11033         '+', so that AIX 7.1 'diff' passes the test.
11035 2016-09-22  Paul Eggert  <eggert@cs.ucla.edu>
11037         nl_langinfo: pacify GCC
11038         * lib/nl_langinfo.c (ctype_codeset): Remove unused local.
11039         (rpl_nl_langinfo): Cast string literals to char *, to pacify GCC.
11041         stdint: also set GL_GENERATE_LIMITS_H
11042         Problem reported by Jim Meyering in:
11043         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00052.html
11044         * m4/stdint.m4 (gl_STDINT_H): Also redo the AM_CONDITIONAL.
11046         limits-h, stdint: Don't assume extensions, fix typo
11047         * m4/limits-h.m4 (gl_LIMITS_H):
11048         * m4/stdint.m4 (gl_STDINT_H):
11049         Don't assume AC_USE_SYSTEM_EXTENSIONS.
11050         * m4/stdint.m4 (gl_STDINT_H): Fix typo in setting of LIMITS_H,
11051         reported by Jim Meyering in:
11052         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00050.html
11054 2016-09-21  Jim Meyering  <meyering@fb.com>
11056         getprogname: port to AIX
11057         * lib/getprogname.c (getprogname) [_AIX]: Use getpid, getprocs64
11058         and strdup to obtain a short program name string.  Using code from
11059         Bruno Haible and an idea from Bastien ROUCARIÈS, in
11060         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
11061         Assaf Gordon reported that this new file would fail to compile on
11062         AIX-7.1 32bit.
11064 2016-09-16  Paul Eggert  <eggert@cs.ucla.edu>
11066         extensions: fix typo in comment
11067         * m4/extensions.m4: Sync from Autoconf master.
11069         stdint: support new _WIDTH macros
11070         * doc/posix-headers/stdint.texi: Document this.
11071         * lib/stdint.in.h: Add support for INTMAX_WIDTH. etc.
11072         * m4/stdint.m4 (gl_STDINT_H): Require gl_LIMITS_H.  Check for
11073         support for INTMAX_WIDTH, etc. as well as for support for just C99.
11074         * modules/stdint (Depends-on): Add limits-h.
11075         (Makefile.am): Substitute HAVE_C99_STDINT_H.
11076         * modules/stdint-tests (Depends-on): Add extensions, so that
11077         INTMAX_MAX etc. are defined.
11078         * tests/test-stdint.c: Verify the new macros.
11080         limits-h: new module
11081         This adds ISO/IEC TS 18661-1:2014 support to limits.h.
11082         * MODULES.html.sh: Add limits-h,and move size_max to stdint section.
11083         * doc/posix-headers/limits.texi: Document new module.
11084         * lib/limits.in.h, m4/limits-h.m4, modules/limits-h:
11085         * modules/limit-h-tests, tests/test-limits-h.c: New files.
11087         stdio: don't redefine __USE_MINGW_ANSI_STDIO
11088         * m4/stdio_h.m4 (gl_STDIO_H): Don't define __USE_MINGW_ANSI_STDIO
11089         if it is already defined.  Apparently GNU Emacs relies on this.  See:
11090         http://lists.gnu.org/r/emacs-devel/2016-09/msg00416.html
11092 2016-09-15  Eric Blake  <eblake@redhat.com>
11094         sys_types: avoid glibc 2.25 warnings about major()
11095         * m4/sys_types_h.m4 (AC_HEADER_MAJOR): Replace broken version in
11096         older autoconf.
11097         * doc/posix-headers/sys_types.texi (sys/types.h): Document fix.
11098         * doc/glibc-functions/gnu_dev_major.texi (gnu_dev_major): Likewise.
11099         * doc/glibc-functions/gnu_dev_makedev.texi (gnu_dev_makedev): Likewise.
11100         * doc/glibc-functions/gnu_dev_minor.texi (gnu_dev_minor): Likewise.
11102         mountlist: include sysmacros.h for glibc
11103         * m4/mountlist.m4 (gl_PREREQ_MOUTLIST_EXTRA): Include
11104         AC_HEADER_MAJOR.
11105         * lib/mountlist.c (includes): Use correct headers.
11107 2016-09-15  Paul Eggert  <eggert@cs.ucla.edu>
11109         extensions: port to more ISO C TSes
11110         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Sync from Autoconf
11111         master, to add support for more recent ISO C TRs and TSes.
11113 2016-09-13  Paul Eggert  <eggert@cs.ucla.edu>
11115         intprops: new macro TYPE_WIDTH
11116         * lib/intprops.h (TYPE_WIDTH): New macro.
11117         (TYPE_MAXIMUM, _GL_SIGNED_INT_MAXIMUM, INT_STRLEN_BOUND):
11118         * lib/ftoastr.h (_GL_FLOAT_DIG_BITS_BOUND):
11119         * lib/parse-datetime.y (parse_datetime2):
11120         Use it.
11122         extensions: port to recent ISO C TRs
11123         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
11124         Sync from Autoconf master, to add support for recent ISO C TRs.
11125         * m4/stdio_h.m4 (gl_STDIO_H): Define __USE_MINGW_ANSI_STDIO here,
11126         since AC_USE_SYSTEM_EXTENSIONS no longer does that as
11127         the MinGW option is not an extension.
11129 2016-09-11  Paul Eggert  <eggert@cs.ucla.edu>
11131         dfa: port to Solaris 9
11132         Problems reported by Tom G. Christensen in:
11133         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00031.html
11134         * modules/dfa (Depends-on): Add isblank.
11135         * modules/dfa-tests (dfa_match_aux_LDADD):
11136         Rename from test_stat_LDADD, to fix typo.
11137         * tests/dfa-match.sh: Don't require 'timeout'; use it if available.
11139 2016-09-10  Jim Meyering  <meyering@fb.com>
11141         strverscmp: avoid link failure on OS X
11142         * lib/strverscmp.c [!weak_alias]: Define __strverscmp to strverscmp.
11143         Reported by Assaf Gordon in https://bugs.gnu.org/24256#26
11145 2016-08-16  Jim Meyering  <meyering@fb.com>
11147         dfa: new module, importing grep's DFA matcher
11148         Since grep's DFA matcher is now being used by two gnulib-enabled
11149         projects, grep and sed, it makes sense to version-control its
11150         sources and unit tests in one place: here.
11151         * modules/dfa: New module.
11152         * modules/dfa-tests: New file.
11153         * lib/dfa.c: New file, from grep.
11154         * lib/dfa.h: Likewise.
11155         * lib/localeinfo.c: Likewise.
11156         * lib/localeinfo.h: Likewise.
11157         * tests/dfa-match-aux.c: Likewise.
11158         * tests/dfa-invalid-char-class.sh: Likewise.
11159         * tests/dfa-match.sh: Likewise, with minor changes.
11160         * MODULES.html.sh (Misc): Add "dfa" to this list.
11162 2016-09-09  Jim Meyering  <meyering@fb.com>
11164         getprogname-tests: don't depend on assert-h
11165         * modules/getprogname-tests (Depends-on): Remove assert-h.
11166         It was not needed, and in fact would cause build failure for
11167         coreutils on some systems.  Reported by Assaf Gordon in https:
11168         //lists.gnu.org/r/coreutils/2016-09/msg00016.html
11170 2016-09-07  Jim Meyering  <meyering@fb.com>
11172         getprogname-tests: work also when EXEEXT is nonempty
11173         * modules/getprogname-tests (Makefile.am): Define EXEEXT.
11174         * tests/test-getprogname.c (main): Use it.
11175         Suggested by Gisle Vanem.
11177 2016-09-07  Gisle Vanem  <gvanem@yahoo.no>
11179         getprogname: fix errors in previous change
11180         * lib/getprogname.c (getprogname) [HAVE_GETEXECNAME]:
11181         s/program_invocation_name/base/
11182         [HAVE_DECL___ARGV]: Handle NULL __argv or __argv[0].
11184 2016-09-08  Pádraig Brady  <P@draigBrady.com>
11186         parse-datetime: restrict debug output to input string
11187         * lib/parse-datetime.y (parse_datetime2): If we parse
11188         all of the input but determine it's invalid, ensure
11189         we don't output the now invalid input pointer.
11190         This issue was seen with `date -d 'now +1'`.
11192 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
11194         flexmember: new macro FLEXALIGNOF
11195         * lib/flexmember.h: Include <stddef.h>, for offsetof.
11196         (FLEXALIGNOF): Rename from _GL_XALLOC_ALIGNOF, as Emacs can use
11197         this macro.  Update comments.
11199 2016-09-07  Jim Meyering  <meyering@fb.com>
11201         getprogname: port to systems with __argv (mingw, msvc)
11202         * lib/getprogname.c (getprogname): Include "dirname.h" and use
11203         last_component: more general than open coding it with hard-coded "/".
11204         * lib/getprogname.h (getprogname): Prefer "char const *" consistently.
11205         * modules/getprogname (Depends-on): Add dirname-lgpl.
11206         (configure.ac): Check for __argv in <stdlib.h>.
11207         * modules/getprogname-tests: New file.
11208         * tests/test-getprogname.c: New file.
11209         Suggested by Gisle Vanem in
11210         https://lists.gnu.org/r/bug-gnulib/2016-09/msg00014.html
11212 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
11214         flexmember: port better to GCC + valgrind
11215         With a char[] flexible array member in a struct with nontrivial
11216         alignment, GCC-generated code can access past the end of the
11217         array, because GCC assumes there are padding bytes to get the
11218         struct aligned.  So the common idiom of malloc (offsetof (struct
11219         s, m), n) does not properly allocate an n-byte trailing member, as
11220         malloc’s argument should be the next multiple of alignof (struct s).
11221         See GCC Bug#66661: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
11222         Although C11 apparently permits this GCC optimization (i.e., there
11223         was a bug in Gnulib not in GCC), possibly this is a defect in C11.
11224         See the thread containing:
11225         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00317.html
11226         * lib/flexmember.h: New file.
11227         * lib/fnmatch.c, lib/fts.c, lib/glob.c, lib/idcache.c:
11228         * lib/localename.c, lib/time_rz.c:
11229         Include flexmember.h.
11230         * lib/fnmatch_loop.c (struct patternlist):
11231         * lib/localename.c (struct hash_node):
11232         Use FLEXIBLE_ARRAY_MEMBER.
11233         * lib/fnmatch_loop.c (EXT):
11234         * lib/fts.c (fts_alloc):
11235         * lib/glob.c (glob_in_dir):
11236         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
11237         * lib/localename.c (gl_lock_define_initialized):
11238         * lib/time_rz.c (tzalloc):
11239         Use FLEXSIZEOF instead of offsetof.
11240         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
11241         Check that the size of the struct can be taken.
11242         * modules/flexmember (Files): Add lib/flexmember.h.
11243         * modules/fnmatch, modules/glob, modules/localename (Depends-on):
11244         Add flexmember.
11246 2016-09-06  Paul Eggert  <eggert@cs.ucla.edu>
11248         getprogname: port to Solaris 10
11249         * lib/getprogname.c: Include stdlib.h, for getexecname decl.
11250         (getprogname) [HAVE_GETEXECNAME]: Use that, for Solaris 10.
11251         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Check for getexecname.
11253         stdalign: correct mistake in alignof doc
11254         Problem reported by Joseph Myers in:
11255         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00340.html
11256         * doc/posix-headers/stdalign.texi: Do not imply that C11 prohibits
11257         alignof(S) where S is a structure containing a flexible array
11258         member.  The Gnulib substitute does not support this, but C11 does.
11260 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
11262         main.mk: remove sc_program_name, since there is no more need to
11263         use set_program_name in tools (getprogname is enough for most
11264         of the cases).
11265         * cfg.mk (local-checks-to-skip): Remove sc_program_name.
11266         * top/maint.mk (sc_program_name): Remove.
11268 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
11270         Port tests away from progname, since modules that need the
11271         program name already depend on getprogname.
11272         * modules/acl-tests (Depends-on): Remove progname.
11273         * modules/argmatch (Depends-on): Likewise.
11274         * modules/argmatch-tests (Depends-on): Likewise.
11275         * modules/argp-tests (Depends-on): Likewise.
11276         * modules/argp-version-etc-tests (Depends-on): Likewise.
11277         * modules/array-list-tests (Depends-on): Likewise.
11278         * modules/array-oset-tests (Depends-on): Likewise.
11279         * modules/avltree-list-tests (Depends-on): Likewise.
11280         * modules/avltree-oset-tests (Depends-on): Likewise.
11281         * modules/avltreehash-list-tests (Depends-on): Likewise.
11282         * modules/carray-list-tests (Depends-on): Likewise.
11283         * modules/copy-file-tests (Depends-on): Likewise.
11284         * modules/exclude-tests (Depends-on): Likewise.
11285         * modules/fchownat-tests (Depends-on): Likewise.
11286         * modules/fdopendir-tests (Depends-on): Likewise.
11287         * modules/filenamecat-tests (Depends-on): Likewise.
11288         * modules/fstatat-tests (Depends-on): Likewise.
11289         * modules/fstrcmp-tests (Depends-on): Likewise.
11290         * modules/linked-list-tests (Depends-on): Likewise.
11291         * modules/linkedhash-list-tests (Depends-on): Likewise.
11292         * modules/mkdirat-tests (Depends-on): Likewise.
11293         * modules/nonblocking-pipe-tests (Depends-on): Likewise.
11294         * modules/nonblocking-socket-tests (Depends-on): Likewise.
11295         * modules/obstack-printf-tests (Depends-on): Likewise.
11296         * modules/openat-tests (Depends-on): Likewise.
11297         * modules/parse-datetime-tests (Depends-on): Likewise.
11298         * modules/pipe-filter-gi-tests (Depends-on): Likewise.
11299         * modules/pipe-filter-ii-tests (Depends-on): Likewise.
11300         * modules/quotearg-simple-tests (Depends-on): Likewise.
11301         * modules/quotearg-tests (Depends-on): Likewise.
11302         * modules/rbtree-list-tests (Depends-on): Likewise.
11303         * modules/rbtree-oset-tests (Depends-on): Likewise.
11304         * modules/rbtreehash-list-tests (Depends-on): Likewise.
11305         * modules/spawn-pipe-tests (Depends-on): Likewise.
11306         * modules/system-quote-tests (Depends-on): Likewise.
11307         * modules/uniname/uniname-tests (Depends-on): Likewise.
11308         * modules/uninorm/nfc-tests (Depends-on): Likewise.
11309         * modules/uninorm/nfd-tests (Depends-on): Likewise.
11310         * modules/uninorm/nfkc-tests (Depends-on): Likewise.
11311         * modules/uninorm/nfkd-tests (Depends-on): Likewise.
11312         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Likewise.
11313         * modules/unistdio/u16-vsprintf-tests (Depends-on): Likewise.
11314         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Likewise.
11315         * modules/unistdio/u32-vsprintf-tests (Depends-on): Likewise.
11316         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Likewise.
11317         * modules/unistdio/u8-vsprintf-tests (Depends-on): Likewise.
11318         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Likewise.
11319         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Likewise.
11320         * modules/unlinkat-tests (Depends-on): Likewise.
11321         * modules/version-etc-tests (Depends-on): Likewise.
11322         * modules/xalloc-die-tests (Depends-on): Likewise.
11323         * modules/xmemdup0-tests (Depends-on): Likewise.
11324         * modules/xprintf-posix-tests (Depends-on): Likewise.
11325         * modules/xvasprintf-tests (Depends-on): Likewise.
11326         * tests/test-argmatch.c: Do not include progname.h.
11327         (main) Stop calling set_program_name.
11328         * tests/test-argp-version-etc.c: Likewise.
11329         * tests/test-argp.c: Likewise.
11330         * tests/test-argv-iter.c: Likewise.
11331         * tests/test-array_list.c: Likewise.
11332         * tests/test-array_oset.c: Likewise.
11333         * tests/test-avltree_list.c: Likewise.
11334         * tests/test-avltree_oset.c: Likewise.
11335         * tests/test-avltreehash_list.c: Likewise.
11336         * tests/test-carray_list.c: Likewise.
11337         * tests/test-copy-acl.c: Likewise.
11338         * tests/test-copy-file.c: Likewise.
11339         * tests/test-exclude.c: Likewise.
11340         * tests/test-fchownat.c: Likewise.
11341         * tests/test-fdopendir.c: Likewise.
11342         * tests/test-filenamecat.c: Likewise.
11343         * tests/test-fstatat.c: Likewise.
11344         * tests/test-fstrcmp.c: Likewise.
11345         * tests/test-linked_list.c: Likewise.
11346         * tests/test-linkedhash_list.c: Likewise.
11347         * tests/test-mkdirat.c: Likewise.
11348         * tests/test-nonblocking-pipe-main.c: Likewise.
11349         * tests/test-nonblocking-socket-main.c: Likewise.
11350         * tests/test-obstack-printf.c: Likewise.
11351         * tests/test-openat.c: Likewise.
11352         * tests/test-parse-datetime.c: Likewise.
11353         * tests/test-pipe-filter-gi1.c: Likewise.
11354         * tests/test-pipe-filter-gi2-main.c: Likewise.
11355         * tests/test-pipe-filter-ii1.c: Likewise.
11356         * tests/test-pipe-filter-ii2-main.c: Likewise.
11357         * tests/test-quotearg-simple.c: Likewise.
11358         * tests/test-quotearg.c: Likewise.
11359         * tests/test-rbtree_list.c: Likewise.
11360         * tests/test-rbtree_oset.c: Likewise.
11361         * tests/test-rbtreehash_list.c: Likewise.
11362         * tests/test-sameacls.c: Likewise.
11363         * tests/test-set-mode-acl.c: Likewise.
11364         * tests/test-spawn-pipe-main.c: Likewise.
11365         * tests/test-system-quote-main.c: Likewise.
11366         * tests/test-unlinkat.c: Likewise.
11367         * tests/test-version-etc.c: Likewise.
11368         * tests/test-xalloc-die.c: Likewise.
11369         * tests/test-xfprintf-posix.c: Likewise.
11370         * tests/test-xmemdup0.c: Likewise.
11371         * tests/test-xprintf-posix.c: Likewise.
11372         * tests/test-xvasprintf.c: Likewise.
11373         * tests/uniname/test-uninames.c: Likewise.
11374         * tests/uninorm/test-u32-nfc-big.c: Likewise.
11375         * tests/uninorm/test-u32-nfd-big.c: Likewise.
11376         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
11377         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
11378         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
11379         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
11380         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
11381         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
11382         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
11383         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
11384         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
11385         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
11386         * tests/test-c-stack.c: (program_name): Do not define.
11387         (main): Do not set program_name.
11388         * tests/test-closein.c: Likewise.
11389         * tests/test-xstrtol.c: Likewise.
11390         * tests/test-yesno.c: Likewise.
11392 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
11394         Port modules to use getprogname explicitly, instead of requiring
11395         progname to be used (or program_name to be provided).
11396         * lib/argmatch.c: Do not include progname.h.
11397         [TEST] (program_name): Do not define.
11398         [TEST] (main): Call getprogname instead of using program_name.
11399         * lib/c-stack.c: Do not include progname.h.
11400         (program_name): Do not define.
11401         (die): Call getprogname instead of using program_name.
11402         * lib/chdir-long.c: Do not include progname.h.
11403         [TEST_CHDIR] (main): Do not set program_name.
11404         * lib/error.c [!_LIBC]: Include progname.h.
11405         [!_LIBC] (program_name): Define using getprogname.
11406         * lib/euidaccess.c: Do not include progname.h.
11407         [TEST] (main): Do not set program_name.
11408         * lib/git-merge-changelog.c: Include getprogname.h instead of
11409         progname.h.
11410         (usage): Call getprogname instead of using program_name.
11411         (main): Likewise.  Stop calling set_program_name.
11412         * lib/group-member.c: Do not include progname.h.
11413         [TEST] (main): Do not set program_name.
11414         * modules/argmatch (Depends-on): Add getprogname.
11415         * modules/c-stack (Depends-on): Likewise.
11416         * modules/error (Depends-on): Likewise.
11417         * modules/git-merge-changelog (Depends-on): Likewise.
11418         Also remove progname.
11420 2016-09-05  Pino Toscano  <ptoscano@redhat.com>
11422         * NEWS: Document the deprecation of the 'progname' module.
11424 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
11426         getprogname: new module
11427         This provides a LGPL module for getting the name of the current
11428         program, using the same API found on *BSD systems.
11429         * lib/getprogname.c, lib/getprogname.h, m4/getprogname.m4:
11430         * modules/getprogname: New files.
11431         * MODULES.html.sh (Misc): Add getprogname.
11433 2016-09-02  Jim Meyering  <meyering@fb.com>
11435         manywarnings: add -fno-common
11436         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -fno-common
11437         to the list.  Quoting the manual, "Compiling with -fno-common is
11438         useful on targets for which it provides better performance, or if
11439         you wish to verify that the program will work on other systems that
11440         always treat uninitialized variable declarations this way [putting
11441         it in the data section]."  If diffutils had been using this sooner,
11442         it would have prevented this duplicate declaration issue:
11443         http://git.sv.gnu.org/cgit/diffutils.git/commit/?id=v3.4-10-gc2dc91f
11445 2016-08-31  Simon Josefsson  <simon@josefsson.org>
11447         parse-datetime: Fix typo.
11448         * lib/parse-datetime.y (parse_datetime2): Fix typo.
11450 2016-08-30  Paul Eggert  <eggert@cs.ucla.edu>
11452         intprops: tune INT_NEGATE_OVERFLOW for GCC 5 and 6
11453         * lib/intprops.h (INT_NEGATE_OVERFLOW): Tune for platforms like
11454         GCC 5 and 6 that have __builtin_sub_overflow but not
11455         __builtin_sub_overflow_p.  With the recent changes, these
11456         platforms are a tiny bit faster with the INT_NEGATE_RANGE_OVERFLOW
11457         implementation than with INT_SUBTRACT_OVERFLOW implementation,
11458         since the former needs just one runtime comparison whereas the
11459         latter needs two.
11461         strverscmp: sync with glibc
11462         Although this doesn't exactly synchronize with glibc
11463         byte-for-byte, it makes the code behave the same as glibc.
11464         * lib/strverscmp.c (S_I, S_F, S_Z): Now masks, not powers of 2.
11465         (ISDIGIT): Remove, as glibc is sticking with isdigit, and the
11466         difference shouldn't matter in practical use.  All uses changed
11467         back to isdigit.
11468         (__strverscmp, strverscmp): Use new glibc method for weak aliases.
11469         (next_state): Now unsigned char array; redo elements.
11470         (result_type): Now signed char array; redo elements.
11471         (__strverscmp): Fix glibc bug 9913 by using new states.
11472         * tests/test-strverscmp.c (main): Test glibc bug 9913.
11474 2016-08-29  Jim Meyering  <meyering@fb.com>
11476         xalloc-oversized.h: port __builtin_mul_overflow change to GCC 6.2.0
11477         * lib/xalloc-oversized.h: Port this change to GCC 6.2.0, too,
11478         similarly to how it was done to intprops.h.
11480 2016-08-29  Paul Eggert  <eggert@cs.ucla.edu>
11482         intprops.h: port recent changes to GCC 6.2.0
11483         * lib/intprops.h (__has_builtin): Move earlier.
11484         (_GL_HAS_BUILTIN_OVERFLOW): Rename from
11485         _GL_HAS_BUILTIN_OVERFLOW_WITH_NULL and don't worry about whether
11486         the last argument can be null.  All uses changed.
11487         (_GL_HAS_BUILTIN_OVERFLOW_P): Also test __has_builtin.
11488         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
11489         Don't try to use 3rd arg null, as this doesn't work on GCC 6.2.0
11490         and it's not clear which GCC versions it works for.
11491         (_GL_INT_OP_WRAPV): Use _GL_HAS_BUILTIN_OVERFLOW instead of
11492         its definiens.
11494         intprops.h: use __typeof__ with GCC 7
11495         * lib/intprops.h (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW)
11496         (_GL_MULTIPLY_OVERFLOW): Use __typeof__ as in the GCC manual.
11497         This avoids computing the expression's value (which might overflow!).
11499 2016-08-29  Jim Meyering  <meyering@fb.com>
11501         intprops.h, xalloc-oversized.h: work with gcc 7
11502         In gcc 6, __builtin_add_overflow, __builtin_sub_overflow and
11503         __builtin_mul_overflow each accept a NULL pointer as the third
11504         argument.  However in gcc 7, that is no longer accepted.
11505         Instead, one must use the "_p"-suffixed names, with which, the
11506         third parameter is no longer a pointer.
11507         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): Correct
11508         the definition: not true for gcc 7 and subsequent.
11509         (_GL_HAS_BUILTIN_OVERFLOW_P): Define.
11510         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
11511         Provide new definitions for gcc 7 and subsequent.
11512         * lib/xalloc-oversized.h (xalloc_oversized): Provide a definition
11513         that works with gcc-7.
11515         intprops.h: fix missing-backslash problems
11516         * lib/intprops.h (_GL_ADD_OVERFLOW): Add backslash.
11517         (_GL_SUBTRACT_OVERFLOW,_GL_MULTIPLY_OVERFLOW): Likewise.
11519 2016-08-24  Paul Eggert  <eggert@cs.ucla.edu>
11521         intprops: fix paren typo on old platforms
11522         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300#13
11523         * lib/intprops.h (_GL_INT_OP_WRAPV_LONGISH)
11524         [__GNUC__ < 5 && !__has_builtin (__builtin_add_overflow)
11525         && (__STDC_VERSION__ < 201112 || _GL__GENERIC_BOGUS)
11526         && !defined LLONG_MAX]:
11527         Remove stray paren.
11529         intprops: port to OpenVMS
11530         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300
11531         * doc/posix-headers/limits.texi: Document the problem.
11532         * lib/intprops.h (LLONG_MAX, LLONG_MIN) [__INT64_MAX]:
11533         Define if not already defined.
11535 2016-08-19  Assaf Gordon  <assafgordon@gmail.com>
11537         parse-datetime: improve debug implementation
11538         Follow-up to commit 12ad79069 ("add optional debug printing").
11539         Improve parse-datetime's debug implementation: remove macros,
11540         replace global debug flag variable with a function parameter,
11541         use nstrftime for formatting.
11542         See: https://lists.gnu.org/r/bug-gnulib/2016-08/msg00021.html
11543         * lib/parse-datetime.h: (parse_datetime_debug): Remove global extern.
11544         (parse_datetime2): New function, accepts 'flags' parameter, supporting
11545         debug flag. Existing interface 'parse_datetime' left unmodified.
11546         * lib/parse-datetime.c: (parse_datetime_debug): Remove global variable.
11547         (struct parser_control): add 'parse_datetime_debug' member variable.
11548         (parse_datetime): Call new function 'parse_datetime2' without debug.
11549         (parse_datetime2): Adapted from previous 'parse_datetime', initialize
11550         pc.parse_datetime_debug variable as needed.
11551         (to_year): Accept new flags parameter, instead of using global variable.
11552         (debug_print_current_time,debug_print_relative_time,debug_mktime_not_ok):
11553         use struct 'debug' variable instead of global variable.
11554         (DEBUG,DEBUG_PRINT_CURRENT_TIME,DEBUG_PRINT_RELATIVE_TIME,
11555         DEBUG_MKTIME_NOT_OK,PROGRESS,PROGRESS0): Remove macros. Call
11556         correspnding functions directly instead of using macros.
11557         * modules/parse-datetime: Add gnulib's strftime module.
11559 2016-08-19  Daniel Richard G.  <skunk@iSKUNK.ORG>
11561         c-strcase-tests: port to EBCDIC
11562         * tests/test-c-strncasecmp.c: Allow two c_strncasecmp calls
11563         which assume ASCII encoding semantics to run only in ASCII
11564         mode, as they fail in EBCDIC.
11566         sigpipe-tests: fix typo
11567         * tests/test-sigpipe.sh: C, not B.
11569 2016-08-18  Paul Eggert  <eggert@cs.ucla.edu>
11571         canonicalize-lgpl: fix errno after malloca fails
11572         This fixes a typo I recently introduced.  Suggested by Bruno Haible in:
11573         http://lists.gnu.org/r/bug-gnulib/2016-08/msg00039.html
11574         * lib/canonicalize-lgpl.c (__realpath):
11575         Don't assume malloca sets errno on failure.
11577 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
11579         strtod: port errno handling to z/OS
11580         * lib/strtod.c (strtod): Save and restore errno more reliably.
11582 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
11584         strtod: port to z/OS
11585         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
11586         implementation.
11588 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
11590         strtod: port to z/OS
11591         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
11592         implementation.
11594         regex, string: rename to avoid '__string'
11595         * lib/regex.h, lib/string.in.h: Do not use the identifier
11596         '__string', as it is effectively reserved by string.h on z/OS.
11598         c-strcase-tests, wcwidth-tests: depend on c-ctype
11599         * modules/c-strcase-tests, modules/wcwidth-tests (Depends-on):
11600         Add c-ctype.
11602 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
11604         thread: port to z/OS
11605         * lib/glthread/thread.c, lib/glthread/thread.h:
11606         Rudimentary gl_thread support for z/OS.
11608         maint: port tests to z/OS errno behavior
11609         * tests/test-nonblocking-reader.h:
11610         * tests/test-nonblocking-writer.h:
11611         Accommodate z/OS errno code preferences. (I believe this should
11612         still be within spec; IBM is good at following the letter if not
11613         the spirit of such things.)
11615         maint: preprocessor changes to support z/OS
11616         * lib/alloca.in.h, lib/fnmatch.c, lib/get-rusage-as.c:
11617         * lib/glob.c, lib/math.in.h, lib/ptsname_r.c:
11618         * tests/infinity.h, tests/nan.h, tests/test-canonicalize-lgpl.c:
11619         * tests/test-nonblocking-pipe.h:
11621         fclose, strstr-simple, wchar: port to z/OS
11622         * m4/fclose.m4, m4/strstr.m4, m4/wchar_h.m4:
11623         Changes to the Autoconf M4 code to support z/OS.  Note that
11624         fclose() is broken in a different way on z/OS than it is on other
11625         systems, thus the special-case in fclose.m4.
11627         iconv_open-utf-tests, iconv-tests: port to EBCDIC
11628         * tests/test-iconv-utf.c, tests/test-iconv.c:
11629         Added appropriately conditional #pragmas so that the test strings
11630         in test-iconv-utf.c are correctly interpreted in ASCII instead of
11631         EBCDIC (i.e. 'J' == 0x4A and not 0xD1). This issue could be
11632         addressed in a more portable way by simply rewriting all the ASCII
11633         literal characters as octal escapes, but then you would lose the
11634         partial readability that the strings have now. Also, iconv_open()
11635         on z/OS does not recognize "ISO-8859-1", but "ISO8859-1" works.
11637         c-strcase-tests, wcwidth-tests: port to EBCDIC
11638         * tests/test-c-strcasecmp.c: Include c-ctype.h.
11639         (main) [!C_CTYPE_ASCII]: Skip tests that assume ASCII.
11640         * tests/test-wcwidth.c: Likewise.
11642 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
11644         stdbool: don't require _Bool for C++
11645         Problem reported by David Seifert in:
11646         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00005.html
11647         * NEWS, doc/posix-headers/stdbool.texi (stdbool.h): Document this.
11648         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Make the check
11649         more-forgiving for C++, in that it requires only 'bool'.  Be a bit
11650         stricter about checking that bool and _Bool are compatible in C.
11652 2016-08-16  Paul Eggert  <eggert@cs.ucla.edu>
11654         getdelim: remove dependency on realloc-posix
11655         * lib/canonicalize-lgpl.c (alloc_failed)
11656         [!FUNC_REALPATH_WORKS || defined _LIBC]: New function,
11657         (__realpath) [!FUNC_REALPATH_WORKS || defined _LIBC]: Use it.
11658         Use __set_errno where needed, for consistency.
11659         * lib/getdelim.c (alloc_failed): New function.
11660         (getdelim): Use it.
11662 2016-08-09  Assaf Gordon  <assafgordon@gmail.com>
11664         parse-datetime: add optional debug printing
11665         Print parsing information, warnings, and errors to stderr.
11666         * lib/parse-datetime.h (parse_datetimte_debug): New global variable.
11667         * lib/parse-datetime.y:
11668         (DEBUG_*):  Macros calling debug functions if debugging is enabled.
11669         (PROGRESS*): Same as DEBUG, for progress reporting.
11670         (dbg_printf): Print message to stderr, with 'date' prefix.
11671         (struct parser_control): Add 'debug_*_seen' variables.
11672         (str_days): Converts day ordinal/number to string (e.g. 'last wed').
11673         (debug_print_current_time, debug_print_relateive_time): Prints the
11674         current/relative date/time value of parser_control.
11675         (YACC parser syntax): Print parsed parts with DEBUG_* macros.
11676         (to_year): Warn about 2-digit year parsing.
11677         (yylex):   Warn about unrecognized words.
11678         (get_effective_timezone): Returns current timezone in minutes.
11679         (debug_strf{time,date,datetime}): Convert 'struct tm' to string as
11680         clearly and unambigiously as possible.
11681         (debug_mktime_not_ok): Print detailed information about failed
11682         date/time values.
11683         (parse_datetime): Add DEBUG messages for failures, warnings. Add
11684         PROGRESS messages for status messages.
11685         * modules/parse-datetime: Add 'timegm', 'gettext-h' dependencies.
11687 2016-08-06  Jim Meyering  <meyering@fb.com>
11689         tests/init.sh: exclude dash with bad "local" semantics
11690         * tests/init.sh (gl_shell_test_script_): Add a function to
11691         eliminate a shell like "dash" (unlike bash, zsh) that has
11692         surprising/risky "local var='...'" semantics.  Inspired by
11693         the problem and discussion in https://bugs.gnu.org/24116#11.
11695 2016-08-02  Ján Tomko  <jtomko@redhat.com>
11697         maint.mk: expand the prohibit_doubled_word regex
11698         This check has a static list of words that are checked for
11699         repetitions.  Expand it before running the perl script to
11700         avoid using expensive captures.  This decreases the cost
11701         for libvirt from 1.66s to 0.66s.
11702         * top/maint.mk (prohibit_doubled_word_expanded_): Define.
11703         (sc_prohibit_doubled_word): Use it.
11705 2016-07-26  Ján Tomko  <jtomko@redhat.com>
11707         useless-if-before-free: skip non-matching lines early
11708         * build-aux/useless-if-before-free: First match each line with the
11709         simple/quick /\bif\b/ and reject if there is no match. This often
11710         saves the cost of the much more involved regular expression.
11711         For libvirt, this decreases the cost from 1.44s to 1.02s.
11713 2016-07-26  Ján Tomko  <jtomko@redhat.com>
11715         maint.mk: speed up sc_po_check
11716         sc_po_check would skip files based on their names, or on the
11717         existence of files with derived names. Rewrite it to use perl
11718         instead of shell to make the check faster.
11719         * top/maint.mk (perl_translatable_files_list_): Define.
11720         (sc_po_check): Use it.
11722 2016-07-30  Ján Tomko  <jtomko@redhat.com>
11724         maint.mk: speed up require_config_h_first
11725         Instead of spawning three processes per file,
11726         rewrite the check in perl and run it once for all the files.
11727         * top/maint.mk (perl_config_h_first_): Define.
11728         (sc_require_config_h_first): Use it in place of shell code.
11730 2016-07-26  Ján Tomko  <jtomko@redhat.com>
11732         maint.mk: speed up sc_po_check
11733         sc_po_check would skip files based on their names, or on the
11734         existence of files with derived names. Rewrite it to use perl
11735         instead of shell to make the check faster.
11736         * top/maint.mk (perl_translatable_files_list_): Define.
11737         (sc_po_check): Use it.
11739 2016-07-15  Paul Eggert  <eggert@cs.ucla.edu>
11741         obstack: pacify GCC 6 with -Wnull-dereference
11742         Problem reported by Assaf Gordon in:
11743         http://lists.gnu.org/r/bug-gnulib/2016-07/msg00028.html
11744         * lib/obstack.c, lib/obstack.h (obstack_alloc_failed_handler):
11745         Declare with __attribute_noreturn__.
11746         * lib/obstack.h (__attribute_noreturn__): New macro.
11748 2016-07-13  Eric Blake  <eblake@redhat.com>
11750         doc: mention glibc, OS X, Cygwin [S]SIZE_MAX buglet
11751         * doc/posix-headers/stdint.texi (stdint.h): Document the bugs.
11752         * doc/posix-headers/limits.texi (limits.h): Document the bugs.
11754 2016-07-13  Paul Eggert  <eggert@cs.ucla.edu>
11756         doc: mention glibc SSIZE_MAX buglet
11757         * doc/posix-headers/limits.texi (limits.h): Document the bug.
11759 2016-07-04  Martin Kletzander  <mkletzan@redhat.com>
11761         printf-posix: Fix mingw build
11762         Commit 54615b95ff238e235e806855efc46a9abad09f2e changed the regular
11763         expression for detecting C symbol prefixes but forgot to qoute square
11764         brackets in the command line arguments for grep.  That way when
11765         building with mingw the condition was false although it ought to be
11766         true instead.  In particular scenarios this led to the following
11767         compile error:
11769             Cannot export rpl_printf: symbol not found
11770             Cannot export rpl_scanf: symbol not found
11771             collect2: error: ld returned 1 exit status
11773         Fix this by properly quoting square brackets.
11775 2016-07-03  Paul Eggert  <eggert@cs.ucla.edu>
11777         mktime: call tzset as per POSIX
11778         Problem reported by Ludovic Courtès in:
11779         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00068.html
11780         * lib/mktime.c (mktime) [!_LIBC && HAVE_TZSET]: Call tzset.
11781         * m4/mktime.m4 (gl_FUNC_MKTIME): Check for tzset.
11783 2016-06-26  Pádraig Brady  <P@draigBrady.com>
11785         fts: handle readdir() errors
11786         * lib/fts.c (fts_build): readdir(3) returns NULL when finished,
11787         but also upon error when it will also set errno.  Therefore
11788         flag the error case from readdir().  We treat the case where
11789         no items are read the same as if the dir can't be accessed,
11790         i.e. by setting fts_errno to FTS_DNR.
11792 2016-06-24  Paul Eggert  <eggert@cs.ucla.edu>
11794         intprops: port better to GCC 7
11795         GCC 7 __builtin_add_overflow supports a new usage form, where the
11796         last argument is a null pointer, and which merely returns 1 if an
11797         overflow would occur.  This is a constant expression if all
11798         arguments are constants, and should generate faster code when code
11799         needs to be generated.
11800         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): New macro.
11801         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
11802         Use builtin operations if available.
11803         (INT_NEGATE_OVERFLOW): Prefer INT_SUBTRACT_OVERFLOW if builtin
11804         operations are available, as it's almost surely faster.
11806 2016-06-23  Paul Eggert  <eggert@cs.ucla.edu>
11808         intprops-test: port to GCC 6
11809         * tests/test-intprops.c: Ignore -Woverflow if any GCC version,
11810         since the bug is not fixed in GCC 6.1.
11812 2016-06-13  Paul Eggert  <eggert@cs.ucla.edu>
11814         xalloc-oversized: port to GCC 7; fewer warnings
11815         GCC 7 will have a better way to deal with integer overflow.
11816         Plus, fix a warnings problem reported by Tim Ruehsen in:
11817         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00022.html
11818         * lib/xalloc-oversized.h (__xalloc_oversized): New macro.
11819         (xalloc_oversized): Use plain __builtin_mul_overflow if GCC 7 or later.
11820         For GCC 5, use __xalloc_oversized if both args are constants,
11821         or if pedantic.
11823 2016-06-08  Paul Eggert  <eggert@cs.ucla.edu>
11825         regex: port to Sun C
11826         Reported by Daiki Ueno.
11827         * lib/regcomp.c (regcomp, regerror): Use _Restrict_, not
11828         __restrict, in prototype.  This fixes a problem I introduced in
11829         the 2016-02-19 merge from glibc.
11831 2016-05-31  Paul Eggert  <eggert@cs.ucla.edu>
11833         stdbool: Restore __bool_true_false_are_defined check
11834         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL):
11835         __bool_true_false_are_defined is still defined, even with C++11.
11837 2016-05-31  David Seifert  <soap@gentoo.org>  (tiny change)
11839         stdbool: Port AC_CHECK_HEADER_STDBOOL to C++11
11840         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Port to C++11.
11842 2016-05-30  Paul Eggert  <eggert@cs.ucla.edu>
11844         Use GCC_LINT, not lint
11845         FreeBSD and Cygwin #define _Noreturn to empty if 'lint' is defined.
11846         Problem reported by Ken Brown in: http://bugs.gnu.org/23640
11847         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
11848         Document problem with lint and _Noreturn.
11849         * lib/diffseq.h (IF_LINT, IF_LINT2):
11850         * lib/fts.c (sccsid):
11851         * lib/getndelim2.c (IF_LINT):
11852         * lib/gl_anylinked_list2.h (gl_linked_iterator)
11853         (gl_linked_iterator_from_to):
11854         * lib/gl_anytree_list2.h (gl_tree_iterator)
11855         (gl_tree_iterator_from_to):
11856         * lib/gl_anytree_oset.h (gl_tree_iterator):
11857         * lib/gl_array_list.c (gl_array_iterator)
11858         (gl_array_iterator_from_to):
11859         * lib/gl_array_oset.c (gl_array_iterator):
11860         * lib/gl_carray_list.c (gl_carray_iterator)
11861         (gl_carray_iterator_from_to):
11862         * lib/idcache.c:
11863         * lib/inet_ntop.c (IF_LINT):
11864         * lib/regcomp.c (build_charclass_op, create_tree):
11865         * lib/regex_internal.c (re_acquire_state)
11866         (re_acquire_state_context):
11867         * lib/trigl.c (rcsid):
11868         * lib/trim.c (IF_LINT):
11869         * lib/vasnprintf.c (IF_LINT):
11870         * lib/verify.h (assume):
11871         Treat GCC_LINT like lint.
11873 2016-05-29  Bruno Haible  <bruno@clisp.org>
11875         secure_getenv: Port to many more platforms.
11876         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV): Also check for get*id
11877         functions.
11878         * lib/secure_getenv.c (secure_getenv): Add alternate implementations
11879         for non-BSD Unix platforms and for native Windows.
11880         * doc/glibc-functions/secure_getenv.texi: Remove known issue.
11881         Prompted by a request from Nikos Mavrogiannopoulos.
11883 2016-05-27  Eric Blake  <eblake@redhat.com>
11885         canonicalize: Fix broken probe for realpath.
11886         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Fix regression
11887         in logic introduced in 54615b95.
11889 2016-05-26  Eric Blake  <eblake@redhat.com>
11891         unsetenv: relax to LGPLv2+
11892         * modules/unsetenv (License): Match setenv license.
11894 2016-05-20  Ludovic Courtès  <ludo@gnu.org>
11896         gendocs.sh: Set default TOP_NODE_UP_URL in HTML output.
11897         Suggested by Gavin Smith <gavinsmith0123@gmail.com>.
11898         Reported by myglc2 <myglc2@gmail.com> in <http://bugs.gnu.org/22651>.
11899         * build-aux/gendocs.sh (MANUAL_TITLE, PACKAGE, EMAIL)
11900         (commonarg, dirargs, dirs, infoarg, generate_ascii)
11901         (generate_html, generate_info, generate_tex, outdir)
11902         (source_extra, split, srcfile, texarg): Move above 'version'.
11903         (htmlarg): Likewise, and add "-c TOP_NODE_UP_URL=/manual".
11905 2016-05-17  Paul Eggert  <eggert@cs.ucla.edu>
11907         manywarnings: update for GCC 6.1
11908         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
11909         Add GCC 6.1 options that apply to C.
11910         * build-aux/gcc-warning.spec: Add GCC 6.1 options that
11911         do not apply to C, are obsolescent, etc.
11913 2016-05-12  Paul Eggert  <eggert@cs.ucla.edu>
11915         glob: size_t overflow checks
11916         * lib/glob.c (__has_builtin): New macro.
11917         (size_add_wrapv, glob_use_alloca): New static functions.
11918         (glob, glob_in_dir): Check for size_t overflow in several places,
11919         and fix some size_t checks that were not quite right.
11921         glob: don't assume INT_MAX < SIZE_MAX
11922         * lib/glob.c (glob): Prefer SIZE_MAX to ~((size_t) 0), as the
11923         latter is not portable to (probably theoretical) hosts where
11924         SIZE_MAX <= INT_MAX.
11926 2016-05-09  Bruno Haible  <bruno@clisp.org>
11928         Fix undefined behaviour in gettext.h.
11929         * lib/gettext.h (dcpgettext_expr, dcnpgettext_expr): Avoid accessing a
11930         pointer's value after the storage it points to has been freed.
11931         Reported by Michael Pyne in https://savannah.gnu.org/bugs/?47847.
11932         Spotted by Coverity.
11934 2016-05-08  Paul Eggert  <eggert@cs.ucla.edu>
11936         git-version-gen: avoid undefined shift
11937         Problem reported by Mosè Giordano in:
11938         http://lists.gnu.org/r/bug-gnulib/2016-05/msg00012.html
11939         * build-aux/git-version-gen: Avoid undefined behavior if invoked
11940         with --prefix or --fallback but without a later argument.  While
11941         we're at it, omit unnecessary quotes.
11943 2016-05-04  Paul Eggert  <eggert@cs.ucla.edu>
11945         glob: merge glibc changes into lib/glob.c
11946         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c,
11947         dated 2016-05-04 12:09:35 2016 +0200.  Here are the changes:
11948         2016-05-04 CVE-2016-1234: glob: Do not copy d_name field of
11949           struct dirent [BZ #19779]
11950         2016-04-29 glob: Simplify the interface for the GLOB_ALTDIRFUNC
11951           callback gl_readdir
11952         2015-10-20 Convert miscellaneous function definitions to prototype style
11953         2015-10-20 Convert 113 more function definitions to prototype style
11954           (files with assertions)
11955         2015-06-12 Fix getlogin_r namespace (bug 18527).
11956         2014-02-10 Use glibc_likely instead __builtin_expect.
11957         2013-10-20 When glob pattern contains a trailing slash match only
11958           directories. Fixes bug 10278.
11959         2013-09-04 glob: silence -Wattribute warnings
11960         2013-06-07 Avoid use of "register" as optimization hint.
11961         2012-09-25 Use size_t instead of int for internal variables in glob
11962           (bug 14621)
11963         2011-07-20 Check for overflows in expressions
11964         2011-05-28 Remove unused variable
11965         2011-05-22 Add a few more alloca size checks
11966         2010-03-27 Whitespace fixes
11967         2010-03-27 Fix one more issue with the glob patch
11968         2010-03-24 Fix glob with empty pattern
11969         2008-05-27 Remove useless more "if" tests before "free"
11970         * modules/glob (Depends-on): Add stdint.
11972 2016-05-01  Paul Eggert  <eggert@cs.ucla.edu>
11974         mktime: port to stricter signed overflow checking
11975         * lib/mktime.c: Omit 'pragma GCC optimize ("wrapv")'.
11976         (long_int): Require width for INT_MAX * 3 * (seconds per year),
11977         instead of merely for INT_MAX * 2.  In practice platforms that
11978         do the latter also do the former.
11979         (TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT, SHR): Remove.
11980         (shr): New static function, replacing SHR.  All uses changed.
11981         (mktime_min, mktime_max): New constants, replacing TIME_T_MIN
11982         and TIME_T_MAX.  All uses changed.
11983         (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
11984         Use long_int, not time_t.
11985         (long_int_avg): New static function, replacing time_t_avg.
11986         All uses changed.  Round toward positive infinity, as that
11987         generates slightly better code.
11988         (time_t_add_ok, time_t_int_add_ok): Remove.  All uses replaced
11989         by INT_ADD_WRAPV.
11990         (guess_time_tm): Accept time, not a pointer to it.  All uses changed.
11991         (convert_time): New static function.
11992         (ranged_convert): Use it
11993         (ranged_convert): Check for *T out of [mktime_min, mktime_max] range.
11994         Use simpler test for loop exit.
11995         (__mktime_internal): Store negative of guessed offset, to simplify
11996         overflow checking.  Remove no-longer-needed test for small time_t
11997         overflows.
11999         mktime: speed up DEBUG_MKTIME benchmarks
12000         Call tzset just once, at the start, rather than for every test
12001         case.  This lets us measure the CPU cost of mktime as opposed to
12002         that of tzset.  This is relevant when TZ is not set and glibc is
12003         being used.  This speeds up tests by a factor of 40 on my Fedora
12004         23 x86-64 platform.
12005         * lib/mktime.c (main) [DEBUG_MKTIME]: Call localtime at the start,
12006         to call tzset and as a sanity check.  Later on, use localtime_r
12007         instead of localtime.
12009         mktime: resurrect DEBUG_MKTIME testing
12010         * lib/mktime.c [DEBUG_MKTIME]: Do not include <config.h>.
12011         Include <string.h>, for strcmp.
12013         mktime: simplify DEBUG_MKTIME
12014         * lib/mktime.c (DEBUG_MKTIME): Define to 0 if not defined.
12015         Simplify later usage accordingly.
12017         Port mktime_internal offset to unsigned time_t
12018         This avoids some assumptions about wraparound arithmetic on
12019         signed integer overflow.
12020         * lib/mktime-internal.h (mktime_offset_t): New type.
12021         (mktime_internal): Use it in decl.
12022         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]: New type.
12024         * lib/mktime.c (__mktime_internal, localtime_offset):
12025         * lib/timegm.c (timegm): Use it.
12026         * m4/mktime.m4 (gl_TIME_T_IS_SIGNED): New macro.
12027         (gl_FUNC_MKTIME): Require it.
12029 2016-04-27  Paul Eggert  <eggert@cs.ucla.edu>
12031         xstrtol: prohibit monstrosities like "1bB"
12032         Problem reported by Young Mo Kang in: http://bugs.gnu.org/23388
12033         * lib/xstrtol.c (__xstrtol): Allow trailing second suffixes like
12034         "B" only if the first suffix needs a base.
12035         * tests/test-xstrtol.sh: Test this.
12037 2016-04-21  Pádraig Brady  <P@draigBrady.com>
12039         xstrtod: reinstate setting of *result upon ERANGE
12040         * lib/xstrtod.c (XSTRTOD): The user may decide to use
12041         the returned limits upon ERANGE, so allow and document that.
12043 2016-04-20  Tino Calancha  <f92capac@gmail.com>  (tiny change)
12045         xstrtod: modify *result only if no errors
12046         * lib/xstrtod.c (XSTRTOD).
12048 2016-04-19  Paul Eggert  <eggert@cs.ucla.edu>
12050         btowc: document problems in C locale
12051         * doc/posix-functions/btowc.texi (btowc): Mention incompatibility
12052         with mbrtowc.  See: http://bugs.gnu.org/23269#32
12054 2016-04-13  Paul Eggert  <eggert@cs.ucla.edu>
12056         mktime: improve integer overflow checking
12057         * lib/mktime.c: Include stdbool.h, intprops.h, verify.h.
12058         (WRAPV): Remove; no longer needed.
12059         (verify): Remove.  Replace all uses with call to verify.h 'verify'.
12060         (TYPE_IS_INTEGER, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
12061         Remove.  Use intprops.h defns instead.
12062         (leapyear, isdst_differ, time_t_add_ok, time_t_int_ok):
12063         Use bool for Boolean, for clarity.
12064         (time_t_add_ok, time_t_int_add_ok): Use INT_ADD_WRAPV to
12065         detect integer overflow.
12066         * modules/mktime (Depends-on): Add intprops, stdbool, verify.
12068         intprops: check two's complement assumption
12069         Suggested by Eric Blake in:
12070         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00016.html
12071         * lib/intprops.h: Include <verify.h>.  Verify that signed char,
12072         short, int, long, and (if available) long long are two's complement.
12073         * modules/intprops (Depends-on): Add 'verify'.
12075         intprops, mktime, strtol: assume two's complement
12076         These macros were not portable to every conforming C11 ones'
12077         complement platform.  It's not worth the hassle of porting to some
12078         platforms that use ones' complement or signed magnitude, as such
12079         platforms are almost purely theoretical nowadays and porting even
12080         to some of them makes the code harder to review for little
12081         practical benefit.  Problem reported by Florian Weimer in:
12082         https://sourceware.org/ml/libc-alpha/2016-04/msg00295.html
12083         * lib/intprops.h (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
12084         (TYPE_SIGNED_MAGNITUDE, _GL_INT_TWOS_COMPLEMENT):
12085         * lib/mktime.c (TYPE_TWOS_COMPLEMENT):
12086         * lib/strtol.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
12087         (TYPE_SIGNED_MAGNITUDE):
12088         Remove.  All uses rewritten to assume two's complement, which is
12089         all we can reasonably test nowadays anyway.
12090         * top/maint.mk (_intprops_names): Remove the removed macros.
12092 2016-04-11  Paul Eggert  <eggert@cs.ucla.edu>
12094         stdint: port to strict C11 left shift
12095         * lib/stdint.in.h (_STDINT_MIN, _STDINT_MAX):
12096         Pacify clang -Wshift-negative-value, which should be an issue only
12097         on clang setups where stdint.h does not conform to C11 or to C++11.
12098         Problem reported by Philipp Stephani in: http://bugs.gnu.org/23261
12100 2016-04-09  Paul Eggert  <eggert@penguin.cs.ucla.edu>
12102         mbrtowc: work around glibc bug#19932
12103         Fix mbrtowc so that it never returns -1 in the C locale,
12104         as this conflicts with a future version of POSIX
12105         http://austingroupbugs.net/view.php?id=663#c2738
12106         and causes problems with GNU grep: http://bugs.gnu.org/23234
12107         See glibc bug 19932:
12108         https://sourceware.org/bugzilla/show_bug.cgi?id=19932
12109         * doc/posix-functions/mbrlen.texi (mbrlen):
12110         * doc/posix-functions/mbrtowc.texi (mbrtowc):
12111         Document the glibc bug.
12112         * lib/mbrtowc.c [C_LOCALE_MAYBE_EILSEQ]:
12113         Include hard-locale.h, locale.h.
12114         (rpl_mbrtowc): Work around the C_LOCALE_MAYBE_EILSEQ bug,
12115         if the bug is possible.
12116         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): New macro.
12117         (gl_FUNC_MBRTOWC): Use it, and define C_LOCALE_MAYBE_EILSEQ as needed.
12118         * modules/hard-locale (License): Now LGPLv2+, for mbrtowc.
12119         * modules/mbrtowc (Depends-on): Add hard-locale.
12120         * modules/mbrtowc-tests (Files, TESTS): Add tests/test-mbrtowc5.sh.
12121         * tests/test-mbrtowc.c (main): Test for bug fix if arg is '5'.
12122         * tests/test-mbrtowc5.sh: New file.
12124 2016-04-03  Pedro Alves  <palves@redhat.com>
12126         stdint: detect good enough pre-C++11 stdint.h in C++ mode
12127         When gnulib is configured in C++ mode for a system with a working C99
12128         implementation of stdint.h that predates C++11, gnulib ends up
12129         substituting stdint.h anyway.  This works on most targets, but on e.g.,
12130         64-bit MinGW, it doesn't, as gnulib's substitute assumes LP64, while
12131         MinGW is LLP64.  Instead of trying to detect the right types, detect
12132         good-enough-pre-C++11 stdint.h and in such case define
12133         __STDC_CONSTANT_MACROS/__STDC_LIMIT_MACROS in config.h.
12134         * m4/stdint.m4 (gl_STDINT_H): Always define __STDC_CONSTANT_MACROS
12135         / __STDC_LIMIT_MACROS while checking whether the system stdint.h
12136         conforms to C99.  If it does, check whether it hides symbols
12137         behind the __STDC_{CONSTANT|LIMIT}_MACROS macros.  Then if it
12138         does, define those macros in config.h.
12140 2016-04-03  Paul Eggert  <eggert@cs.ucla.edu>
12142         argp: merge changes from glibc
12143         Among other things, this should fix problems found by a Coverity
12144         scan and reported by Andrei Borzenkov:
12145         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00015.html
12146         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00016.html
12147         * lib/argp-ba.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h:
12148         * lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h:
12149         * lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c:
12150         * lib/argp.h:
12151         Merge changes from glibc.
12152         * tests/test-argp-2.sh: Adjust to match new behavior.
12154 2016-04-01  Paul Eggert  <eggert@cs.ucla.edu>
12156         stddef: support configuring with g++
12157         Problem reported by Ángel González in:
12158         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00003.html
12159         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS, max_align_t):
12160         Do not define if _GCC_MAX_ALIGN_T is defined.
12162 2016-03-25  Paul Eggert  <eggert@cs.ucla.edu>
12164         test-framework-sh: minor cleanups
12165         * tests/init.sh (testdir_prefix_): Output a trailing newline,
12166         since strictly speaking POSIX requires this.
12167         (setup_): Do not use the variable 'fail', as that makes the
12168         trace output harder to read ('fail' is typically used by
12169         tests to mean the test failed).  Treat // portably.
12170         Check that new directory is not merely a sibling of the tmp dir.
12171         Avoid unnecessary invocation of tr.
12173         test-framework-sh: revert port to NetBSD 7.0
12174         It was a false alarm; I misinterpreted Assaf Gordon's report.
12175         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
12176         Restore.
12177         (test_dir_): Adjust to mktempd_ change.
12178         (mktempd_): Restore 2nd arg.  Use -t again.
12179         (base_template_, template_, nx_): Resurrect old code.
12181         Port better to Alpine Linux
12182         Its diff implementation does not support -c, but does support -U3.
12183         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
12184         * tests/init.sh (diff_opt_): New var.
12185         (compare_): Prefer diff -U3 to diff -c to plain diff.
12187 2016-03-24  Paul Eggert  <eggert@cs.ucla.edu>
12189         test-framework-sh: port to NetBSD 7.0
12190         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
12191         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
12192         Remove.  All uses removed.
12193         (test_dir_): Adjust to mktempd_ change.
12194         (mktempd_): Omit 2nd arg.  Stop using -t, as it is not portable.
12195         (base_template_, template_, nx_): Simplify by hardcoding.
12197 2016-03-22  Paul Eggert  <eggert@cs.ucla.edu>
12199         gitlog-to-changelog: suppress ignored chatter
12200         * build-aux/gitlog-to-changelog: Do not warn about skipping
12201         an SHA if it would have been ignored anyway.
12203 2016-03-22  Geert Janssens  <janssens-geert@telenet.be>
12205         setlocale: add "sv" to Windows language table
12206         * lib/setlocale.c (language_table) [W32]: Add "sv".
12207         Reported in <https://savannah.gnu.org/bugs/?44588>.
12209 2016-03-21  Paul Eggert  <eggert@cs.ucla.edu>
12211         sys_select: port to new Cygwin
12212         Problem reported by Ken Brown in:
12213         https://lists.gnu.org/r/bug-gnulib/2016-03/msg00054.html
12214         * lib/sys_select.in.h [__CYGWIN__]: Avoid "unknown type name"
12215         diagnostics.
12217 2016-03-17  Jim Meyering  <meyering@fb.com>
12219         test-userspec.c: do not trigger gcc's new -Wmisleading-indentation
12220         * tests/test-userspec.c (main): Remove unnecessary braces and fix
12221         misleading indentation. Here is the diagnostic gcc-6.0-to-be issued:
12222           test-userspec.c:176:9: error: statement is indented as if it were \
12223             guarded by... [-Werror=misleading-indentation]
12224                    {
12225                    ^
12226           test-userspec.c:173:7: note: ...this 'if' clause, but it is not
12227                  if (!diag && !T[i].result)
12228                  ^~
12230 2016-03-15  Paul Eggert  <eggert@cs.ucla.edu>
12232         time_rz: port to clang -Wunused-const-variable
12233         * lib/time_rz.c (TZ): Remove.  All uses removed.
12235         std-gnu11: improve clang support
12236         * m4/std-gnu11.m4: Sync with autoconf, incorporating:
12237         2016-03-15 Also try clang
12238         2016-03-15 Port C11 and C++11 testing to clang
12240         select: port more to Intel 2016.1.150 compiler
12241         Problem reported by Balázs Hajgató in:
12242         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00036.html
12243         * m4/select.m4 (gl_FUNC_SELECT): Require AC_C_RESTRICT.
12245 2016-03-14  Paul Eggert  <eggert@cs.ucla.edu>
12247         select: try to port to 2016.1.150 compiler
12248         Problem reported by Balázs Hajgató in:
12249         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00026.html
12250         * lib/sys_select.in.h (select): Use 'restrict' on arguments where
12251         POSIX specifies 'restrict'.
12253 2016-03-13  Paul Eggert  <eggert@cs.ucla.edu>
12255         localename-tests: memory allocation fixes
12256         * tests/test-localename.c (test_locale_name)
12257         (test_locale_name_thread): Don't call freelocale on a locale
12258         that was the base of a successful newlocale, as that
12259         results in a double free.  Problem reported by Assaf Gordon.
12260         (test_locale_name_thread): Free saved names after use, to pacify
12261         gcc -fsanitize=address.
12263 2016-03-08  Paul Eggert  <eggert@cs.ucla.edu>
12265         intprops: make .h file license match module
12266         * lib/intprops.h: Change the license wording to match glibc format.
12267         This is what is in modules/intprops anyway.  See:
12268         https://sourceware.org/bugzilla/show_bug.cgi?id=19738#c8
12270 2016-03-08  Eric Blake  <eblake@redhat.com>
12272         acl: fix missing return on Cygwin
12273         * lib/set-permissions.c (set_acls) [HAVE_FACL && GETACL]: Don't
12274         fall off end of function. Fixes http://bugs.gnu.org/22949
12276 2016-03-05  Bruno Haible  <bruno@clisp.org>
12278         extern-inline: port to PGI CC
12279         * m4/extern-inline.m4 (gl_EXTERN_INLINE): For PGI CC, don't use the
12280         keyword 'inline'.
12281         Reported by Adam James Stewart in:
12282         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00006.html
12284 2016-02-20  Paul Eggert  <eggert@cs.ucla.edu>
12286         signbit: port back to pre-C++11 GCC
12287         * lib/math.in.h (signbit): Do previous change only if
12288         __cplusplus < 201103.  See Jonathan Wakely in:
12289         https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/UY3VX3W7XEXYTUKHG5BALU4ACUD7ZLGE/
12291 2016-02-19  Kamil Dudka  <kdudka@redhat.com>
12293         mountlist: recognize autofs-mounted remote file systems, too
12294         Originally reported at: https://bugzilla.redhat.com/1309247
12295         * lib/mountlist.c (ME_REMOTE): Return true if a file system is named
12296         "-hosts" because it is used by autofs to mount remote file systems.
12298 2016-02-19  Paul Eggert  <eggert@cs.ucla.edu>
12300         signbit: port to C++ with GCC 6
12301         * lib/math.in.h (signbit) [__cplusplus]:
12302         Do not replace with GCC builtin.  Reported by Orion Poplawski in:
12303         http://lists.gnu.org/r/bug-gnulib/2016-02/msg00005.html
12305         * lib/regex_internal.h (IDX_MAX) [_REGEX_LARGE_OFFSETS]: Now SSIZE_MAX.
12307         regex: make it closer to libc
12308         Make Idx a signed type, rather than possibly unsigned.
12309         The unsignedness was not really buying us anything, since the code
12310         overflows for other reasons before getting to PTRDIFF_MAX.  Making
12311         it signed allows us to use -1 and -2 with abandon, like libc does,
12312         thus lessening the number of differences between gnulib and libc.
12313         Also, it should help avoid gratuitous warnings like the one
12314         reported by Nelson H. F. Beebe in: http://bugs.gnu.org/22702
12315         * lib/regex.h (__re_idx_t): Remove.  All uses changed to regoff_t.
12318         regex: merge patches from libc
12320         2015-10-21  Joseph Myers  <joseph@codesourcery.com>
12321         2015-10-20  Joseph Myers  <joseph@codesourcery.com>
12322         Convert miscellaneous function definitions to prototype style.
12323         * lib/regcomp.c (re_compile_pattern, re_set_syntax)
12324         (re_compile_fastmap, regcomp, regerror, regfree, re_comp):
12325         * lib/regexec.c (regexec, re_match, re_search, re_match_2, re_search_2)
12326         (re_search_2_stub, re_search_stub, re_set_registers, re_exec)
12327         (re_search_internal):
12328         Convert to prototype-style function definition.
12329         Use internal_function for internal functions.
12331 2016-02-10  Paul Eggert  <eggert@cs.ucla.edu>
12333         stdalign: port to older HP and IBM cc
12334         * lib/stdalign.in.h (_Alignas): Port better to older HP and IBM
12335         C compilers, by checking their version numbers.  These version
12336         numbers appear in MariaDB and in Qt code that dates way back and
12337         that conditiionally uses the 'aligned' attribute.
12339 2016-02-09  Paul Eggert  <eggert@cs.ucla.edu>
12341         stdalign: port to clang 3.7.0
12342         Problem reported by Herbert J. Skuhra in:
12343         http://lists.gnu.org/r/emacs-devel/2016-02/msg00476.html
12344         * lib/stdalign.in.h (alignas): Fix typo that prevented 'alignas'
12345         from being defined on clang 3.7.0, which has a buggy stdalign.h.  See:
12346         https://llvm.org/bugs/show_bug.cgi?id=26547
12348 2016-02-08  Paul Eggert  <eggert@cs.ucla.edu>
12350         readdir_r: now obsolescent
12351         * doc/posix-functions/readdir_r.texi (readdir_r): Now obsolescent.
12352         * lib/mountlist.c (read_file_system_list): Add a FIXME.
12354 2016-02-06  Paul Eggert  <eggert@cs.ucla.edu>
12356         misc: port better to gcc -fsanitize=address
12357         Without these patches, ./configure CFLAGS='-fsanitize=address'
12358         would compute incorrect values.  This patch fixes some (but not all)
12359         test failures with recent glibc, with this configuration.
12360         * m4/acl.m4 (gl_ACL_GET_FILE):
12361         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF):
12362         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS):
12363         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO):
12364         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE):
12365         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
12366         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
12367         * m4/getgroups.m4 (gl_FUNC_GETGROUPS):
12368         * m4/getline.m4 (gl_FUNC_GETLINE):
12369         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF):
12370         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF):
12371         * m4/regex.m4 (gl_REGEX):
12372         * m4/strndup.m4 (gl_FUNC_STRNDUP):
12373         * tests/test-calloc-gnu.c (main):
12374         * tests/test-duplocale.c (main):
12375         * tests/test-getgroups.c (main):
12376         * tests/test-getline.c (main):
12377         * tests/test-inttostr.c (main):
12378         * tests/test-localename.c (test_locale_name)
12379         (test_locale_name_thread, test_locale_name_environ)
12380         (test_locale_name_default):
12381         * tests/test-regex.c (main):
12382         * tests/test-setlocale1.c (main):
12383         * tests/test-stat.h (test_stat_func):
12384         Free heap-allocated storage before exiting.
12385         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX):
12386         Don't match *_foo symbols inserted by AddressSanitizer.
12387         * tests/test-regex.c, tests/test-stat.c: Include stdlib.h, for 'free'.
12389 2016-02-02  Jim Meyering  <meyering@fb.com>
12391         verify-tests: also remove stray test-verify.Tpo
12392         * modules/verify-tests (Makefile.am): Arrange for "make clean"
12393         to remove the test-verify.Tpo file that is left behind by
12394         the automake-generated rule upon compilation failure.
12395         Otherwise, that .Tpo file would cause a failed "make distcheck"
12396         at least for grep.
12398 2016-02-02  Paul Eggert  <eggert@cs.ucla.edu>
12400         std-gnu11: new module
12401         This makes it easier for applications to prefer C11 and C++11
12402         to older variants, when compiling C and C++ code.
12403         Unlike most m4/*.m4 files, m4/std-gnu11.m4 is GPLed, as it copies
12404         a nontrivial chunk of GPLed Autoconf source code.
12405         * COPYING: Mention the m4/*.m4 copyright situation.
12406         * MODULES.html.sh (std-gnu11): New module.
12407         * m4/std-gnu11.m4, modules/std-gnu11: New files.
12409 2016-01-25  Paul Eggert  <eggert@cs.ucla.edu>
12411         get-permissions, strftime: fix grammar in comments
12412         * lib/get-permissions.c, lib/strftime.c: Merge into the comments
12413         some grammar fixes Alan Mackenzie made to GNU Emacs.
12415 2016-01-25  Daiki Ueno  <ueno@gnu.org>
12417         gettext: mark as obsolete
12418         Suggested by Paul Eggert in:
12419         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00101.html
12420         * modules/gettext (Status): Mark as obsolete.
12421         (Notice): Suggest to use 'gettext-h' instead.
12422         * modules/gettext-h (Description): Suggest GNU gettext, instead of
12423         the 'gettext' module.
12425 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
12427         gnulib-tool: don't give up on ln -s so easily
12428         * gnulib-tool (func_ln_s): Don't give up on a later ln -s merely
12429         because an earlier one failed.  The targets could be on different
12430         file systems.  Problem reported by KO Myung-Hun in:
12431         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00081.html
12433         closedir: fix OS/2-related typos
12434         Problem reported by KO Myung-Hun in:
12435         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00107.html
12436         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Fix a couple of typos
12437         in the last couple of changes.
12439 2016-01-24  KO Myung-Hun  <komh78@gmail.com>
12441         openat_proc_name: fix that last '/' is overwritten on OS/2 kLIBC
12442         * lib/openat-proc.c (openat_proc_name): Increase dirlen by 1 after
12443         copying a directory.
12445 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
12447         regex: treat [x] as x if x is a unibyte encoding error
12448         Problem reported by Aharon Robbins in:
12449         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00091.html
12450         * lib/regcomp.c (parse_byte) [!_LIBC && RE_ENABLE_I18N]: New function.
12451         (build_range_exp) [!_LIBC && RE_ENABLE_I18N]: Use it.
12453         closedir, dirfd, opendir: port to OpenSolaris 5.10
12454         * m4/closedir.m4 (gl_FUNC_CLOSEDIR):
12455         * m4/dirfd.m4 (gl_FUNC_DIRFD):
12456         * m4/opendir.m4 (gl_FUNC_OPENDIR):
12457         Don't use ${word##pat} substitution, as it doesn't work in
12458         OpenSolaris 5.10 /bin/sh.  Problem reported by Assaf Gordon in:
12459         http://bugs.gnu.org/22443#11
12461 2016-01-23  Paul Eggert  <eggert@cs.ucla.edu>
12463         bootstrap: use American spelling
12464         * build-aux/bootstrap: Honor American spelling.
12466 2016-01-22  Karl Berry  <karl@freefriends.org>
12468         * doc/posix-functions/localtime.texi,
12469         * doc/posix-functions/localtime_r.texi: @item needed for @itemize text.
12471 2016-01-21  Bruno Haible  <bruno@clisp.org>
12473         hash-pjw-bare: fix comment
12474         * lib/hash-pjw-bare.h (hash_pjw_bare): Fix comment.
12476         wcwidth: Replace also on OpenBSD 5.8
12477         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the value of wcwidth(0xFF1A).
12478         * doc/posix-functions/wcwidth.texi: Update.
12480 2016-01-20  Pádraig Brady  <P@draigBrady.com>
12482         gnu-web-doc-update: fix addition of new files
12483         If there were already added (emnpty) dirs,
12484         then cvs aborts the add with the message:
12485           cvs [add aborted]: there is a version in <./dirname> already
12486         * build-aux/gnu-web-doc-update: Add directories separately
12487         to the addition of files, to avoid the above issue
12488         impacting the addition of files.
12490 2016-01-19  Daiki Ueno  <ueno@gnu.org>
12492         utimens-tests: avoid pulling gettext .m4 files
12493         Although this is not the right fix to the original problem:
12494         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html
12495         it makes it possible again for consumer projects to use arbitrary
12496         version of gettext, through the steps described at:
12497         http://www.gnu.org/software/gnulib/manual/html_node/gettextize-and-autopoint.html
12498         See here for details:
12499         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00079.html
12500         * modules/futimens-tests (Depends-on): Add 'gettext-h' in place of
12501         'gettext'.
12502         * modules/utimens-tests (Depends-on): Add 'gettext-h' in place of
12503         'gettext'.
12505 2016-01-18  Paul Eggert  <eggert@cs.ucla.edu>
12507         regex: pacify static checkers
12508         Problem and draft fix reported by Aharon Robbins in:
12509         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
12510         * lib/regcomp.c (build_charclass_op, create_tree) [lint]:
12511         Clear memory to pacify static checkers.
12513         regex: fix [ diagnostic
12514         Problem and fix reported by Aharon Robbins in:
12515         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
12516         * lib/regcomp.c (REG_EBRACK_IDX): Fix misleading diagnostic about [.
12518         regex: fix memory leaks
12519         Problem and draft fix reported by Aharon Robbins in:
12520         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
12521         * lib/regcomp.c (build_range_exp, build_charclass_op)
12522         * lib/regex_internal.c (re_dfa_add_node):
12523         Fix memory leak on failure.
12525 2016-01-18  Pádraig Brady  <P@draigBrady.com>
12527         fts: don't unconditionally use leaf optimization for NFS
12528         NFS st_nlink are not accurate on all implementations,
12529         leading to aborts() if that assumption is made.
12530         See <https://bugzilla.redhat.com/1299169>
12531         * lib/fts.c (leaf_optimization_applies): Remove NFS from
12532         the white list, and document the issue.
12534 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
12535             KO Myung-Hun  <komh@chollian.net>
12537         gnulib-tool: don't assume ln -s works
12538         * gnulib-tool (func_ln_s): New function.
12539         (func_ln): Use it.
12541 2016-01-15  KO Myung-Hun  <komh@chollian.net>
12543         utimes: detect utimes() correctly on OS/2 kLIBC
12544         utimes() of OS/2 kLIBC has some limitations.
12545         1. OS/2 itself supports a file date since 1980 year in local time.
12546         2. OS/2 itself supports only even seconds for a file time.
12547         3. utimes() of OS/2 kLIBC does not work on an opened file.
12548         * m4/utimes.m4: Detect utimes() correctly on OS/2 kLIBC.
12549         * doc/posix-functions/utimes.texi: Document the above limitations of
12550         utimes() on OS/2 kLIBC.
12552 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
12553             KO Myung-Hun  <komh@chollian.net>
12555         openat_proc_name: port to OS/2 kLIBC
12556         OS/2 kLIBC provides a function to retrive a path from a fd. Use it
12557         instead of /proc/self/fd.
12558         * lib/openat-proc.c (openat_proc_name):
12559         Don't assume file name length is less than INT_MAX.
12560         Port to OS/2 kLIBC with __libc_Back_ioFHToPath().
12562 2016-01-14  KO Myung-Hun  <komh@chollian.net>
12564         stdint: check _INTPTR_T_DECLARED for intptr_t etc.
12565         OS/2 kLIBC's stdint.h defines _INTPTR_T_DECLARED and needs its own
12566         definitions of intptr_t and uintptr_t (which use int and unsigned)
12567         to avoid clashes with declarations of system functions like sbrk.
12568         * lib/stdint.in.h (intptr_t, uintptr_t): Check
12569         _INTPTR_T_DECLARED before defining them.
12571         opendir, closedir, dirfd, fdopendir: port to OS/2 kLIBC
12572         * lib/closedir.c (closedir): Unregister fd if closedir() succeeds.
12573         * lib/dirent.in.h (_gl_register_dirp_fd, _gl_unregister_dirp_fd):
12574         Declare on kLIBC.
12575         * lib/dirfd.c (struct dirp_fd_list): New. Structures to keep track of
12576         fd associated with dirp.
12577         (_gl_register_dirp_fd): New. Register fd associated with dirp to
12578         dirp_fd_list.
12579         (_gl_unregister_dirp_fd): New. Unregister fd with closing it.
12580         (dirfd): Implemented for kLIBC.
12581         * lib/fdopendir.c (fdopendir): Implemented for kLIBC.
12582         * lib/opendir.c (opendir): New. Register fd and dirp pair if open()
12583         succeeds.
12584         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Replace if OS/2.
12585         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
12586         (REPLACE_DIRFD): Define to 1 if replaced.
12587         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
12588         * modules/closedir (Depends-on): Add dirfd.
12589         * modules/dirfd (Depends-on): Add 'test $REPLACE_DIRFD = 1' to errno
12590         condition.
12591         (configure.ac): Add dirfd to LIBOBJS if $REPLACE_DIRFD = 1 as well.
12592         * modules/opendir (Depends-on): Add dirfd.
12594         dup, dup2, fcntl: support a directory fd on OS/2 kLIBC
12595         On OS/2 kLIBC, dup(), dup2() and fcntl() do not work on a directory fd.
12596         * lib/dup.c (dup_nothrow): New.
12597         * lib/dup2.c (klibc_dup2dirfd): New. dup2() for a directory fd.
12598         (klibc_dup2): New.
12599         * lib/fcntl.c (klibc_fcntl): New.
12600         * m4/dup.m4 (gl_FUNC_DUP): Check if dup() works on a directory fd.
12601         * m4/dup2.m4 (gl_FUNC_DUP2): Check if dup2() works on a directory fd.
12602         * m4/fcntl.m4 (gl_FUNC_FCNTL): Check if F_DUPFD works on a directory
12603         fd.
12605         pipe_filter_ii_execute: port to OS/2 kLIBC
12606         Pipes on kLIBC do not support O_NONBLOCK like Win32.
12607         * lib/pipe-filter-ii.c (start_wrapper, _beginthreadex, CloseHandle,
12608         WaiForSingleObject, WaitForMultipleObjects): New on OS/2 kLIBC.
12609         Reuse Win32 code on OS/2 kLIBC.
12610         * lib/spawn-pipe.c: Reuse Win32 code on OS/2 kLIBC.
12611         * lib/w32spawn.h: Do not include windows.h on OS/2 kLIBC.
12613         wchar: fix "conflicting types" error for __wcwidth on OS/2 kLIBC
12614         On OS/2 kLIBC, wcwidth is a macro that expands to the name of a
12615         static inline function.  The implementation of wcwidth in wcwidth.c
12616         causes a "conflicting types" error.
12617         * lib/wchar.in.h: Undefine wcwidth on OS/2 kLIBC.
12619         w32spawn: clear SHELL_SPECIAL_CHARS and SHELL_SPACE_CHAR on OS/2 kLIBC
12620         spawn() on OS/2 kLIBC is not silly like one on Windows
12621         * libc/w32spawn.h (SHELL_SPECIAL_CHARS, SHELL_SPACE_CHAR): Set both to
12622         empty string on OS/2 kLIBC.
12624         pipe-filter-aux: undefine HAVE_SELECT on KLIBC
12625         On OS/2 kLIBC, select() works only on sockets.
12626         * lib/pipe-filter-aux.h (HAVE_SELECT): Undefine on OS/2 kLIBC.
12628         binary-io: don't put fd in binary mode if it is a console on EMX
12629         * lib/binary-io.h (SET_BINARY): Don't put fd in binary mode if it is
12630         a console on EMX.
12632 2016-01-15  Pádraig Brady  <P@draigBrady.com>
12634         doc: mention unfixed issues with unsupported localtime() values
12635         * doc/posix-functions/localtime.texi: Mention that FreeBSD 10
12636         returns nonsense for localtime(2^56).
12637         * doc/posix-functions/localtime_r.texi: Likewise.
12639 2016-01-14  Pádraig Brady  <P@draigBrady.com>
12641         doc: mention setlocale() issues on OpenBSD
12642         * doc/posix-functions/setlocale.texi: Mention setlocale(LC_ALL,"")
12643         never fails, and the need to check categories individually.
12645 2016-01-14  Pádraig Brady  <P@draigBrady.com>
12647         sig2str: list all signals on FreeBSD >= 7
12648         FreeBSD >= 7 is contravening POSIX by not defining NSIG
12649         to the maximal statically defined signal value.
12650         It does define _SIG_MAXSIG though, so base SIGNUM_BOUND on that.
12651         * lib/sig2str.h (SIGNUM_BOUND): Define to (_SIG_MAXSIG - 2)
12652         where available, even when NSIG is defined.
12654 2016-01-13  Paul Eggert  <eggert@cs.ucla.edu>
12656         acl-permissions: port to USE_ACL==0 platforms
12657         I ran into this problem when building bleeding-edge GNU Emacs
12658         with gcc -fsanitize=address on Fedora 23.  On this platform
12659         the ACL library does not pass the 'configure' test and Emacs
12660         then does not build due in part to what appear to be typos in the
12661         ACL part of Gnulib.
12662         * lib/acl-internal.c (free_permission_context):
12663         * lib/acl-internal.h (struct permission_context):
12664         Test whether USE_ACL is nonzero, not whether it is defined.
12666 2016-01-12  Martin Sebor  <msebor@redhat.com>
12668         mktime: rename macro to avoid glibc clash
12669         * lib/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.  See:
12670         https://sourceware.org/ml/libc-alpha/2016-01/msg00267.html
12672 2016-01-12  Paul Eggert  <eggert@cs.ucla.edu>
12674         Port "$@" to OpenIndiana ksh93
12675         In http://lists.gnu.org/r/bug-autoconf/2015-12/msg00000.html
12676         Pavel Raiskup reports that ${1+"$@"} runs afoul of a bug in /bin/sh
12677         (derived from ksh 93t+ 2010-03-05).  ${1+"$@"} works around an ancient
12678         bug long-dead shells, so remove the workaround.
12679         * build-aux/announce-gen, build-aux/do-release-commit-and-tag:
12680         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
12681         * build-aux/prefix-gnulib-mk, build-aux/update-copyright:
12682         * build-aux/useless-if-before-free, tests/test-update-copyright.sh:
12683         Use "$@" instead of ${1+"$@"}.
12685         Port Universal Time settings to strict POSIX
12686         * build-aux/announce-gen, build-aux/bootstrap:
12687         * build-aux/do-release-commit-and-tag, build-aux/git-version-gen:
12688         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
12689         * build-aux/gnupload, build-aux/mkinstalldirs:
12690         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
12691         * build-aux/update-copyright, build-aux/useless-if-before-free:
12692         * build-aux/vc-list-files, tests/test-strftime.c:
12693         Use TZ="UTC0", not TZ="UTC".  Either works on GNU platforms,
12694         but POSIX says the behavior of TZ="UTC" is undefined.
12696 2016-01-02  Paul Eggert  <eggert@cs.ucla.edu>
12698         msvc-inval: fix problem with unset shell var
12699         Problem reported by Karl Berry in:
12700         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00004.html
12701         * modules/msvc-inval (Depends-on):
12702         AC_REQUIRE gl_MSVC_INVAL instead of merely calling it.
12703         * modules/msvc-nothrow (Depends-on): Likewise for gl_MSVC_NOTHROW.
12705 2016-01-01  Pádraig Brady  <P@draigBrady.com>
12707         tests: for compare_(), use cmp -s where available
12708         * tests/init.sh (compare_): Only fall back to cmp without
12709         the POSIX defined -s option, where this is not available.
12711 2016-01-01  Paul Eggert  <eggert@cs.ucla.edu>
12713         version-etc: new year
12714         * build-aux/gendocs.sh (version):
12715         * doc/gendocs_template:
12716         * doc/gendocs_template_min:
12717         * doc/gnulib.texi:
12718         * lib/version-etc.c (COPYRIGHT_YEAR):
12719         Update copyright dates by hand in templates and the like.
12720         * all files: Run 'make update-copyright'.
12722 2015-12-31  Paul Eggert  <eggert@cs.ucla.edu>
12724         human: fix output buffer overrun by 1
12725         * lib/human.c (human_readable): Fix off-by-one typo in buffer
12726         calculation that could lead to a one-byte buffer overrun.
12728 2015-12-28  Daiki Ueno  <ueno@gnu.org>
12730         maint: fix operator precedence in mbrtowc test
12731         This is a fix for test breakage introduced by commit 45228d96; the
12732         equality expression must be parenthesized when negated with '!',
12733         otherwise we always get:
12735           test-mbrtowc.c:49: assertion 'ret == (size_t)(-2)' failed
12737         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Negate the entire expression.
12738         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
12740 2015-12-23  James Youngman  <jay@gnu.org>
12742         regexprops-generic: update from regex.h
12743         * doc/regexprops-generic.texi: update by running the regexprops binary
12744         from findutils (the command line is 'regexprops "Regular Expressions"
12745         generic').  The recent (ish) change (5a5a9388) to regex.h aligning
12746         gnulib with GNU grep had made this document out-of-date.
12748 2015-12-23  Pádraig Brady  <P@draigBrady.com>
12750         strftime-tests: avoid false failure on OS X
12751         * tests/test-strftime.c (struct localtime_rz_test): Add an
12752         ahistorical member which is used to warn rather than fail
12753         when tm_isdst isn't set for such entries.  This is the case for
12754         "1970-01-01 13:00:00 +1300 (NZDT)" on Darwin 13/14 at least.
12756 2015-12-20  Kamil Dudka  <kdudka@redhat.com>
12758         fts: ensure leaf optimization is used for NFS
12759         NFS provides usable dirent.d_type but not necessarily for all entries
12760         of large directories.  See <https://bugzilla.redhat.com/1252549>
12761         * lib/fts.c (leaf_optimization_applies): Append NFS on the white list.
12763 2015-12-20  Pádraig Brady  <P@draigBrady.com>
12765         fts: enable leaf optimization for XFS
12766         XFS provides usable dirent.d_type only for DT_DIR,
12767         but the noleaf optimization still applies.
12768         * lib/fts.c (leaf_optimization_applies): Add XFS to the white list.
12770 2015-12-17  Paul Eggert  <eggert@cs.ucla.edu>
12772         intprops: comment fix
12773         * lib/intprops.h: Fix comment.  Reported by Pádraig Brady in:
12774         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00013.html
12776         intprops-test: work around GCC bug 68971
12777         Problem reported by Pádraig Brady in:
12778         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00011.html
12779         * tests/test-intprops.c: Ignore -Woverflow in GCC 6 and earlier.
12780         (main): Add a case that better tests 64-bit long in this area.
12782 2015-12-09  Pavel Raiskup  <praiskup@redhat.com>
12784         gnulib-tool: allow multiple --local-dir usage
12785         * gnulib-tool: Use --local-dir to construct compound
12786         $local_gnulib_path path instead of $local_gnulib_dir.  Determine
12787         PATH_SEPARATOR early.
12788         (local_gnulib_dir): Rename into $local_gnulib_path everywhere.
12789         (func_gnulib_dir): Cut out PATH_SEPARATOR detection code into
12790         func_determine_path_separator because that needs to be detected
12791         earlier now.
12792         (func_determine_path_separator): New function.
12793         (func_path_foreach, func_path_foreach_inner): New functions.
12794         (func_path_prepend, func_path_append): Likewise.
12795         (func_lookup_local_file, func_lookup_local_file_cb): Likewise.
12796         (func_lookup_file, func_all_modules): Use new functions to work
12797         with local_gnulib_path.
12798         (func_modules_in_dir, func_exists_module): New callbacks for
12799         func_path_foreach.
12800         (func_exists_module, func_get_tests_module): Likewise.
12801         (func_is_local_file, func_should_symlink): New helper methods.
12802         (func_add_file, func_update_file): Use new func_should_symlink
12803         instead, DRY.
12804         (func_reconstruct_cached_local_gnulib_path): New helper.
12805         (func_reconstruct_cached_dir): New callback.
12806         (func_import): The cached_local_gnulib_dir renamed to
12807         cached_local_gnulib_path similarly to local_gnulib_dir.
12808         Use new func_reconstruct_cached_local_gnulib_path.
12809         (func_count_relative_local_gnulib_path): New sub-method.
12810         (func_create_testdir): Use func_should_symlink, DRY.
12811         (func_create_megatestdir): Use new functions to work with
12812         local_gnulib_path correctly.
12813         (func_append_local_dir): New helper.
12815 2015-12-08  Pádraig Brady  <P@draigBrady.com>
12817         fix freadptr to work with ungetc on all uClibc configs
12818         Reported at https://bugs.busybox.net/show_bug.cgi?id=4099
12819         where GNU coreutils cut(1) generates invalid output on uClibc
12820         when __UCLIBC_HAS_STDIO_GETC_MACRO__ is not defined.
12821         * lib/freadptr.c (freadptr): Return NULL if there are
12822         ungotten chars.  In this case freadseek() will iterate
12823         again to process the ungotten character.
12825 2015-11-13  Paul Eggert  <eggert@cs.ucla.edu>
12827         xalloc-oversized: improve performance with GCC 5
12828         * lib/xalloc-oversized.h (xalloc_oversized):
12829         Improve performance with GCC 5 by using __builtin_mul_overflow.
12831 2015-11-10  Paul Eggert  <eggert@cs.ucla.edu>
12833         intprops: new public macro EXPR_SIGNED
12834         Emacs can use this macro, so make it public.
12835         * doc/intprops.texi (Arithmetic Type Properties): Rename from
12836         'Integer Type Determination', since some of these macros apply
12837         to non-integer types.  Clarify what kinds of constant expressions
12838         these macros return.  Say when the arguments can be non-integers.
12839         Mention newly published macro EXPR_SIGNED.
12840         * lib/intprops.h (EXPR_SIGNED): Rename from _GL_INT_SIGNED, to
12841         make it public.  All uses changed.
12843         intprops: fix typo in clang port
12844         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix misspelling of
12845         '__builtin_add_overflow' that is not caught by compiler.
12847 2015-11-05  Paul Eggert  <eggert@cs.ucla.edu>
12849         test-timespec: fix typo in previous change
12850         * tests/test-timespec.c (main): Fix typo that reduced test quality.
12852         timespec-sub: fix overflow bug; add tests
12853         * lib/timespec-add.c (timespec_add):
12854         * lib/timespec-sub.c (timespec_sub):
12855         Work even if time_t is narrower than int (a theoretical
12856         possibility).  Redo code for a bit more clarity.
12857         * lib/timespec-sub.c (timespec_sub):
12858         Fix off-by-2 bug if a.tv_sec == TYPE_MINIMUM (time_t) and 0 < b.tv_sec.
12859         * modules/timespec-tests, tests/test-timespec.c: New files.
12861         intprops-test: suppress -Woverlength-strings
12862         Problem reported by Pádraig Brady in:
12863         http://lists.gnu.org/r/bug-gnulib/2015-11/msg00008.html
12864         It is not worth the hassle to port this test to compilers that
12865         cannot handle long strings in diagnostics.
12866         * tests/test-intprops.c [__GNUC__]: Ignore -Woverlength-strings.
12868 2015-11-03  Pádraig Brady  <P@draigBrady.com>
12870         quotearg: add quotearg_n_style_colon()
12871         This quotes with default options of the specified style,
12872         but with quoting enabled for instances of ':'.
12873         * lib/quotearg.h (quotearg_n_style_colon): Description and declaration.
12874         * lib/quotearg.c (quotearg_n_style_colon): New function implementation.
12876 2015-11-04  Paul Eggert  <eggert@cs.ucla.edu>
12878         intprops: revise _WRAPV macros, revert _OVERFLOW
12879         The incompatible changes to the _OVERFLOW macros were too much of
12880         a hassle in practice, so revert them.  Instead, change the new
12881         _WRAPV macros to make them closer in behavior to GCC 5's new
12882         builtin_add_overflow etc. functions.  No other software was using
12883         these newly-added macros yet, so this should be OK.
12884         * NEWS: Revert previous change, since the incompatible change
12885         has been reverted, and nobody used the incompatible version.
12886         * doc/intprops.texi (Wraparound Arithmetic, Integer Type Overflow):
12887         Document revised behavior.
12888         (Integer Range Overflow): Adjust example to match above revisions.
12889         * lib/intprops.h (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW)
12890         (INT_MULTIPLY_OVERFLOW): Revert previous change, so that
12891         these can be used in integer constant expressions again.
12892         (INT_CONST_ADD_OVERFLOW, INT_CONST_SUBTRACT_OVERFLOW)
12893         (INT_CONST_MULTIPLY_OVERFLOW): Remove, as these are no longer
12894         needed.
12895         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
12896         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
12897         (INT_REMAINDER_WRAPV, INT_LEFT_SHIFT_WRAPV):
12898         Remove, as they did not seem that useful.
12899         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV)
12900         (_GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH)
12901         (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
12902         Support new semantics.
12903         (__has_builtin): New macro, if not alreay defined.
12904         (_GL__GENERIC_BOGUS, _GL_INT_OP_CALC, _GL_INT_OP_CALC1): New macros.
12905         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
12906         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
12907         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
12908         (INT_CONST_LEFT_SHIFT_WRAPV): Remove.
12909         (CHECK_SBINOP, CHECK_SSUM, CHECK_SUM1, CHECK_SSUM1)
12910         (CHECK_SDIFFERENCE, CHECK_SPRODUCT, CHECK_PRODUCT1, CHECK_SPRODUCT1):
12911         New macros.
12912         (CHECK_BINOP, CHECK_UNOP, main, CHECK_SUM): Test new behavior.
12914 2015-11-03  Jim Meyering  <meyering@fb.com>
12916         intprops: add parentheses for when OP has precedence lower than "-"
12917         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED): In "a OP b - c",
12918         "a OP b" must be parenthesized for when OP is like "<<", which has
12919         lower precedence than the following "-". Reported by Pádraig Brady.
12921 2015-11-03  Pádraig Brady  <P@draigBrady.com>
12923         quotearg: constify get_quoting_style parameters
12924         * lib/quotearg.h (get_quoting_style): Mark parameter as const.
12925         * lib/quotearg.c (get_quoting_style): Likewise.
12927 2015-11-02  Pádraig Brady  <P@draigBrady.com>
12929         quotearg: add support for $'' shell escaping
12930         * lib/quotearg.h: Add "shell-escape" and "shell-escape-always"
12931         items and descriptions.
12932         * lib/quotearg.c (quotearg_buffer_restyled): Add support for the
12933         above types by quoting like "shell", but using $'...' syntax
12934         for non printable characters, which should provide unambiguous
12935         printable output for any input.
12936         * tests/test-quotearg-simple.c: Update accordingly.
12938 2015-11-02  Pádraig Brady  <P@draigBrady.com>
12940         maint: use a more standard return from mbrtowc test
12941         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Don't return 1
12942         from the test program as this is non standard and often
12943         indicates an unhandled case in the test program.
12944         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
12946 2015-10-30  Paul Eggert  <eggert@cs.ucla.edu>
12948         intprops: add WRAPV and const flavors for GCC 5
12949         If available, use GCC 5's builtin functions for efficient integer
12950         overflow checking.  Also, add macros like INT_ADD_WRAPV efficently
12951         and safely compute the low-order bits of the correct answer.
12952         A downside of these efficient functions is that they cannot be
12953         used in constant expressions, so add macros like INT_CONST_ADD_OVERFLOW
12954         and INT_CONST_ADD_WRAPV that can be used even in constant expressions.
12955         * NEWS: Document the incompatible changes to INT_ADD_OVERFLOW etc.
12956         * doc/intprops.texi (Integer Properties, Integer Type Overflow):
12957         Document the changes.
12958         (Wraparound Arithmetic): New section.
12959         (Integer Range Overflow):
12960         Put this subsection last, since it's least useful.
12961         * lib/intprops.h (INT_CONST_ADD_OVERFLOW)
12962         (INT_CONST_SUBTRACT_OVERFLOW, INT_CONST_MULTIPLY_OVERFLOW):
12963         New macros, with the meaning that INT_ADD_OVERFLOW etc. used to have.
12964         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
12965         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
12966         (INT_REMAINDER_WRAPV, _GL_INT_OP_WRAPV, _GL_EXPR_CAST)
12967         (_GL_INT_OP_WRAPV_LONGISH, INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
12968         (INT_MULTIPLY_WRAPV, _GL_OP_OVERFLOW, _GL_OP_WRAPV, _GL_OP_WRAPV_GENSYM):
12969         New macros.
12970         (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW, INT_MULTIPLY_OVERFLOW):
12971         Generate calls to GCC builtins if available, for speed.
12972         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
12973         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
12974         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
12975         (INT_CONST_LEFT_SHIFT_WRAPV): New macros.
12976         (main, CHECK_BINOP, CHECK_UNOP, CHECK_SUM, CHECK_PRODUCT)
12977         (CHECK_QUOTIENT, CHECK_REMAINDER):
12978         Test WRAPV and CONST flavors (when available) too.
12980 2015-10-30  Pádraig Brady  <P@draigBrady.com>
12982         doc: use extended timezone format in iso-8601 example
12983         * doc/parse-datetime.texi: The standard states that extended format
12984         is to be used consistently throughout.
12985         Note that lib/parse-datetime.y can handle either tz format.
12987 2015-10-25  Paul Eggert  <eggert@cs.ucla.edu>
12989         stdalign: port to Sun C 5.9
12990         * doc/posix-headers/stdalign.texi: Document this.
12991         * lib/stdalign.in.h (_Alignas): Sun C 5.9 also supports
12992         __attribute__ ((__aligned__ (...))).
12994 2015-10-20  Paul Eggert  <eggert@cs.ucla.edu>
12996         time_rz: fix comment about tzalloc
12997         * lib/time_rz.c (tzalloc): Fix comment.
12999 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
13001         stdalign: work around pre-4.9 GCC x86 bug
13002         * lib/stdalign.in.h (_Alignof): Work around bug in pre-4.9 GCC on
13003         x86, when -std=gnu11 is used.  Problem reported by Jim Meyering in:
13004         http://lists.gnu.org/r/bug-gnulib/2015-10/msg00038.html
13006 2015-10-18  Pádraig Brady  <P@draigBrady.com>
13008         maint.mk: sc_tight_scope: remove extraneous expressions
13009         * top/maint.mk (tight_scope): This is not really required since
13010         commit 3ef58f46 as sed_wrap ensures we don't get an empty expression
13011         that matches all nm entries.  But it does remove extraneous entries
13012         that may be confusing or cause issue in future maintenance.
13014 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
13016         time_rz: return NULL if localtime_r fails
13017         * lib/time_rz.c (localtime_rz): Return NULL if localtime_r fails,
13018         while still attempting to pacify bleeding-edge GCC.
13020         fts: port to C11 alignof
13021         * doc/posix-headers/stdalign.texi (stdalign.h):
13022         Document the C11 restriction.
13023         * lib/fts.c: Include stddef.h, for max_align_t.
13024         (fts_alloc): Align using max_align_t, not FTSENT.
13025         * modules/fts (Depends-on): Add stddef.
13027 2015-10-18  Jim Meyering  <meyering@fb.com>
13029         time_rz: avoid warning from bleeding-edge gcc's -Wnonnull
13030         Compiling with gcc version 6.0.0 20151017 (experimental) (GCC), I
13031         would see this:
13033         lib/time_rz.c: In function 'localtime_rz':
13034         lib/time_rz.c:292:15: error: nonnull argument 'tm' compared to NULL \
13035           [-Werror=nonnull]
13036                    if (tm && !save_abbr (tz, tm))
13037                        ^
13039         That was complaining about "tm" because it is a parameter that was
13040         declared with the __nonnull__ attribute.
13041         * lib/time_rz.c (localtime_rz): Don't bother setting "tm" to the
13042         result of localtime_r.
13044 2015-10-17  Jim Meyering  <meyering@fb.com>
13046         maint.mk: _gl_TS_function_match: fix "extern" name extracting regexp
13047         * top/maint.mk (_gl_TS_function_match): This heuristic extern-function-
13048         name-extraction regexp mistakenly used \S+, and would mistakenly
13049         extract "*F" from "extern int *F()" rather than the desired "F".
13050         Use \w+ instead.
13052 2015-10-17  Jim Meyering  <meyering@fb.com>
13054         maint.mk: sc_tight_scope: factor and support OS X
13055         * top/maint.mk (_gl_tight_scope): Address three issues:
13056         - factor out four instances of code that wraps a string in "^...$"
13057         - allow nm-reported symbol names to have an optional leading "_"
13058         - add "main" to the list of ignored variable names, because on os x,
13059         "main" has nm-reported type "S" in the variable-checking section.
13061 2015-10-16  Dmitry Smirnov  <onlyjob@member.fsf.org>
13063         safe-alloc-tests: fix typo in license header
13064         * tests/test-safe-alloc.c: Mention LGPL 2.1, not 3.1
13066 2015-10-15  Simon Reinhardt  <simon@keinstein.org>
13068         copy-file: fix mem leak in error case
13069         * lib/copy-file.c (qcopy_file_preserving): Free the 32KiB buffer
13070         upon error opening or performing I/O to the src and dest files.
13072 2015-10-15  Mike Frysinger  <vapier@chromium.org>
13074         localename: control langinfo.h inclusion
13075         This header is only used to work around buggy behavior in old
13076         versions of glibc, so do not include it all the time.  Otherwise
13077         we get build failures on systems that do not provide langinfo.h.
13078         * lib/localename.c: Wrap langinfo.h include with same ifdefs used
13079         in the source later on.
13080         The patch was originally submitted to gettext as:
13081         https://lists.gnu.org/r/bug-gettext/2015-10/msg00011.html
13083 2015-10-13  Paul Eggert  <eggert@cs.ucla.edu>
13085         binary-io, math, pthread, sys_socket, u64, unistd: port to strict C
13086         * lib/binary-io.c, lib/math.c, lib/pthread.c, lib/sys_socket.c:
13087         * lib/u64.c, lib/unistd.c:
13088         Append 'typedef int dummy;', to pacify compilers that are picky
13089         about empty translation units.
13091 2015-10-12  Pino Toscano  <ptoscano@redhat.com>
13093         accept4-tests: fix to avoid non portable flags
13094         * tests/test-accept4.c (main): Pass only SOCK_* flags to accept4(),
13095         as they are the only documented ones, and passing others may trigger
13096         EINVAL (seen on FreeBSD 10.1-RELEASE).
13097         * doc/glibc-functions/accept4.texi: Mention that we don't provide
13098         the SOCK_CLOEXEC or SOCK_NONBLOCK defines.
13100 2015-10-06  Pavel Raiskup  <praiskup@redhat.com>
13102         gnulib-tool: fix tests of 'extensions' module
13103         This complements f8fe25fab60e3c687a124 commit.
13104         * gnulib-tool (func_emit_pre_early_macros): New function, it wraps
13105         emitting of initial gl_EARLY macros.
13106         (func_import, func_create_testdir): All dumps of gl_PROG_AR_RANLIB
13107         replaced with func_emit_pre_early_macros call.
13109 2015-10-06  Paul Eggert  <eggert@cs.ucla.edu>
13111         unicase/locale-language: fix typo in utf-8 cookie
13112         * lib/unicase/locale-languages.gperf: Fix gperf input file format.
13113         Problem reported by Zbigniew Jędrzejewski-Szmek.
13115 2015-10-02  Paul Eggert  <eggert@cs.ucla.edu>
13117         xalloc: do not worry about GCC 5 warning on 32 bit
13118         * lib/xalloc.h: Revert previous change.
13119         I found a better way to fix this in coreutils.
13121 2015-10-02  Pádraig Brady  <P@draigBrady.com>
13123         xalloc: avoid GCC 5.1 warning on 32 bit
13124         * lib/xalloc.h: Disable -Wstrict-overflow for uses of
13125         xalloc_oversized(), which was seen to give this warning
13126         on GCC 5.1 on 32 bit: "assuming signed overflow does not occur
13127         when simplifying conditional".
13129 2015-10-02  Daiki Ueno  <ueno@gnu.org>
13131         uniname/uniname-tests: avoid compiler warnings
13132         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Remove
13133         unused local variables.
13134         (test_alias_lookup): Fix alias name display in failure cases.
13136 2015-09-26  Paul Eggert  <eggert@cs.ucla.edu>
13138         c-ctype: do not worry about EBCDIC + char signed
13139         Drop support for EBCDIC with char being signed, as this breaks too
13140         many programs.  Problem reported by Ben Pfaff in:
13141         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00053.html
13142         * lib/c-ctype.h: Verify that we are not using EBCDIC with
13143         char being signed.
13144         (_C_CTYPE_LOWER_A_THRU_F_N): New macro.
13145         (_C_CTYPE_LOWER_N, _C_CTYPE_A_THRU_F): Use it.
13146         (_C_CTYPE_DIGIT, _C_CTYPE_LOWER, _C_CTYPE_PUNCT, _C_CTYPE_UPPER):
13147         (c_isascii, c_isgraph, c_isprint, c_ispunct, c_tolower, c_toupper):
13148         * tests/test-c-ctype.c (test_all):
13149         Simplify by assuming standard char values cannot be negative.
13150         * tests/test-c-ctype.c (NCHARS, to_char): Remove; all uses removed.
13152 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
13154         c-ctype: port better to z/OS EBCDIC
13155         Problems reported by Daniel Richard G. in:
13156         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00050.html
13157         * lib/c-ctype.h (_C_CTYPE_CNTRL): Rewrite in terms of
13158         the C standard escapes and _C_CTYPE_OTHER_CNTRL.
13159         (_C_CTYPE_OTHER_CNTRL): New macro.
13160         * tests/test-c-ctype.c (test_all): Test from CHAR_MIN, not
13161         from SCHAR_MIN, as the functions are defined only from values
13162         promoted from char or from unsigned char, not necessarily from
13163         signed char.
13165 2015-09-25  Pavel Raiskup  <praiskup@redhat.com>
13167         gnulib-common.m4: fix gl_PROG_AR_RANLIB/AM_PROG_AR clash
13169         The gl_PROG_AR_RANLIB (it is always called by gl_EARLY) sets AR
13170         and ARFLAGS variables.  Doing this unconditionally could break
13171         later Automake's AM_PROG_AR invocation (at least it's
13172         AC_CHECK_TOOLS call to detect correct 'ar' binary).
13174         Original purpose of the gl_PROG_AR_RANLIB was only to handle the
13175         Amsterdam Compiler Kit, so make the previous code to have effects
13176         only on ACK, and rather automatically call the Automake's
13177         AM_PROG_AR as soon as possible to decide other cases.
13179         References:
13180         http://lists.gnu.org/r/bug-gnulib/2015-07/msg00001.html
13182         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): AC_BEFORE AM_PROG_AR.
13183         Set the AR/ARFLAGS to ACK defaults OR call AM_PROG_AR.  If neither
13184         is possible, keep setting AR/ARFLAGS to reasonable defaults.
13185         * gnulib-tool (func_import): Put the gl_USE_SYSTEM_EXTENSIONS
13186         right before gl_PROG_AR_RANLIB into gnulib-comp.m4 (if the
13187         'extensions' module is used.
13188         * modules/extensions (configure.ac-early): Remove as this snippet
13189         is added to gnulib-comp.m4 earlier anyway.
13191 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
13193         sockets: MS Windows initalization fixes
13194         Problem reported by Test User in:
13195         http://lists.gnu.org/r/help-shishi/2015-09/msg00001.html
13196         * lib/sockets.h (SOCKETS_1_0, SOCKETS_2_0, SOCKETS_2_1):
13197         Correct the endianness.
13198         * lib/sockets.c (gl_sockets_startup): Return 2 on any version
13199         number mismatch, not just on <.  Cleanup before any such failure.
13201 2015-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
13203         gc: fix detection of installed libgcrypt version
13204         * m4/gc.m4: Use AM_PATH_LIBCRYPT to test for libcrypt versions
13205         at least as recent as 1.4.4.  The previously used macro is not
13206         available now, since modules were removed in version 1.6.0.
13208 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
13210         c-ctype: rewrite to use inline functions
13211         This simplifies maintenance, since it makes for just one
13212         implementation of each function, letting the compiler have the fun
13213         of optimization.  In practice this works well nowadays with GCC.
13214         E.g., c_isascii might need only three instructions even though the
13215         source code lists every ASCII character individually in a large
13216         switch statement.
13217         Also, fix some z/OS porting bugs reported by Daniel Richard G. in:
13218         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00037.html
13219         * NEWS: Document the API change.
13220         * lib/c-ctype.c: Drastically simplify, since this now just expands
13221         inline functions.
13222         * lib/c-ctype.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
13223         (C_CTYPE_INLINE): New macro.
13224         (C_CTYPE_CONSECUTIVE_DIGITS, C_CTYPE_CONSECUTIVE_LOWERCASE)
13225         (C_CTYPE_CONSECUTIVE_UPPERCASE): Remove.
13226         Verify that either ASCII or EBCDIC is being used.
13227         (_C_CTYPE_SIGNED_EBCDIC, _C_CTYPE_CNTRL, _C_CTYPE_A_THRU_F_N)
13228         (_C_CTYPE_DIGIT_N, _C_CTYPE_LOWER_N, _C_CTYPE_UPPER_N)
13229         (_C_CTYPE_CASES, _C_CTYPE_A_THRU_F, _C_CTYPE_DIGIT, _C_CTYPE_LOWER)
13230         (_C_CTYPE_UPPER, _C_CTYPE_PUNCT_PLAIN):
13231         New private macros.
13232         (_C_CTYPE_CNTRL): In EBCDIC, '\x07' is a control, not '\xff'.
13233         (c_isalnum, c_isalpha, c_isascii, c_isblank, c_iscntrl, c_isdigit)
13234         (c_isgraph, c_islower, c_isprint, c_ispunct, c_isspace, c_isupper)
13235         (c_isxdigit, c_tolower, c_toupper): Now inline functions.
13236         (c_tolower, c_toupper): When converting, return the unsigned char,
13237         as that is what z/OS does.
13238         * lib/c-strcaseeq.h (CASEEQ): Simplify in the light of the removal
13239         of some c-ctype.h macros.
13240         * modules/c-ctype (Depends-on): Add extern-inline; remove verify.
13241         * tests/test-c-ctype.c (test_all): Fix test for c_toupper and
13242         c_tolower promotion to be compatible with z/OS.
13244 2015-09-24  Pavel Raiskup  <praiskup@redhat.com>
13246         gitlog-to-changelog: trim only trailing whitespaces
13247         This is fix for --format regression introduced by commit
13248         2b93079a5d1baa4d;  it caused that --format='%s%n%n%b%n' (see the
13249         doubled %n string) had no effect anymore.  This format
13250         specification has been used e.g. by GNU paxuitils (commit
13251         edfd8bcc3).
13253         * build-aux/gitlog-to-changelog (main): Stop squashing multiple
13254         newlines in commmit messages.
13256 2015-09-23  Paul Eggert  <eggert@cs.ucla.edu>
13258         Test that c_iscntrl agrees with iscntrl, etc.
13259         Suggested by Daniel Richard G. in:
13260         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00034.html
13261         * modules/c-ctype-tests (Depends-on): Add ctype.
13262         * tests/test-c-ctype.c: Include <ctype.h>.
13263         (NCHARS): New constant.
13264         (test_agree_with_C_locale): New function.
13265         (main): Use it.
13266         (test_all): Use named constants.
13268         c-ctype: improve c_isascii testing
13269         * tests/test-c-ctype.c (test_all): Port c_isascii test to EBCDIC.
13270         Add a test to count the number of ASCII characters.
13272 2015-09-22  Paul Eggert  <eggert@cs.ucla.edu>
13274         savewd: remove SAVEWD_CHDIR_READABLE
13275         It was problematic in the light of file systems that ignore umask.
13276         Problem reported by Sebastian Unger in: http://bugs.gnu.org/21534
13277         * NEWS: Document this.
13278         * lib/mkancesdirs.c (mkancesdirs): MAKE_DIR now returns 0 if
13279         successful, -1 (setting errno) on failure, rather than something
13280         more complicated than that.
13281         * lib/mkdir-p.c (make_dir_parents):
13282         Do not use SAVEWD_CHDIR_READABLE.
13283         * lib/savewd.c (savewd_chdir):
13284         Remove support for SAVEWD_CHDIR_READABLE.
13285         * lib/savewd.h (SAVEWD_CHDIR_READABLE): Remove.
13287         c-ctype: port better to EBCDIC
13288         Problems reported by Daniel Richard G. in
13289         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00020.html
13290         * lib/c-ctype.c: Include <limits.h>, for CHAR_MIN and CHAR_MAX.
13291         Include "verify.h".
13292         (C_CTYPE_ASCII, C_CTYPE_CONSECUTIVE_DIGITS)
13293         (C_CTYPE_CONSECUTIVE_LOWERCASE, C_CTYPE_CONSECUTIVE_UPPERCASE):
13294         Define as enum constants with value false, if not defined, so that
13295         code can use 'if' instead of 'ifdef'.  Using 'if' helps make the
13296         code more portable, as both branches of the 'if' are compiled on
13297         all platforms.
13298         (C_CTYPE_EBCDIC): New constant.
13299         Verify that the character set is either ASCII or EBCDIC.
13300         (to_char): New static function.
13301         (c_isascii, c_iscntrl):
13302         Assume standard control-character assignments for EBCDIC.
13303         (c_isalnum, c_isalpha, c_isdigit, c_islower, c_isgraph, c_isprint)
13304         (c_ispunct, c_isupper, c_isxdigit, c_tolower, c_toupper):
13305         Rewrite to use 'if' instead of 'ifdef'.
13306         Use to_char if non-ASCII.  Prefer <= to >=.
13307         Prefer true and false to 1 and 0, for booleans.
13308         (c_iscntrl): Use 'if', not 'ifdef'.
13309         * modules/c-ctype (Depends-on): Add verify.
13310         * tests/test-c-ctype.c: Include <limits.h>, for CHAR_MIN
13311         (to_char): New function.
13312         (test_all): Port to EBCDIC.  Add some more tests, e.g., for c_ispunct.
13314 2015-09-21  Pádraig Brady  <P@draigBrady.com>
13316         nanosleep: fix return code for interrupted replacement
13317         * lib/nanosleep.c (nanosleep): In the replaced nanosleep, ensure
13318         that we return -1 in the case the call is interrupted by a signal,
13319         rather than the current value of 1.
13320         Diagnosed and tested by Daniel Richard G.
13322 2015-09-19  Paul Eggert  <eggert@cs.ucla.edu>
13324         Diagnose ERE '()|\1'
13325         Problem reported by Hanno Böck in: http://bugs.gnu.org/21513
13326         * lib/regcomp.c (parse_reg_exp): While parsing alternatives, keep
13327         track of the set of previously-completed subexpressions available
13328         before the first alternative, and restore this set just before
13329         parsing each subsequent alternative.  This lets us diagnose the
13330         invalid back-reference in the ERE '()|\1'.
13332         regex: merge patches from libc
13334         2015-09-08  Joseph Myers  <joseph@codesourcery.com>
13335         Move bits/libc-lock.h and bits/libc-lockP.h out of bits/ (bug 14912).
13336         * lib/regex_internal.h:
13337         Include <libc-lock.h> instead of <bits/libc-lock.h>.
13339         2015-06-09  Joseph Myers  <joseph@codesourcery.com>
13340         Fix regcomp wcscoll, wcscmp namespace (bug 18497).
13341         * lib/regcomp.c (build_range_exp): Call __wcscoll instead of
13342         wcscoll.
13343         * lib/regexec.c (check_node_accept_bytes): Likewise.
13345         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
13346         Fix regex wcrtomb namespace (bug 18496).
13347         * lib/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
13348         instead of wcrtomb.
13350         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
13351         Fix regex wctype namespace (bug 18495).
13352         * lib/regcomp.c (re_compile_fastmap_iter): Call __towlower
13353         instead of towlower.
13354         * lib/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
13355         instead of iswlower.  Call __towupper instead of towupper.
13356         * lib/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
13357         instead of iswalnum.
13359         2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
13360         * lib/regcomp.c (parse_bracket_exp): Initialize type to
13361         COLL_SYM in a couple of places to avoid uninitialized variable
13362         wanings on tilegx gcc 4.8.2.
13364         2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
13365         * lib/regex_internal.h: Remove NOT_IN_libc.
13367         2014-11-17  Andreas Schwab  <schwab@suse.de>
13368         * lib/regex_internal.h: Don't include <locale/elem-hash.h>.
13370         2014-09-11  Roland McGrath  <roland@hack.frob.com>
13371         Move findidx nested functions to top-level.
13372         * lib/regcomp.c [_LIBC]: #include <locale/weight.h>.
13373         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
13374         Pass new arguments to findidx.
13375         * lib/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
13376         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
13377         Don't #include it inside the function.  Pass new arguments to findidx.
13378         * lib/regex_internal.h:
13379         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
13380         (re_string_elem_size_at): Don't #include it inside the function.
13381         Pass new arguments to findidx.
13383         2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
13384         Check if DEBUG is defined in regex_internal.c
13385         * lib/regex_internal.c: Check if DEBUG is defined and is set.
13387 2015-09-08   Assaf Gordon  <assafgordon@gmail.com>
13389         ceill: detect buggy OpenBSD implementation
13390         * m4/ceill.m4 (gl_FUNC_CEILL): Detect buggy openBSD implementation
13391         which returns zero for small values.  Discussed here:
13392         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00010.html
13394 2015-09-08  Dave Chiluk  <chiluk@canonical.com>
13396         mountlist: add me_mntroot field on Linux machines
13397         * lib/mountlist.c (read_file_system_list): Populate me_mntroot in
13398         mount_entry so Linux machines based on /proc/self/mountinfo can
13399         distinguish between bind mounts and original mounts.  In reality bind
13400         mounts aren't treated differently than mountroot=/ mounts by the
13401         kernel, but the user often wants these bind mounts distinguished.
13402         * lib/mountlist.h (struct mount_entry): Add me_mntroot element.
13403         More details at https://pad.lv/1432871
13405 2015-09-08  Christian Egli  <christian.egli@sbs.ch>
13407         doc: Describe to use multiple instances of gnulib
13408         * doc/gnulib-tool.texi: Add a section to the manual outlining how two
13409         instances of gnulib with different modules can be used, for example one
13410         for a lib and another one for associated tools.
13412 2015-09-01  Pádraig Brady  <P@draigBrady.com>
13414         base32: mark function as __attribute__ const
13415         * lib/base32.h (isbase32): Mark __attribute__ const as
13416         suggested by GCC, and consistent with the base64 module.
13418 2015-08-20  Daiki Ueno  <ueno@gnu.org>
13420         gnulib-tool: don't transform binary files with sed
13421         * gnulib-tool (func_add_or_update): Don't apply sed_transform_* to
13422         .mo and .class files.
13423         Reported by Denis Denisov.
13425 2015-08-10  Daiki Ueno  <ueno@gnu.org>
13427         gperf: respect silent rules
13428         * modules/gperf (Makefile.am): Define V_GPERF, V_GPERF_, and
13429         V_GPERF_0 for silent rules.
13430         * modules/iconv_open (Makefile.am): Use V_GPERF.
13431         * modules/unicase/locale-language (Makefile.am): Likewise.
13432         * modules/unicase/special-casing (Makefile.am): Likewise.
13433         * modules/unictype/category-byname (Makefile.am): Likewise.
13434         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
13435         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
13436         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
13437         * modules/unictype/property-byname (Makefile.am): Likewise.
13438         * modules/unictype/scripts (Makefile.am): Likewise.
13439         * modules/uninorm/composition (Makefile.am): Likewise.
13441 2015-08-03  Paul Eggert  <eggert@cs.ucla.edu>
13443         Improve port of stdalign to C++11
13444         Problem reported by Sundaram in:
13445         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00003.html
13446         * lib/stdalign.in.h (alignof, alignas): Don't define if C++11 or newer.
13447         (__alignas_is_defined): Define if C++11 or newer.
13449 2015-08-01  Assaf Gordon  <assafgordon@gmail.com>  (tiny change)
13451         pmccabe2html: fix gawk regex escaping
13452         * build-aux/pmccabe2html: Add one more backslash to properly
13453         escape the gsub replacement value.  Fixes this error:
13454         gawk: ./build-aux/pmccabe2html:425: \
13455         warning: escape sequence `\&' treated as plain `&'
13457 2015-07-29  Paul Eggert  <eggert@cs.ucla.edu>
13459         time_rz: port to pedantic memcpy
13460         * lib/time_rz.c (tzalloc): Pacify pedantic memcpy implementations
13461         that reject memcpy (..., NULL, 0).
13463 2015-07-27  Paul Eggert  <eggert@cs.ucla.edu>
13465         time_rz: port better to MinGW
13466         Don't change tzname, as this makes MinGW dump core (Bug#21020).
13467         Instead, store the tzname copy in the struct tm_zone object.
13468         Problem reported by Eli Zaretskii in: http://bugs.gnu.org/21020#48
13469         * lib/strftime.c [!_LIBC]:
13470         * lib/time_rz.c: Include time-internal.h.
13471         * lib/strftime.c (strftime_case_) [!HAVE_TM_ZONE]: Infer the zone
13472         name from *TZ rather than from TZNAME, doable because *TZ now has
13473         a tzname_copy member.
13474         * lib/time-internal.h: New file, with contents taken from
13475         lib/time_rz.c.  It's separate because strftime.c now accesses
13476         struct tm_zone members.
13477         (struct tm_zone) [HAVE_TZNAME && !HAVE_TM_ZONE]:
13478         New member tzname_copy.
13479         * lib/time_rz.c (struct tm_zone): Move to time-internal.h.
13480         (tzalloc) [HAVE_TZNAME && !HAVE_TM_ZONE]:
13481         Initialize tzname_copy member.
13482         (save_abbr) [HAVE_TZNAME && !HAVE_TM_ZONE]: Save abbreviation
13483         in tzname_copy member.
13484         (revert_tz) [HAVE_TZNAME]: Remove no-longer-needed tzname saving.
13485         (restore_tzname): Remove; no longer needed.  All calls removed.
13486         * modules/time_rz (Files): Add lib/time-internal.h.
13488         time: port __need_time_t to MinGW
13489         * lib/time.in.h (__need_time_t): Do not treat specially on MinGW.
13490         Fix reported by Eli Zaretskii in: http://bugs.gnu.org/21020#36
13492 2015-07-25  Paul Eggert  <eggert@cs.ucla.edu>
13494         strftime: fix newly-introduced bug on Solaris
13495         * lib/strftime.c (strftime_case_): Set the local variable 'zone'
13496         consistently at the start, rather than doing some of the setup at
13497         the start and some in the %Z format spec.  This is cleaner, and
13498         works better with time_rz on platforms like Solaris where struct
13499         tm lacks a tm_zone member, as when !HAVE_TM_GMTOFF %z's calls to
13500         mktime_z and localtime_rz can mess up the tzname cache.
13502         test-strftime: test for Solaris bug
13503         * modules/strftime-tests (Depends-on): Add strerror.
13504         * tests/test-strftime.c: Include <errno.h>.
13505         (posixtm_test): New function, containing the old 'main'.
13506         (struct tzalloc_test, struct localtime_rz_test): New types.
13507         (TZ, LT): New static vars.
13508         (tzalloc_test): New function.
13509         (main): Rewrite in terms of posixtm_test and tzalloc_test.
13511         time_rz: port to Solaris etc.
13512         Works around a tzname problem on platforms like Solaris that have
13513         tzname but not tm_zone, by setting tzname at the appropriate time
13514         and restoring it later.
13515         * lib/time_rz.c (tzname_address, tzname_value) [HAVE_TZNAME]:
13516         New static vars.
13517         (save_abbr) [HAVE_TZNAME]: Set them.
13518         (revert_tz) [HAVE_TZNAME]: Clear or use them.
13519         (restore_tzname): New function.
13520         (localtime_rz, mktime_z): Use it.
13522         time_rz: now LGPL
13523         * modules/time_rz (License): Now LGPL, because strftime depends on it.
13525         time_rz: make a constant 'const'
13526         * lib/time_rz.c (local_tz): Now const.
13528         time_rz: fix off-by-one typo
13529         * lib/time_rz.c (extend_abbrs): Fix off-by-one typo.
13531 2015-07-23  Paul Eggert  <eggert@cs.ucla.edu>
13533         fprintftime, strftime: use timezone_t args
13534         * NEWS: Document the change.
13535         * lib/fprintftime.h (fprintftime):
13536         * lib/strftime.c (extra_args) [my_strftime]:
13537         * lib/strftime.h (nstrftime):
13538         Time zone arg is now of type timezone_t, not int.
13539         * lib/strftime.c (mktime_z) [_LIBC]: New macro.
13540         (__gmtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: Remove; no longer used.
13541         (my_strftime) [emacs && !my_strftime]:
13542         (emacs_strftimeu) [emacs && !FPRINTFTIME]:
13543         Remove; Emacs doesn't need this any more.
13544         (HAVE_TZSET) [my_strftime]: Unset, since we no longer want
13545         fprintftime and nstrftime to call tzset.
13546         (ut) [!my_strftime]: Remove, replacing with ...
13547         (tz) [!my_stftime]: ... this new macro.  All uses changed.
13548         (strftime_case_): Use localtime_rz and mktime_z instead
13549         of localtime_r and mktime.
13550         * modules/fprintftime (Depends-on): Add time_rz.
13551         * modules/strftime (Depends-on): Add time_rz.  Remove time_r.
13552         * tests/test-strftime.c (main): Adjust to new nstrftime API.
13554         time_rz: new module
13555         * MODULES.html.sh: Add time_rz.
13556         * lib/time_rz.c, m4/time_rz.m4, modules/time_rz: New files.
13557         * lib/time.in.h (timezone_t, tzalloc, tzfree, localtime_rz, mktime_z):
13558         New decls if _GNU_SOURCE && @GNULIB_TIME_RZ@ && ! @HAVE_TIMEZONE_T@.
13559         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS):
13560         New var HAVE_TIMEZONE_T (default 0).
13561         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
13562         New var GNULIB_TIME_RZ (default 0).
13563         * modules/time (time.h): Substitute the new vars.
13565         flexmember: license is now unlimited
13566         * modules/flexmember (License): Change to unlimited,
13567         since its only source file gives an unlimited license.
13569 2015-07-15  Eric Blake  <eblake@redhat.com>
13571         maint: update copyright paper procedures
13572         * config/srclist.txt: Drop outdated files.
13573         * doc/Copyright/conditions.txt: Update to latest.
13574         * doc/Copyright/assign.changes.manual: Delete.
13575         * doc/Copyright/assign.future.manual: Likewise.
13576         * doc/Copyright/assign.manual: Likewise.
13577         * doc/Copyright/assign.translation.manual: Likewise.
13578         * doc/Copyright/disclaim.changes.manual: Likewise.
13579         * doc/Copyright/disclaim.manual: Likewise.
13580         * doc/Copyright/disclaim.program: Likewise.
13582 2015-07-07  Daiki Ueno  <ueno@gnu.org>
13584         localename: fix link error on Illumos
13585         Illumos defines __sun, but does not have getlocalename_l nor the
13586         equivalent.  This partially reverts commit 387c214.
13587         * m4/localename.m4 (gl_LOCALENAME): Check if getlocalename_l is
13588         available, as well as uselocale.
13589         * lib/localename.c [HAVE_USELOCALE && __sun]: Don't fallback to
13590         use getlocalename_l if it is not available.
13592 2015-07-07  Daiki Ueno  <ueno@gnu.org>
13594         unistr/uN-strtok-tests: avoid a trivial leak
13595         * tests/unistr/test-u-strtok.h (test_u_strtok): Untabify.  Free
13596         input and delim after the multibyte delimiter tests.
13598 2015-07-04  Paul Eggert  <eggert@cs.ucla.edu>
13600         file-has-acl, acl-permissions: fix HP-UX typos
13601         Problem reported by John David Anglin in: http://bugs.gnu.org/20979
13602         * lib/file-has-acl.c (file_has_acl):
13603         * lib/set-permissions.c (context_acl_from_mode)
13604         (context_aclv_from_mode, set_acls):
13605         Fix some obvious typos when HAVE_GETCL /* HP-UX */.
13606         They were introduced by the recent ACL changes.
13608         regex: match current GNU grep behavior
13609         These symbols have not matched GNU grep behavior for quite some time.
13610         Fix prompted by Balazs Kezes bug report at: http://bugs.gnu.org/20974
13611         * lib/regex.h (RE_SYNTAX_GREP, RE_SYNTAX_EGREP):
13612         Change to match current GNU behavior.
13613         Simplify by expressing it as differences from POSIX BREs and EREs.
13614         (RE_SYNTAX_POSIX_EGREP): No longer differs from GNU behavior.
13616 2015-07-03  Jim Meyering  <meyering@fb.com>
13618         set-permissions.c: adjust acl_from_mode's cpp guard
13619         * lib/set-permissions.c (acl_from_mode): Guard with #ifdef
13620         directives identical to those guarding the sole use.
13621         Otherwise, on some systems, we'd get a warning about
13622         the function being defined but not used.
13623         Also, filter through cppi to correct misleading indentation
13624         of cpp directives.
13626 2015-07-03  Pádraig Brady  <P@draigBrady.com>
13628         tests: restrict shells to those that support 'local'
13629         The local keyword is very widely supported and used
13630         in tests in coreutils and grep at least.  Therefore
13631         restrict to testing with shells that support it.
13632         This mainly excludes /bin/sh on Solaris.
13633         * tests/init.sh (gl_shell_test_script_): Add a test for 'local'.
13635 2015-07-03  Seiya Kawashima  <skawashima@uchicago.edu>  (tiny change)
13636         and Daiki Ueno  <ueno@gnu.org>
13638         unistr/uN-strtok: handle multibyte delimiters
13639         Previously, uN_strtok moved PTR to the next unit to the token end.
13640         When DELIM contained a multibyte character, the new position could
13641         be a middle of a multibyte character.
13642         * lib/unistr/u-strtok.h (FUNC): Place PTR at the next character
13643         after the token.
13644         * lib/unistr/u8-strtok.c (U_STRMBLEN): New macro.
13645         * lib/unistr/u16-strtok.c (U_STRMBLEN): New macro.
13646         * lib/unistr/u32-strtok.c (U_STRMBLEN): New macro.
13647         * modules/unistr/u8-strtok (Depends-on): Depend on
13648         unistr/u8-strmblen.
13649         * modules/unistr/u16-strtok (Depends-on): Depend on
13650         unistr/u16-strmblen.
13651         * modules/unistr/u32-strtok (Depends-on): Depend on
13652         unistr/u32-strmblen.
13653         * tests/unistr/test-u-strtok.h: New file.
13654         * tests/unistr/test-u8-strtok.c: New file.
13655         * tests/unistr/test-u16-strtok.c: New file.
13656         * tests/unistr/test-u32-strtok.c: New file.
13657         * modules/unistr/u8-strtok-tests: New file.
13658         * modules/unistr/u32-strtok-tests: New file.
13659         * modules/unistr/u16-strtok-tests: New file.
13661 2015-07-02  Friedrich Haubensak  <hsk@fli-leibniz.de>
13663         update-copyright: fix test failure with perl >= 5.22 (trivial)
13664         * build-aux/update-copyright: Escape a literal left curly bracket,
13665         required with perl >= 5.22
13667 2015-07-02  Daiki Ueno  <ueno@gnu.org>
13669         u{16,32}-strstr-tests: relax timeout condition
13670         On slower platforms (e.g., Solaris 10/SPARC), u{16,32}-strstr
13671         tests can take longer than 5 seconds to complete.
13672         Reported by Dagobert Michelsen in:
13673         https://lists.gnu.org/r/bug-libunistring/2015-06/msg00006.html
13674         * tests/unistr/test-u16-strstr.c (main): Increase timeout from 5
13675         seconds to 10 seconds.
13676         * tests/unistr/test-u32-strstr.c (main): Likewise.
13678 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
13680         gnulib-common.m4: change the ARFLAGS default to 'cr'
13681         In some GNU/Linux distributions people started to compile 'ar'
13682         binary with --enable-deterministic-archives (binutils project).
13683         That, however, in combination with previous autotools long time
13684         working default AR{_,}FLAGS=cru causes warnings on such
13685         installations:
13686         ar: `u' modifier ignored since `D' is the default (see `U')
13687         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Set ARFLAGS='cr' if not
13688         set already.
13690 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
13692         selinux-h: avoid double free after *getfilecon()
13693         Originally reported by Ben Shelton on bug-tar:
13694         http://lists.gnu.org/r/bug-tar/2015-04/msg00009.html
13695         * lib/getfilecon.c (map_to_failure): Set the already freed '*con'
13696         pointer to NULL.  Man getfilecon(3) says that any non-NULL '*con'
13697         param should be freed by freecon(3) (regardless the return value).
13699 2015-07-01  Pavel Fedin  <p.fedin@samsung.com>
13701         fix pty related tests issues on Windows (trivial)
13702         * lib/grantpt.c (grantpt): grantpt.c seems to be never used on Windows,
13703         however it's still present in tests/ subdirectory of the final project.
13704         Therefore avoid it to pass `make check`.
13705         * tests/test-openpty.c (main): Windows has no PTYs and gnulib's openpty()
13706         will just return -ENOSYS, so avoid this non applicable test allowing
13707         the build to proceed.
13709 2015-07-01  Pádraig Brady  <P@draigBrady.com>
13711         acl: fix definition of acl_from_mode on FreeBSD
13712         This was causing basic coreutils copy operations to fail
13713         with ENOTSUP or ENOENT error messages.
13714         * lib/acl-internal.h (acl_from_mode): Only define when
13715         ! defined HAVE_ACL_FROM_TEXT.  That allows the version
13716         of acl_from_mode() defined in lib/set-permissions.c to
13717         be used on FreeBSD at least.
13718         * lib/set-permissions.c: Fix up comment spelling,
13719         and a redundant variable assignment; noticed in passing.
13721 2015-06-30  Pádraig Brady  <P@draigBrady.com>
13723         readutmp: port to FreeBSD >= 9
13724         * lib/readutmp.h: Map utmpxname() to setutxdb().
13725         With that coreutils who(1) and pinky(1) tests pass.
13727 2015-06-30  Paul Eggert  <eggert@cs.ucla.edu>
13729         mgetgroups: port to strict OS X
13730         The previous fix wasn't working, so use a bigger hammer (Bug#20923).
13731         * lib/mgetgroups.c: Ignore -Wpointer-sign diagnostics.
13732         (getgrouplist_gids) [HAVE_GETGROUPLIST]: Remove.  All uses removed.
13733         * m4/mgetgroups.m4 (gl_MGETGROUPS): Revert recent changes.
13735 2015-06-29  Paul Eggert  <eggert@cs.ucla.edu>
13737         mgetgroups: port to strict OS X
13738         * doc/glibc-functions/getgrouplist.texi (getgrouplist):
13739         Document the getgrouplist problem.
13740         * lib/mgetgroups.c (getgrouplist_gids) [HAVE_GETGROUPLIST]:
13741         New macro.
13742         (mgetgroups): Use it.
13743         * m4/mgetgroups.m4 (gl_MGETGROUPS):
13744         Check for OS X signature for getgrouplist.
13746 2015-06-29  Jim Meyering  <meyering@fb.com>
13748         linkat: fix invalid definition of LINKAT_SYMLINK_NOTSUP on OS X
13749         It started like this when building coreutils' latest on OS X,
13750         invoking ./configure with a nonempty --cache=.cache:
13752           lib/linkat.c:46:42: error: operator '||' has no right operand
13753           lib/linkat.c: In function 'rpl_linkat':
13754           lib/linkat.c:330:27: error: #if with no expression
13756         Here's linkat.c's line 46:
13758           #if !HAVE_LINKAT || LINKAT_SYMLINK_NOTSUP
13760         Here's some context:
13762           $ grep linkat_nofoll .cache
13763           gl_cv_func_linkat_nofollow=${gl_cv_func_linkat_nofollow=no}
13764           $ grep LINKAT_SYM lib/config.h
13765           #define LINKAT_SYMLINK_NOTSUP
13767         The problem is that m4/linkat.m4's gl_FUNC_LINKAT
13768         uses AC_CACHE_CHECK to set LINKAT_SYMLINK_NOTSUP,
13769         but that violates a tenet of AC_CACHE_CHECK: it must
13770         have no side effect other than setting its cache variable.
13772         What happens is that when the cache is set, we'd skip the
13773         code in that AC_CACHE_CHECK call, and leave LINKAT_SYMLINK_NOTSUP
13774         defined to whatever value it happened to have in configure's
13775         environment.  In my case, it was not defined, so this later code:
13777           AC_DEFINE_UNQUOTED([LINKAT_SYMLINK_NOTSUP], [$LINKAT_SYMLINK_NOTSUP],
13778             [Define to 1 if linkat can create hardlinks to symlinks])
13780         would emit code with an empty RHS.
13782         * m4/linkat.m4 (gl_FUNC_LINKAT): Move the setting of
13783         $LINKAT_SYMLINK_NOTSUP out of the AC_CACHE_CHECK code block.
13785 2015-06-28  Jim Meyering  <meyering@fb.com>
13787         mountlist: avoid an unused-label warning on OS X
13788         * lib/mountlist.c (read_file_system_list) [MOUNTED_GETMNTINFO]:
13789         Building on OS X, I saw a warning about the "free_then_fail" label
13790         being unused.  Give it the _GL_UNUSED_LABEL attribute.
13792         error.c: correct printf-style format: %d -> %u
13793         * lib/error.c (error_at_line): Correct __fxprintf format to use %u,
13794         rather than %d, to match the type of "line_number", unsigned int.
13796 2015-06-25  Pádraig Brady  <P@draigBrady.com>
13798         fts: avoid reading beyond the heap allocation
13799         GCC 5.1.1 with -O2 and -fsanitize=address reports
13800         a read of size 4 from a heap object of size 3 is indeed invalid,
13801         though this may be due to incorrect padding assumptions by GCC, see:
13802         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
13803         * lib/fts.c (fts_alloc): Increase allocation to alignof(FTSENT).
13804         * modules/fts: Depend on stdalign.
13806 2015-06-24  Pádraig Brady  <P@draigBrady.com>
13808         savedir: avoid undefined behavior in qsort call
13809         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
13810         "runtime error: null pointer passed as argument 1,
13811          which is declared to never be null"
13812         * lib/savedir.c (streamsavedir): Avoid the call with no entries.
13814 2015-06-24  Pádraig Brady  <P@draigBrady.com>
13816         userspec: avoid undefined behavior in gettext call
13817         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
13818         "runtime error: null pointer passed as argument 2,
13819          which is declared to never be null"
13820         * lib/userspec.c (parse_with_separator): Avoid passing NULL to gettext()
13822 2015-06-20  Glenn Morris  <rgm@gnu.org>
13824         gitlog-to-changelog: improve gitmerge.el commits
13825         Let the Emacs ChangeLog generation process exclude "skipped"
13826         messages from merge commits (Bug#20717).
13827         * build-aux/gitlog-to-changelog: Handle gitmerge.el skipped commits.
13829 2015-06-20  Paul Eggert  <eggert@cs.ucla.edu>
13831         wchar: fix MinGW compilation warnings
13832         This lets Texinfo compile cleanly.  See Eli Zaretskii in:
13833         http://lists.gnu.org/r/bug-gnulib/2015-06/msg00050.html
13834         * lib/wchar.in.h: Do not use special invocation convention on MinGW.
13836 2015-06-20  Daiki Ueno  <ueno@gnu.org>
13838         uniname/uniname-tests: use pristine data files
13839         For copyright and maintenance reasons, use the data files from UCD
13840         without modification.
13841         * tests/uniname/test-uninames.c (FIELDLEN): Remove.
13842         (getfield): Remove.
13843         (aliases_count): New global variable.
13844         (fill_names): Skip comments and empty lines in the input.  Don't
13845         use getfield.
13846         (fill_aliases): Likewise.
13847         (main): Change the expected command line arguments to:
13848         NAMES... ["--" ALIASES...].
13849         * tests/uniname/test-uninames.sh: Adjust to the change in
13850         test-uninames.c.
13851         * tests/uniname/UnicodeDataNames.txt: Remove.
13852         * tests/uniname/UnicodeData.txt: New file, from Unicode 8.0.0.
13853         * tests/uniname/NameAliases.txt: Use the pristine copy of the data
13854         file from Unicode 8.0.0.
13856 2015-06-19  Pádraig Brady  <P@draigBrady.com>
13858         linked-list, linkedhash-list: avoid compiler warnings
13859         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
13860         -Werror=suggest-attribute=pure (from GCC 5.1.1).
13862 2015-06-19  Daiki Ueno  <ueno@gnu.org>
13864         libunistring: bump minimum version to 0.9.6
13865         * all modules depending on updated Unicode data: Regenerate.
13866         The modules are listed by a script that does:
13867         - for each file listed by: git show --oneline --name-only 705f4efc
13868           - deduce the containing modules, based on "Files:"
13869         - deduce the modules which depend on the containing modules, based
13870           on "Depends-on:"
13872 2015-06-18  Daiki Ueno  <ueno@gnu.org>
13874         uniname/uniname: update to Unicode 8.0.0
13875         * lib/uniname/uninames.h: Regenerate.
13876         * tests/uniname/NameAliases.txt: Update from Unicode 8.0.0.
13877         * tests/uniname/UnicodeDataNames.txt: Update from Unicode 8.0.0.
13879 2015-06-18  Daiki Ueno  <ueno@gnu.org>
13881         libunistring: update to Unicode 8.0.0
13882         * lib/gen-uni-tables.c (SIZEOF): New macro.
13883         (output_numeric): Increase the maximum number of fractions from
13884         128 to 160.  Increase the level3 value width from 7 bits to 8
13885         bits.  Use SIZEOF instead of a hard-coded integer.
13886         (output_blocks): Decrease the cut-off threshold from 0x30000 to
13887         0x28000.
13888         (fill_blocks): Increase the maximum number of blocks from 256 to
13889         384.  Use SIZEOF instead of a hard-coded integer.
13890         (get_lbp): Adjust to new characters added in Unicode 8.0.0.
13891         * lib/unictype/numeric.c (uc_numeric_value): Adjust the level3
13892         value width.
13893         * lib/unilbrk/lbrktables.c (unilbrk_table): Implement LBP21b and
13894         a new case added to LBP22.
13895         * lib/uniwidth/width.c (nonspacing_table_data): Add U+08E3,
13896         U+A69E, U+FE2E..U+FE2F, U+111CA..U+111CC, U+11300,
13897         U+115DC..U+115DD, U+1171D..U+1171F, U+11722..U+11725,
13898         U+11727..U+1172B, U+1DA00..U+1DA36, U+1DA3B..U+1DA6C, U+1DA75,
13899         U+1DA84, U+1DA9B..U+1DA9F, and U+1DAA1..U+1DAAF.
13900         * tests/uniwidth/test-uc_width2.sh: Same updates as in
13901         lib/uniwidth/width.c.
13902         * all generated files under lib/uni* and tests/uni*: Regenerate.
13904 2015-06-16  Pádraig Brady  <P@draigBrady.com>
13906         gnu-web-doc-update: add --mirror to remove stale files
13907         * build-aux/gnu-web-doc-update: Add a --mirror option to remove
13908         out of date files from the CVS server.  Since this is usually
13909         appropriate, a prompt is given when the option is not specified,
13910         along with the `cvs remove` command that would be run.
13912 2015-06-06  Paul Eggert  <eggert@cs.ucla.edu>
13914         acl-permissions: pacify -Wsuggest-attribute=const
13915         Problem reported by Masanari Iida in: http://bugs.gnu.org/20753
13916         * lib/acl-internal.h (free_permission_context):
13917         Declare with attribute const if ! (defined USE_ACL &&
13918         (HAVE_ACL_GET_FILE || defined GETACL)).
13920         fsync: document AIX misbehavior
13921         * doc/posix-functions/fsync.texi (fsync):
13922         Document failure on AIX with read-only file descriptor.
13924 2015-06-05  Jonathan Perkin  <jperkin@joyent.com>  (tiny change)
13926         stdio: Don't redefine gets when using C++
13927         * lib/stdio.in.h (gets): Disable warning on C++.
13929 2015-06-05  Paul Eggert  <eggert@cs.ucla.edu>
13931         acl-permissions: port to AIX, C89 HP-UX
13932         Problems reported by Michael Felt.
13933         * lib/file-has-acl.c (file_has_acl) [HAVE_STATACL]:
13934         * lib/get-permissions.c (get_permissions) [USE_ACL && HAVE_STATACL]:
13935         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]:
13936         * lib/set-permissions.c (set_acls) [HAVE_ACLX_GET && ACL_AIX_WIP]:
13937         Add cast for AIX, whose system calls are declared to accept
13938         char * even though the arguments are really char const *.
13939         * lib/get-permissions.c (get_permissions):
13940         If USE_ACL && HAVE_GETACL /* HP-UX */, don't assume C99.
13941         If USE_ACL && HAVE_STATACL /* older AIX */, add missing decl
13942         that broke a build.
13943         * lib/mountlist.c (read_file_system_list) [MOUNTED_VMOUNT]:
13944         Rework types to pacify xlc.
13946 2015-06-03  Pádraig Brady  <P@draigBrady.com>
13948         vasprintf-posix: avoid compiling vasnprintf where possible
13949         * modules/vasprintf-posix: Avoid compiling the large vasnprintf
13950         module where not required.  For example on a GNU/Linux system
13951         when gnulib-tool is run with the --conditional-dependencies option.
13953 2015-06-02  Pádraig Brady  <P@draigBrady.com>
13955         file-has-acl: fix build on Mac OS X 10
13956         This reverts commit f1b37e3a which doesn't work on Mac OS X >= 10.4
13957         which has an incompatible 6 parameter getxattr() call.
13958         * doc/glibc-functions/getxattr.texi: Mention the divergent getxattr()
13959         call on Mac OS X >= 10.4.
13960         * doc/glibc-functions/fgetxattr.texi: Likewise.
13961         * lib/file-has-acl.c: Revert to more complete combined check.
13962         * m4/acl.m4 (gl_FILE_HAS_ACL): Likewise.
13963         Reported by Jack Howarth.
13965 2015-06-02  Pádraig Brady  <P@draigBrady.com>
13967         prefix-gnulib-mk: remove no longer needed special case
13968         * build-aux/prefix-gnulib-mk (prefix): Since commit e3704b9c,
13969         continued lib_SOURCES lines are no longer present,
13970         so special case handling of such entries is not required.
13972 2015-06-01  Pádraig Brady  <P@draigBrady.com>
13974         acl: don't depend on the deprecated qacl module
13975         * modules/acl (Depends-on): Use q{copy,set}-acl instead.
13977 2015-06-01  Pádraig Brady  <P@draigBrady.com>
13979         gnulib-tool: concatenate lib_SOURCES to a single line
13980         * gnulib-tool: Refactor the line merging sed logic,
13981         and use that to output a single lib_SOURCES line for each module.
13982         gnulib using projects often postprocess this output to prepend
13983         subdir paths to each item, and having a single line simplifies this
13984         processing allowing better decoupling from the gnulib-tool output.
13986 2015-06-01  Pavel Fedin  <p.fedin@samsung.com>
13988         pthread_sigmask: discount system version if a simple macro (trivial)
13989         MinGW64 has: #define pthread_sigmask(H, S1, S2) 0
13990         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Call the
13991         function to ensure it's available.
13993 2015-05-31  Pádraig Brady  <P@draigBrady.com>
13995         readlinkat: avoid OS X 10.10 trailing slash bug
13996         * doc/posix-functions/readlink.texi: Mention that OS X 10.10
13997         has this bug.
13998         * doc/posix-functions/readlinkat.texi: Likewise.  Also mention
13999         that OS X 10.10 has this function.
14000         * lib/readlinkat.c (rpl_readlinkat): Handle the trailing slash bug,
14001         as done for readlink().
14002         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check for the readlink()
14003         trailing slash bug, and assume readlinkat() has the same issue.
14004         Also fix a typo where $gl_cv_decl_readlink_works was tested,
14005         rather than the correct $gl_cv_decl_readlinkat_works.
14007 2015-05-29  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
14009         acl-permissions: Fix build on Mac OS X and older AIX (Bug#20681)
14010         * lib/set-permissions.c (set_acls): Fix more errors introduced in the acl
14011         module rewrite.
14013         acl-permissions: Fix build on Solaris and Cygwin
14014         Reported by Tom G. Christensen <tgc@jupiterrise.com>:
14015         * lib/set-permissions.c (set_acls): The count, entries, ace_count, and
14016         ace_entries variables have moved into struct permission_context but
14017         they were still accessed as local variables here.
14019 2015-05-29  Pádraig Brady  <P@draigBrady.com>
14021         linkat: avoid OS X 10.10 trailing slash with symlink bug
14022         On Darwin 14.3.0 linkat(,"path1",,"dangling_symlink/",)
14023         causes the symlink to be dereferenced, and if it points
14024         to a non existent file, that file will be created as
14025         a hard link to "path1".
14026         This fixes a test failure in test-linkat.c.
14027         * m4/linkat.m4 (gl_FUNC_LINKAT): Augment the test with
14028         this case.  The existing workaround in linkat.c for
14029         trailing slash issues, suffices for this case.
14030         * doc/posix-functions/linkat.texi: Add OS X 10.10 to
14031         the list of platforms with trailing slash issues.
14033 2015-05-28  Pádraig Brady  <P@draigBrady.com>
14035         unlinkat: handle ignoring of ".." on Darwin 14
14036         * lib/unlinkat.c: unlinkat() has the same bug as unlink()
14037         on Mac OS X 10.10, where it ignores paths with a trailing "..",
14038         so handle in the same manner.
14039         * m4/unlinkat.m4: Comment on this Darwin issue.
14040         * doc/posix-functions/unlink.texi: Update the latest version
14041         where the issue was seen.
14042         * doc/posix-functions/unlinkat.texi: Mention this issue.
14043         Fixes a test failure in test-unlinkat.c.
14045 2015-05-27  Paul Eggert  <eggert@cs.ucla.edu>
14047         qacl: split into qcopy-acl and qset-acl
14048         Emacs needs the former, but not the latter.
14049         * modules/acl-permissions: New file, containing most of the old qacl.
14050         * modules/file-has-acl (Depends-on): Depend on acl-permissions, not qacl.
14051         * modules/qacl: Now merely depends on qcopy-acl and qset-acl.
14052         * modules/qcopy-acl, modules/qset-acl: New files.
14053         * MODULES.html.sh (File system functions):
14054         Mention the new modules, and mention qacl while we're at it.
14056 2015-05-27  Glenn Morris  <rgm@gnu.org>
14058         gitlog-to-changelog: new option --ignore-line
14059         (This patch is imported from the GNU Emacs master.)
14060         This option ignores individual commit lines matching a pattern.
14061         * build-aux/gitlog-to-changelog: Add --ignore-line option.
14063 2015-05-27  Andreas Gruenbacher  <agruenba@redhat.com>
14065         qacl: Reimplement qset_acl and qcopy_acl (Bug#20666)
14066         Implement get_permissions and set_permissions primitives for getting all
14067         the permissions of a file, storing them, and later setting them. (In the
14068         minimal case, the permissions consist only of a file mode.) Reimplement
14069         qset_acl and qcopy_acl based on these new primitives: this avoids code
14070         duplication and makes error handling more consistent.
14071         The Solaris and Cygwin code still uses duplicate code paths for setting
14072         a file mode while making sure that no acls exist and setting an explicit
14073         acl; this is no worse than before, but could be cleaned up.  The AIX
14074         code still doesn't read ACLs, it only makes sure that acls don't get in
14075         the way when setting a file mode.
14076         * lib/acl-internal.h (struct permission_context): New data structure.
14077         (get_permissions, set_permissions, free_permission_context): Declare.
14078         * lib/acl-internal.c (free_permission_context): New helper function.
14079         * lib/get-permissions.c (get_permissions): New helper function split off
14080         from qcopy_acl.
14081         * lib/set-permissions.c: (set_acls_from_mode): On Solaris, Cygwin, and
14082         AIX, set a file's permissions based only on a file mode.
14083         (acl_from_mode, context_acl_from_mode, context_aclv_from_mode): All
14084         other platforms construct a temporary acl from the file mode and set
14085         that acl in the same way as setting an acl read from the source file.
14086         This should help avoid code duplication and inconsistent / buggy
14087         behavior.
14088         (set_acls): New helper function Split off from qcopy_acl.
14089         (chmod_or_fchmod): Moved here from qset-acl.c.
14090         (set_permissions): New helper function.
14091         * lib/qcopy-acl.c (qcopy_acl): Rewrite using get_permissions and
14092         set_permissions.
14093         * lib/qset-acl.c (qset_acl): Rewrite using set_permissions.
14094         * modules/qacl: Add get-permissions.c and set-permissions.c.
14096         file-has-acl: Split feature tests again (Bug#20667)
14097         * lib/file-has-acl.c: Instead of testing for
14098         XATTR_NAME_POSIX_ACL_ACCESS and XATTR_NAME_POSIX_ACL_DEFAULT,
14099         define them when needed.
14100         * m4/acl.m4 (gl_FILE_HAS_ACL): With that, Paul's
14101         GETXATTR_WITH_POSIX_ACLS change shouldn't be needed anymore.
14103 2015-05-27  Pádraig Brady  <P@draigBrady.com>
14105         string: fix build failure on BSD/OSX with FORTIFY_SOURCE
14106         This avoids a conflict with "FORTIFY_SOURCE" variants
14107         of the string functions when they're replaced on NetBSD-6.0.1
14108         and Darwin-14.3.0 at least.
14109         * lib/string.in.h: Avoid including our "lib/string.h" while
14110         including the system <string.h>.
14112 2015-05-26  Eric Blake  <eblake@redhat.com>
14114         stdio: limit __gnu_printf__ witness to gcc 4.4+
14115         * lib/error.h (_GL_ATTRIBUTE_SPEC_PRINTF): Move gcc version probe...
14116         * m4/stdio_h.m4 (gl_STDIO_H): ...here.
14118         error: use correct printf attributes on mingw
14119         * lib/stdio.in.h (_GL_ATTRIBUTE_SPEC_PRINTF): New define.
14121         inttypes: force correct mingw PRIdMAX even without <stdio.h>
14122         * modules/inttypes (Depends-on): Require extensions, so that mingw
14123         always uses GNU style inttypes.
14124         * lib/inttypes.in.h: On mingw, include <stdio.h>.
14126         stdio: fix probe on mingw under gcc 5.1
14127         * m4/stdio_h.m4 (gl_STDIO_H): Change to compile test, to work
14128         around new gcc preprocessor rules.
14130 2015-05-07  Glenn Morris  <rgm@gnu.org>
14132         gitlog-to-changelog: parse "Tiny-change"
14133         * build-aux/gitlog-to-changelog: Treat "Tiny-change" like
14134         "Copyright-paperwork-exempt".  (Bug#20324)
14136 2015-05-06  Pádraig Brady  <P@draigBrady.com>
14138         doc: document glibc posix_fallocate() issues
14139         * doc/posix-functions/posix_fallocate.texi: Mention the
14140         glibc efficiency problems and issues with NFS.
14142 2015-05-05  Karl Berry  <karl@freefriends.org>
14144         * build-aux/gendocs.sh (usage): document new css default
14145         for HTML (--htmlarg).
14147 2015-04-29  Paul Eggert  <eggert@cs.ucla.edu>
14149         extern-inline: no need for workaround in GCC 5.1
14150         * doc/extern-inline.texi (extern inline):
14151         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
14152         GCC bugs 54113 and 63877 are fixed in GCC 5.1, so don't work
14153         around these bugs in GCC 5.1 and later.  Maybe in a decade or
14154         two we can remove these workarounds.
14156 2015-04-28  Pádraig Brady  <P@draigBrady.com>
14158         eealloc, pagealign_alloc, xalloc: avoid clang warnings
14159         Avoid [-Wunknown-attributes] warnings like:
14160         warning: unknown attribute '__alloc_size__' ignored
14161         * lib/xalloc.h: Don't use the __alloc_size__  attribute
14162         with clang, as support has been fully removed as of clang 3.5:
14163         https://github.com/llvm-mirror/clang/commit/c047507a
14164         * lib/eealloc.h: Likewise.
14165         * lib/pagealign_alloc.h: Likewise.
14167 2015-04-27  Paul Eggert  <eggert@cs.ucla.edu>
14169         tests: pacify GCC 5.1's stricter printf checking
14170         * tests/test-dirname.c (main):
14171         * tests/test-getaddrinfo.c (simple):
14172         * tests/test-getlogin.c (main):
14173         * tests/test-getndelim2.c (main):
14174         * tests/test-inttostr.c (CK):
14175         * tests/test-md5.c (main):
14176         * tests/test-read-file.c (main):
14177         * tests/test-sha1.c (main):
14178         Fix mismatches between printf format and value signedness.
14179         * tests/test-inttostr.c (FMT, CAST_VAL, V_min, V_max):
14180         Remove, as CAST_VAL always returned a value of type uintmax_t.
14182         fts: port to GCC 5.1 with --enable-gcc-warnings
14183         Without this fix, GCC 5.1 (correctly) warns about a subscript
14184         error on the fts_name component of FTSENT.  It's actually a
14185         flexible member, so define it that way on C99 or later hosts.
14186         * lib/fts.c (fts_alloc): Use offsetof, not sizeof, for a
14187         structure that now has a flexible array member.
14188         * lib/fts_.h (__FLEXIBLE_ARRAY_MEMBER): New macro.
14189         (FTSENT): fts_name is now flexible on C99-or-later platforms.
14190         * modules/fts (Depends-on): Add flexmember.
14192 2015-04-26  Paul Eggert  <eggert@cs.ucla.edu>
14194         file-has-acl: port to CentOS 6
14195         Problem reported by Tom G. Christensen in:
14196         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00074.html
14197         * lib/file-has-acl.c: Use GETXATTR_WITH_POSIX_ACLS instead of a
14198         combination of HAVE_SYS_XATTR_H, HAVE_LINUX_XATTR_H, and
14199         HAVE_GETXATTR.
14200         * m4/acl.m4 (gl_FILE_HAS_ACL): Test fot the entire combination of
14201         linux/xattr.h, sys/xattr.h, getxattr, XATTR_NAME_POSIX_ACL_ACCESS,
14202         and XATTR_NAME_POSIX_ACL_DEFAULT, since that's what
14203         file-has-acl.c actually needs.
14205 2015-04-26  Pádraig Brady  <P@draigBrady.com>
14207         file-has-acl: always return false when ACLs aren't supported
14208         * lib/file-has-acl.c (file_has_acl): Consistent with other paths,
14209         change the GNU/Linux getxattr path, to transform "not supported"
14210         errors to a false return rather than an error.  This is handled
14211         within file_has_acl() due to the platform specific tests to
14212         determine if ACLs are not supported.
14214 2015-04-25  Paul Eggert  <eggert@cs.ucla.edu>
14216         gettext: propagate po/Makefile.in.in too
14217         * build-aux/po/Makefile.in.in: Copy from latest gettext.
14218         * config/srclist.txt: In build-aux/po, copy Makefile.in.in and
14219         remove-potcdate.sin from $GETTEXT.  This fixes a version mismatch
14220         between Makefile.in.in and the gettext-runtime m4 files.
14222 2015-04-24  Paul Eggert  <eggert@cs.ucla.edu>
14224         file-has-acl: new module, split from acl
14225         And add a new module file-has-acl-tests to match.
14226         I ran into a problem with the recent changes to the acl module,
14227         as they introduced a typo 'test use_xattrs = 0' into 'configure'.
14228         When using the fixed version with Emacs, I discovered that
14229         file-has-acl wasn't separated out well enough for Emacs (e.g., it
14230         had multiple libraries, but needed only one), so I fixed that too.
14231         * NEWS: Document this incompatible change.
14232         * modules/file-has-acl, modules/file-has-acl-tests: New files.
14233         * m4/acl.m4 (gl_FUNC_ACL_ARG): New macro, split from gl_FUNC_ACL.
14234         Initialize gl_need_lib_has_acl.
14235         (gl_FUNC_ACL): Require it.
14236         Simplify use of 'test'.  Set LIB_HAS_ACL if gl_need_lib_has_acl.
14237         Move the file-has-acl.c-relevant stuff to ...
14238         (gl_FILE_HAS_ACL): ... this new macro.  Rewrite to fix 'test
14239         use_xattrs = 0' typo, and omit some needless work.  Set
14240         gl_need_lib_has_acl=1 if we'll need LIB_HAS_ACL to be set
14241         when gl_FUNC_ACL is called.
14242         * modules/acl (Files, lib_SOURCES): Remove lib/file-has-acl.c.
14243         (Link): Remove $(LIB_HAS_ACL).
14244         * modules/acl-tests (Files, Depends-on, configure.ac, TESTS)
14245         (check_PROGRAMS): Move stuff relevant to file-has-acl to
14246         modules/file-has-acl-tests.
14247         (test_file_has_acl_LDADD): Move to modules/file-has-acl-tests.
14249         manywarnings: add GCC 5.1 warnings
14250         * build-aux/gcc-warning.spec: Add -Wabi=, -Warray-bounds,
14251         -Warray-bounds=, -Wc++14-compat, -Wc90-c99-compat,
14252         -Wc99-c11-compat, -Wshadow-ivar, -Wsized-deallocation,
14253         -Wsuggest-override, -Wuse-without-only.  Change
14254         -Wnormalized=... operands to match 5.1.
14255         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wbool-compare,
14256         -Wchkp, -Wdesignated-init, -Wdiscarded-array-qualifiers,
14257         -Wdiscarded-qualifiers, -Wformat-signedness,
14258         -Wincompatible-pointer-types, -Wint-conversion,
14259         -Wlogical-not-parentheses, -Wmemset-transposed-args, -Wodr,
14260         -Wshift-count-negative, -Wshift-count-overflow,
14261         -Wsizeof-array-argument, -Wsuggest-final-methods,
14262         -Wsuggest-final-types, -Wswitch-bool.  Remove -Warray-bounds,
14263         and add -Warray-bounds=2 as a special case.
14265 2015-04-21  Simon Josefsson  <simon@josefsson.org>
14267         doc: update FDL template to match FDL examples.
14268         * doc/alloca-opt.texi:
14269         * doc/alloca.texi:
14270         * doc/c-ctype.texi:
14271         * doc/c-strcase.texi:
14272         * doc/c-strcaseeq.texi:
14273         * doc/c-strcasestr.texi:
14274         * doc/c-strstr.texi:
14275         * doc/c-strtod.texi:
14276         * doc/c-strtold.texi:
14277         * doc/ctime.texi:
14278         * doc/error.texi:
14279         * doc/gcd.texi:
14280         * doc/gnulib-tool.texi:
14281         * doc/inet_ntoa.texi:
14282         * doc/intprops.texi:
14283         * doc/lib-symbol-visibility.texi:
14284         * doc/maintain.texi:
14285         * doc/parse-datetime.texi:
14286         * doc/quote.texi:
14287         * doc/regexprops-generic.texi:
14288         * doc/standards.texi: Remove spurious 'with' in FDL license
14289         template.
14291 2015-04-21  Paul Eggert  <eggert@cs.ucla.edu>
14293         lstat: fix cross-compilation 'ln -s' problem
14294         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
14295         Have the test program call 'symlink' rather than a separate
14296         script run 'ln -s'; this is more likely to work in
14297         cross-compilation environments.  Reported by Pavel Fedin in:
14298         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00060.html
14300 2015-04-16  Ludovic Courtès  <ludo@gnu.org>
14302         gendocs.sh: default to a common CSS style sheet for HTML output
14303         * build-aux/gendocs.sh (htmlarg): Change default value.
14305 2015-04-15  Mats Erik Andersson  <gnu@gisladisker.se>
14307         gnulib-tool: output bold attribute more portably
14308         * gnulib-tool (func_show_module_list): Change hexadecimal
14309         numbers to octal in BOLD_ON and BOLD_OFF.  The use of hex
14310         encoded numbers as arguments to `printf' is not portable,
14311         and is not claimed by POSIX.  This is the case with FreeBSD.
14313 2015-04-15  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
14315         qacl: Simplify HP-UX acl_nontrivial check
14316         * lib/acl-internal.c: Remove struct stat parameter from HP-UX's version of
14317         acl_nontrivial. Check if the acl has at most three entries instead (it must
14318         have exactly three entries according to the HP-UX documentation). Ignore
14319         uids and gids as long as an entry is either for a user (i.e., the owner),
14320         a group (i.e., the owning group), or others.
14321         * lib/acl-internal.h: Change HP-UX's acl_nontrivial prototype.
14322         * lib/qcopy-acl.c (qcopy_acl): With that, we no longer need to stat the file.
14324 2015-04-15  Andreas Gruenbacher   <andreas.gruenbacher@gmail.com>
14326         acl: On Linux, check for acls without libacl
14327         On Linux, use the getxattr syscall instead of the acl_extended_file libacl
14328         library function to check for the presence of acls, avoiding a library.
14329         * lib/file-has-acl.c: Include xattr headers if we have them.
14330         (file_has_acl): On Linux, use getxattr().
14331         * m4/acl.m4 (gl_FUNC_ACL): Define LIB_HAS_ACL as the libraries to link with for
14332         file_has_acl(). Check for xattr headers and getxattr().
14334 2015-04-14  Ángel González  <keisial@gmail.com>
14336         tempname: avoid unused parameter warnings (trivial)
14337         * lib/tempname.c (try_dir): Tag with __GL_UNUSED.
14338         (try_nocreate): Likewise.
14340 2015-04-14  HIRAMATSU Yoshifumi  <hiramatu@boreas.dti.ne.jp>
14342         fseeko: fix build failure on NetBSD >= 6 (trivial)
14343         * lib/fseeko.c (feeko): NetBSD 6 changed the definition of _offset
14344         from 'fpos_t struct' to __off_t, which is a typedef of __int64_t.
14346 2015-04-09  Paul Eggert  <eggert@cs.ucla.edu>
14348         gitlog-to-changelog: port to MS-Windows
14349         * build-aux/gitlog-to-changelog (git_dir_option):
14350         Use strftime with "%Y-%m-%d", not "%F", to avoid a bug in
14351         MS-Windows Perl.  Reported by Eli Zaretskii in:
14352         http://lists.gnu.org/r/emacs-devel/2015-04/msg00504.html
14354 2015-04-07  Karl Berry  <karl@gnu.org>
14356         gendocs: new option --tex for passing args to texi2dvi.
14357         * build-aux/gendocs.sh: new option --tex, default -t @finalout.
14358         (TEXI2DVI): cut to just command name.
14359         (usage): mention new option, and update copyright.
14360         <generate_tex>: use it.
14362 2015-04-07  Karl Berry  <karl@gnu.org>
14364         * config/srclistvars.sh (GETTEXT): new definition.
14365         * config/srclist.txt: use it for gettext .m4 files.
14366         Thread starting at http://lists.gnu.org/r/bug-gnulib/201
14367         and confirmed at http://lists.gnu.org/r/bug-gnulib/2015-02/msg00146.html
14368         and continuing into April.
14370 2015-04-07  Daiki Ueno  <ueno@gnu.org>
14372         uniname/uniname-tests: fix failure due to alias
14373         Reported by Jack Howarth in:
14374         <https://lists.gnu.org/r/bug-libunistring/2015-04/msg00000.html>.
14375         * tests/uniname/test-uninames.c (name_has_alias): New function.
14376         (test_inverse_lookup): Exclude character name with valid alias,
14377         from randomly generated character names.
14378         (main): Fill unicode_aliases before calling test functions.
14380 2015-04-03  Giuseppe Scrivano  <gscrivan@redhat.com>
14382         hash: remove deprecated hash_insert0 function
14383         * lib/hash.h (hash_insert0): Remove deprecated function.
14384         * lib/hash.c (hash_insert0): Likewise.
14386 2015-04-02  Pádraig Brady  <P@draigBrady.com>
14388         mountlist: remove dependency on libmount
14389         * lib/mountlist.c (read_file_system_list): Parse /proc/self/mountinfo
14390         directly, rather than depending on libmount, which has many
14391         dependencies due to its dependence on libselinux, as detailed at:
14392         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00063.html
14393         Note we restrict this to __linux__ as that's probably where this
14394         interface will remain.  If ever porting, it would be best
14395         to first pull the makedev() wrapper from coreutils to a gnulib module.
14396         Note also we don't add a getline dependency to the mountlist module,
14397         as all Linux versions are sufficient.
14399 2015-04-02  Paul Eggert  <eggert@cs.ucla.edu>
14401         stddef: port to pre-C11 GCC on x86
14402         On this platform, max_align_t should have an alignment of 8 even
14403         though the storage alignments of double, long, etc. max out at 4.
14404         Inspired by a comment of Andreas Schwab's here:
14405         https://sourceware.org/ml/libc-alpha/2015-04/msg00017.html
14406         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS) [!HAVE_MAX_ALIGN_T]: New macro.
14407         (max_align_t) [!HAVE_MAX_ALIGN_T]: Use it.
14408         * tests/test-stddef.c: Test __alignof__ too, if available.
14410 2015-03-24  Pádraig Brady  <P@draigBrady.com>
14412         quotearg-simple-tests: add missing gl_FUNC_MMAP_ANON dependency
14413         * modules/quotearg-simple-tests: Reference m4/mmap-anon.m4
14415 2015-03-24  Tobias Stoeckmann  <tobias@stoeckmann.org>
14417         yesno: make EOL optional in ENABLE_NLS case also (trival)
14418         * lib/yesno.c (yesno): Check for EOL before replacing.
14419         * tests/test-yesno.sh: Add a test case (test along with gettext).
14421 2015-03-22  Paul Eggert  <eggert@cs.ucla.edu>
14423         fdopendir-tests: test it does not close its arg
14424         * tests/test-fdopendir.c (main): Test that fdopendir does not
14425         close its argument.  From a suggestion by David Grayson in:
14426         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00039.html
14428 2015-03-20  Paul Eggert  <eggert@cs.ucla.edu>
14430         gitlog-to-changelog: trim trailing white space
14431         * build-aux/gitlog-to-changelog (main):
14432         Trim trailing white space from commit message lines.
14433         This is helpful for processing the GNU Emacs repository,
14434         which dates back to 1985 and contains a lot of such lines.
14436         gitlog-to-changelog: new option --ignore-matching
14437         * build-aux/gitlog-to-changelog (usage, git_dir_option, main):
14438         Support new option --ignore-matching=PAT, which ignores all
14439         commit messages whose first line matches PAT.
14441 2015-03-19  Paul Eggert  <eggert@cs.ucla.edu>
14443         fdopendir: port better to MinGW
14444         * lib/fdopendir.c (fd_clone_opendir) [REPLACE_FCHDIR]:
14445         Use 'dup' if dirfd fails.  Suggested by Eli Zaretskii in:
14446         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00033.html
14447         * modules/fdopendir (Depends-on): Add dirfd.
14449 2015-03-18  Paul Eggert  <eggert@cs.ucla.edu>
14451         fdopendir: fix typo in comment
14452         * lib/fdopendir.c (fdopendir_with_dup): REPLACE_FCHDIR was misspelled.
14454 2015-03-09  Eric Blake  <eblake@redhat.com>
14456         error: document all entry points provided
14457         * doc/glibc-functions/error_print_progname.texi
14458         (error_print_progname): Mention the error module.
14459         * doc/glibc-functions/error_at_line.texi (error_at_line):
14460         Likewise.
14461         * doc/glibc-functions/error_message_count.texi
14462         (error_message_count): Likewise.
14463         * doc/glibc-functions/error_one_per_line.texi
14464         (error_one_per_line): Likewise.
14466 2015-03-03  Paul Eggert  <eggert@cs.ucla.edu>
14468         vasnprintf: pacify clang 3.5.0
14469         Problem reported by Werner Lemberg in:
14470         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00000.html
14471         * lib/vasnprintf.c (VASNPRINTF): Omit casts that clang objects to.
14472         The casts aren't needed, since the characters in question are ASCII.
14474 2015-02-24  Paul Eggert  <eggert@cs.ucla.edu>
14476         glob, etc.: port to MSVC v18 on MS-Windows 8.1
14477         * lib/dirent--.h (GNULIB_defined_opendir):
14478         * lib/dirent.in.h (GNULIB_defined_opendir)
14479         (GNULIB_defined_closedir):
14480         * lib/getcwd.c, lib/glob.c, lib/mountlist.c (opendir, closedir):
14481         #undef only if Gnulib defined it.
14483         poll: port to MSVC v18 on MS-Windows 8.1
14484         Problem reported by Gisle Vanem in:
14485         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00139.html
14486         * lib/poll.c: Always include <sys/select.h> and <sys/socket.h>.
14487         * modules/poll (Depends-on) [!HAVE_POLL || REPLACE_POLL]:
14488         Add sys_socket.
14490 2015-02-24  Pádraig Brady  <P@draigBrady.com>
14492         tests: support stderr verification with returns_()
14493         * tests/init.sh (returns_): Disable tracing for this wrapper
14494         function, so that stderr of the wrapped command is unchanged,
14495         allowing for verification of the contents.
14497 2015-02-24  Pavel Hrdina  <phrdina@redhat.com>
14499         passfd: avoid valgrind uninitalised data warning
14500         * lib/passfd.c (sendfd): Reset the msg_controllen of msghdr,
14501         to include just the fd we've initialized, rather than including
14502         the extra space used for alignment.
14504 2015-02-23  Paul Eggert  <eggert@cs.ucla.edu>
14506         uniwbrk/u32-wordbreaks-tests: fix copyright
14507         * tests/uniwbrk/test-uc-wordbreaks.c: Fix copyright date.
14509         dup2: doc and test for Android bug
14510         Reported by Kevin Cernekee in:
14511         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00125.html
14512         * doc/posix-functions/dup2.texi (dup2): Document the bug.
14513         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the bug.
14515 2015-02-23  Kevin Cernekee  <cernekee@google.com>
14517         Replace dup2() on Android
14518         * m4/dup2.m4 (gl_FUNC_DUP2): Android implements dup2() using dup3().
14519         Since dup3(fd, fd) fails but dup2(fd, fd) should pass, test-dup2
14520         fails.  Using rpl_dup2() fixes this because it has an explicit test
14521         for this condition.
14523 2015-02-22  Paul Eggert  <eggert@cs.ucla.edu>
14525         Android doesn't define RLIM_SAVED_*
14526         Portability problem reported by Kevin Cernekee in:
14527         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00122.html
14528         * doc/posix-headers/sys_resource.texi (sys/resource.h):
14529         Mention the portability problem.
14530         * lib/getdtablesize.c (RLIM_SAVED_CUR, RLIM_SAVED_MAX):
14531         Define if not defined.
14532         * m4/dup2.m4 (gl_FUNC_DUP2):
14533         * m4/fcntl.m4 (gl_FUNC_FCNTL):
14534         Likewise.
14536 2015-02-21  Paul Eggert  <eggert@cs.ucla.edu>
14538         vasnprintf-posix-tests: use consistent test
14539         * tests/test-vasnprintf-posix.c (test_function):
14540         Use "<" in assert instead of "<=", for consistency with other tests.
14542 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
14544         printf, isinf, etc.: noncanonical != NaN
14545         Do not require that isinf, printf, etc. treat noncanonical
14546         values as NaNs.  Instead, require only that they do not crash.
14547         Problem reported by Joseph Myers in:
14548         https://sourceware.org/ml/libc-alpha/2015-02/msg00244.html
14549         * doc/posix-functions/dprintf.texi (dprintf):
14550         * doc/posix-functions/fprintf.texi (fprintf):
14551         * doc/posix-functions/isfinite.texi (isfinite):
14552         * doc/posix-functions/isinf.texi (isinf):
14553         * doc/posix-functions/isnan.texi (isnan):
14554         * doc/posix-functions/printf.texi (printf):
14555         * doc/posix-functions/snprintf.texi (snprintf):
14556         * doc/posix-functions/sprintf.texi (sprintf):
14557         * doc/posix-functions/vdprintf.texi (vdprintf):
14558         * doc/posix-functions/vfprintf.texi (vfprintf):
14559         * doc/posix-functions/vprintf.texi (vprintf):
14560         * doc/posix-functions/vsnprintf.texi (vsnprintf):
14561         * doc/posix-functions/vsprintf.texi (vsprintf):
14562         Document this.
14563         * m4/isfinite.m4 (gl_ISFINITEL_WORKS):
14564         * m4/isinf.m4 (gl_ISINFL_WORKS):
14565         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS):
14566         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE):
14567         * tests/test-isfinite.c (test_isfinitel):
14568         * tests/test-isinf.c (test_isinfl):
14569         * tests/test-isnan.c (test_long_double):
14570         * tests/test-isnanl.h (main):
14571         * tests/test-snprintf-posix.h (test_function):
14572         * tests/test-sprintf-posix.h (test_function):
14573         * tests/test-vasnprintf-posix.c (test_function):
14574         * tests/test-vasprintf-posix.c (test_function):
14575 o       Test only that noncanonical values do not cause crashes, not that
14576         they are treated as NaNs.  In some cases this means a larger
14577         output buffer is needed.
14579 2015-02-20  Jaroslav Skarvada  <jskarvad@redhat.com>
14581         fts: remove redundant close() (trivial)
14582         * lib/fts.c (fts_read): Remove redundant call to close().
14583         Spotted by coverity.
14585 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
14587         getdtablesize: port better for Android
14588         Problem reported by Kevin Cernekee in:
14589         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00112.html
14590         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Mention bug.
14591         * lib/getdtablesize.c (getdtablesize): Don't fall back on _SC_OPEN_MAX.
14592         Instead, just use getrlimit, taking care to avoid Cygwin bug.
14594         poll: fixes for large fds
14595         * lib/poll.c (poll): Don't check directly for NFD too large.
14596         Don't rely on undefined behavior in FD_SET when an arg exceeds
14597         FD_SETSIZE.  Always set revents afterwards, even if to zero.
14598         * tests/test-poll.c (poll1): Set revents to -1 instead of 0,
14599         as that makes the test a bit stricter.
14601 2015-02-19  Kevin Cernekee  <cernekee@google.com>
14603         fcntl: Fix cross compiling
14604         * m4/fcntl.m4 (gl_FUNC_FCNTL): Assign the guessed result to the
14605         correct variable name (gl_cv_func_fcntl_f_dupfd_works).
14607 2015-02-18  Paul Eggert  <eggert@cs.ucla.edu>
14609         dup2, fcntl: cross-compile better for Android
14610         Problem reported by Kevin Cernekee in:
14611         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00109.html
14612         * m4/dup2.m4 (gl_FUNC_DUP2): Don't guess no when cross-compiling
14613         for a Linux kernel.  That kernel bug was fixed on 2009-05-11, and
14614         there's little need to cross-compile for older kernels nowadays.
14615         * m4/fcntl.m4 (gl_FUNC_FCNTL): When cross-compiling, guess no only
14616         for systems where the bug is known to occur (AIX, Cygwin, Haiku).
14618 2015-02-18  Pádraig Brady  <P@draigBrady.com>
14620         getopt: don't crash on memory exhaustion
14621         * lib/getopt.c (_getopt_internal_r): Use degraded diagnostics on
14622         memory exhaustion.  In the _LIBC case we use alloca() as is
14623         already done in glibc, so we don't need to consider the separate
14624         error path in that awkward case.  Also fix a memory leak when
14625         ambiguous options are present.
14626         Reported by Tobias Stoeckmann
14628 2015-02-17  Mike Miller  <mtmiller@ieee.org>
14630         tempname: allow compilation with C++ (trivial)
14631         * lib/tempname.h [C++]: Specify extern "C" linkage.
14632         * lib/tempname.h (try_tempname):
14633         * lib/tempname.c (__try_tempname, __gen_tempname):
14634         Rename 'try' to 'tryfunc'.
14636 2015-02-17  Paul Eggert  <eggert@cs.ucla.edu>
14638         dup2, fcntl: port to AIX
14639         * m4/dup2.m4 (gl_FUNC_DUP2):
14640         * m4/fcntl.m4 (gl_FUNC_FCNTL):
14641         Prefer getrusage (RLIM_NOFILE ...)/rlim_cur to sysconf (_SC_OPEN_MAX).
14642         The former works on AIX 7.1 but the latter does not.
14643         Also, this may work better with Android; see:
14644         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00100.html
14646 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
14648         getdtablesize, dup2, fcntl: port to Android
14649         Problem reported by Kevin Cernekee in:
14650         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00092.html
14651         * doc/glibc-functions/getdtablesize.texi (getdtablesize):
14652         Mention that getdtablesize doesn't work on Android.
14653         * lib/getdtablesize.c: Use getrlimit substitute only if
14654         getdtablesize is declared.  This should suffice for Cygwin
14655         while not breaking Android.
14656         * m4/dup2.m4 (gl_FUNC_DUP2):
14657         * m4/fcntl.m4 (gl_FUNC_FCNTL):
14658         Prefer sysconf (_SC_OPEN_MAX) to getdtablesize, as the former is
14659         standardized but the latter is not, and sysconf works on Android.
14660         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE):
14661         Also check that getdtablesize is declared.
14662         This removes the need for a special case for Android.
14664 2015-02-16  Kevin Cernekee  <cernekee@google.com>
14666         localename: Implement gl_locale_name_thread_unsafe for Android
14667         * lib/localename.c: Android API level >= 21 supports two hardcoded
14668         locales: C (POSIX) and C.UTF-8.  Distinguish them by checking
14669         the internal __locale_t struct.
14671 2015-02-16  Kamil Dudka  <kdudka@redhat.com>
14673         fts: avoid crash when a cycle is added while traversing
14674         This could be triggered by auto-mounting a recursive bind mount.
14675         Reported by Michael Chapman in: https://bugzilla.redhat.com/1188498
14676         * lib/fts.c (fts_read): Avoid removing the original hash table item
14677         when leaving a directory that caused a cycle, and preserve the FTS_DC
14678         flag.
14680 2015-02-16  Daiki Ueno  <ueno@gnu.org>
14682         uniname/uniname: support character alias
14683         * lib/uniname/gen-uninames.lisp (main): New argument ALIASFILE.
14684         Generate one-way mapping from aliases to codepoints in the
14685         generated tables.  Special case variation selectors to reduce
14686         table size.
14687         * lib/uniname/uniname.c (unicode_character_name): Special case
14688         variation selectors.
14689         (unicode_name_character): Special case variation selectors and
14690         their aliases.
14691         * lib/uniname/uninames.h: Regenerate.
14692         * tests/uniname/NameAliases.txt: New file, taken from UCD 7.0.0.
14693         * modules/uniname/uniname-tests (Files): Add
14694         tests/uniname/NameAliases.txt.
14695         * tests/uniname/test-uninames.c: Mark as static.
14696         (ALIASLEN): Define.
14697         (struct unicode_alias): New struct.
14698         (unicode_aliases): New variable.
14699         (fill_aliases): New function.
14700         (test_alias_lookup): New test function.
14701         (main): Run the 'test_alias_lookup' test if the second argument is
14702         given.
14703         * tests/uniname/test-uninames.sh: Supply NameAliases.txt as the
14704         second argument.
14706 2015-02-11  Kevin Cernekee  <cernekee@google.com>
14708         Fix FILE struct compatibility with Android API level >= 21
14709         * lib/stdio-impl.h: Test explicitly for __ANDROID__ instead of
14710         __sferror.  Recent versions of Bionic's stdio.h no longer define
14711         __sferror.
14712         * lib/fbufmode.c: Likewise.
14713         * lib/fflush.c: Likewise.
14714         * lib/fpurge.c: Likewise.
14715         * lib/freadable.c: Likewise.
14716         * lib/freadahead.c: Likewise.
14717         * lib/freading.c: Likewise.
14718         * lib/freadptr.c: Likewise.
14719         * lib/freadseek.c: Likewise.
14720         * lib/fseeko.c: Likewise.
14721         * lib/fseterr.c: Likewise.
14722         * lib/fwritable.c: Likewise.
14724         Assume unbroken ungetc() on Android
14725         * m4/ungetc.m4: Add Android case to host OS check.  The ungetc()
14726         test case passed when running on an Android host, and the code
14727         hasn't really changed since 2009.
14729         getdtablesize: Fix Android build
14730         * m4/getdtablesize.m4: Add Android case to host OS check.  Recent NDK
14731         versions have this symbol in the .so library (at least 32-bit
14732         platforms) but are missing the declaration in the header file,
14733         causing the m4 logic to guess incorrectly.
14735         localename: Fix Android build
14736         * modules/localename (Depends-on): Add langinfo.
14738         getugroups: Fix Android build
14739         * lib/getugroups.c: Don't reference unsupported {get,set,end}grent
14740         functions.
14742         euidaccess: Fix Android build
14743         * modules/euidaccess (Depends-on): Add fcntl-h to ensure that
14744         AT_EACCESS gets declared.
14746         linkat_nofollow: Add fallback case for cross compiling
14747         * m4/linkat.m4: Guess no for Darwin, yes otherwise.
14749         net_if: Handle content-free <net/if.h> system headers
14750         * m4/net_if_h.m4: Check to make sure <net/if.h> actually defines
14751         struct if_nameindex.  If not, enable the replacement header.
14753         signal_h: Fix Android build
14754         * lib/signal.in.h: Add Android to the list of platforms that declare
14755         pthread_sigmask() in <pthread.h> instead of <signal.h>.
14757         duplocale: Fix Android build of duplocale-tests
14758         * modules/duplocale-tests (Depends-on): Add langinfo, as the header
14759         is included by test-duplocale.c (but not by duplocale.c).
14760         * modules/duplocale-tests (configure.ac): Check for monetary.h.
14761         * tests/test-duplocale.c: Skip test if monetary.h is absent.
14762         * doc/posix-headers/monetary.texi: Add Android to the list of
14763         platforms missing monetary.h.
14765 2015-02-11  Pádraig Brady  <P@draigBrady.com>
14767         tests: avoid recent -Werror=unused-variable regression in test-locale
14768         * tests/test-locale.c (main): Reference the variable to avoid the
14769         "unused variable" warning.
14771 2015-02-11  Pádraig Brady  <P@draigBrady.com>
14773         maint: various whitespace cleanups in tempname
14774         * lib/tempname.c: Normalize spacing and line length.
14775         * lib/tempname.h: Likewise.
14776         * modules/tempname: Likewise.
14778 2015-02-11  Pádraig Brady  <P@draigBrady.com>
14780         tests: provide returns_() to simplify exit status checking
14781         * tests/init.sh (returns_): A new function for use in tests,
14782         to allow for easier checking of return values, where you expect
14783         a command to exit with failure status.  By checking for a particular
14784         exit code, you don't hide any crashes for example.
14786 2015-02-11  Pádraig Brady  <P@draigBrady.com>
14788         mountlist: only use libmount when specified
14789         There are currently many shared libs dependencies introduced by
14790         libmount with associated runtime and virt mem overhead.
14791         Therefore don't enable by default.
14792         * m4/ls-mntd-fs.m4: Use --with-libmount to enable at build time.
14794 2015-02-08  Daiki Ueno  <ueno@gnu.org>
14796         uniname/unimame-tests: don't link with -lunistring
14797         * modules/uniname/uniname-tests (Makefile.am): Don't link against
14798         $(LIBUNISTRING).  Document the rationale why we need to
14799         conditionalize the test.
14801 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
14803         fstrcmp: don't assume strlen < INT_MAX
14804         * lib/fstrcmp.c: Include stddef.h and stdint.h.
14805         (uintptr_t): Remove, as we're now assuming stdint.
14806         (OFFSET, EXTRA_CONTEXT_FIELDS, fstrcmp_bounded):
14807         Prefer ptrdiff_t to int when the value could exceed INT_MAX
14808         if the input string is long.
14809         (fstrcmp_bounded): Check for size-calculation overflow.  Prefer
14810         uintptr_t to size_t when the underlying value is a pointer casted
14811         to an unsigned integer.  Avoid unnecessary 'buffer != NULL' test.
14812         * modules/fstrcmp (Depends-on): Add stdint.
14814         diffseq: prefer ptrdiff_t to ssize_t
14815         * lib/diffseq.h: In commentary, prefer ptrdiff_t to ssize_t.
14816         ptrdiff_t is the natural type for signed indexes.
14817         On a few older platforms, ssize_t is narrower than size_t.
14819         xalloc: fix typo that suppressed warnings
14820         * lib/xalloc.h: Add missing _GL_INLINE_HEADER_END.
14821         This typo, introduced a couple of years ago, mistakenly suppressed
14822         some -Wsuggest-attribute=const, -Wmissing-prototypes, and
14823         -Wmissing-declarations warnings.
14825         full-read: fix license notice typo
14826         * lib/full-read.h: Remove a stray line in the license notice.
14827         Reported by Sam Ellis in: http://bugs.gnu.org/19808
14829         crypto/gc: fix a -Wswitch warning
14830         Reported by Bruce Korb in:
14831         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00046.html
14832         * lib/gc-gnulib.c (gc_hash_open): Fail faster if MODE is nonzero.
14834 2015-02-03  Pádraig Brady  <P@draigBrady.com>
14836         gnulib-tool: fix handling of patch(1) diagnostics
14837         * gnulib-tool: Send diagnostics from patch(1) to stderr,
14838         as otherwise gnulib-tool will reparse that output and attempt
14839         to lookup modules.
14841 2015-02-03  Pádraig Brady  <P@draigBrady.com>
14843         bootstrap: exit immediately upon gnulib-tool failure
14844         * build-aux/bootstrap: Exit immediately if gnulib-tool fails.
14845         This was noticed when gnulib-tool exited early due to failure
14846         to apply a patch in coreutils at http://hydra.nixos.org/eval/1172233,
14847         but various confusing errors were then given as the build proceeded.
14849 2015-02-02  Andreas Gruenbacher  <agruen@gnu.org>
14851         symlinkat: include all required header files
14852         * lib/symlinkat.c (HAVE_SYMLINK_AT): Add <sys/stat.h> for fstatat(),
14853         and string.h for strlen(), required at least on OS X 10.10 (Yosemite).
14854         Reported at https://savannah.gnu.org/bugs/index.php?44151
14855         and by Jack Howarth.
14857 2015-01-29  Pádraig Brady  <P@draigBrady.com>
14859         localename: support Solaris 12 and illumos
14860         * lib/localename.c (gl_locale_name_thread_unsafe): call
14861         getlocalename_l() on newer __sun platforms.
14862         Reported by Alexander Pyhalov.
14863         Fix suggested by Rich Burridge.
14865 2015-01-29  Alexander Pyhalov  <alp@rsu.ru>
14867         locale: fix tests on illumos (trivial)
14868         * tests/test-locale.c: LC_GLOBAL_LOCALE is a function call on illumos,
14869         so move from global scope to main().
14871 2015-01-24  Daiki Ueno  <ueno@gnu.org>
14873         unictype: avoid undefined left-shift behavior
14874         * lib/unictype/bidi_of.c (uc_bidi_class): Building libunistring with
14875         gcc's -fsanitize=shift and running its tests triggered:
14876           unictype/bidi_of.c:43:60: runtime error: left shift of 40167 by 16 \
14877             places cannot be represented in type 'int'
14878         Cast LHS to 'unsigned int' after integer promotion.
14879         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
14880         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
14882 2015-01-20  Daiki Ueno  <ueno@gnu.org>
14884         libunistring: bump version of unitypes dependants
14885         Due to the header file search order, all the headers which depend
14886         on unitypes.h need to be generated, when the preinstalled
14887         libunistring is older.
14888         * modules/unicase/base (configure.ac): Bump minimum version to
14889         0.9.4.
14890         * modules/uniconv/base (configure.ac): Likewise.
14891         * modules/unilbrk/base (configure.ac): Likewise.
14892         * modules/uninorm/base (configure.ac): Likewise.
14893         * modules/unistdio/base (configure.ac): Likewise.
14894         * modules/unistr/base (configure.ac): Likewise.
14895         * modules/uniwbrk/base (configure.ac): Likewise.
14896         * modules/uniwidth/base (configure.ac): Likewise.
14898 2015-01-20  Daiki Ueno  <ueno@gnu.org>
14900         unictype/category-none: fix link with libunistring
14901         Since _UC_CATEGORY_NONE is not a public symbol, it will be
14902         prefixed with "libstring_" when compiled as part of libunistring.
14903         To avoid undefined symbol at link time, increase the minimum
14904         version when the dependant modules are updated.
14905         * modules/unictype/category-none (configure.ac): Bump minimum
14906         version to 0.9.5.
14908 2015-01-20  Daiki Ueno  <ueno@gnu.org>
14910         unitypes: fix build with installed libunistring
14911         The minimum version has not bumped after _UC_ATTRIBUTE_CONST and
14912         _UC_ATTRIBUTE_PURE were added to unitypes.in.h.
14913         * modules/unitypes (configure.ac): Bump minimum version to 0.9.4.
14915 2015-01-15  Paul Eggert  <eggert@cs.ucla.edu>
14917         time: port to MinGW32 3.21
14918         Problem reported by Eli Zaretskii in:
14919         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00042.html
14920         * lib/time.in.h:
14921         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC):
14922         * modules/time (Depends-on):
14923         Fall back on unistd.h if the other include files don't define
14924         struct timespec.
14926         update-copyright: apply to self
14927         * build-aux/update-copyright: Fix copyright date.  How ironic!
14929 2015-01-15  Daiki Ueno  <ueno@gnu.org>
14931         libunistring: update to Unicode 7.0.0
14932         * lib/unictype/joininggroup_byname.gperf: Add Straight Waw and
14933         Manichaean names.
14934         * lib/unictype/joininggroup_name.h: Likewise.
14935         * lib/unictype.in.h (UC_JOINING_GROUP_STRAIGHT_WAW)
14936         (UC_JOINING_GROUP_MANICHAEAN_ALEPH): New enumeration values.
14937         * lib/gen-uni-tables.c (UC_JOINING_GROUP_STRAIGHT_WAW)
14938         (UC_JOINING_GROUP_MANICHAEAN_*): New enumeration values.
14939         (fill_arabicshaping, joining_group_as_c_identifier): Support those
14940         enum values.
14941         (is_property_alphabetic): Accept newly added characters to
14942         cuneiform numeric signs.
14943         (is_property_default_ignorable_code_point): Reject U+0605.
14944         (FIELDLEN): Increase from 120 to 160.
14945         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0605,
14946         U+08FF, U+0C00, U+0C81, U+0D01, U+1AB0..U+1ABE, U+1BAC..U+1BAD,
14947         U+1CF8..U+1CF9, U+1DE7..U+1DF5, U+A9E5, U+AA7C, U+FE27..U+FE2D,
14948         U+102E0, U+10376..U+1037A, U+10AE5..U+10AE6, U+1107F, U+11173,
14949         U+1122F..U+11231, U+11234, U+11236..U+11237, U+112DF,
14950         U+112E3..U+112EA, U+11301, U+1133C, U+11340, U+11366..U+1136C,
14951         U+11370..U+11374, U+114B3..U+114B8, U+114BA, U+114BF..U+114C0,
14952         U+114C2..U+114C3, U+115B2..U+115B5, U+115BC..U+115C0,
14953         U+11633..U+1163A, U+1163D, U+1163F..U+11640, U+16AF0..U+16AF4,
14954         U+16B30..U+16B36, U+1BC9D..U+1BC9E, U+1BCA0..U+1BCA3, and
14955         U+1E8D0..U+1E8D6.
14956         (uc_width): Adjust nonspacing_table_ind boundary from 240 to 248.
14957         * tests/uniwidth/test-uc_width2.sh: Same updates as in
14958         lib/uniwidth/width.c.
14959         * all generated files under lib/uni* and tests/uni*: Regenerate.
14961 2015-01-14  Daiki Ueno  <ueno@gnu.org>
14963         libunistring: update to Unicode 6.3.0
14964         * lib/uniwbrk.in.h (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
14965         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support WB7a, WB7b, and WB7c.
14966         Update WB5, WB6, WB7, WB9, WB11, WB12, WB13a, and WB13b.
14967         * lib/uniwbrk/wbrktable.h (uniwbrk_table): Adjust table size.
14968         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support rule WB7a.
14969         Update WB5, WB9, WB10, WB13a, and WB13b.
14970         * tests/uniwbrk/test-uc-wordbreaks.c
14971         (wordbreakproperty_to_string): Support WBP_DQ, WBP_SQ, and WBP_HL.
14972         * lib/gen-uni-tables.c (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
14973         (UC_BIDI_PDI): New enumeration values.
14974         (bidi_category_byname): Support those enum values.
14975         (is_WBP_MIDNUMLET): Exclude 0x0027 (SINGLE QUOTE), which is now a
14976         dedicated property assigned.
14977         (is_property_case_ignorable): Check 0x0027.
14978         (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
14979         (get_wbp, debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
14980         (output_wbp): Support those enum values.
14981         * lib/unictype.in.h (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
14982         (UC_BIDI_PDI): New enumeration values.
14983         * lib/unictype/bidi_byname.gperf: Add those property names.
14984         * lib/uniwidth/width.c (nonspacing_table_data): Add U+061C,
14985         U+180E, U+1A1B, and U+2066..U+2069.
14986         * tests/uniwidth/test-uc_width2.sh: Same updates as in
14987         lib/uniwidth/width.c.
14988         * all generated files under lib/uni* and tests/uni*: Regenerate.
14990 2015-01-14  Daiki Ueno  <ueno@gnu.org>
14992         libunistring: update to Unicode 6.2.0
14993         * lib/unilbrk/lbrktables.h (LBP_RI): New enumeration value.
14994         (unilbrk_table): Adjust table size.
14995         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
14996         for LBP_RI.
14997         * lib/uniwbrk.in.h (WBP_RI): New enumeration value.
14998         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support rule WB13c.
14999         Normalize table index skipping ignored properties.
15000         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support WBP_RI.  Remove
15001         WBP_EXTEND and WBP_FORMAT, which are now computed without using
15002         the table.
15003         * lib/uniwbrk/wbrktable.h: Adjust table size.
15004         * lib/unigbrk.in.h (GBP_RI): New enumeration value.
15005         * lib/unigbrk/uc-is-grapheme-break.c (UC_IS_GRAPHEME_BREAK):
15006         Support rule GB8a.
15007         (UC_GRAPHEME_BREAKS_FOR, gb_table): Support GBP_RI.
15008         * tests/unigbrk/test-uc-is-grapheme-break.c
15009         (graphemebreakproperty_to_string): Support GBP_RI.
15010         * tests/uniwbrk/test-uc-wordbreaks.c
15011         (wordbreakproperty_to_string): Support WBP_RI.
15012         * lib/gen-uni-tables.c (LBP_RI): New enumeration value.
15013         (get_lbp, debug_output_lbp, fill_org_lbp, debug_output_org_lbp)
15014         (output_lbp): Support LBP_RI.  Adjust some characters changed from
15015         LBP_AL to LBP_ID.
15016         (output_lbp): Support LBP_RI.
15017         (WBP_RI): New enumeration value.
15018         (debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
15019         (output_wbp): Support WBP_RI.
15020         (GBP_RI): New enumeration value.
15021         (output_gbp_test, fill_org_gbp): Support GBP_RI.
15022         * all generated files under lib/uni* and tests/uni*: Regenerate.
15024 2015-01-14  Daiki Ueno  <ueno@gnu.org>
15026         libunistring: update to Unicode 6.1.0
15027         * lib/gen-uni-tables.c (output_joining_group): Switch to
15028         3-level table to accommodate joining groups defined with higher
15029         codepoint value.  Since there are only 88 groups defined in
15030         Unicode 7.0.0, use 7-bit packed format for level3 entries.
15031         (get_lbp): Update for Unicode 6.1.0.
15032         * lib/unictype/joininggroup_of.c (uc_joining_group): Adjust to use
15033         3-level table.
15034         * lib/unictype/joininggroup_byname.gperf: Add Rohingya Yeh
15035         joining group name.
15036         * lib/unictype/joininggroup_name.h: Likewise.
15037         * lib/unilbrk/lbrktables.h (LBP_HL): New enumeration value.
15038         (unilbrk_table): Adjust table size.
15039         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
15040         for LBP_HL.
15041         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0604,
15042         U+08E4..U+08FE, U+1BAB, U+1CF4, U+A674..U+A67B, U+A69F,
15043         U+AAEC..U+AAED, U+AAF6, U+11100..U+11102, U+11127..U+1112B,
15044         U+1112D..U+11134, U+11180..U+11181, U+111B6..U+111BE, U+116AB,
15045         U+116AD, U+116B0..U+116B5, U+116B7, U+16F8F..U+16F92.  Remove
15046         U+302E..U+302F.
15047         * tests/uniwidth/test-uc_width2.sh: Same updates as in
15048         lib/uniwidth/width.c.
15049         * all generated files under lib/uni* and tests/uni*: Regenerate.
15050         * modules/uni*/* (configure.ac): Bump minimum version to 0.9.5.
15052 2015-01-15  Daiki Ueno  <ueno@gnu.org>
15054         uniwbrk/u32-wordbreaks-tests: add conformance test
15055         * modules/uniwbrk/u32-wordbreaks-tests (Files): Add
15056         tests/uniwbrk/test-uc-wordbreaks.c,
15057         tests/uniwbrk/test-uc-wordbreaks.sh, and
15058         tests/uniwbrk/WordBreakTest.txt.
15059         (Makefile.am): Add uniwbrk/test-uc-wordbreaks.sh to $(TESTS), add
15060         test-uc-wordbreaks to $(check_PROGRAMS), and define
15061         test_uc_wordbreaks_SOURCES and test_uc_wordbreaks_LDADD.
15062         * tests/uniwbrk/test-uc-wordbreaks.sh: New file.
15063         * tests/uniwbrk/test-uc-wordbreaks.c: New file.
15065 2015-01-15  Daiki Ueno  <ueno@gnu.org>
15067         uniwbrk: ignore Extended/Format characters at BOL not BOS
15068         * lib/uniwbrk/u-wordbreaks.h (FUNC): Ignore Extend and Format
15069         characters if the previous character property is one of
15070         WBP_NEWLINE, WBP_CR, and WBP_LF.
15072 2015-01-11  Jim Meyering  <meyering@fb.com>
15074         test-strstr.c: avoid a trivial leak
15075         * tests/test-strstr.c (main): Free haystack.
15077         update-copyright: recognize groff's \(co marker
15078         * build-aux/update-copyright (circle_c_re): Also accept
15079         uses of \(co, as found in gzip.1.
15081 2015-01-08  Pádraig Brady  <P@draigBrady.com>
15083         maint.mk: fix compatibility with OS X nm
15084         * top/maint.mk (_gl_tight_scope): Use the -g option to
15085         show exported items rather than the -e option which is
15086         ignored on all platforms except OS X where it gives an error.
15087         Reported by Assaf Gordon.
15089 2015-01-07  KO Myung-Hun  <komh@chollian.net>
15091         localcharset: improve charset detection on OS/2
15092         Use system codepage when appropriate.  Map OS/2 codepages to
15093         GNU canonical charset names if possible.
15094         * lib/config.charset: Don't output aliases if "$os" is os2*.
15095         * lib/localcharset.c (get_charset_aliases) [OS2]: Hardcode the
15096         result for OS/2.
15097         (locale_charset) [OS2]: Use system codepage if codeset is omitted
15098         from the locale name which is neither "C" nor "POSIX".
15100 2015-01-06  Paul Eggert  <eggert@cs.ucla.edu>
15102         count-leading-zeros: use 64-bit intrinsics on 32-bit Windows
15103         This reverts the last patch but one, as it shouldn't be needed now
15104         that the typo is fixed.
15105         * lib/count-leading-zeros.h (count_leading_zeros_ll):
15106         * lib/count-trailing-zeros.h:
15107         * lib/count-one-bits.h:
15108         Go back to using 64-bit intrinsics.
15110         count-leading-zeros: fix pragma typos
15111         * lib/count-leading-zeros.h (_BitScanReverse, _BitScanReverse64):
15112         Fix typos in declaration of intrinsics when _MSC_VER.
15114 2015-01-06  Pádraig Brady  <P@draigBrady.com>
15116         count-leading-zeros: avoid 64-bit intrinsics on 32-bit Windows
15117         * lib/count-leading-zeros.h (count_leading_zeros_ll): Use 32 bit
15118         intrinsics in this case.
15119         * lib/count-trailing-zeros.h: Likewise.
15120         * lib/count-one-bits.h: Likewise.
15122 2015-01-06  Daiki Ueno  <ueno@gnu.org>
15124         uniname/uniname: update to Unicode 7.0.0
15125         To accommodate new characters added since Unicode 5.1.0, this
15126         changes the internal representation of codepoint ranges.
15127         Previously, we grouped codepoint ranges by manually assigned 4-bit
15128         tag, which only allowed 16 groups.  This removes the limitation by
15129         switching to binary search on a table.  For the detail rationale
15130         and the benchmark results, see:
15131         https://lists.gnu.org/r/bug-libunistring/2014-06/msg00001.html
15132         * lib/uniname/gen-uninames.lisp (unicode-char): Rename CODE member
15133         to INDEX, as it no longer represents a codepoint.
15134         (range): New struct.
15135         (main): Switch to intervals list from a bit-pattern based
15136         classification.
15137         * lib/uniname/uninames.h: Regenerate.
15138         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 7.0.0.
15139         * modules/uniname/base (configure.ac): Bump minimum version to
15140         0.9.5.
15141         * modules/uniname/uniname (configure.ac): Bump minimum version to
15142         0.9.5.
15144 2015-01-05  Eric Blake  <eblake@redhat.com>
15146         doc: update INSTALL from autoconf
15147         * doc/install.texi: Resync from autoconf.
15148         * doc/INSTALL: Reflect recent autoconf update.
15149         * doc/INSTALL.ISO: Likewise.
15150         * doc/INSTALL.UTF-8: Likewise.
15152         stdio: fix use of PRIdMAX on modern mingw
15153         * m4/stdio_h.m4 (gl_STDIO_H): Probe for printf flavor via inttypes.
15154         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): Use result
15155         to work with modern mingw.
15157 2015-01-05  Daniel P. Berrange  <berrange@redhat.com>  (tiny change)
15159         pthread: detect git mingw builds with only partial pollution
15160         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for additional
15161         pollution, as seen temporarily in Fedora 21.
15163 2015-01-04  Paul Eggert  <eggert@cs.ucla.edu>
15165         lib-symbol-versions: cache script check
15166         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT):
15167         Cache the check for linker version scripts.
15168         From a suggestion by Christophe Curis in:
15169         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00011.html
15171 2015-01-04  Benno Schulenberg  <bensberg@justemail.net>
15173         maint: fix grammar nits in propername (trivial change)
15174         * lib/propername.h: Remove a mistaken comma and a duplicate "from",
15175         and use an adequate verb and tense.
15177 2015-01-02  Ludovic Courtès  <ludo@gnu.org>
15179         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
15180         * module/gendocs: Add 'doc/gendocs_template_min'.
15182         * build-aux/gendocs.sh: Change email addresses and upstream URLs
15183         from to Gnulib's.
15184         (scripturl, templateurl): Adjust accordingly.
15186 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
15188         gendocs: copyright date and version fix
15189         Reported by Karl Berry in:
15190         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00002.html
15191         * build-aux/gendocs.sh, doc/gendocs_template, doc/gendocs_template_min:
15192         Fix copyright date.
15193         * build-aux/gendocs.sh (scriptversion): Update.
15195 2015-01-01  Karl Berry  <karl@gnu.org>
15197         * doc/install.texi,
15198         * build-aux/mdate-sh,
15199         * build-aux/depcomp,
15200         * build-aux/config.guess,
15201         * build-aux/config.sub,
15202         * build-aux/ar-lib,
15203         * build-aux/compile: revert copyright updates (some from last
15204         year) in slaved files.
15206 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
15208         version-etc: new year
15209         * doc/gnulib.texi:
15210         * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright date.
15211         * all files: Run 'make update-copyright'.
15213 2014-12-30  Pádraig Brady  <P@draigBrady.com>
15215         xstrtol: ensure errno is reset
15216         Since commit 3bf75404, on 26-09-1998, errno may not have been reset.
15217         Noticed with a spurious coreutils test failure on Darwin 14.0.0.
15219         * lib/xstrtol.c (__xstrtol): Always reset errno before returning.
15221 2014-12-28  Paul Eggert  <eggert@cs.ucla.edu>
15223         utimens: fix dependency typo
15224         * modules/utimens (Depends-on): Remove 'assure'.
15225         This bug was introduced in the recent 'assure' patch.
15227 2014-12-22  Eric Blake  <eblake@redhat.com>
15229         docs: mention why libgen.h is bad
15230         * doc/posix-headers/libgen.texi (libgen.h): Refer to dirname module.
15232 2014-12-20  Paul Eggert  <eggert@cs.ucla.edu>
15234         assure: new module
15235         This works better than 'assert' when compiling with -DNDEBUG,
15236         as it avoids some compiler diagnostics in that case.
15237         Reported by Norihiro Tanaka in:
15238         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00215.html
15239         * MODULES.html.sh (func_all_modules): Add 'assure'.
15240         * lib/assure.h, modules/assure: New files.
15241         * lib/chdir-long.c, lib/cycle-check.c, lib/fchdir.c, lib/fts.c:
15242         * lib/poll.c, lib/savewd.c, lib/xstrtol.c:
15243         Prefer 'assure' to 'assert'.
15244         * lib/utimens.c: Stop using 'assert'; it wasn't helpful.
15245         * modules/chdir-long, modules/cycle-check, modules/fchdir:
15246         * modules/poll, modules/savewd, modules/utimens, modules/xstrtol:
15247         Depend on 'assure'.
15249 2014-12-16  Paul Eggert  <eggert@cs.ucla.edu>
15251         stdalign: port better to HP compilers
15252         * m4/stdalign.m4 (gl_STDALIGN_H): Try the test if __HP_cc or
15253         __HP_aCC are nonzero, to be consistent with the 2014-01-20 patch.
15255         stdalign: work around Apple GCC 4.0 bug
15256         Reported by David Fang in:
15257         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00194.html
15258         * lib/stdalign.in.h (_Alignas):
15259         * m4/stdalign.m4 (gl_STDALIGN_H):
15260         Do not use aligned attribute with GCC 4.0 on Apple.
15262 2014-12-16  Pádraig Brady  <P@draigBrady.com>
15264         getcwd: fix test failure on OS X 10.9
15265         * m4/getcwd-path-max.m4: Avoid the replacement if it
15266         won't be effective due to the PATH_MAX limitation of lstat().
15267         (gl_cv_func_getcwd_path_max): Adjust to indicate this case.
15268         * m4/getcwd.m4 (gl_FUNC_GETCWD): Define HAVE_GETCWD_SHORTER
15269         for this case for use in tests, and also exclude this
15270         case when setting REPLACE_GETCWD.
15271         * tests/test-getcwd.c (test_long_name): Restrict the
15272         tested path length so that lstat() will not be passed
15273         a path greater than PATH_MAX.
15274         Also key a test condition on HAVE_OPENAT_SUPPORT rather
15275         than AT_FDCWD, since the latter is set unconditionally
15276         since Sep 2009 in commit 52c658e9.
15278 2014-12-14  Tim Rühsen  <tim.ruehsen@gmx.de>
15280         parse-datetime: avoid a compiler warning with byacc (trivial)
15281         * lib/parse-datetime.y (yylex): Use the same prototype in the
15282         function definition as the declaration, to avoid a -Wstrict-prototypes
15283         warning seen when using byacc.
15285 2014-12-12  Daiki Ueno  <ueno@gnu.org>
15287         unicase/locale-language-tests: fix LOCALE_FR test
15288         * tests/unicase/test-locale-language.sh: Really use $LOCALE_FR for
15289         a French locale with traditional encoding.
15290         Reported by umerqayam in:
15291         http://lists.gnu.org/r/bug-libunistring/2014-12/msg00000.html
15293 2014-12-12  Paul Eggert  <eggert@cs.ucla.edu>
15295         stddef: support C11's max_align_t
15296         * doc/posix-headers/stddef.texi (stddef.h): Document max_align_t.
15297         * lib/stddef.in.h (_@GUARD_PREFIX@_STDDEF_H) [__need_wint_t]:
15298         Do not undef, as that might cause max_align_t to be defined twice.
15299         Instead, change use to check for _GL_STDDEF_WINT_T too.
15300         (max_align_t) [!HAVE_MAX_ALIGN_T]: New decl.
15301         * m4/stddef_h.m4 (gl_STDDEF_H, gl_STDDEF_H_DEFAULTS):
15302         Check for max_align_t.
15303         * modules/stddef (stddef.h): Substitute HAVE_MAX_ALIGN_T.
15304         * modules/stddef-tests (Depends-on): Add stdalign.
15305         * tests/test-stddef.c: Test max_align_t.
15307 2014-12-11  Daiki Ueno  <ueno@gnu.org>
15309         unistd: fix iOS check conditional
15310         On Mac OS X 10.8, the TARGET_* macros are unconditonally defined
15311         as 0 or 1 in <TargetConditionals.h>, and the previous check always
15312         yielded true on non-iOS environment.
15313         * lib/unistd.in.h (environ) [__APPLE__]: Check the values of
15314         TARGET_OS_IPHONE and TARGET_IPHONE_SIMULATOR, instead of whether
15315         they are defined.
15317 2014-12-09  Paul Eggert  <eggert@cs.ucla.edu>
15319         posixtm: avoid compiler warning in a better way
15320         * lib/posixtm.c (IF_LINT): Remove.
15321         (year, posix_time_parse):
15322         Return true (not 0) if successful.  All callers changed.
15323         (posix_time_parse): Simplify to pacify GCC without need for IF_LINT.
15325 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
15327         * lib/relocatable.c (relocate): Prepend $UNIXROOT to pathname if it is
15328         started with '/' on EMX.
15330 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
15332         freopen: workaround freopen() on OS/2 kLIBC
15333         * lib/freopen.c (rpl_freopen): Workaround.
15334         * m4/freopen.m4: Add os2* case.
15336         get_shared_library_fullname: port to EMX
15337         * lib/relocatable.c: Define strcmp and strncmp to stricmp and strnicmp
15338         on EMX, respectively.
15339         (_DLL_InitTerm): New on EMX.
15340         (get_shared_library_fullname): Implement on EMX.
15342         find_executable: port to EMX
15343         * lib/progreloc.c (find_executable): Implement on EMX.
15345         sched: check struct sched_param in spawn.h as well
15346         * lib/sched.in.h: Include spawn.h on kLIBC.
15347         * lib/sched_h.m4: Check struct sched_param in spawn.h as well.
15349 2014-12-08  Martin Kletzander  <mkletzan@redhat.com>  (tiny change)
15351         bootstrap: Allow perl modules in $buildreq
15352         * build-aux/bootstrap: Add case for perl modules.
15354 2014-12-08  Pádraig Brady  <P@draigBrady.com>
15356         apply _GL_ATTRIBUTE_PURE to some inline functions
15357         clang 3.4.2 flagged these inline functions as pure
15358         * lib/savewd.h (savewd_errno): Set _GL_ATTRIBUTE_PURE.
15359         * lib/sig-handler.h (get_handler): Likewise.
15360         * lib/stat-time.h (get_stat_{a,c,m,birth}time{,_ns}): Likewise.
15361         * lib/timespec.h (timespec_cmp, timespec_sign): Likewise.
15363 2014-12-06  Pádraig Brady  <P@draigBrady.com>
15365         vasnprintf: fix potential use after free
15366         * lib/vasnprintf.c (VASNPRINTF): Fix free-memory read,
15367         flagged by clang-analyzer 3.4.2.
15369 2014-12-05  Pádraig Brady  <P@draigBrady.com>
15371         filevercmp, posixtm: avoid compiler warnings with -O3
15372         * lib/filevercmp.h (filevercmp): Tag with _GL_ATTRIBUTE_PURE
15373         * lib/posixtm.c: (IF_LINT): Define.
15374         (posix_time_parse): Use it to void a "may be used uninitialized"
15375         warning, seen only with -O3.
15377 2014-12-05  Bruno Haible  <bruno@clisp.org>
15379         Fix LDBL80_WORDS macro on big endian platforms.
15380         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Add missing parenthesis in
15381         LDBL80_WORDS macro.
15382         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
15383         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
15384         * tests/test-isfinite.c (test_isfinitel): Likewise.
15385         * tests/test-isinf.c (test_isinfl): Likewise.
15386         * tests/test-isnan.c (test_long_double): Likewise.
15387         * tests/test-isnanl.h (main): Likewise.
15388         * tests/test-snprintf-posix.h (LDBL80_WORDS): Add missing parenthesis.
15389         * tests/test-sprintf-posix.h (LDBL80_WORDS): Likewise.
15390         * tests/test-vasnprintf-posix.c (LDBL80_WORDS): Likewise.
15391         * tests/test-vasprintf-posix.c (LDBL80_WORDS): Likewise.
15392         Reported by Pádraig Brady.
15394 2014-12-02  KO Myung-Hun  <komh78@gmail.com>
15396         git-version-gen: do not print new line characters
15397         * build-aux/git-version-gen: Use printf instead of echo and tr.
15399         gnulib-tool: recognize x:* as an absolute path
15400         * gnulib-tool (func_gnulib_dir): Add ?:* case.
15401         (func_relconcat): Likewise.
15403 2014-12-02  Andrei Borzenkov  <arvidjaar@gmail.com>
15405         argp: avoid extraneous translation and mem leak with empty pre doc
15406         * lib/argp-help.c (argp_doc): Never translate the empty string,
15407         when "\v" is the first or last character of the string, as that
15408         has a reserved meaning to return the header info from a po file.
15409         This also fixes a small memory leak in the !post case.
15410         The issue can be seen with this command for example:
15411         LC_MESSAGES=en_US grub2-mknetdir --help
15413 2014-11-27  Daiki Ueno  <ueno@gnu.org>
15415         uniname/uniname-tests: skip if system's libunistring is used
15416         * modules/uniname/uniname-tests (Makefile.am): Skip test if
15417         uniname/uniname module is not compiled.
15419 2014-11-27  Pádraig Brady  <P@draigBrady.com>
15421         printf: fix configure check on big endian systems
15422         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Add missing bracket.
15424 2014-11-22  Daiki Ueno  <ueno@gnu.org>
15426         pipe-filter-gi, pipe-filter-ii: port to AIX
15427         On AIX 7.1, 'select' is defined as static and cannot be referred
15428         to from inline function.
15429         * lib/pipe-filter-aux.h (nointr_select): Remove, manually expand
15430         the definition...
15431         * lib/pipe-filter-gi.c (filter_loop): ...here, and...
15432         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): ...here.
15434 2014-11-20  Paul Eggert  <eggert@cs.ucla.edu>
15436         gitlog-to-changelog: add --until
15437         * build-aux/gitlog-to-changelog: Support new --until option.
15438         Need described by Eli Zaretskii in: http://bugs.gnu.org/19113
15440 2014-11-14  Paul Eggert  <eggert@cs.ucla.edu>
15442         extern-inline: update commentary about GCC bugs
15443         * m4/extern-inline.m4: Add another GCC bug number to comments.
15445 2014-11-13  Daiki Ueno  <ueno@gnu.org>
15447         gen-uni-tables: untabify
15448         * lib/gen-uni-tables.c: Untabify.
15450 2014-11-13  Daiki Ueno  <ueno@gnu.org>
15452         gen-uni-tables: check out-of-range values added to 3-level tables
15453         * lib/gen-uni-tables.c (output_category, output_bidi_category)
15454         (output_joining_type, output_ident_category): Check out-of-range
15455         values added to 3-level tables.
15457 2014-11-13  Daiki Ueno  <ueno@gnu.org>
15459         gen-uni-tables: utilize 'assert'
15460         * lib/gen-uni-tables.c: Include <assert.h>.
15461         (output_category, output_combclass, output_decimal_digit_test)
15462         (output_decimal_digit, output_digit_test, output_digit)
15463         (output_numeric, get_mirror_value, fill_properties)
15464         (fill_property30, is_property_alphabetic)
15465         (is_property_default_ignorable_code_point)
15466         (is_property_uppercase, is_property_lowercase)
15467         (is_property_cased, is_property_case_ignorable)
15468         (is_property_changes_when_lowercased, is_property_iso_control)
15469         (is_property_math, fill_arabicshaping, output_joining_group)
15470         (fill_scripts, fill_blocks, output_lbp, fill_org_wbp)
15471         (output_wbp, fill_org_gbp, get_decomposition)
15472         (output_decomposition, fill_composition_exclusions)
15473         (debug_output_composition_tables, output_composition_tables)
15474         (redistribute_casefolding_rules, output_casing_rules): Use
15475         'assert (EXPR);' instead of 'if (!EXPR) abort ();' for better error
15476         reporting.
15478 2014-11-13  Daiki Ueno  <ueno@gnu.org>
15480         gen-uni-tables: cosmetic improvements
15481         * lib/gen-uni-tables.c: Escape newlines in the Emacs file local
15482         variables specification.
15483         (is_outdigit): Remove unused function.
15485 2014-11-12  Jeroen Roovers  <jer@gentoo.org>  (tiny change)
15487         fcntl-h-tests: port to PA-RISC GNU/Linux
15488         * tests/test-fcntl-h.c (main): Check O_SYNC is different from O_DSYNC.
15490 2014-11-10  Paul Eggert  <eggert@cs.ucla.edu>
15492         fts: port to C89
15493         Problem reported for MSVC 16 by Gisle Vanem in:
15494         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00027.html
15495         * lib/fts.c (fts_build): Avoid declaration before statement.
15497 2014-11-06  Paul Eggert  <eggert@cs.ucla.edu>
15499         unistd: port to iOS
15500         Problem reported by André Klitzing in:
15501         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00013.html
15502         * lib/unistd.in.h (environ): Do not include crt_externs.h on iOS.
15504 2014-11-05  Paul Eggert  <eggert@cs.ucla.edu>
15506         obstack: do not reject malloc-style obstack_chunkfun, obstack_freefun
15507         Problem reported by Alan Modra in:
15508         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00007.html
15509         * lib/obstack.h (obstack_chunkfun, obstack_freefun):
15510         Always cast the function arg, reverting this part of the previous
15511         change.
15513 2014-11-04  Paul Eggert  <eggert@cs.ucla.edu>
15515         obstack: avoid potentially-nonportable function casts
15516         * lib/obstack.c (CALL_CHUNKFUN, CALL_FREEFUN):
15517         Remove, replacing with ...
15518         (call_chunkfun, call_freefun): New static functions.
15519         All uses changed.  Avoid potentially-nonportable casts.
15520         (chunkfun_type, freefun_type): Remove typedefs; no longer used.
15521         (_obstack_begin_worker): Omit last two args, since they
15522         rely on potentially-nonportable casts.  All callers changed.
15523         * lib/obstack.h (_OBSTACK_CAST): New macro.
15524         Use it everywhere the old API used a potentially-nonportable cast.
15525         The new API doesn't cast.
15526         (struct obstack): Use unions rather than requiring
15527         potentially-nonportable casts.
15528         (obstack_chunkfun, obstack_freefun): Return void.
15530 2014-11-03  Alan Modra  <amodra@gmail.com>
15532         obstack: fix macro return values
15533         * lib/obstack.h (obstack_next_free): Return void *.
15534         (obstack_1grow_fast, obstack_blank_fast): Return void.
15535         For __GNUC__ macros:
15536         (obstack_1grow, obstack_blank): Remove now unnecessary (void) 0.
15537         For !__GNUC__ macros:
15538         (obstack_make_room, obstack_grow, obstack_grow0)
15539         (obstack_ptr_grow_fast, obstack_int_grow_fast): Return void.
15541 2014-11-03  Paul Eggert  <eggert@cs.ucla.edu>
15543         obstack: do not assume system-supplied obstack is size_t safe
15544         * m4/obstack.m4: New file.
15545         * modules/obstack (Files): Add it.
15547         obstack: port to platforms that #define __alignof__
15548         * lib/obstack.c: Include <alignof.h> if !defined __alignof__,
15549         not if !_LIBC.  We don't know of any platforms that #define
15550         __alignof__, but it might be useful in tests.  Conversely,
15551         glibc assumes GCC.
15553 2014-11-03  Pádraig Brady  <P@draigBrady.com>
15555         linkat: don't unconditionally replace on GNU/Linux
15556         * m4/linkat.m4 (gl_FUNC_LINKAT): The compile check for AT_SYMLINK_FOLLOW
15557         was redundant for a few reasons.  It was present to support compiling
15558         on new systems but running on the old narrow window of Linux 2.6.1[67].
15559         It setup and cleaned up test files which weren't actually used.
15560         On non __linux__ it compile tested AT_SYMLINK_FOLLOW, but that is
15561         implicit in the following check.
15563 2014-11-03  Pádraig Brady  <P@draigBrady.com>
15565         linkat: wrap to handle symlinks on OS X 10.10
15566         * m4/linkat.m4 (gl_FUNC_LINKAT): linkat() is available on Yosemite
15567         but not usable because it doesn't support creating hardlinks
15568         to symlinks.  Therefore add a generic test for this capability
15569         and fallback to our emulation if linkat() fails with ENOTSUP.
15571 2014-11-02  Paul Eggert  <eggert@cs.ucla.edu>
15573         open, openat: document nonstandard FreeBSD, NetBSD O_NOFOLLOW errno
15574         * doc/posix-functions/open.texi (open):
15575         * doc/posix-functions/openat.texi (openat):
15576         Document that these functions do not set errno to ELOOP when
15577         a symlink is opened with O_NOFOLLOW.
15579 2014-10-31  Paul Eggert  <eggert@cs.ucla.edu>
15581         obstack: add NEWS entry for recent incompatible changes
15582         * NEWS: Describe recent changes.
15584 2014-10-30  Pádraig Brady  <P@draigBrady.com>
15586         mountlist: don't use libmount to decide on dummy/remote
15587         * lib/mountlist.c (read_file_system_list): Don't use the libmount
15588         routines to determine whether a file system is dummy or remote,
15589         as they're not currently compatible.  For example the remoteness
15590         is determined on file system type (for which the list seems incomplete),
15591         rather than simply checking for a ':' in the device name.
15592         Also libmount currently determines that 'tmpfs' is a dummy file system
15593         even though it has associated storage.
15595 2014-10-29  Paul Eggert  <eggert@cs.ucla.edu>
15597         obstack: prefer __alignof__ to alignof
15598         This is for portability to pre-4.7 GCC when compiling glibc.
15599         See Joseph S. Myers in:
15600         http://sourceware.org/ml/libc-alpha/2014-10/msg00703.html
15601         * lib/obstack.c (__alignof__) [!_LIBC && !__GNUC__]:
15602         New macro, defined by including and using <alignof.h>.
15603         (MAX): New macro.
15604         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Redefine in terms of these.
15605         Do not use enums as they are not portable to some broken compilers.
15606         * modules/obstack (Depends-on): Depend on alignof, not stdalign.
15608         obstack: prefer alignof to calculating alignments by hand
15609         * lib/obstack.c: Include <stdalign.h>.
15610         (struct fooalign): Remove.
15611         (DEFAULT_ALIGNMENT): Use alignof rather than the old offsetof hack.
15612         * modules/obstack (Depends-on): Add stdalign.
15614 2014-10-28  Paul Eggert  <eggert@cs.ucla.edu>
15616         obstack: use size_t alignments and check for overflow
15617         * lib/obstack.c, lib/obstack.h (_obstack_begin, _obstack_begin_1):
15618         * lib/obstack.c (_obstack_begin_worker, _obstack_newchunk):
15619         * lib/obstack.h (struct obstack.alignment_mask):
15620         Use _OBSTACK_SIZE_T, not int, for alignments.
15621         * lib/obstack.c (_obstack_newchunk): Fail if the size calculation
15622         overflows, e.g., when adding the alignment.
15624 2014-10-29  Alan Modra  <amodra@gmail.com>
15626         obstack: 64-bit obstack support, part 3
15627         This finally enables full 64-bit obstack support.  The glibc
15628         shared library specific code is removed from obstack.c too, and
15629         the error handling code conditionally compiled under control of
15630         another macro, _OBSTACK_NO_ERROR_HANDLER.
15631         * lib/obstack.h: Include string.h earlier.
15632         (_OBSTACK_INTERFACE_VERSION): Define.
15633         (_OBSTACK_SIZE_T, _CHUNK_SIZE_T): Define as size_t for version 2.
15634         * lib/obstack.c: Don't include shlib-compat.h.
15635         (OBSTACK_INTERFACE_VERSION): Delete.
15636         (_OBSTACK_ELIDE_CODE): Rename from ELIDE_CODE.  Define when version 1
15637         glibc code is compatible with version 2.  Don't include stdio.h for
15638         __GNU_LIBRARY.
15639         (obstack_exit_failure, print_and_abort, obstack_alloc_failed_handler):
15640         Omit when _OBSTACK_NO_ERROR_HANDLER defined.  Include stdio.h here.
15641         (_obstack_compat, _obstack, _obstack_newchunk, obstack_free): Delete
15642         glibc shared library specific source.
15644         obstack: 64-bit obstack support, part 2
15645         This gets us 4G obstack support, without changing ABI
15646         compatibility, apart from possibly introducing some
15647         signed/unsigned comparison warnings in code that uses obstack.h.
15648         a) Replace "int" size parameters, return values, and macro local vars
15649            with _OBSTACK_SIZE_T, an "unsigned int" for now.
15650         b) Make obstack.chunk_size a _CHUNK_SIZE_T, an "unsigned long" for now.
15651         c) Make all obstack macros checking available room use obstack_room.
15652            "next_free + desired > chunk_limit" may wrap the lhs for chunks
15653            allocated near the top of memory.
15654         d) Use unsigned comparisons, and macro locals to support >2G on 32-bit.
15655         * lib/obstack.h (_OBSTACK_SIZE_T): Define.  Use throughout
15656         in place of "int" size parameters, return values and local vars.
15657         (_CHUNK_SIZE_T): Define.
15658         (struct obstack): Make chunk_size a _CHUNK_SIZE_T.  Make temp
15659         union use an _OBSTACK_SIZE_T integer type.
15660         For __GNUC__ versions of the following macros...
15661         (obstack_room): Rename local var.
15662         (obstack_make_room): Use obstack_room.
15663         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
15664         obstack_int_grow, obstack_blank): Likewise.
15665         (obstack_finish): Use unsigned comparison when comparing aligned
15666         next_free against chunk_limit.
15667         (obstack_free): Cast OBJ to remove possible const qualifier.
15668         For !__GNUC__ versions of the following macros...
15669         (obstack_make_room): Use obstack_room.
15670         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
15671         obstack_int_grow, obstack_blank): Likewise.
15672         (obstack_finish): Use unsigned comparision when comparing aligned
15673         next_free against chunk_limit.
15674         (obstack_free): Use temp.p and same comparisons as __GNUC__ version.
15675         * lib/obstack.c (_obstack_begin_worker): Make "size" parameter
15676         _OBSTACK_SIZE_T.
15677         (_obstack_begin, _obstack_begin_1): Likewise.
15678         (_obstack_newchunk): Likewise for length parameter.  Use size_t locals.
15679         (_obstack_memory_used): Return and use _OBSTACK_SIZE_T local.
15681         obstack: 64-bit obstack support, part 1
15682         a) Correct calls to alloc function, to use a size_t arg.  "long" is
15683            just wrong on targets like x86_64-mingw64 where "long" is 32 bits
15684            and "size_t" 64 bits.
15685         b) Consolidate _obstack_begin and _obstack_begin1 code.
15686         * lib/obstack.h (struct obstack <chunkfun>): Correct prototype to
15687         use "size_t" rather than "long".
15688         (_obstack_begin, _obstack_begin1): Likewise.
15689         (obstack_init, obstack_begin, obstack_specify_allocation_with_arg,
15690         obstack_chunkfun): Update alloc function casts.
15691         * lib/obstack.c (CALL_CHUNKFUN): Update chunkfun cast.
15692         (chunkfun_type, freefun_type): New typdefs.
15693         (_obstack_begin_worker): Split out from ..
15694         (_obstack_begin, _obstack_begin_1): ..here.
15696         obstack: tidy part 2
15697         a) Don't be concerned about "not polluting the namespace with stddef.h
15698            symbols" in obstack.h, since gnulib string.h includes stddef.h
15699            anyway, and it seems unlikely that anyone would care.
15700         b) Don't roll our own slow memcpy in _obstack_newchunk.
15701         c) Rename obstack_free to _obstack_free.  This makes the naming
15702            consistent with other obstack functions and obviates the need for
15703            __obstack_free.  Ancient obstack.c defined both obstack_free and
15704            _obstack_free.  We continue to do that for _LIBC via an alias.
15705         d) Miscellaneous macro fixes.  The expression used to test for gcc-2.8
15706            is clever, but nowadays gcc warns on undefined macros.  You'll get
15707            an undefined macro warning if simulating an old gcc with -U__GNUC__
15708            -U__GNUC_MINOR__ -D__GNUC__=1.
15709         * lib/obstack.h: Include stddef.h unconditionally.  Formatting fixes.
15710         (PTR_INT_TYPE): Delete, replace with ptrdiff_t.
15711         (__obstack_free): Delete, update refs.
15712         (_obstack_free): Rename from obstack_free.
15713         (__extension__): Avoid undefined macro warning for __GNUC_MINOR__.
15714         (obstack_object_size, obstack_room): Parenthesise !__GNUC__ versions.
15715         * lib/obstack.c: Don't include stddef.h.
15716         (COPYING_UNIT): Delete.
15717         (_obstack_begin): Formatting fix.
15718         (_obstack_newchunk): Use memcpy to move existing object to new chunk.
15719         (_obstack_free): Rename from __obstack_free, update alias.  Move
15720         undef of obstack_free to where it is needed.
15722         obstack: tidy part 1
15723         a) Rename temp fields.  temp.tempint and temp.tempptr just looks ugly
15724            to me, and result in overlong lines after later patches.
15725         b) Move error handling code, to avoid a forward declaration and to
15726            simplify later patches in this series.
15727         * lib/obstack.h (struct obstack <temp>): Rename fields of union
15728         and update all uses.
15729         * lib/obstack.c: Include stdlib.h earlier.
15730         (obstack_exit_failure, obstack_alloc_failed_handler): Move later
15731         in file.
15732         (print_and_abort): Remove now redundant forward declaration.
15734 2014-10-24  Paul Eggert  <eggert@cs.ucla.edu>
15736         socketlib, sockets, sys_socket: Use AC_REQUIRE to pacify autoconf.
15737         Without this change, in bleeding-edge fileutils Autoconf complains
15738         that gl_SOCKETLIB etc. are AC_REQUIREd after being invoked.
15739         * modules/socketlib (configure.ac): AC_REQUIRE gl_SOCKETLIB.
15740         * modules/sockets (configure.ac): AC_REQUIRE gl_SOCKETS.
15741         * modules/sys_socket (configure.ac): AC_REQUIRE gl_HEADER_SYS_SOCKET.
15743 2014-10-24  Daiki Ueno  <ueno@gnu.org>
15745         iconv: avoid false detection of non-working iconv
15746         The INBUF arguments of iconv can be either 'const char **'
15747         or 'char **'.  If CC is g++, the difference causes a compile error
15748         and thus leads to a false detection of non-working iconv.
15749         Reported by Eli Zaretskii and Werner LEMBERG in:
15750         <https://lists.gnu.org/r/bug-gnulib/2014-10/msg00023.html>.
15751         * m4/iconv.m4 (AM_ICONV_LINK): Try all possible argument types of
15752         iconv.  Bump serial number.
15754 2014-10-23  Pádraig Brady  <P@draigBrady.com>
15756         bootstrap: print more diagnostics for missing programs
15757         * build-aux/bootstrap: only suppress stderr when checking for
15758         alternative program names.  This supports programs issuing non
15759         standard error messages.
15761 2014-10-23  Pádraig Brady  <P@draigBrady.com>
15763         bootstrap: only update the gnulib submodule
15764         * build-aux/bootstrap: Restrict the "submodule update" command
15765         to the gnulib path.
15767 2014-10-18  Paul Eggert  <eggert@cs.ucla.edu>
15769         symlinkat: port to AIX 7.1
15770         * doc/posix-functions/symlinkat.texi (symlinkat):
15771         Mention AIX porting problem.
15772         * lib/symlinkat.c: Always include errno.h.
15773         (rpl_symlinkat) [HAVE_SYMLINKAT]: New function.
15774         * lib/unistd.in.h (symlinkat): Add replacement machinery.
15775         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Check symlinkat behavior.
15776         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_SYMLINKAT.
15777         * modules/symlinkat (Depends-on): Add fstatat if REPLACE_SYMLINKAT.
15778         (configure.ac): Also compile replacement if REPLACE_SYMLINKAT.
15779         * modules/unistd (unistd.h): Substitute REPLACE_SYMLINKAT.
15781         readlinkat: port to AIX 7.1
15782         * doc/posix-functions/readlink.texi (readlink):
15783         * doc/posix-functions/readlinkat.texi (readlinkat):
15784         Mention AIX porting problem.
15785         * lib/readlinkat.c (rpl_readlinkat) [HAVE_READLINKAT]:
15786         New function.
15787         * lib/unistd.in.h (readlinkat): Add replacement machinery.
15788         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check readlinkat signature.
15789         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_READLINKAT.
15790         * modules/readlinkat (configure.ac): Also compile replacement
15791         if REPLACE_READLINKAT.
15792         * modules/unistd (unistd.h): Substitute REPLACE_READLINKAT.
15794 2014-10-12  Karl Berry  <karl@gnu.org>
15796         * doc/posix-functions/dirname.texi: remove spurious {.
15798 2014-09-28  Ben Pfaff  <blp@cs.stanford.edu>
15800         basename, dirname: Improve documentation.
15801         * doc/posix-functions/basename.texi: Mention dirname module and
15802         base_name() function.
15803         * doc/posix-functions/dirname.texi: Mention dir_name() and
15804         mdir_name() functions.
15805         Suggested by Werner LEMBERG <wl@gnu.org>.
15807 2014-09-24  Jim Meyering  <meyering@fb.com>
15809         exclude: declare exclude_patopts static
15810         * lib/exclude.c (exclude_patopts): Declare static,
15811         to avoid triggering a -Wmissing-prototypes warning.
15812         The alternative (declaring it in the .h file) would
15813         require publicizing the private "struct patopts".
15815 2014-09-21  Werner Lemberg  <wl@gnu.org>
15817         dirname: support compilation with C++
15818         * lib/dirname.h: Add necessary C linkage declarations.
15820 2014-09-16  Paul Eggert  <eggert@cs.ucla.edu>
15822         qsort_r: include <config.h>
15823         Problem reported by Tom G. Christensen in:
15824         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00071.html
15825         * lib/qsort.c [!_LIBC]: Include <config.h> first.
15827 2014-09-16  Dylan Cali  <calid1984@gmail.com>
15829         avltree-list: avoid compiler warnings (trivial)
15830         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
15831         -Werror=suggest-attribute=pure.
15832         * lib/gl_array_list.c: Likewise.
15833         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Add extern
15834         declaration to avoid -Werror=missing-prototypes.  This is not added
15835         to a header as only exported for tests.  Add (void) to the
15836         check_invariants() call to indicate we're discarding the result
15837         in this context which avoids -Werror=unused-value.  Note we don't
15838         use ignore_value here to avoid a dependency as we know we'll not
15839         be adding __attribute__((warn_unused_result)) to check_invariants().
15840         Add _GL_ATTRIBUTE_CONST to avoid -Werror=suggest-attribute=const.
15842 2014-09-15  Paul Eggert  <eggert@cs.ucla.edu>
15844         qsort_r: new module, for GNU-style qsort_r
15845         * m4/qsort_r.m4: New file.  Forgot to add this earlier.
15847 2014-09-15  Werner LEMBERG  <wl@gnu.org>
15849         strerror_r-posix: support compilation with C++
15850         * lib/strerror_r.c: Add necessary C linkage declarations.
15852 2014-09-11  Johannes Zarl  <johannes.zarl@jku.at>
15854         fcntl-h: fix compilation with Intel C++ compiler (trivial)
15855         * lib/fcntl.in.h: ICC has the same issue as GCC <= 4.2.
15857 2014-09-09  Fridolin Pokorny  <fpokorny@redhat.com>
15859         mountlist: use /proc/self/mountinfo when available
15860         Use libmount to propagate device IDs provided by Linux in
15861         /proc/self/mountinfo.  This will give more accurate output when
15862         using df in chroot'ed environments as the device IDs are not
15863         determined by stat() which may be inaccurate within the chroot.
15864         * lib/mountlist.c (read_file_system_list): Use the libmount routines
15865         from util-linux to parse "/proc/self/mountinfo" or fall back to
15866         standard getmntent() processing.
15867         * m4/ls-mntd-fs.m4: Check for libmount only when 1-argument
15868         getmntent() is used, as is the case on GNU/Linux.
15870 2014-09-07  Eric Wong  <normalperson@yhbt.net>
15872         users.txt: add cmogstored
15873         cmogstored has used gnulib since the beginning in 2012 to support
15874         GNU/Linux, FreeBSD, and GNU/kFreeBSD.
15876 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
15878         Trivial change.
15879         * gnulib-tool: Use same options as build-aux/bootstrap to download
15880         PO files.
15882 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
15884         Trivial change.
15885         * gnulib-tool: Fallback to wget when rsync of PO files fails.
15887 2014-09-04  Eric Blake  <eblake@redhat.com>
15889         maintainer-makefile: add syntax check for useless ';;'
15890         * top/maint.mk (sc_prohibit_double_semicolon): New rule.
15892 2014-09-04  Paul Eggert  <eggert@cs.ucla.edu>
15894         pthread, pthread_sigmask, threadlib: port to Ubuntu 14.04
15895         Problem reported by Assaf Gordon in:
15896         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
15897         Apparently Ubuntu is doing some fancy link-time optimization
15898         that doesn't work with -lpthread but does work with -pthread.
15899         Work around the bug by preferring -pthread to -lpthread.
15900         * m4/pthread.m4 (gl_PTHREAD_CHECK):
15901         * m4/threadlib.m4 (gl_THREADLIB_BODY): Prefer -pthread to -lpthread.
15902         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
15903         Treat -pthread like -lpthread.
15905 2014-09-04  Eric Blake  <eblake@redhat.com>
15907         error: drop spurious semicolon
15908         * lib/error.c (__error_at_line): Fix ';;'.
15910 2014-09-02  Paul Eggert  <eggert@cs.ucla.edu>
15912         gnulib-common.m4: port to GCC 4.2.1 and Sun Studio 12 C++
15913         * m4/gnulib-common.m4 (AC_C_RESTRICT):
15914         Override AC_C_RESTRICT unconditionally.
15915         Update from autoconf, incorporating:
15916         2014-09-02 autoconf: port 'restrict' to GCC 4.2.1
15917         2009-01-28 Fix AC_C_RESTRICT for Sun Studio 12 C++.
15919 2014-09-01  Paul Eggert  <eggert@cs.ucla.edu>
15921         manywarnings: add GCC 4.9 warnings
15922         Also, make it easier to maintain this in the future.
15923         * build-aux/gcc-warning.spec: Add -Wabi-tag,
15924         -Wconditionally-supported, -Wdelete-incomplete,
15925         -Winherited-variadic-ctor, -Wvirtual-move-assign, -Wzerotrip.
15926         Remove duplicates.  Use tabs uniformly, as that's what 'cut' wants.
15927         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wdate-time,
15928         -Wopenmp-simd.  Use -fdiagnostics-show-option and -funit-at-a-time
15929         only for older GCC versions that need them.  Handle
15930         -Wnormalized=nfc specially, so that the 'comm' command used
15931         for maintenance doesn't get confused.
15933 2014-08-31  Paul Eggert  <eggert@cs.ucla.edu>
15935         vasnprintf: fix bugs in width computation
15936         * lib/vasnprintf.c (VASNPRINTF):
15937         Rework previous change, which introduced a bug,
15938         to avoid the warning in a different way.
15939         Avoid undefined behavior if the width arg is less than -INT_MAX.
15940         Avoid unnecessary use of HAS_WIDTH local.
15942 2014-08-31  Thien-Thi Nguyen  <ttn@gnu.org>  (tiny change)
15944         vasnprintf: Avoid signed/unsigned comparison warning.
15945         * lib/vasnprintf.c (VASNPRINTF): To calculate padding,
15946         compare end addr of generated string w/ maximum end addr.
15948 2013-08-30  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
15950         parse-datetime: Avoid pointer difference.
15951         * lib/parse-datetime.y (yylex): Compare pointer to end of buffer,
15952         instead of calculating difference of pointers.  This removes an
15953         annoying warning, devoid of any use.
15955 2014-08-29  Paul Eggert  <eggert@cs.ucla.edu>
15957         qsort_r: new module, for GNU-style qsort_r
15958         This works even on FreeBSD, which has an incompatible qsort_r API.
15959         * MODULES.html.sh: Add it.
15960         * doc/glibc-functions/qsort_r.texi: It's now supported.
15961         * lib/qsort.c: New file, taken from glibc with minor changes
15962         inside "#ifndef _LIBC" and with an unnecessary "#include <alloca.h>"
15963         removed.
15964         * lib/qsort_r.c: New file, compiled only on FreeBSD.
15965         * lib/stdlib.in.h (qsort_r): Declare in the usual way.
15966         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS):
15967         * modules/qsort_r, modules/qsort_r-tests: New files.
15968         * modules/stdlib (Makefile): Set up its defaults.
15969         * tests/test-qsort_r.c: New file.
15971 2014-08-08  Paul Eggert  <eggert@cs.ucla.edu>
15973         vla: new module
15974         GNU RCS can use this, mostly for documentation I expect.  See:
15975         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00025.html
15976         * MODULES.html.sh: Add vla.
15977         * lib/vla.h, modules/vla: New files.
15979 2014-08-07  Daiki Ueno  <ueno@gnu.org>
15981         localename: make gl_locale_name_thread really thread-safe on Windows
15982         * lib/localename.c [WINDOWS_NATIVE && !IN_LIBINTL]: Include
15983         "glthread/lock.h".
15984         (get_lcid_lock) [WINDOWS_NATIVE]: New variable.
15985         (get_lcid) [WINDOWS_NATIVE]: Lock while looking for an LCID.
15987 2014-08-07  Paul Eggert  <eggert@cs.ucla.edu>
15989         getpass: don't assume struct termios
15990         Problem report and trivial fix by Jonas 'Sortie' Termansen in:
15991         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00015.html
15992         * lib/getpass.c (getpass): Port to systems lacking struct termios.
15994         getdtablesize: fall back on sysconf (_SC_OPEN_MAX)
15995         Problem reported by Jonas 'Sortie' Termansen in:
15996         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00023.html
15997         * lib/getdtablesize.c (getdtablesize) [_SC_OPEN_MAX]:
15998         Implement via sysconf for platforms that lack getdtablesize.
16000         vararrays: modernize AC_C_VARARRAYS for C11
16001         This backports a change I recently made to Autoconf.
16002         * m4/vararrays.m4 (AC_C_VARARRAYS): Define __STDC_NO_VLA__ if
16003         VLAs are not supported, as this is what C11 does.  The old macro
16004         HAVE_C_VARARRAYS is still defined if they are supported, but is
16005         now obsolescent.  Also, check for VLA bug in GCC 3.4.3.
16007 2014-08-07  Alessandro Degano  <degano@cern.ch>  (tiny change)
16009         relocatable-prog-wrapper: port gettext to OS X 10.8 + GCC 4.8.1
16010         * build-aux/install-reloc (func_create_wrapper): Also wrap
16011         strerror-override, stat, stat.
16013 2014-08-05  Paul Eggert  <eggert@cs.ucla.edu>
16015         sys_select: fix FD_ZERO problem on Solaris 10
16016         * lib/sys_select.in.h: Fix Solaris 10 bug where "#include
16017         <sys/time.h>" followed by "#include <sys/select.h>" caused FD_ZERO
16018         to expand to an expression that invoked memset without necessarily
16019         including <string.h>.  The problem was that the first include
16020         defined _SYS_TIME_H, causing the second include to short-circuit.
16021         Fix a similar problem with <sys/types.h> followed by <sys/select.h>.
16022         Also, fix what appears to be a cut-and-paste typo, by replacing
16023         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H with
16024         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TYPES_H.
16026         accept: document Solaris 10 type glitch
16027         * doc/posix-functions/accept.texi (accept): Mention that
16028         Solaris 10 'accept' takes void * last arg, not socklen_t *.
16030 2014-08-04  Paul Eggert  <eggert@cs.ucla.edu>
16032         extern-inline: port to FreeBSD, DragonFly
16033         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Also assume the bug
16034         is present if either __DragonFly__ or __FreeBSD__ is defined.
16035         FreeBSD problem reported by Andrey Borzenkov in:
16036         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00104.html
16037         Also, worry about __APPLE__ only if __MACH__ is also defined,
16038         as this is more consistent with the rest of gnulib.
16039         (_GL_EXTERN_INLINE_STDHEADER_BUG): Rename this internal macro from
16040         _GL_EXTERN_INLINE_APPLE_BUG, since the bug is not limited to Apple.
16042 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
16044         regex: Make #if/#ifdef usage consistent for DEBUG
16045         * lib/regex_internal.c: Use "#if defined DEBUG && DEBUG" instead
16046         of the inconsistent usage of #if and #ifdef as that works with
16047         both Glibc and Gnulib's style.
16049 2014-07-31  Eric Blake  <eblake@redhat.com>
16051         openat-die: use _Noreturn markup
16052         * modules/openat-die (Depends-on): Add snippet/_Noreturn.
16053         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Mark
16054         _Noreturn.
16056 2014-07-30  Eric Blake  <eblake@redhat.com>
16058         test-open: port to cygwin, which lacks Fortify
16059         * tests/test-open.h (ALWAYS_INLINE): New macro.
16060         (__always_inline): Don't abuse internal symbol on non-glibc.
16062 2014-07-19  Eli Zaretskii  <eliz@gnu.org>
16064         localename: Enforce declarations before statements.
16065         * localename.c (gl_locale_name_thread): Declare 'lcid' before the
16066         first statement.
16068 2014-07-18  Jim Meyering  <meyering@fb.com>
16070         test-userspec: don't look up numeric user names
16071         * tests/test-userspec.c: I found a system for which getpwnam("0")
16072         returned a pointer to a non-root user's entry, and that made the
16073         test fail.
16074         (T): Prefix each numeric input with "+", to inhibit lookup.
16076 2014-07-15  Eli Zaretskii  <eliz@gnu.org>
16078         localcharset, localename: MS-Windows support for non-default locales
16079         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Before
16080         falling back on the default system codepage, try extracting
16081         the codepage from what 'setlocale' returns.  This allows to
16082         take into account changes of the codeset due to non-default
16083         locale set by a previous call to 'setlocale'.
16084         * lib/localename.c (LOCALE_NAME_MAX_LENGTH) [WINDOWS_NATIVE]:
16085         Define if not already defined.
16086         (enum_locales_fn, get_lcid) [WINDOWS_NATIVE]: New functions.
16087         (gl_locale_name_thread) [WINDOWS_NATIVE]: Produce the
16088         current locale by calling 'setlocale', then converting the
16089         locale name into LCID by calling 'get_lcid'.  This allows to
16090         take into account changes in the current locale from the
16091         default one, in contrast to GetThreadLocale.
16093 2014-07-14  Daiki Ueno  <ueno@gnu.org>
16095         announce-gen: avoid failure when Digest::SHA is installed
16096         When Digest::SHA is available, Digest::SHA1 is not loaded and thus
16097         Digest::SHA1->new in print_checksums fails.
16098         * build-aux/announce-gen (digest_classes): New associative array
16099         for available message digest implementations.
16100         (print_locations): Use it.
16102 2014-07-13  Pádraig Brady  <P@draigBrady.com>
16104         gettext: revert "update macros to version 0.19"
16105         This reverts commit 9b9370ca, as it currently requires that
16106         developers of any project that explicitly uses the gettext module
16107         or implicitly uses it through the utimens-tests or
16108         futimens-tests modules, use gettext >= 0.19.
16109         However there are some stability and availablity issues with
16110         that version at present.  We can reinstate this soon, when stability
16111         is addressed and packages are more readily available.
16113 2014-07-12  Jim Meyering  <meyering@fb.com>
16115         regex: don't deref NULL upon heap allocation failure
16116         * lib/regcomp.c (parse_dup_op): Handle duplicate_tree
16117         failure in one more place.
16118         To trigger the segfault, configure grep -with-included-regex,
16119         build it, and run these commands:
16120         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
16121         I discovered this while replying to a private report from
16122         Jens Schleusener about excessive memory consumption by grep
16123         when using a regular expression like the one above.
16125 2014-07-11  Paul Eggert  <eggert@cs.ucla.edu>
16127         regex: fix memory leak in compiler
16128         Fix by Andreas Schwab in:
16129         https://sourceware.org/ml/libc-alpha/2014-06/msg00503.html
16130         * lib/regcomp.c (parse_reg_exp): Deallocate partially
16131         constructed tree before returning error.
16133 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
16135         announce-gen: avoid perl warnings
16136         * build-aux/announce-gen: add two minor checks to avoid
16137         "use of uninitialized value" warnings when command-line parameters are
16138         missing.
16140 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
16142         localename: avoid -Wsuggest-attribute={const,pure} warnings
16143         * lib/localename.c (string_has): Tag internal function as pure.
16144         * lib/localename.h (gl_locale_name_default): Tag extern declaration
16145         as const when appropriate.
16147 2014-07-10  Eli Zaretskii  <eliz@gnu.org>
16149         nl_langinfo: Fix last change.
16150         * lib/nl_langinfo.c (includes): Drop redundant include.
16152 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
16154         error: Fix -Wundef warnings in glibc
16155         * lib/error.c [_LIBC]: Define default macros for
16156         glibc.
16157         (print_errno_message) [defined HAVE_STRERROR_R || _LIBC]:
16158         Check _LIBC before STRERROR_R_CHAR_P.
16160         error: Sync from glibc master
16161         * lib/error.c [_LIBC]: Remove INTUSE usage.
16162         (error_tail): Remove unused macro ALLOCA_LIMIT.
16163         Fix potential buffer overflow.  Fix potential NULL dereference
16164         in strcmp.
16166 2014-07-09  Pavel Hrdina  <phrdina@redhat.com> (tiny change)
16168         nl_langinfo: fix build under mingw
16169         * lib/nl_langinfo.c (includes): Pick up <windows.h> for GetACP().
16171 2014-07-09  Andrew D Warshall  <warshall@99main.com>
16173         mountlist: do not classify a bind-mounted dir entry as "dummy"
16174         * m4/ls-mntd-fs.m4: Check for hasmntopt() on platforms with
16175         1-argument getmntent() (instead of assuming absence).
16177 2014-07-08  Eric Blake  <eblake@redhat.com>
16179         maint.mk: less syntax-check noise when SIGPIPE is ignored
16180         * top/maint.mk (_sc_header_without_use)
16181         (sc_require_config_h_first): Parse full list.
16183 2014-07-07  Eli Zaretskii  <eliz@gnu.org>
16184             Paul Eggert  <eggert@cs.ucla.edu>
16186         nl_langinfo: CODESET on MS-Windows and more items from localeconv
16187         * lib/langinfo.in.h (DECIMAL_POINT, THOUSANDS_SEP, GROUPING)
16188         (CURRENCY_SYMBOL, INT_CURR_SYMBOL, MON_DECIMAL_POINT)
16189         (MON_THOUSANDS_SEP, MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN)
16190         (FRAC_DIGITS, INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES)
16191         (P_SEP_BY_SPACE, N_SEP_BY_SPACE, P_SIGN_POSN, N_SIGN_POSN): Define.
16192         * lib/nl_langinfo.c: Include <locale.h> and <string.h> early.
16193         Include <stdio.h> if Microsoft Windows.
16194         Include <time.h> if !REPLACE_NL_LANGINFO.
16195         (ctype_codeset): New function, taken from rpl_nl_langinfo,
16196         and with improvements for Microsoft Windows.
16197         (rpl_nl_langinfo): Use it.
16198         (nl_langinfo) [!REPLACE_NL_LANGINFO]: Likewise.
16199         Compute the values of RADIXCHAR, THOUSEP, GROUPING, CRNCYSTR,
16200         INT_CURR_SYMBOL, MON_DECIMAL_POINT, MON_THOUSANDS_SEP,
16201         MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN, FRAC_DIGITS,
16202         INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES, P_SEP_BY_SPACE,
16203         N_SEP_BY_SPACE, P_SIGN_POSN, and N_SIGN_POSN from the
16204         corresponding values returned by 'localeconv'.  Compute the values
16205         of AM_STR, PM_STR, DAY_n, ABDAY_n, MON_n, and ABMON_n by calling
16206         'strftime' with a suitable struct tm value.
16208 2014-07-05  Paul Eggert  <eggert@cs.ucla.edu>
16210         Bruno Haible has stepped down as maintainer.
16211         See Karl Berry in:
16212         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00004.html
16213         Daiki Ueno has volunteered to maintain libunistring; see:
16214         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00005.html
16215         * modules/gen-uni-tables, modules/libunistring:
16216         * modules/libunistring-optional, modules/ucs4-utf16, modules/ucs4-utf8:
16217         * modules/unicase/base, modules/unicase/cased:
16218         * modules/unicase/empty-prefix-context:
16219         * modules/unicase/empty-suffix-context, modules/unicase/ignorable:
16220         * modules/unicase/locale-language, modules/unicase/special-casing:
16221         * modules/unicase/tocasefold, modules/unicase/tolower:
16222         * modules/unicase/totitle, modules/unicase/toupper:
16223         * modules/unicase/u16-casecmp, modules/unicase/u16-casecoll:
16224         * modules/unicase/u16-casefold, modules/unicase/u16-casemap:
16225         * modules/unicase/u16-casexfrm, modules/unicase/u16-ct-casefold:
16226         * modules/unicase/u16-ct-tolower, modules/unicase/u16-ct-totitle:
16227         * modules/unicase/u16-ct-toupper, modules/unicase/u16-is-cased:
16228         * modules/unicase/u16-is-casefolded, modules/unicase/u16-is-invariant:
16229         * modules/unicase/u16-is-lowercase, modules/unicase/u16-is-titlecase:
16230         * modules/unicase/u16-is-uppercase, modules/unicase/u16-prefix-context:
16231         * modules/unicase/u16-suffix-context, modules/unicase/u16-tolower:
16232         * modules/unicase/u16-totitle, modules/unicase/u16-toupper:
16233         * modules/unicase/u32-casecmp, modules/unicase/u32-casecoll:
16234         * modules/unicase/u32-casefold, modules/unicase/u32-casemap:
16235         * modules/unicase/u32-casexfrm, modules/unicase/u32-ct-casefold:
16236         * modules/unicase/u32-ct-tolower, modules/unicase/u32-ct-totitle:
16237         * modules/unicase/u32-ct-toupper, modules/unicase/u32-is-cased:
16238         * modules/unicase/u32-is-casefolded, modules/unicase/u32-is-invariant:
16239         * modules/unicase/u32-is-lowercase, modules/unicase/u32-is-titlecase:
16240         * modules/unicase/u32-is-uppercase, modules/unicase/u32-prefix-context:
16241         * modules/unicase/u32-suffix-context, modules/unicase/u32-tolower:
16242         * modules/unicase/u32-totitle, modules/unicase/u32-toupper:
16243         * modules/unicase/u8-casecmp, modules/unicase/u8-casecoll:
16244         * modules/unicase/u8-casefold, modules/unicase/u8-casemap:
16245         * modules/unicase/u8-casexfrm, modules/unicase/u8-ct-casefold:
16246         * modules/unicase/u8-ct-tolower, modules/unicase/u8-ct-totitle:
16247         * modules/unicase/u8-ct-toupper, modules/unicase/u8-is-cased:
16248         * modules/unicase/u8-is-casefolded, modules/unicase/u8-is-invariant:
16249         * modules/unicase/u8-is-lowercase, modules/unicase/u8-is-titlecase:
16250         * modules/unicase/u8-is-uppercase, modules/unicase/u8-prefix-context:
16251         * modules/unicase/u8-suffix-context, modules/unicase/u8-tolower:
16252         * modules/unicase/u8-totitle, modules/unicase/u8-toupper:
16253         * modules/unicase/ulc-casecmp, modules/unicase/ulc-casecoll:
16254         * modules/unicase/ulc-casexfrm, modules/unicodeio:
16255         * modules/uniconv/base, modules/uniconv/u16-conv-from-enc:
16256         * modules/uniconv/u16-conv-to-enc:
16257         * modules/uniconv/u16-strconv-from-enc:
16258         * modules/uniconv/u16-strconv-from-locale:
16259         * modules/uniconv/u16-strconv-to-enc:
16260         * modules/uniconv/u16-strconv-to-locale:
16261         * modules/uniconv/u32-conv-from-enc, modules/uniconv/u32-conv-to-enc:
16262         * modules/uniconv/u32-strconv-from-enc:
16263         * modules/uniconv/u32-strconv-from-locale:
16264         * modules/uniconv/u32-strconv-to-enc:
16265         * modules/uniconv/u32-strconv-to-locale:
16266         * modules/uniconv/u8-conv-from-enc, modules/uniconv/u8-conv-to-enc:
16267         * modules/uniconv/u8-strconv-from-enc:
16268         * modules/uniconv/u8-strconv-from-locale:
16269         * modules/uniconv/u8-strconv-to-enc:
16270         * modules/uniconv/u8-strconv-to-locale, modules/unictype/base:
16271         * modules/unictype/bidicategory-all:
16272         * modules/unictype/bidicategory-byname:
16273         * modules/unictype/bidicategory-name, modules/unictype/bidicategory-of:
16274         * modules/unictype/bidicategory-test, modules/unictype/bidiclass-all:
16275         * modules/unictype/bidiclass-byname:
16276         * modules/unictype/bidiclass-longname, modules/unictype/bidiclass-name:
16277         * modules/unictype/bidiclass-of, modules/unictype/bidiclass-test:
16278         * modules/unictype/block-all, modules/unictype/block-list:
16279         * modules/unictype/block-of, modules/unictype/block-test:
16280         * modules/unictype/category-C, modules/unictype/category-Cc:
16281         * modules/unictype/category-Cf, modules/unictype/category-Cn:
16282         * modules/unictype/category-Co, modules/unictype/category-Cs:
16283         * modules/unictype/category-L, modules/unictype/category-LC:
16284         * modules/unictype/category-Ll, modules/unictype/category-Lm:
16285         * modules/unictype/category-Lo, modules/unictype/category-Lt:
16286         * modules/unictype/category-Lu, modules/unictype/category-M:
16287         * modules/unictype/category-Mc, modules/unictype/category-Me:
16288         * modules/unictype/category-Mn, modules/unictype/category-N:
16289         * modules/unictype/category-Nd, modules/unictype/category-Nl:
16290         * modules/unictype/category-No, modules/unictype/category-P:
16291         * modules/unictype/category-Pc, modules/unictype/category-Pd:
16292         * modules/unictype/category-Pe, modules/unictype/category-Pf:
16293         * modules/unictype/category-Pi, modules/unictype/category-Po:
16294         * modules/unictype/category-Ps, modules/unictype/category-S:
16295         * modules/unictype/category-Sc, modules/unictype/category-Sk:
16296         * modules/unictype/category-Sm, modules/unictype/category-So:
16297         * modules/unictype/category-Z, modules/unictype/category-Zl:
16298         * modules/unictype/category-Zp, modules/unictype/category-Zs:
16299         * modules/unictype/category-all, modules/unictype/category-and:
16300         * modules/unictype/category-and-not, modules/unictype/category-byname:
16301         * modules/unictype/category-longname, modules/unictype/category-name:
16302         * modules/unictype/category-none, modules/unictype/category-of:
16303         * modules/unictype/category-or, modules/unictype/category-test:
16304         * modules/unictype/category-test-withtable:
16305         * modules/unictype/combining-class:
16306         * modules/unictype/combining-class-all:
16307         * modules/unictype/combining-class-byname:
16308         * modules/unictype/combining-class-longname:
16309         * modules/unictype/combining-class-name, modules/unictype/ctype-alnum:
16310         * modules/unictype/ctype-alpha, modules/unictype/ctype-blank:
16311         * modules/unictype/ctype-cntrl, modules/unictype/ctype-digit:
16312         * modules/unictype/ctype-graph, modules/unictype/ctype-lower:
16313         * modules/unictype/ctype-print, modules/unictype/ctype-punct:
16314         * modules/unictype/ctype-space, modules/unictype/ctype-upper:
16315         * modules/unictype/ctype-xdigit, modules/unictype/decimal-digit:
16316         * modules/unictype/digit, modules/unictype/joininggroup-all:
16317         * modules/unictype/joininggroup-byname:
16318         * modules/unictype/joininggroup-name, modules/unictype/joininggroup-of:
16319         * modules/unictype/joiningtype-all:
16320         * modules/unictype/joiningtype-byname:
16321         * modules/unictype/joiningtype-longname:
16322         * modules/unictype/joiningtype-name, modules/unictype/joiningtype-of:
16323         * modules/unictype/mirror, modules/unictype/numeric:
16324         * modules/unictype/property-all, modules/unictype/property-alphabetic:
16325         * modules/unictype/property-ascii-hex-digit:
16326         * modules/unictype/property-bidi-arabic-digit:
16327         * modules/unictype/property-bidi-arabic-right-to-left:
16328         * modules/unictype/property-bidi-block-separator:
16329         * modules/unictype/property-bidi-boundary-neutral:
16330         * modules/unictype/property-bidi-common-separator:
16331         * modules/unictype/property-bidi-control:
16332         * modules/unictype/property-bidi-embedding-or-override:
16333         * modules/unictype/property-bidi-eur-num-separator:
16334         * modules/unictype/property-bidi-eur-num-terminator:
16335         * modules/unictype/property-bidi-european-digit:
16336         * modules/unictype/property-bidi-hebrew-right-to-left:
16337         * modules/unictype/property-bidi-left-to-right:
16338         * modules/unictype/property-bidi-non-spacing-mark:
16339         * modules/unictype/property-bidi-other-neutral:
16340         * modules/unictype/property-bidi-pdf:
16341         * modules/unictype/property-bidi-segment-separator:
16342         * modules/unictype/property-bidi-whitespace:
16343         * modules/unictype/property-byname:
16344         * modules/unictype/property-case-ignorable:
16345         * modules/unictype/property-cased:
16346         * modules/unictype/property-changes-when-casefolded:
16347         * modules/unictype/property-changes-when-casemapped:
16348         * modules/unictype/property-changes-when-lowercased:
16349         * modules/unictype/property-changes-when-titlecased:
16350         * modules/unictype/property-changes-when-uppercased:
16351         * modules/unictype/property-combining:
16352         * modules/unictype/property-composite:
16353         * modules/unictype/property-currency-symbol:
16354         * modules/unictype/property-dash:
16355         * modules/unictype/property-decimal-digit:
16356         * modules/unictype/property-default-ignorable-code-point:
16357         * modules/unictype/property-deprecated:
16358         * modules/unictype/property-diacritic:
16359         * modules/unictype/property-extender:
16360         * modules/unictype/property-format-control:
16361         * modules/unictype/property-grapheme-base:
16362         * modules/unictype/property-grapheme-extend:
16363         * modules/unictype/property-grapheme-link:
16364         * modules/unictype/property-hex-digit:
16365         * modules/unictype/property-hyphen:
16366         * modules/unictype/property-id-continue:
16367         * modules/unictype/property-id-start:
16368         * modules/unictype/property-ideographic:
16369         * modules/unictype/property-ids-binary-operator:
16370         * modules/unictype/property-ids-trinary-operator:
16371         * modules/unictype/property-ignorable-control:
16372         * modules/unictype/property-iso-control:
16373         * modules/unictype/property-join-control:
16374         * modules/unictype/property-left-of-pair:
16375         * modules/unictype/property-line-separator:
16376         * modules/unictype/property-logical-order-exception:
16377         * modules/unictype/property-lowercase, modules/unictype/property-math:
16378         * modules/unictype/property-non-break:
16379         * modules/unictype/property-not-a-character:
16380         * modules/unictype/property-numeric:
16381         * modules/unictype/property-other-alphabetic:
16382         * modules/unictype/property-other-default-ignorable-code-point:
16383         * modules/unictype/property-other-grapheme-extend:
16384         * modules/unictype/property-other-id-continue:
16385         * modules/unictype/property-other-id-start:
16386         * modules/unictype/property-other-lowercase:
16387         * modules/unictype/property-other-math:
16388         * modules/unictype/property-other-uppercase:
16389         * modules/unictype/property-paired-punctuation:
16390         * modules/unictype/property-paragraph-separator:
16391         * modules/unictype/property-pattern-syntax:
16392         * modules/unictype/property-pattern-white-space:
16393         * modules/unictype/property-private-use:
16394         * modules/unictype/property-punctuation:
16395         * modules/unictype/property-quotation-mark:
16396         * modules/unictype/property-radical:
16397         * modules/unictype/property-sentence-terminal:
16398         * modules/unictype/property-soft-dotted:
16399         * modules/unictype/property-space:
16400         * modules/unictype/property-terminal-punctuation:
16401         * modules/unictype/property-test, modules/unictype/property-titlecase:
16402         * modules/unictype/property-unassigned-code-value:
16403         * modules/unictype/property-unified-ideograph:
16404         * modules/unictype/property-uppercase:
16405         * modules/unictype/property-variation-selector:
16406         * modules/unictype/property-white-space:
16407         * modules/unictype/property-xid-continue:
16408         * modules/unictype/property-xid-start:
16409         * modules/unictype/property-zero-width, modules/unictype/scripts:
16410         * modules/unictype/scripts-all, modules/unictype/syntax-c-ident:
16411         * modules/unictype/syntax-c-whitespace:
16412         * modules/unictype/syntax-java-ident:
16413         * modules/unictype/syntax-java-whitespace, modules/unigbrk/base:
16414         * modules/unigbrk/u16-grapheme-breaks:
16415         * modules/unigbrk/u16-grapheme-next, modules/unigbrk/u16-grapheme-prev:
16416         * modules/unigbrk/u32-grapheme-breaks:
16417         * modules/unigbrk/u32-grapheme-next, modules/unigbrk/u32-grapheme-prev:
16418         * modules/unigbrk/u8-grapheme-breaks, modules/unigbrk/u8-grapheme-next:
16419         * modules/unigbrk/u8-grapheme-prev, modules/unigbrk/uc-gbrk-prop:
16420         * modules/unigbrk/uc-is-grapheme-break:
16421         * modules/unigbrk/ulc-grapheme-breaks, modules/unilbrk/base:
16422         * modules/unilbrk/tables, modules/unilbrk/u16-possible-linebreaks:
16423         * modules/unilbrk/u16-width-linebreaks:
16424         * modules/unilbrk/u32-possible-linebreaks:
16425         * modules/unilbrk/u32-width-linebreaks:
16426         * modules/unilbrk/u8-possible-linebreaks:
16427         * modules/unilbrk/u8-width-linebreaks, modules/unilbrk/ulc-common:
16428         * modules/unilbrk/ulc-possible-linebreaks:
16429         * modules/unilbrk/ulc-width-linebreaks, modules/uniname/base:
16430         * modules/uniname/uniname, modules/uninorm/base:
16431         * modules/uninorm/canonical-decomposition:
16432         * modules/uninorm/compat-decomposition, modules/uninorm/composition:
16433         * modules/uninorm/decompose-internal, modules/uninorm/decomposing-form:
16434         * modules/uninorm/decomposition, modules/uninorm/decomposition-table:
16435         * modules/uninorm/filter, modules/uninorm/nfc, modules/uninorm/nfd:
16436         * modules/uninorm/nfkc, modules/uninorm/nfkd:
16437         * modules/uninorm/u16-normalize, modules/uninorm/u16-normcmp:
16438         * modules/uninorm/u16-normcoll, modules/uninorm/u16-normxfrm:
16439         * modules/uninorm/u32-normalize, modules/uninorm/u32-normcmp:
16440         * modules/uninorm/u32-normcoll, modules/uninorm/u32-normxfrm:
16441         * modules/uninorm/u8-normalize, modules/uninorm/u8-normcmp:
16442         * modules/uninorm/u8-normcoll, modules/uninorm/u8-normxfrm:
16443         * modules/unistdio/base, modules/unistdio/u-printf-args:
16444         * modules/unistdio/u16-asnprintf, modules/unistdio/u16-asprintf:
16445         * modules/unistdio/u16-printf-parse, modules/unistdio/u16-snprintf:
16446         * modules/unistdio/u16-sprintf, modules/unistdio/u16-u16-asnprintf:
16447         * modules/unistdio/u16-u16-asprintf, modules/unistdio/u16-u16-snprintf:
16448         * modules/unistdio/u16-u16-sprintf:
16449         * modules/unistdio/u16-u16-vasnprintf:
16450         * modules/unistdio/u16-u16-vasprintf:
16451         * modules/unistdio/u16-u16-vsnprintf:
16452         * modules/unistdio/u16-u16-vsprintf, modules/unistdio/u16-vasnprintf:
16453         * modules/unistdio/u16-vasprintf, modules/unistdio/u16-vsnprintf:
16454         * modules/unistdio/u16-vsprintf, modules/unistdio/u32-asnprintf:
16455         * modules/unistdio/u32-asprintf, modules/unistdio/u32-printf-parse:
16456         * modules/unistdio/u32-snprintf, modules/unistdio/u32-sprintf:
16457         * modules/unistdio/u32-u32-asnprintf:
16458         * modules/unistdio/u32-u32-asprintf, modules/unistdio/u32-u32-snprintf:
16459         * modules/unistdio/u32-u32-sprintf:
16460         * modules/unistdio/u32-u32-vasnprintf:
16461         * modules/unistdio/u32-u32-vasprintf:
16462         * modules/unistdio/u32-u32-vsnprintf:
16463         * modules/unistdio/u32-u32-vsprintf, modules/unistdio/u32-vasnprintf:
16464         * modules/unistdio/u32-vasprintf, modules/unistdio/u32-vsnprintf:
16465         * modules/unistdio/u32-vsprintf, modules/unistdio/u8-asnprintf:
16466         * modules/unistdio/u8-asprintf, modules/unistdio/u8-printf-parse:
16467         * modules/unistdio/u8-snprintf, modules/unistdio/u8-sprintf:
16468         * modules/unistdio/u8-u8-asnprintf, modules/unistdio/u8-u8-asprintf:
16469         * modules/unistdio/u8-u8-snprintf, modules/unistdio/u8-u8-sprintf:
16470         * modules/unistdio/u8-u8-vasnprintf, modules/unistdio/u8-u8-vasprintf:
16471         * modules/unistdio/u8-u8-vsnprintf, modules/unistdio/u8-u8-vsprintf:
16472         * modules/unistdio/u8-vasnprintf, modules/unistdio/u8-vasprintf:
16473         * modules/unistdio/u8-vsnprintf, modules/unistdio/u8-vsprintf:
16474         * modules/unistdio/ulc-asnprintf, modules/unistdio/ulc-asprintf:
16475         * modules/unistdio/ulc-fprintf, modules/unistdio/ulc-printf-parse:
16476         * modules/unistdio/ulc-snprintf, modules/unistdio/ulc-sprintf:
16477         * modules/unistdio/ulc-vasnprintf, modules/unistdio/ulc-vasprintf:
16478         * modules/unistdio/ulc-vfprintf, modules/unistdio/ulc-vsnprintf:
16479         * modules/unistdio/ulc-vsprintf, modules/unistr/base:
16480         * modules/unistr/u16-check, modules/unistr/u16-chr:
16481         * modules/unistr/u16-cmp, modules/unistr/u16-cmp2:
16482         * modules/unistr/u16-cpy, modules/unistr/u16-cpy-alloc:
16483         * modules/unistr/u16-endswith, modules/unistr/u16-mblen:
16484         * modules/unistr/u16-mbsnlen, modules/unistr/u16-mbtouc:
16485         * modules/unistr/u16-mbtouc-unsafe, modules/unistr/u16-mbtoucr:
16486         * modules/unistr/u16-move, modules/unistr/u16-next:
16487         * modules/unistr/u16-prev, modules/unistr/u16-set:
16488         * modules/unistr/u16-startswith, modules/unistr/u16-stpcpy:
16489         * modules/unistr/u16-stpncpy, modules/unistr/u16-strcat:
16490         * modules/unistr/u16-strchr, modules/unistr/u16-strcmp:
16491         * modules/unistr/u16-strcoll, modules/unistr/u16-strcpy:
16492         * modules/unistr/u16-strcspn, modules/unistr/u16-strdup:
16493         * modules/unistr/u16-strlen, modules/unistr/u16-strmblen:
16494         * modules/unistr/u16-strmbtouc, modules/unistr/u16-strncat:
16495         * modules/unistr/u16-strncmp, modules/unistr/u16-strncpy:
16496         * modules/unistr/u16-strnlen, modules/unistr/u16-strpbrk:
16497         * modules/unistr/u16-strrchr, modules/unistr/u16-strspn:
16498         * modules/unistr/u16-strstr, modules/unistr/u16-strtok:
16499         * modules/unistr/u16-to-u32, modules/unistr/u16-to-u8:
16500         * modules/unistr/u16-uctomb, modules/unistr/u32-check:
16501         * modules/unistr/u32-chr, modules/unistr/u32-cmp:
16502         * modules/unistr/u32-cmp2, modules/unistr/u32-cpy:
16503         * modules/unistr/u32-cpy-alloc, modules/unistr/u32-endswith:
16504         * modules/unistr/u32-mblen, modules/unistr/u32-mbsnlen:
16505         * modules/unistr/u32-mbtouc, modules/unistr/u32-mbtouc-unsafe:
16506         * modules/unistr/u32-mbtoucr, modules/unistr/u32-move:
16507         * modules/unistr/u32-next, modules/unistr/u32-prev:
16508         * modules/unistr/u32-set, modules/unistr/u32-startswith:
16509         * modules/unistr/u32-stpcpy, modules/unistr/u32-stpncpy:
16510         * modules/unistr/u32-strcat, modules/unistr/u32-strchr:
16511         * modules/unistr/u32-strcmp, modules/unistr/u32-strcoll:
16512         * modules/unistr/u32-strcpy, modules/unistr/u32-strcspn:
16513         * modules/unistr/u32-strdup, modules/unistr/u32-strlen:
16514         * modules/unistr/u32-strmblen, modules/unistr/u32-strmbtouc:
16515         * modules/unistr/u32-strncat, modules/unistr/u32-strncmp:
16516         * modules/unistr/u32-strncpy, modules/unistr/u32-strnlen:
16517         * modules/unistr/u32-strpbrk, modules/unistr/u32-strrchr:
16518         * modules/unistr/u32-strspn, modules/unistr/u32-strstr:
16519         * modules/unistr/u32-strtok, modules/unistr/u32-to-u16:
16520         * modules/unistr/u32-to-u8, modules/unistr/u32-uctomb:
16521         * modules/unistr/u8-check, modules/unistr/u8-chr:
16522         * modules/unistr/u8-cmp, modules/unistr/u8-cmp2, modules/unistr/u8-cpy:
16523         * modules/unistr/u8-cpy-alloc, modules/unistr/u8-endswith:
16524         * modules/unistr/u8-mblen, modules/unistr/u8-mbsnlen:
16525         * modules/unistr/u8-mbtouc, modules/unistr/u8-mbtouc-unsafe:
16526         * modules/unistr/u8-mbtoucr, modules/unistr/u8-move:
16527         * modules/unistr/u8-next, modules/unistr/u8-prev:
16528         * modules/unistr/u8-set, modules/unistr/u8-startswith:
16529         * modules/unistr/u8-stpcpy, modules/unistr/u8-stpncpy:
16530         * modules/unistr/u8-strcat, modules/unistr/u8-strchr:
16531         * modules/unistr/u8-strcmp, modules/unistr/u8-strcoll:
16532         * modules/unistr/u8-strcpy, modules/unistr/u8-strcspn:
16533         * modules/unistr/u8-strdup, modules/unistr/u8-strlen:
16534         * modules/unistr/u8-strmblen, modules/unistr/u8-strmbtouc:
16535         * modules/unistr/u8-strncat, modules/unistr/u8-strncmp:
16536         * modules/unistr/u8-strncpy, modules/unistr/u8-strnlen:
16537         * modules/unistr/u8-strpbrk, modules/unistr/u8-strrchr:
16538         * modules/unistr/u8-strspn, modules/unistr/u8-strstr:
16539         * modules/unistr/u8-strtok, modules/unistr/u8-to-u16:
16540         * modules/unistr/u8-to-u32, modules/unistr/u8-uctomb, modules/unitypes:
16541         * modules/uniwbrk/base, modules/uniwbrk/table:
16542         * modules/uniwbrk/u16-wordbreaks, modules/uniwbrk/u32-wordbreaks:
16543         * modules/uniwbrk/u8-wordbreaks, modules/uniwbrk/ulc-wordbreaks:
16544         * modules/uniwbrk/wordbreak-property, modules/uniwidth/base:
16545         * modules/uniwidth/u16-strwidth, modules/uniwidth/u16-width:
16546         * modules/uniwidth/u32-strwidth, modules/uniwidth/u32-width:
16547         * modules/uniwidth/u8-strwidth, modules/uniwidth/u8-width:
16548         * modules/uniwidth/width, modules/utf16-ucs4:
16549         * modules/utf16-ucs4-unsafe, modules/utf8-ucs4:
16550         * modules/utf8-ucs4-unsafe:
16551         Change maintainer from Bruno Haible to Daiki Ueno.
16552         This is my guess at the libunistring modules; please feel free
16553         to fix if I guessed incorrectly.
16554         * modules/accept4, modules/acl, modules/acos, modules/acosf:
16555         * modules/alignof, modules/amemxfrm, modules/ansi-c++-opt:
16556         * modules/areadlink, modules/array-list, modules/array-mergesort:
16557         * modules/array-oset, modules/asin, modules/asinf, modules/astrxfrm:
16558         * modules/atan, modules/atan2, modules/atan2f, modules/atanf:
16559         * modules/avltree-list, modules/avltree-oset, modules/avltreehash-list:
16560         * modules/binary-io, modules/bison-i18n, modules/btowc:
16561         * modules/c-ctype, modules/c-strcase, modules/c-strcaseeq:
16562         * modules/c-strcasestr, modules/c-strstr, modules/calloc-posix:
16563         * modules/canonicalize-lgpl, modules/careadlinkat, modules/carray-list:
16564         * modules/cbrt, modules/cbrt-ieee, modules/cbrtf, modules/cbrtf-ieee:
16565         * modules/cbrtl, modules/cbrtl-ieee, modules/ceil, modules/ceil-ieee:
16566         * modules/ceilf, modules/ceilf-ieee, modules/ceill, modules/ceill-ieee:
16567         * modules/chdir, modules/classpath, modules/clean-temp, modules/close:
16568         * modules/closedir, modules/concat-filename, modules/copy-file:
16569         * modules/copysign, modules/copysignf, modules/copysignl, modules/cos:
16570         * modules/cosf, modules/cosh, modules/coshf, modules/csharpcomp:
16571         * modules/csharpcomp-script, modules/csharpexec:
16572         * modules/csharpexec-script, modules/ctype, modules/diffseq:
16573         * modules/dprintf, modules/dprintf-posix, modules/dup:
16574         * modules/dup2-obsolete, modules/dup3, modules/duplocale:
16575         * modules/eealloc, modules/environ, modules/erf, modules/erfc:
16576         * modules/errno, modules/execute, modules/exp, modules/exp-ieee:
16577         * modules/exp2, modules/exp2-ieee, modules/exp2f, modules/exp2f-ieee:
16578         * modules/exp2l, modules/exp2l-ieee, modules/expf, modules/expf-ieee:
16579         * modules/expl, modules/expl-ieee, modules/expm1, modules/expm1-ieee:
16580         * modules/expm1f, modules/expm1f-ieee, modules/expm1l:
16581         * modules/expm1l-ieee, modules/fabs, modules/fabs-ieee, modules/fabsf:
16582         * modules/fabsf-ieee, modules/fabsl, modules/fabsl-ieee:
16583         * modules/fatal-signal, modules/fbufmode, modules/fchdir:
16584         * modules/fclose, modules/fd-hook, modules/fdopen, modules/filename:
16585         * modules/findprog, modules/findprog-lgpl, modules/floor:
16586         * modules/floor-ieee, modules/floorf, modules/floorf-ieee:
16587         * modules/floorl, modules/floorl-ieee, modules/fma, modules/fma-ieee:
16588         * modules/fmaf, modules/fmaf-ieee, modules/fmal, modules/fmal-ieee:
16589         * modules/fmod, modules/fmod-ieee, modules/fmodf, modules/fmodf-ieee:
16590         * modules/fmodl, modules/fmodl-ieee, modules/fopen, modules/fpieee:
16591         * modules/fprintf-posix, modules/fpucw, modules/fpurge:
16592         * modules/freadable, modules/freadahead, modules/freadptr:
16593         * modules/freadseek, modules/freopen, modules/frexp:
16594         * modules/frexp-ieee, modules/frexp-nolibm, modules/frexpf:
16595         * modules/frexpf-ieee, modules/frexpl, modules/frexpl-ieee:
16596         * modules/frexpl-nolibm, modules/fseek, modules/fseeko:
16597         * modules/fseterr, modules/fstat, modules/fstrcmp, modules/ftell:
16598         * modules/ftello, modules/full-read, modules/full-write:
16599         * modules/fwritable, modules/fwriteerror, modules/gcd:
16600         * modules/get-rusage-as, modules/get-rusage-data:
16601         * modules/getdtablesize, modules/getrusage, modules/gettext:
16602         * modules/gettext-h, modules/git-merge-changelog, modules/gperf:
16603         * modules/grantpt, modules/havelib, modules/host-cpu-c-abi:
16604         * modules/hostent, modules/hypot, modules/hypot-ieee, modules/hypotf:
16605         * modules/hypotf-ieee, modules/hypotl, modules/hypotl-ieee:
16606         * modules/iconv, modules/iconv-h, modules/iconv_open:
16607         * modules/iconv_open-utf, modules/idpriv-drop, modules/idpriv-droptemp:
16608         * modules/ilogb, modules/ilogbf, modules/ilogbl, modules/imaxabs:
16609         * modules/imaxdiv, modules/integer_length, modules/integer_length_l:
16610         * modules/integer_length_ll, modules/ioctl, modules/isatty:
16611         * modules/isblank, modules/isnand, modules/isnand-nolibm:
16612         * modules/isnanf, modules/isnanf-nolibm, modules/isnanl:
16613         * modules/isnanl-nolibm, modules/iswblank, modules/iswctype:
16614         * modules/j0, modules/j1, modules/javacomp, modules/javacomp-script:
16615         * modules/javaexec, modules/javaexec-script, modules/javaversion:
16616         * modules/jn, modules/langinfo, modules/ldd, modules/ldexp:
16617         * modules/ldexp-ieee, modules/ldexpf, modules/ldexpf-ieee:
16618         * modules/ldexpl, modules/ldexpl-ieee, modules/lgamma:
16619         * modules/lib-symbol-visibility, modules/libsigsegv:
16620         * modules/linked-list, modules/linkedhash-list, modules/list:
16621         * modules/localcharset, modules/locale, modules/localeconv:
16622         * modules/localename, modules/lock, modules/log, modules/log-ieee:
16623         * modules/log10, modules/log10-ieee, modules/log10f:
16624         * modules/log10f-ieee, modules/log10l, modules/log10l-ieee:
16625         * modules/log1p, modules/log1p-ieee, modules/log1pf:
16626         * modules/log1pf-ieee, modules/log1pl, modules/log1pl-ieee:
16627         * modules/log2, modules/log2-ieee, modules/log2f, modules/log2f-ieee:
16628         * modules/log2l, modules/log2l-ieee, modules/logb, modules/logb-ieee:
16629         * modules/logbf, modules/logbf-ieee, modules/logbl, modules/logbl-ieee:
16630         * modules/logf, modules/logf-ieee, modules/login_tty:
16631         * modules/logl-ieee, modules/malloc-posix, modules/malloca:
16632         * modules/mbchar, modules/mbfile, modules/mbiter, modules/mbmemcasecmp:
16633         * modules/mbmemcasecoll, modules/mbrlen, modules/mbrtowc:
16634         * modules/mbscasecmp, modules/mbscasestr, modules/mbschr:
16635         * modules/mbscspn, modules/mbsinit, modules/mbslen:
16636         * modules/mbsncasecmp, modules/mbsnlen, modules/mbsnrtowcs:
16637         * modules/mbspbrk, modules/mbspcasecmp, modules/mbsrchr:
16638         * modules/mbsrtowcs, modules/mbssep, modules/mbsspn, modules/mbsstr:
16639         * modules/mbstok_r, modules/mbswidth, modules/mbtowc, modules/mbuiter:
16640         * modules/memchr-obsolete, modules/memcmp2, modules/minmax:
16641         * modules/mkdtemp, modules/mkostemp, modules/mktime-internal:
16642         * modules/modf, modules/modf-ieee, modules/modff, modules/modff-ieee:
16643         * modules/modfl, modules/modfl-ieee, modules/msvc-inval:
16644         * modules/msvc-nothrow, modules/multiarch, modules/nextafter:
16645         * modules/nl_langinfo, modules/no-c++, modules/nocrash:
16646         * modules/nonblocking, modules/open, modules/opendir, modules/openmp:
16647         * modules/oset, modules/pclose, modules/pipe, modules/pipe-filter-gi:
16648         * modules/pipe-filter-ii, modules/pipe2, modules/poll-h:
16649         * modules/posix_spawn, modules/posix_spawn-internal:
16650         * modules/posix_spawn_file_actions_addclose:
16651         * modules/posix_spawn_file_actions_adddup2:
16652         * modules/posix_spawn_file_actions_addopen:
16653         * modules/posix_spawn_file_actions_destroy:
16654         * modules/posix_spawn_file_actions_init:
16655         * modules/posix_spawnattr_destroy, modules/posix_spawnattr_getflags:
16656         * modules/posix_spawnattr_getpgroup:
16657         * modules/posix_spawnattr_getschedparam:
16658         * modules/posix_spawnattr_getschedpolicy:
16659         * modules/posix_spawnattr_getsigdefault:
16660         * modules/posix_spawnattr_getsigmask, modules/posix_spawnattr_init:
16661         * modules/posix_spawnattr_setflags, modules/posix_spawnattr_setpgroup:
16662         * modules/posix_spawnattr_setschedparam:
16663         * modules/posix_spawnattr_setschedpolicy:
16664         * modules/posix_spawnattr_setsigdefault:
16665         * modules/posix_spawnattr_setsigmask, modules/posix_spawnp:
16666         * modules/pow, modules/powf, modules/printf-frexp:
16667         * modules/printf-frexpl, modules/printf-posix, modules/printf-safe:
16668         * modules/progname, modules/propername, modules/pselect:
16669         * modules/pthread_sigmask, modules/ptsname, modules/ptsname_r:
16670         * modules/qacl, modules/quotearg-simple, modules/raise, modules/random:
16671         * modules/rbtree-list, modules/rbtree-oset, modules/rbtreehash-list:
16672         * modules/read, modules/readdir, modules/readlink:
16673         * modules/realloc-posix, modules/regex-quote, modules/relocatable-lib:
16674         * modules/relocatable-lib-lgpl, modules/relocatable-perl:
16675         * modules/relocatable-prog, modules/relocatable-prog-wrapper:
16676         * modules/relocatable-script, modules/remainder:
16677         * modules/remainder-ieee, modules/remainderf, modules/remainderf-ieee:
16678         * modules/remainderl, modules/remainderl-ieee, modules/rewinddir:
16679         * modules/rint, modules/rint-ieee, modules/rintf, modules/rintf-ieee:
16680         * modules/rintl, modules/rintl-ieee, modules/round-ieee:
16681         * modules/roundf-ieee, modules/roundl-ieee, modules/safe-read:
16682         * modules/safe-write, modules/sched, modules/servent, modules/setenv:
16683         * modules/setlocale, modules/sh-quote, modules/shutdown:
16684         * modules/signal, modules/signbit, modules/sigpipe:
16685         * modules/sigpipe-die, modules/sigprocmask, modules/sin, modules/sinf:
16686         * modules/sinh, modules/sinhf, modules/size_max, modules/sleep:
16687         * modules/snippet/arg-nonnull, modules/snippet/c++defs:
16688         * modules/snippet/link-warning, modules/snippet/unused-parameter:
16689         * modules/snprintf, modules/snprintf-posix, modules/spawn:
16690         * modules/spawn-pipe, modules/sprintf-posix, modules/sqrt:
16691         * modules/sqrt-ieee, modules/sqrtf, modules/sqrtf-ieee:
16692         * modules/sqrtl-ieee, modules/stdalign, modules/stdarg:
16693         * modules/stdbool, modules/stpcpy, modules/stpncpy, modules/strcase:
16694         * modules/strcasestr, modules/strcasestr-simple, modules/strcspn:
16695         * modules/streq, modules/strerror_r-posix, modules/striconv:
16696         * modules/striconveh, modules/striconveha, modules/strncat:
16697         * modules/strnlen1, modules/strpbrk, modules/strtod-obsolete:
16698         * modules/sublist, modules/sys_resource, modules/sys_utsname:
16699         * modules/sys_wait, modules/system-posix, modules/system-quote:
16700         * modules/tan, modules/tanf, modules/tanh, modules/tanhf:
16701         * modules/tcgetsid, modules/termios, modules/threadlib, modules/tls:
16702         * modules/tmpdir, modules/towctrans, modules/trunc, modules/trunc-ieee:
16703         * modules/truncf, modules/truncf-ieee, modules/truncl:
16704         * modules/truncl-ieee, modules/ttyname_r, modules/uname:
16705         * modules/unlockpt, modules/unsetenv, modules/vasnprintf:
16706         * modules/vasnprintf-posix, modules/vasprintf, modules/vasprintf-posix:
16707         * modules/vdprintf, modules/vdprintf-posix, modules/vfprintf-posix:
16708         * modules/vfscanf, modules/vma-iter, modules/vprintf-posix:
16709         * modules/vscanf, modules/vsnprintf-posix, modules/vsprintf-posix:
16710         * modules/wait-process, modules/waitpid, modules/wcpcpy:
16711         * modules/wcpncpy, modules/wcrtomb, modules/wcscasecmp, modules/wcscat:
16712         * modules/wcschr, modules/wcscmp, modules/wcscoll, modules/wcscpy:
16713         * modules/wcscspn, modules/wcsdup, modules/wcslen, modules/wcsncasecmp:
16714         * modules/wcsncat, modules/wcsncmp, modules/wcsncpy, modules/wcsnlen:
16715         * modules/wcsnrtombs, modules/wcspbrk, modules/wcsrchr:
16716         * modules/wcsrtombs, modules/wcsspn, modules/wcsstr, modules/wcstok:
16717         * modules/wcswidth, modules/wcsxfrm, modules/wctob, modules/wctomb:
16718         * modules/wctrans, modules/wctype, modules/wcwidth, modules/wmemchr:
16719         * modules/wmemcmp, modules/wmemcpy, modules/wmemmove, modules/wmemset:
16720         * modules/write, modules/xconcat-filename, modules/xlist:
16721         * modules/xmalloca, modules/xoset, modules/xprintf-posix:
16722         * modules/xreadlink, modules/xsetenv, modules/xsize, modules/xstriconv:
16723         * modules/xstriconveh, modules/xsublist, modules/xvasprintf-posix:
16724         * modules/y0, modules/y1, modules/yn:
16725         Remove Bruno Haible as maintainer; if he's the sole maintainer,
16726         change the maintainer to 'all'.  Let's hope someone volunteers.
16728 2014-06-27  Paul Eggert  <eggert@cs.ucla.edu>
16730         mktime: merge #if/#ifdef usage from glibc
16731         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
16732         as that works with both Glibc's and Gnulib's style.
16733         See thread starting at Siddhesh Poyarekar's bug report at:
16734         http://lists.gnu.org/r/bug-gnulib/2014-06/msg00102.html
16736 2014-06-20  Alfred M. Szmidt  <ams@gnu.org>
16738         git-version-gen: improve option descriptions
16739         * build-aux/git-version-gen: Mention that --prefix and --fallback
16740         have a mandatory argument.
16742 2014-06-19  Paul Eggert  <eggert@penguin.cs.ucla.edu>
16744         regex: fix memory leak in compiler
16745         Fix by Andreas Schwab in:
16746         https://sourceware.org/ml/libc-alpha/2014-06/msg00462.html
16747         * lib/regcomp.c (parse_expression): Deallocate partially
16748         constructed tree before returning error.
16750         regex: merge patch from libc
16751         2014-02-12  Joseph Myers  <joseph@codesourcery.com>
16752         Combine __USE_BSD and __USE_SVID into __USE_MISC.
16753         * lib/regex.h [__USE_BSD]: Change condition to [__USE_MISC].
16755 2014-06-17  Paul Eggert  <eggert@cs.ucla.edu>
16757         acl: port to gcc -Wredundant-decls
16758         From a request by Dmitry Antipov in:
16759         http://lists.gnu.org/r/emacs-devel/2014-06/msg00263.html
16760         * lib/acl.h (_GL_ACL_H): New macro.  Protect entire contents with
16761         "#ifndef _GL_ACL_H".
16763 2014-06-11  Bruce Korb  <bkorb@gnu.org>
16764         Jim Meyering  <meyering@fb.com>
16766         parse-duration: eliminate 68-year duration limit
16767         * lib/parse-duration.c: Include "intprops.h".
16768         (TIME_MAX): Rename to MAX_DURATION and define to
16769         TYPE_MAXIMUM(time_t).
16770         * modules/parse-duration (Depends-on): Add intprops.
16771         Reported by Jonas 'Sortie' Termansen.
16773 2014-06-14  Paul Eggert  <eggert@cs.ucla.edu>
16775         pthread: don't assume AC_CANONICAL_HOST, port better to Solaris, etc.
16776         * modules/pthread (Depends-on): Add 'extensions', as it defines
16777         _POSIX_PTHREAD_SEMANTICS, which is needed on Solaris.
16778         (configure.ac-early): New section.
16779         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, as
16780         it is no longer needed.
16782 2014-06-14  Pádraig Brady  <P@draigBrady.com>
16784         pthread: define thread-safe macros on some platforms
16785         * m4/pthread.m4 (gl_PTHREAD_CHECK): Define macros needed
16786         for thread-safe operation on some platforms.
16788 2014-06-13  Paul Eggert  <eggert@cs.ucla.edu>
16790         regex: don't be multithreaded if USE_UNLOCKED_IO.
16791         Problem reported by Michael Felt in: http://bugs.gnu.org/17773
16792         * lib/regex_internal.h: Do not use multithreaded version if
16793         USE_UNLOCKED_IO is defined.  This is a hack, but it works
16794         around a porting bug with coreutils 8.22 on AIX 7.1.
16796 2014-06-11  Daiki Ueno  <ueno@gnu.org>
16798         gettext: update macros to version 0.19
16799         * m4/intl.m4, m4/po.m4: Update from gettext-0.19.  In particular,
16800         depend on gl_EXTERN_INLINE and drop support for older Bison
16801         versions.
16803 2014-06-10  Pádraig Brady  <P@draigBrady.com>
16805         select,poll: fix console handle check on windows 8
16806         lib/poll.c (IsConsoleHandle): Change from testing the lower
16807         2 bits of the handle to the more expensive but accurate syscall.
16808         lib/select.c: Likewise.
16810 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
16812         select: fix waiting on anonymous pipes on MS-Windows
16813         * lib/select.c (rpl_select): Fall back to polling when select()
16814         indicates there is nothing to check, while due to the timeout not
16815         expiring, activity is indicated on one of the handles.
16816         Also clear the TIMEOUT argument if the timer does expire.
16818 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
16820         times: fix to return non constant value on MS-Windows
16821         * lib/times.c (times): Don't use the process creation time,
16822         rather clock() which on windows returns the number of
16823         clock ticks since the process started.
16825 2014-06-09  Michael Goffioul  <michael.goffioul@gmail.com>
16827         isatty: fix to work on windows 8
16828         * lib/isatty.c (IsConsoleHandle): Change from testing the lower
16829         2 bits of the handle to the more expensive but accurate syscall.
16831 2014-06-07  Paul Eggert  <eggert@cs.ucla.edu>
16833         maint: fix typo in fdl.texi
16834         * doc/fdl.texi: Fix typo (missing '@').
16835         Somehow this was in fdl.texi but not fdl-1.3.texi.
16837 2014-06-06  Ben Walton  <bdwalton@gmail.com>
16839         mountlist: avoid hasmntopt const type warning on solaris
16840         * lib/mountlist.c: Solaris defines the OPT param of hasmntopt()
16841         with char * instead of const char *.  Passing the constant string
16842         "ignore" generates a compiler warning.  For Solaris cast MNT_IGNORE
16843         to avoid the warning.
16845 2014-06-04  Eric Blake  <eblake@redhat.com>
16847         maintainer-makefile: delete obsolete code
16848         * top/maint.mk (build_aux): Drop old code, as threatened.
16850         maintainer-makefile: avoid spurious error messages
16851         * top/maint.mk (syntax-check): Guard definition and use of
16852         $(shell) by whether Makefile is present.
16854 2014-06-03  Ben Walton  <bdwalton@gmail.com>
16856         rename: avoid unused-but-set-variable compiler warning
16857         * lib/rename.c (rpl_rename):  In the non-Win32 variant of rpl_rename,
16858         it is possible that dst_exists may be set but not used.  Mark it with
16859         the unused attribute to avoid compiler warnings.
16861 2014-06-02  Ben Walton  <bdwalton@gmail.com>
16863         rename: mark a label as potentially unused
16864         * lib/rename.c (rpl_rename): Avoid compiler warnings seen on Solaris,
16865         by marking the out label as potentially unused.
16866         * m4/gnulib-common.m4: Mention the need for the trailing ; for C++.
16868 2014-06-01  Paul Eggert  <eggert@cs.ucla.edu>
16870         gnulib-common.m4: Fix typo in _GL_UNUSED_LABEL.
16871         * m4/gnulib-common.m4 (_GL_UNUSED_LABEL): Omit trailing semicolon.
16873 2014-06-02  Ben Walton  <bdwalton@gmail.com>
16875         acl: apply pure attribute to two functions
16876         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial):
16877         Mark as "pure" as flagged by gcc 4.9 on Solaris 10.
16879 2014-06-01  Pádraig Brady  <P@draigBrady.com>
16881         gnulib-common.m4: add _GL_UNUSED_LABEL
16882         * m4/gnulib-common.m4: Add _GL_UNUSED_LABEL which is similar to
16883         _GL_UNUSED, but handles g++ < 4.5 not supporting this syntax.
16885 2014-05-31  Paul Eggert  <eggert@cs.ucla.edu>
16887         dup2, fcntl, fcntl-h: port to AIX 7.1
16888         This fixes some porting problems discovered when testing the latest
16889         grep snapshot on AIX 7.1.  I don't think if fixes any bugs
16890         in grep but it could be important for other applications.
16891         * doc/posix-functions/dup2.texi:
16892         * doc/posix-functions/fcntl.texi:
16893         * doc/posix-headers/fcntl.texi:
16894         Document AIX bugs.
16895         * lib/fcntl.in.h (O_CLOEXEC, O_NOFOLLOW, O_TTY_INIT) [_AIX]:
16896         Define to 0 if outside 'int' range.
16897         * m4/dup2.m4 (gl_FUNC_DUP2):
16898         * m4/fcntl.m4 (gl_FUNC_FCNTL):
16899         Check for getdtablesize.  If it's available, test a value just
16900         outside its range instead of testing 1000000.  When cross-compiling,
16901         guess that AIX will fail this improved test.
16903 2014-05-30  Paul Eggert  <eggert@cs.ucla.edu>
16905         printf, config.rpath: Port to FreeBSD 10.
16906         Problem reported by Tijl Coosemans in:
16907         http://lists.gnu.org/r/bug-gnulib/2014-05/msg00078.html
16908         * build-aux/config.rpath (hardcode_libdir_flag_spec)
16909         (hardcode_direct): Simplify FreeBSD configuration.
16910         (library_names_spec): Don't mishandle FreeBSD 10+.
16911         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE)
16912         (gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_F)
16913         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99)
16914         (gl_SNPRINTF_DIRECTIVE_N, gl_VSNPRINTF_ZEROSIZE_C99):
16915         Don't mishandle FreeBSD 10+ when cross-compiling.
16917         ftoastr: work around compiler bug in IBM xlc 12.1
16918         * lib/ftoastr.h (_GL_FLT_PREC_BOUND, _GL_DBL_PREC_BOUND)
16919         (_GL_LDBL_PREC_BOUND): Make these macros, not enums, to work
16920         around a compiler bug in IBM xlc 12.1.0.0: it complains
16921         '"ftoastr.c", line 80.37: 1506-045 (S) Undeclared identifier
16922         _GL_FLT_PREC_BOUND.'
16924 2014-05-30  Kieran Colford  <colfordk@gmail.com>
16926         valgrind-tests: fixed misleading help message
16927         * m4/valgrind-tests.m4: The help message generated by configure
16928         implied that valgrind was disabled by default, which it wasn't.
16929         Adjusted the help message using s/enable/disable/ to clarify.
16931 2014-05-30  Ulrich Weigand  <uweigand@de.ibm.com>
16933         isfinite, isinf, isnan tests: fix for little-endian PowerPC
16934         * tests/test-isfinite.c (test_isfinitel): Only manipulate the
16935         first double of a PowerPC "double double" pair.
16936         * tests/test-isinf.c (test_isinfl): Likewise.
16937         * tests/test-isnan.c (test_long_double): Likewise.
16938         * tests/test-isnanl.h (main): Likewise.
16939         * tests/test-signbit.c (test_signbitl): Likewise.
16941 2014-05-29  Paul Eggert  <eggert@cs.ucla.edu>
16943         exclude-tests: port to AIX 7.1
16944         * modules/exclude-tests (test_exclude_LDADD): Add $(LIBTHREAD).
16945         Needed on AIX 7.1 with xlc V12.1, otherwise it won't link because
16946         the regex code uses locks.
16948 2014-05-28  Paul Eggert  <eggert@cs.ucla.edu>
16950         pthread_sigmask, timer-time: use gl_THREADLIB only if needed
16951         Without this fix, Emacs would sometimes call sigprocmask instead
16952         of pthread_sigmask, which is a no-no in multithreaded applications.
16953         Problem reported by Jorgen Schaefer in <http://bugs.gnu.org/17561>.
16954         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
16955         Suppress check for pthread_sigmask working without -lpthread if
16956         the application always links with -lpthread.  Do not link with
16957         $LIBMULTITHREAD if gl_THREADLIB is not defined.
16958         * m4/timer_time.m4 (gl_TIMER_TIME):
16959         Require gl_THREADLIB only if it is defined.  Do not append
16960         $LIBMULTITHREAD to LIB_TIMER_TIME if gl_THREADLIB is not defined.
16962 2014-05-27  Sylvain Beucler  <beuc@beuc.net>.
16964         gnulib-tool: wget translations using --no-verbose rather than --quiet
16965         This allows the user to see error messages if any (--quiet hides them)
16966         * gnulib-tool: Invoke wget with --no-verbose, rather than --quiet.
16968 2014-05-27  Sylvain Beucler  <beuc@beuc.net>
16970         gnulib-tool: adjust translation wget to avoid a https redirection
16971         Context: http://translationproject.org/latest/gnulib redirects to
16972            https://translationproject.org/latest/gnulib/
16973         Rationale: if the user falls back to wget, she doesn't have rsync and
16974         is probably in a minimal build environment, where packages such as
16975         'ca-certificates' are missing as well, resulting in a failed (and
16976         difficult to detect since ignored) translation initial fetch.
16977         Consequently let's avoid https if possible, and add the missing
16978         trailing slash.  This also avoids an unnecessary 302 redirection.
16979         * gnulib-tool: Add trailing slash to gnulib URL.
16981 2014-05-22  Pádraig Brady  <P@draigBrady.com>
16983         getlogin_r-tests: check return value rather than errno
16984         * tests/test-getlogin_r.c (main): As per POSIX we should be
16985         verifying the return value from getlogin_r() rather than errno.
16987 2014-05-22  Pádraig Brady  <P@draigBrady.com>
16989         getlogin_r-tests: fix various issues in recent change
16990         * tests/test-getlogin_r.c: Include required headers that were
16991         missed in recent commit eec20b4e.
16992         Also consistently check the errno rather than the return value from
16993         getlogin_r as POSIX only specifies that non zero is returned on error.
16994         * modules/getlogin_r-tests (configure.ac): Add the check for ttyname().
16996 2014-05-21  Paul Eggert  <eggert@cs.ucla.edu>
16998         fchdir: port 'open' and 'close' redefinitions to AIX 7.1
16999         * lib/chown.c, lib/clean-temp.c, lib/copy-file.c, lib/execute.c:
17000         * lib/fsusage.c, lib/gc-gnulib.c, lib/javacomp.c, lib/mountlist.c:
17001         * lib/openat-proc.c, lib/pagealign_alloc.c, lib/progreloc.c:
17002         * lib/spawn-pipe.c:
17003         Do not #undef 'open' and 'close'.  AIX 7 does '#define open open64'
17004         and then 'int open64(const char *, int, ...);', which means the
17005         declaration for 'open' gets lost if we later '#undef open'.
17006         Discovered while building grep pretest 2.18.151-1c770 on AIX 7.1,
17007         where the compilation reported the non-fatal error "In function
17008         'openat_proc_name' ... warning: implicit declaration of function
17009         'open'".  In this case the error is relatively harmless, but in
17010         other cases it might not be so minor.
17012 2014-05-20  Paul Eggert  <eggert@cs.ucla.edu>
17014         xalloc: don't potentially generate invalid code for xmemdup calls
17015         * lib/xalloc.h (xmemdup): Do not mark with _GL_ATTRIBUTE_ALLOC, as
17016         this function can initialize the newly-allocated storage with new
17017         pointers, which means this function is not malloc-like.  See:
17018         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56955
17020 2014-05-19  Pádraig Brady  <P@draigBrady.com>
17022         getlogin_r-tests: avoid false failure under sudo/ssh etc.
17023         * tests/test-getlogin_r.c (main): Sync up with test-getlogin.c
17024         changes from commit 97249cf29 to not depend on environment variables.
17026 2014-05-18  Pádraig Brady  <P@draigBrady.com>
17028         getlogin-tests: avoid false failure under cron
17029         * tests/test-getlogin.c (main): Avoid verifying errnos from ttyname()
17030         since that's not what's under test.  Centos 6 was seen to return
17031         EINVAL for ttyname() when run from cron.
17033 2014-05-16  Jim Meyering  <meyering@fb.com>
17035         mbrtowc.m4: fix a comment typo
17036         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Fix typo s/2/-2/ in
17037         emitted documentation string.
17039 2014-05-16  Paul Eggert  <eggert@cs.ucla.edu>
17041         mbrlen, mbrtowc: fix bug with empty input
17042         * lib/mbrtowc.c (rpl_mbrtowc) [MBRTOWC_EMPTY_INPUT_BUG]: Fix the bug.
17043         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): New macro.  It's not used,
17044         so this is mainly for documentation.
17045         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): New macro.
17046         (gl_FUNC_MBRTOWC): Use it.
17047         * tests/test-mbrtowc.c (main): Test for the bug.
17049 2014-05-15  Paul Eggert  <eggert@cs.ucla.edu>
17051         doc: document mbrtowc and mbrlen problem with empty input
17052         * doc/posix-functions/mbrlen.texi (mbrlen):
17053         * doc/posix-functions/mbrtowc.texi (mbrtowc):
17054         Document portability problem when the input string is empty.  See:
17055         https://sourceware.org/bugzilla/show_bug.cgi?id=16950
17057         doc: document exec* = spawn+exit bug with non-Cygwin Windows platforms
17058         Problem reported by Eli Zaretskii in:
17059         http://lists.gnu.org/r/bug-grep/2014-05/msg00118.html
17060         * doc/posix-functions/execl.texi (execl):
17061         * doc/posix-functions/execle.texi (execle):
17062         * doc/posix-functions/execlp.texi (execlp):
17063         * doc/posix-functions/execv.texi (execv):
17064         * doc/posix-functions/execve.texi (execve):
17065         * doc/posix-functions/execvp.texi (execvp):
17066         Mention spawn+exit problem on non-Cygwin Windows platforms.
17068 2014-05-14  Guilherme de Almeida Suckevicz  <guito.linux@gmail.com>
17070         getlogin-tests: avoid false failure under sudo/ssh etc.
17071         * modules/getlogin-tests (configure.ac): Check for ttyname().
17072         * tests/test-getlogin.c (main): Don't depend on environment variables
17073         to correlate with getlogin(), since sudo and ssh etc. can tamper
17074         with the LOGNAME and USER env vars.  Instead lookup the name from
17075         the uid associated with the stdin tty.
17077 2014-05-11  Paul Eggert  <eggert@cs.ucla.edu>
17079         mbsstr, quotearg, xstrtol: pacify IRIX 6.5 cc
17080         These were found when building the latest grep snapshot on IRIX 6.5.
17081         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Break "a=b=c;" into
17082         "b=c; a=b;", since IRIX 6.5 cc complains about the former if b is
17083         never used later.
17084         * lib/quotearg.c (quoting_options_from_style):
17085         * lib/xstrtol.c (__xstrtol):
17086         Use enum instead of 0, to pacify IRIX 6.5 cc.
17088 2014-04-18  Pádraig Brady  <P@draigBrady.com>
17090         gitlog-to-changelog: revert inclusion of git-log-fix file
17091         * build-aux/git-log-fix: Delete dummy file.
17092         * modules/gitlog-to-changelog: Don't reference (overwrite)
17093         the project specific git-log-fix file.
17095 2014-04-18  Assaf Gordon  <agordon@wi.mit.edu>
17097         maint.mk: Relax the copyright check to cater for non FSF projects
17098         * top/maint.mk (sc_copyright_check): Relax the check for $PACKAGE.texi
17099         to not require the "Free" suffix after the copyright years.
17101 2014-04-18  Natanael Copa  <ncopa@alpinelinux.org>
17103         physmem: use sysinfo on linux-gnu if _SC_PHYS_PAGES unavailable
17104         * lib/physmem.c (physmem_total): Some systems like musl libc don't yet
17105         support _SC_PHYS_PAGES.  Use the linux syscall sysinfo as fallback
17106         if _SC_PHYS_PAGES or _SC_PAGESIZE fails.
17107         (physmem_available): Likewise for _SC_AVPHYS_PAGES.
17109 2014-04-18  Paul Eggert  <eggert@cs.ucla.edu>
17111         exclude: port to strict C99
17112         Strict C does not allow converting a function pointer to void *
17113         and vice versa.  Pass a pointer to a function pointer instead.
17114         * lib/exclude.c (add_exclude_file):
17115         Pass the address of the function pointer.
17116         (call_addfn): And deference the address here, to match.
17118 2014-04-17  Paul Eggert  <eggert@cs.ucla.edu>
17120         regex: do not depend on malloc-gnu
17121         * modules/regex (Depends-on): Remove malloc-gnu.
17122         It's no longer needed, because of the 2012-12-29 patch
17123         "regex: port to hosts where malloc (0) == NULL".
17124         Reported by Nathan Kennedy in:
17125         http://lists.gnu.org/r/bug-gnulib/2014-04/msg00026.html
17127 2014-04-16  Assaf Gordon  <agordon@wi.mit.edu>
17129         expl: avoid incorrect expl(small_value) on OpenBSD 5.4
17130         * m4/expl.m4 (gl_FUNC_EXPL): Add a check for this condition.
17131         * doc/posix-functions/expl.texi: Mention the workaround.
17133 2014-04-12  Paul Eggert  <eggert@cs.ucla.edu>
17135         xalloc: allow x2nrealloc (P, PN, S) where P && !*PN
17136         * lib/xalloc.h (x2nrealloc): Extend slightly, to allow the current
17137         size to be zero even when the pointer is nonnull.  This
17138         accommodates the use case where P is malloc (0) and *PN is 0 on a
17139         host where malloc (0) yields nonnull.
17141 2014-04-09  Eric Blake  <eblake@redhat.com>
17143         fts: avoid unnecessary strlen calls
17144         * lib/fts.c (_D_EXACT_NAMLEN): Restore definition when needed.
17146 2014-04-09  Paul Eggert  <eggert@cs.ucla.edu>
17148         fts: avoid unnecessary strlen calls
17149         * lib/fts.c (fts_build): Go back to using _D_EXECT_NAMLEN
17150         when that can be faster than strlen.
17152 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
17154         fts: avoid unnecessary strlen calls
17155         * lib/fts.c (_D_EXACT_NAMLEN): Remove macro.
17156         (fts_build): Store the length of the dp->d_name entry in a local variable
17157         instead of calling strlen() several times via the above, removed macro.
17158         For 'rm -rf some-dir' with e.g. 1M directory entries, this speeds up the
17159         run by ~4%, yet this reduces the execution time by about a third if run
17160         via "ltrace -c rm -rf some-dir".
17162 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
17164         obstack: Remove ancient NeXTSTEP gcc support conditional
17165         This change will ease merging with glibc.  The "#if ... __NEXT__"
17166         causes a warning with -Wundef which glibc now enables by default.
17167         Problem reported by Will Newton in
17168         <http://lists.gnu.org/r/bug-gnulib/2014-03/msg00032.html>.
17169         glibc <sys/cdefs.h> now uses __extension__ for GCC 2.8 or later,
17170         so go with that.
17171         * lib/obstack.h (__extension__):
17173 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
17175         obstack: merge with glibc changes
17176         * lib/obstack.c, lib/obstack.h: Merge from glibc.
17177         This is mostly indenting and commentary changes.
17178         Instances of 'register' have been removed.
17180 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
17182         strftime: wrap macros in "do {...} while(0)"
17183         * lib/strftime.c (DO_NUMBER): Wrap multi-statement code block of
17184         this macro in "do {...} while(0)" to prevent false use as a
17185         single statement, e.g., in an un-braced "{}" else-block.
17186         (DO_SIGNED_NUMBER, DO_TZ_OFFSET, DO_NUMBER_SPACEPAD): Likewise.
17187         (strftime_case_): Remove 'else' after 'goto' - which was the
17188         only non-fatal, un-braced use of one of the above macros.
17189         Spotted by coverity (NESTING_INDENT_MISMATCH).
17191 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
17193         modechange: avoid memory leaks for invalid octal modes
17194         * lib/modechange.c (mode_compile): During the parsing of
17195         notations like +40, free the 'mc' buffer for invalid mode
17196         strings like +17777 (greater than the maximum octal mode),
17197         =18 (bad octal mode characters) or u=1 ('affected' with
17198         octal modes).
17199         Reproducer, e.g.:
17200             $ valgrind --leak-check=full chmod +17777 file
17201         Introduced via the 2012-03-09 commit, 4730c3e3, "modechange:
17202         add notations +40, 00440, etc.".
17203         Spotted by coverity (RESOURCE_LEAK).
17205 2014-03-24  Paul Eggert  <eggert@cs.ucla.edu>
17207         gitlog-to-changelog: include a dummy git-log-fix file
17208         Problem reported by Nathan Stratton Treadway in:
17209         http://lists.gnu.org/r/bug-tar/2014-03/msg00082.html
17210         * build-aux/git-log-fix: New file.
17212 2014-03-13  Jim Meyering  <meyering@fb.com>
17214         gitlog-to-changelog: also include the file, git-log-fix
17215         * modules/gitlog-to-changelog (Files): Add git-log-fix.
17216         Reported by Assaf Gordon.
17218 2014-03-06  Paul Eggert  <eggert@cs.ucla.edu>
17220         regex: port to OS X 10.8.5 en_US.UTF-8 locale
17221         This fixes a bug when ignoring case and when comparing the
17222         titlecase letter 'Lj' (U+01C8 LATIN CAPITAL LETTER L WITH SMALL
17223         LETTER J) to the corresponding uppercase letter 'LJ' (U+01C7 LATIN
17224         CAPITAL LETTER LJ).  In the OS X 10.8.5 en_US.UTF-8 locale, the
17225         titlecase letter is neither lowercase nor uppercase, but
17226         uppercasing the titlecase letter (via towupper) yields the
17227         uppercase letter, so the two letters should match when ignoring case.
17228         Problem reported by Jim Meyering in <http://debbugs.gnu.org/16911#16>.
17229         * lib/regex_internal.c (build_wcs_upper_buffer, build_upper_buffer):
17230         Don't test whether a character is lowercase before uppercasing it.
17232 2014-03-04  Kevin Cernekee  <cernekee@gmail.com>
17234         stdint, read-file: fix missing SIZE_MAX on Android (tiny change)
17235         This is basically one of the options Bruno Haible proposed in:
17236         http://lists.gnu.org/r/bug-gnulib/2012-01/msg00282.html
17237         * lib/sys_types.in.h (_GL_INCLUDING_UNISTD_H): New macro.
17238         * lib/stdint.in.h: Use it.
17239         * modules/stdint (Depends-on): Add sys_types.
17241 2014-02-26  Pádraig Brady  <P@draigBrady.com>
17243         parse-datetime: fix crash or infloop in TZ="" parsing
17244         * lib/parse-datetime.y (parse_datetime): Break out of the
17245         TZ="" parsing loop once the second significant " is found.
17246         Also skip over any subsequent whitespace to be consistent
17247         with the non TZ= case.
17248         * tests/test-parse-datetime.c: Add test cases for TZ="" parsing.
17250 2014-02-26  Paul Eggert  <eggert@cs.ucla.edu>
17252         savedir: new symbol for fast-read version
17253         * lib/savedir.h (SAVEDIR_SORT_FASTREAD): New symbol, for programs
17254         like GNU cp that want to use SAVEDIR_SORT_INODE if available,
17255         SAVEDIR_SORT_NONE otherwise.  Problem reported by Bernhard Voelker in:
17256         http://lists.gnu.org/r/coreutils/2014-02/msg00037.html
17258 2014-02-25  Paul Eggert  <eggert@penguin.cs.ucla.edu>
17260         unistd: port readlink to Mac OS X 10.3.9
17261         * lib/unistd.in.h (_GL_INCLUDING_UNISTD_H): New macro, to work
17262         around self-include problem in Mac OS X 10.3.9 when combined with
17263         readlink module.  Problem reported by Klaus Zietler in
17264         <http://bugs.gnu.org/16825>.
17266 2014-02-23  Paul Eggert  <eggert@cs.ucla.edu>
17268         diffseq: remove TOO_EXPENSIVE heuristic
17269         Problem with diffutils reported by Vincent Lefevre in
17270         <http://bugs.gnu.org/16848>.  The simplest solution is to remove
17271         the TOO_EXPENSIVE heuristic that I added to GNU diff in 1993.
17272         Although appropriate for circa-1993 hardware, these days the heuristic
17273         seems to be more trouble than it's worth.
17274         * lib/diffseq.h: Modernize citations.
17275         (struct context): Remove member too_expensive.
17276         All uses changed.
17277         (struct partition): Remove members lo_minimal, hi_minimal.
17278         All uses changed.
17279         (diag, compareseq): Remove arg find_minimal.  All uses changed.
17280         (diag): Remove the TOO_EXPENSIVE heuristic that I added back in
17281         1993 to make 'diff' run faster (but not as well) on large inputs.
17282         These days, computers are fast enough that it's typically better
17283         to run slower but more accurately.
17284         * lib/fstrcmp.c: Remove duplicate comment.
17285         * lib/fstrcmp.c (strcmp_bounded):
17286         * lib/git-merge-changelog.c (compute_differences):
17287         Adjust to diffseq.h changes.
17288         * NEWS: Document the change.
17290         savedir: simplify by using stpcpy
17291         * lib/savedir.c (direntry_t): Remove size member.  All uses removed.
17292         (streamsavedir): Use stpcpy instead.
17293         * modules/savedir (Depends-on): Add stpcpy.
17295 2014-02-21  Pádraig Brady  <P@draigBrady.com>
17297         spawn: fix link error on uclibc
17298         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): use AC_SEARCH_LIBS,
17299         to incorporate -lrt if needed (on uclibc for example).
17300         * modules/posix_spawn: Reference the substituted LIB.
17302 2014-02-21  Thomas Petazzoni  <thomas.petazzoni@free-electrons.com>  (tiny change)
17303         timer: fix uClibc detection of threading
17304         * m4/time_time.m4 (gl_TIMER_TIME): Detect whether threads are
17305         enabled in uClibc.
17307 2014-02-21  Eric Blake  <eblake@redhat.com>
17309         maintainer-makefiles: provide AC_PROG_SED for older autoconf
17310         * m4/gnulib-common.m4 (AC_PROG_SED): Copy from newer autoconf.
17312 2014-02-21  Sergey Poznyakoff  <gray@gnu.org.ua>
17314         exclude: add support for posix regexps
17316         This commit adds support for POSIX extended regular expressions
17317         and fixes a long-standing memory leak (pattern buffer was never
17318         freed).  It also implements a new interface function to read
17319         exclude patterns from a FILE, which passes an additional parameter
17320         to its callback function, thereby allowing to preserve its state
17321         between invocations.
17323         * lib/exclude.c (struct patopts): Pack regex and pattern into union.
17324         (pattern_buffer): New struct.
17325         (exclude): New member patbuf.
17326         (exclude_add_pattern_buffer): New function.
17327         (free_exclude_segment): Free regexps.
17328         (free_exclude): Free allocated pattern buffers.
17329         (exclude_patopts): New function.
17330         (file_pattern_matches): Use exclude_patopts.
17331         (add_exclude): support regexps.
17332         (add_exclude_fp): New function.
17333         (add_exclude_file): Rewrite using add_exclude_fp.
17334         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
17335         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
17336         (add_exclude_fp)
17337         (add_exclude_file): Rewrite using add_exclude_fp.
17338         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
17339         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
17340         (add_exclude_fp)
17341         (exclude_add_pattern_buffer): New prototypes.
17342         * modules/exclude: Depends on regex and filename.
17344 2014-02-20  Eric Blake  <eblake@redhat.com>
17346         maintainer-makefiles: use $(SED) for syntax check
17347         * modules/maintainer-makefile (configure.ac): Check for sane sed.
17348         * top/maint.mk: Change sed to $(SED).
17350 2014-02-11  Sergey Poznyakoff  <gray@gnu.org.ua>
17351             Paul Eggert  <eggert@cs.ucla.edu>
17353         savedir: add sorting arg to savedir, streamsavedir; remove fdsavedir
17354         Patch based on an idea by Dick Streefland in
17355         <https://savannah.gnu.org/patch/?7892>.
17356         * NEWS: Document this.
17357         * lib/savedir.c (NAME_SIZE_DEFAULT): Remove.
17358         (direntry_t, comparison_function): New types.
17359         (direntry_cmp_name): New function.
17360         (direntry_cmp_inode) [D_INO_IN_DIRENT]: New function.
17361         (streamsavedir, savedir): New arg OPTION.
17362         (streamsavedir): Simplify memory allocation.
17363         (fdsavedir): Remove.
17364         * lib/savedir.h (enum savedir_option): New type.
17365         (streamsavedir, savedir): New arg OPTION.
17366         (fdsavedir): Remove.
17368 2014-02-05  Paul Eggert  <eggert@cs.ucla.edu>
17370         file-type: add support for doors and other less-common file types
17371         Problem with S_ISDOOR reported by Rich Burridge.
17372         * lib/file-type.c (file_type): Do S_ISLNK early too.  Do S_TYPEIS*
17373         macros before the rest.  Add S_ISCTG, S_ISDOOR, S_ISMPB, S_ISMPC,
17374         S_ISMPX, S_ISNAM, S_ISNWK, S_ISOFD, S_ISOFL, S_ISPORT, S_ISWHT.
17376 2014-01-23  Eric Blake  <eblake@redhat.com>
17378         pthread: work around winpthread header pollution on mingw
17379         * lib/time.in.h: Move pthread workarounds...
17380         * lib/pthread.in.h: ...here.
17381         * m4/pthread.m4 (gl_PTHREAD_CHECK): Also build pthread.h when we
17382         detect macro pollution on mingw.
17383         * doc/posix-headers/pthread.texi (pthread.h): Document the problems.
17385 2014-01-22  Paul Eggert  <eggert@cs.ucla.edu>
17387         qacl: check for fchmod
17388         * m4/acl.m4 (gl_FUNC_ACL): Check for fchmod, since acl-internal.h
17389         and qset-acl.c both use HAVE_FCHMOD.
17391 2014-01-20  Paul Eggert  <eggert@cs.ucla.edu>
17393         fdopen-tests: port to Tru64
17394         * tests/test-fdopen.c (main): Don't invoke fdopen on a file
17395         descriptor that is not open, as POSIX doesn't specify the
17396         resulting behavior and the test does not work on Tru64.
17397         Problem reported by Steven M. Schweda in:
17398         http://lists.gnu.org/r/bug-gnulib/2014-01/msg00079.html
17400         stdalign: port to HP-UX compilers
17401         * lib/stdalign.in.h (_Alignas): Use __attribute__ (__aligned__ (x))
17402         if __HP_cc or __HP_aCC are nonzero.
17404 2014-01-16  Paul Eggert  <eggert@cs.ucla.edu>
17406         strtoimax: port to platforms lacking 'long long'
17407         VMS's pre-C99 compiler lacks 'long long', so 'configure' doesn't
17408         check whether strtoll is declared, which causes the C file to
17409         wrongly report an error.  Problem reported by Steven M. Schweda in:
17410         http://lists.gnu.org/r/bug-diffutils/2014-01/msg00003.html
17411         * lib/strtoimax.c (strtoull):
17412         Declare only if HAVE_UNSIGNED_LONG_LONG_INT.
17413         (strtoll): Declare only if HAVE_LONG_LONG_INT.
17415 2014-01-16  Daniel Albers  <daniel@lbe.rs>  (tiny change)
17417         relocatable-perl: fix texi syntax
17418         * doc/relocatable-maint.texi: Escape braces.
17420 2014-01-09  Reuben Thomas  <rrt@sc3d.org>
17422         relocatable-perl: like relocatable-script, but for Perl scripts
17423         * build-aux/relocatable.pl.in: Add.
17424         * doc/relocatable-maint.texi: Add documentation.
17425         * modules/relocatable-perl: Add.
17427 2014-01-07  Paul Eggert  <eggert@cs.ucla.edu>
17429         tests: fix export bug in previous patch
17430         Problem reported by Jim Meyering.
17431         * tests/init.sh (re_shell): New var, which is exported instead of
17432         re_shell_.
17434         tests: simplify porting to Solaris 10 /bin/sh
17435         Some test cases in 'grep' need a shell that groks '$(';
17436         export re_shell_ for their benefit.  Problem reported for 'grep'
17437         by Dagobert Michelsen in <http://bugs.gnu.org/16380>.
17438         * tests/init.sh (re_shell_): Export if it's used.
17440 2014-01-06  Eric Blake  <eblake@redhat.com>
17442         md5, sha1, sha256, sha512: support older autoconf
17443         * m4/00gnulib.m4 (m4_divert_push): Wrap diversion stack
17444         for autoconf < 2.63b.
17446         include_next: port to autoconf 2.63
17447         * m4/gnulib-common.m4 (AS_VAR_COPY): Define if missing.
17449 2014-01-04  Jim Meyering  <meyering@fb.com>
17451         maint: add a gnulib-local rule to keep non-ascii out of .texi files
17452         * cfg.mk (sc_keep_gnulib_texi_files_mostly_ascii): New rule,
17453         so that "make sc_maint" will ding anyone who puts non-ascii
17454         in any of gnulib's .texi files.
17456 2014-01-03  Jim Meyering  <meyering@fb.com>
17458         freadable, fwritable, fwriting: declare with the "pure" attribute
17459         * lib/freadable.h (freadable): Declare with the "pure" attribute.
17460         * lib/fwritable.h (fwritable): Likewise.
17461         * lib/fwriting.h (fwriting): Likewise.
17462         Suggested by Bruno Haible.
17464         maint.mk: adapt openat.h-include-without-use test
17465         * top/maint.mk (sc_prohibit_openat_without_use): Also check for
17466         FCHMODAT_INLINE, FCHOWNAT_INLINE and STATAT_INLINE, to avoid
17467         failing on gnulib's own lib/{chmod,chown,stat}at.c files.
17468         With this change, running "make sc_maint" in gnulib's top-level
17469         directory now passes for me.
17471 2014-01-03  Paul Eggert  <eggert@cs.ucla.edu>
17473         doc: use ASCII in .texi files where UTF-8 isn't needed
17474         * doc/posix-functions/crypt.texi, doc/posix-functions/encrypt.texi:
17475         * doc/posix-functions/setkey.texi, doc/regex.texi:
17476         Use ASCII input, not UTF-8.
17478 2014-01-02  Jim Meyering  <meyering@fb.com>
17480         freading: declare with the "pure" attribute
17481         * lib/freading.h (freading): Declare with the "pure" attribute.
17483         manywarnings: remove -Wmudflap
17484         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove -Wmudflap, since
17485         it is no longer supported in gcc-4.9-to-be.
17487 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
17489         relocatable-script: remove unused code
17490         Problem reported by Reuben Thomas in:
17491         http://lists.gnu.org/r/bug-gnulib/2013-12/msg00117.html
17492         * build-aux/relocatable.sh.in (func_tmpdir): Remove unused function.
17494 2014-01-01  Jim Meyering  <meyering@fb.com>
17496         maint: fix public-submodule-commit to work with newer git
17497         * top/maint.mk (public-submodule-commit): Remove excess quoting.
17498         We were over-quoting the test arguments, and somewhere prior to
17499         version 1.8.5.2.229, git stopped removing those excess quotes,
17500         which made the test fail, since the unexpanded strings would
17501         always differ; using GIT_TRACE=1 confirmed that the git merge-base
17502         command wasn't even being run.
17504 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
17506         doc: update main copyright year
17507         * doc/gnulib.texi: Update copyright date.
17509 2014-01-01  Eric Blake  <eblake@redhat.com>
17511         version-etc: new year
17512         * lib/version-etc.c (COPYRIGHT_YEAR): Bump to 2014.
17513         * all files: run 'make update-copyright'
17515 2013-12-24  Eric Blake  <eblake@redhat.com>
17517         passfd: give nicer error for recvfd at eof
17518         * lib/passfd.c (recvfd): Fake ENOTCONN if other end closes early.
17519         * tests/test-passfd.c (main): Enhance test to cover this.
17521 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
17523         gettimeofday: port recent C++ fix to Emacs
17524         Without this further patch, Emacs won't build due to
17525         the portcheck failing.  Also, this simplifies the patch a bit.
17526         * lib/time.in.h (localtime, gmtime): Don't replace unless
17527         GNULIB_GETTIMEOFDAY.  Treat them more like mktime.
17528         * lib/time.in.h (localtime, gmtime):
17529         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME):
17530         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
17531         * modules/time (time.h):
17532         Don't worry about the possibility of localtime and gmtime
17533         being absent; they're present in all C libraries we know about.
17534         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
17535         Don't assume sys_time is present and has been initialized.
17536         Instead, use a hack that should work even if it hasn't been.
17537         Don't use a portcheck for gmtime or localtime; this supports
17538         the hack.
17539         * modules/time (time.h): Substitute GNULIB_GETTIMEOFDAY.
17541 2013-12-17  John W. Eaton  <jwe@gnu.org>
17543         gettimeofday: fix C++ crosscompilation
17545         Never replace gmtime and localtime by macros when compiling with
17546         C++, this prevents <ctime> from being included.
17548         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Do not
17549         define gmtime and localtime as preprocessor macros.  Instead
17550         define some HAVE_GMTIME, HAVE_LOCALTIME, REPLACE_GMTIME, and
17551         REPLACE_LOCALTIME substitutions.
17552         * lib/time.in.h: Declare gmtime and localtime when needed.
17553         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): AC_SUBST HAVE_GMTIME,
17554         HAVE_LOCALTIME, REPLACE_GMTIME, and REPLACE_LOCALTIME.
17555         * modules/time: Depend on gettimeofday, and substitute the above
17556         variables in time.h.
17558 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
17560         qacl: port to Windows better
17561         See Eli Zaretskii in
17562         <http://lists.gnu.org/r/emacs-devel/2013-12/msg00593.html>.
17563         * lib/file-has-acl.c (acl_access_nontrivial):
17564         Return -1 and set errno if !HAVE_ACL_FIRST_ENTRY &&
17565         !HAVE_ACL_TO_SHORT_TEXT && !HAVE_ACL_FREE_TEXT.
17567 2013-12-12  Alexander V. Lukyanov  <lav@netis.ru>
17569         md5, sha1, sha256, sha512: fix (trivial) compile error in c++ mode.
17570         * lib/gl_openssl.h: Cast void pointers to a specific type.
17572 2013-12-07  Pádraig Brady  <P@draigBrady.com>
17574         open-tests: fix build failure with -Werror=old-style-declaration
17575         * tests/test-open.h: Reorder the inline to avoid the issue.
17577 2013-12-07  Pádraig Brady  <P@draigBrady.com>
17579         md5, sha1, sha256, sha512: fix link error with partial libcrypto
17580         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Only clear LIB_CRYPTO at
17581         init time, so that if early checks find crypto routines,
17582         while the last does not, then @LIB_CRYPTO@ is replaced correctly,
17583         avoiding link failures.
17585 2013-12-07  Paul Eggert  <eggert@cs.ucla.edu>
17587         md5, sha1, sha256, sha512: add gl_SET_CRYPTO_CHECK_DEFAULT
17588         This provides a new way to specify the default for
17589         gl_CRYPTO_CHECK, one that is reflected in the --help message.
17590         Emacs uses this, as well as the old way.
17591         This attempts to implement a suggestion by Pádraig Brady in
17592         <http://lists.gnu.org/r/coreutils/2013-12/msg00080.html>.
17593         * m4/gl-openssl.m4(gl_SET_CRYPTO_CHECK_DEFAULT): New macro.
17594         (gl_CRYPTO_CHECK): Use it.  Mention the default in --help output.
17596         md5, sha1, sha256, sha512: add 'auto', and a way to specify default
17597         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK):
17598         Add support for a new option, --with-openssl=auto, which causes
17599         the library to be used if available and silently ignored if not.
17600         Add support to allow configure.ac to specify its own
17601         default, by setting with_openssl_default before invoking gl_INIT.
17603 2013-12-05  Paul Eggert  <eggert@cs.ucla.edu>
17605         open-tests: port to glibc with _FORTIFY_SOURCE and -O1
17606         Problem reported by Daiki Ueno in:
17607         http://lists.gnu.org/r/bug-gnulib/2013-06/msg00052.html
17608         * tests/test-open.h (__always_inline):
17609         New macro, if not already defined.
17610         (test_open): Use it.
17612 2013-12-04  Eric Blake  <eblake@redhat.com>
17614         include_next: minimize code duplication
17615         * modules/include_next (Depends-on): Add absolute-header.
17616         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Reuse
17617         gl_ABSOLUTE_HEADER_ONE instead of open-coding it.
17619 2013-12-04  Pádraig Brady  <P@draigBrady.com>
17621         getcwd: fix compile error in configure check
17622         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Include errno.h
17624 2013-12-04  Pádraig Brady  <P@draigBrady.com>
17626         regex: suppress core dumps from detection code
17627         * m4/regex.m4 (gl_REGEX): Catch the SIGABRT and convert to SIGTERM
17628         to suppress core dumps that may well occur on glibc systems.
17629         These core dumps might not be cleaned up automatically, or could
17630         trigger some system core dump handling logic.
17632 2013-12-03  Pádraig Brady  <P@draigBrady.com>
17634         md5, sha1, sha256, sha512: support mandating use of openssl
17635         * m4/gl-openssl.m4 (gl_crypto_check): Adjust the --with-openssl
17636         description, to list the now 3 separate options.  also don't
17637         mention the default=no, since this is implicit given the option
17638         is described as --with-openssl rather than --without-openssl.
17639         If projects change the default they're free to document that.
17640         with --with-openssl[=yes] we now error out when the specified
17641         hash algorithm is not available in libcrypto.
17643 2013-12-03  Ivailo  <xakepa10@gmail.com>
17645         test-xvasprintf: (trivial) fix to disable some -Wformat-security diags
17646         * tests/test-xvasprintf.c: Disable -Wformat-zero-length and
17647         -Wformat-nonliteral checks, as these edge cases are part of the test.
17649 2013-12-03  Eric Blake  <eblake@redhat.com>
17651         regex: avoid glibc deadlock during configure
17652         * m4/regex.m4 (gl_REGEX): Avoid recursive malloc deadlock when
17653         glibc bug 15078 in turn triggers bug 16159.
17654         Reported by Michal Privoznik.
17656 2013-12-02  Pádraig Brady  <P@draigBrady.com>
17658         md5, sha1, sha256, sha512: use openssl routines if available.
17659         --with-openssl the libcrypto md5, sha1, sha224, sha256, sha384, sha256
17660         routines will be used if available, requiring apps to link @LIB_CRYPTO@
17661         * lib/gl_openssl.h: Provide wrappers for specified openssl hash.
17662         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): New function to lookup libcrypto
17663         in the standard system location.
17664         * m4/sha1.m4: Call gl_CRYPTO_CHECK() for SHA1.
17665         * m4/sha256.m4: Likewise with SHA256.
17666         * m4/sha512.m4: Likewise with SHA512.
17667         * m4/md5.m4: Likewise with MD5.
17668         * m4/gc.m4: Ensure @LIB_CRYPTO@ set for tests.
17669         * lib/sha1.h: Include wrappers if HAVE_OPENSSL_SHA1.
17670         * lib/sha256.h: Likewise with SHA256.
17671         * lib/sha512.h: Likewise with SHA512.
17672         * lib/md5.h: Likewise with MD5.
17673         * lib/sha1.c: Exlude functionality if HAVE_OPENSSL_SHA1.
17674         * lib/sha256.c: Likewise with SHA256.
17675         * lib/sha512.c: Likewise with SHA512.
17676         * lib/md5.c: Likewise with MD5.
17677         * modules/crypto/sha1 (Link:): Add the new optional lib.
17678         (Depends-on:): Add dependency on extern-inline.
17679         * modules/crypto/sha256: Likewise.
17680         * modules/crypto/sha512: Likewise.
17681         * modules/crypto/md5: Likewise.
17682         * modules/crypto/sha1-tests: Reference the lib here too.
17683         * modules/crypto/md5-tests: Likewise.
17684         * modules/crypto/gc-des-tests: Likewise.
17685         * modules/crypto/gc-hmac-md5-tests: Likewise.
17686         * modules/crypto/gc-hmac-sha1-tests: Likewise.
17687         * modules/crypto/gc-hmac-sha256-tests: Likewise.
17688         * modules/crypto/gc-hmac-sha512-tests: Likewise.
17689         * modules/crypto/gc-md5-tests: Likewise.
17690         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
17691         * modules/crypto/gc-sha1-tests: Likewise.
17692         * modules/crypto/gc-tests: Likewise.
17693         * modules/crypto/hmac-md5-tests: Likewise.
17694         * modules/crypto/hmac-sha1-tests: Likewise.
17695         * modules/crypto/hmac-sha256-tests: Likewise.
17696         * modules/crypto/hmac-sha512-tests: Likewise.
17698 2013-11-29  RV1971  <rv1971@web.de>
17700         base64: (trivial) fix compilation regression on some compilers
17701         * lib/base64.c: Don't return the void function,
17702         instead split to a separate return statement.
17704 2013-11-28  Paul Eggert  <eggert@cs.ucla.edu>
17706         ignore-value: revert previous code change
17707         * lib/ignore-value.h (ignore_value): Use __extension__ and
17708         __typeof__ only for GCC 3.4 and later.  Reported by Eric Blake in
17709         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00102.html>.
17710         Change the comment to try to explain this better.
17712 2013-11-27  Pádraig Brady  <P@draigBrady.com>
17714         selinux-h: improve stub types and add more stub functions
17716         * lib/se-selinux.in.h: Change security_context_t to a typedef
17717         rather than a define, as it's a pointer type and so is better
17718         as a typedef to avoid issues declaring multiple variables
17719         with the comma operator.  Also add stub for string_to_security_class().
17720         * lib/se-context.in.h: Add stub functions for
17721         context_{type,range,role,user}_get().
17723 2013-11-27  Paul Eggert  <eggert@cs.ucla.edu>
17725         ignore-value: prefer GCC version back through 2.0
17726         The code didn't match the comments, so I did a bit of software
17727         archaeology.  GCC 2.0 seems to support __extension__ and
17728         __typeof__, so fix both code and comments to use 2.0.
17729         * lib/ignore-value.h (ignore_value): Use __extension__ and
17730         __typeof__ for GCC 2.0 through 3.3, too.
17732 2013-11-25  Mats Erik Andersson  <gnu@gisladisker.se>
17734         pty: Activate the signature wrapper of forkpty.
17735         The intended preprocessor macro HAVE_FORKPTY is
17736         never defined, yet `lib/forkpty.c' depends on it.
17738         * m4/pty.m4 (gl_FUNC_FORKPTY): At completed analysis,
17739         apply AC_DEFINE_UNQUOTED to HAVE_FORKPTY with value
17740         $HAVE_FORKPTY for access to wrapper in `lib/forkpty.c'.
17742 2013-11-18  Jim Meyering  <meyering@fb.com>
17743         and Paul Eggert  <eggert@cs.ucla.edu>
17745         quotearg: don't attempt to store 1 << 31 into an "int"
17746         * lib/quotearg.c (quotearg_buffer_restyled): Building coreutils with
17747         gcc's new -fsanitize=undefined and running its tests triggered some
17748         new test failures due to undefined behavior, all with this diagnostic:
17749           lib/quotearg.c:629:62: runtime error: left shift of 1 by 31 places \
17750             cannot be represented in type int
17751         Rather than shifting "1" left to form a mask, shift the bits right and
17752         simply use "1" as the mask.
17754 2013-11-21  Paul Eggert  <eggert@cs.ucla.edu>
17756         error: depend on stdio
17757         Problem reported by Nikos Mavrogiannopoulos in
17758         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00084.html>
17759         * modules/error (Depends-on): Add stdio.
17761 2013-11-18  Ben Pfaff  <blp@cs.stanford.edu>
17763         * doc/relocatable-maint.texi (Supporting Relocation): Improve
17764         wording.
17765         Reported by Reuben Thomas <rrt@sc3d.org>.
17767 2013-11-13  Paul Eggert  <eggert@cs.ucla.edu>
17769         * lib/getgroups.c (posix_getgroups, getgroups) [__APPLE__]:
17770         New function and macro, to work around _DARWIN_C_SOURCE problem.
17771         Reported by Jack Howarth in <http://bugs.gnu.org/14463>.
17773 2013-11-11  Pádraig Brady  <P@draigBrady.com>
17775         base64: provide a fast path for encoding well sized buffers
17776         Avoid conditionals in the base64 encoding loop,
17777         which was seen to give 60% better throughput.
17778         * lib/base64.c (base64_encode_fast): A new function to be called
17779         when we don't want to NUL terminate, and we have enough space
17780         in the output to encode the given input.
17781         (base64_encode): Call the _fast() version when appropriate.
17782         Also remove a redundant mask with 0x3F on the first encoded byte.
17784 2013-11-08  Paul Eggert  <eggert@cs.ucla.edu>
17786         extern-inline: port better to OS X 10.9
17787         * m4/extern-inline.m4: Omit serial number; this file doesn't use them.
17788         (gl_EXTERN_INLINE): Do not suppress the use of extern inline on
17789         OS X 10.9, except for g++ where the bug is still present.
17790         See <http://trac.macports.org/ticket/41033>.
17792 2013-11-08  Eric Blake  <eblake@redhat.com>
17794         fpending: fix regression on DragonFly BSD
17795         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for declaration.
17796         * lib/fpending.h (__fpending): Don't declare twice.
17797         Reported by GW in
17798         <https://lists.gnu.org/r/bug-m4/2013-11/msg00000.html>
17800 2013-11-05  Jim Meyering  <meyering@fb.com>
17802         hash: relax license to LGPLv2+, for libguestfs
17803         * modules/hash (License): Change from GPL to LGPLv2+.
17805 2013-11-03  Paul Eggert  <eggert@cs.ucla.edu>
17807         intprops: port to Oracle Studio c99
17808         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__SUNPRO_C && __STDC__]:
17809         Define to 0, to avoid diagnostics when Oracle Studio is pedantic.
17811 2013-10-31  Paul Eggert  <eggert@cs.ucla.edu>
17813         obstack: pacify HP C
17814         * lib/obstack.h (obstack_free) [!__GNUC__]: Rewrite to avoid
17815         warning "conversion from pointer to smaller integer" from HP
17816         C-ANSI-C - cc version B9007AA/B3910B A.06.26.  It's safe to assume
17817         C89 or later nowadays, so cast to void instead of int.  Privately
17818         reported by H.Merijn Brand.  Also, change header to match glibc's,
17819         to make checking against glibc easier.
17821 2013-10-29  Jim Meyering  <meyering@fb.com>
17823         maint.mk: prefer gpgv2 over gpgv
17824         * top/maint.mk (gpgv): Use gpgv2 if present, else gpgv.
17825         (gpg_key_ID): Use $(gpgv), rather than hard-coding "gpgv".
17826         Reported by Gary Vaughan.
17828 2013-10-30  Paul Eggert  <eggert@cs.ucla.edu>
17830         isnan: port to VAX
17831         Reported by John Klos for NetBSD-5/VAX in
17832         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00133.html>.
17833         * lib/isnan.c (IEEE_FLOATING_POINT): New macro, stolen from Emacs.
17834         (FUNC): Use it.
17836 2013-10-28  Jim Meyering  <meyering@fb.com>
17838         gnulib-tool: protect against CDPATH
17839         * gnulib-tool: Many "cd" built-in functions print a directory name
17840         to stdout when CDPATH is set, e.g.,
17841           $ bash -c 'CDPATH=/; cd tmp'
17842           /tmp
17843         Unset it, when possible.  Prompted by a comment from Bruce Korb.
17845         maint.mk: restore functionality removed by recent change...
17846         Sunday's change, v0.0-8062-g6b24f60, may have appeared correct from
17847         the context of a shallow-cloned gnulib repository: "git describe"
17848         would fail in such a directory.  However, that change made it so
17849         the reported gnulib revision no longer includes the version number
17850         or a commit count, even when run from a full clone.
17851         * top/maint.mk (gnulib-version): Use the full "git describe"
17852         output when possible, e.g., the form above, rather than the
17853         abbreviated, no-tag, no-commit-count string, and fall back to
17854         using a 10-byte hash, rather than the default minimal-length
17855         hash prefix, since while the minimal-length one may be fine today,
17856         it is likely not to be unique for very long.
17858 2013-10-26  Jim Meyering  <meyering@fb.com>
17860         maint.mk: fix "release" target to build _version
17861         This fixes a bug in README-release whereby following the outlined
17862         steps, one would publish a tarball whose programs would report
17863         --version output not consistent with the package version number.
17864         This bug caused grep-2.15 to produce a grep program whose
17865         --version option made it print 2.14.56-1e3d rather than 2.15.
17866         * top/maint.mk (release): Making this target build "_version"
17867         ensures that the new version number is reflected in configure.
17869 2013-10-21  Ben Pfaff  <blp@cs.stanford.edu>
17871         install-reloc: Support multi-binary installation.
17872         * build-aux/install-reloc: Support installing multiple programs in
17873         one invocation, as done by Automake starting with commit
17874         4295fe33eb23f (Multi-file install for PROGRAMS.).  From Bruno
17875         Haible <bruno@clisp.org>, archived at
17876         http://lists.debian.org/debian-bsd/2012/05/msg00032.html.
17877         Reported by Sylvain <beuc@gnu.org>.
17879 2013-10-21  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
17881         selinux-h: Really build without selinux when library is missing.
17882         * m4/selinux-selinux-h.m4: When the selinux library is missing, really
17883         continue without selinux, as already told in the warning message.
17885 2013-10-21  Jim Meyering  <meyering@fb.com>
17887         regex: also remove dependency on HAVE_WCSCOLL
17888         * lib/regex_internal.h: Remove final vestige of the wcscoll dependency.
17890 2013-10-21  Reuben Thomas  <rrt@sc3d.org>
17892         xfreopen: Fix typo. s/frepoen/freopen/
17893         * lib/xfreopen.c: Fix description.
17894         * modules/xfreopen: Likewise.
17896 2013-10-21  Jim Meyering  <meyering@fb.com>
17898         regex: don't depend on wcscoll
17899         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wcscoll.
17900         It is no longer used.
17902 2013-10-20  Jim Meyering  <meyering@fb.com>
17904         error: add the printf attribute to a static function
17905         * lib/error.c (error_tail): Add the printf attribute, to placate
17906         gcc's -Werror=suggest-attribute=format option.
17908 2013-09-30  Jim Meyering  <meyering@fb.com>
17910         fpending, obstack, strerror-override: use pure+const function attrs
17911         * lib/fpending.h (__fpending): Declare with the "pure" attribute.
17912         * lib/obstack.c (_obstack_allocated_p): Likewise.
17913         * lib/obstack.h (_obstack_memory_used): Likewise.
17914         (_obstack_memory_used): Likewise.
17915         * lib/strerror-override.h (strerror_override): Declare with
17916         the "const" attribute.
17918 2013-10-18  Eric Blake  <eblake@redhat.com>
17920         extern-inline: make safe for -Wundef usage
17921         Reported by Vladimir 'phcoder' Serbinenko in
17922         https://lists.gnu.org/r/bug-gnulib/2013-10/msg00078.html
17923         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Port to older gcc.
17925 2013-10-16  Paul Eggert  <eggert@cs.ucla.edu>
17927         mkfifo-tests, etc.: allow HP-UX 11.11 bug
17928         Problem reported by Daniel Richard G. in
17929         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00068.html>.
17930         * doc/posix-functions/mkfifo.texi (mkfifo):
17931         * doc/posix-functions/mkfifoat.texi (mkfifoat):
17932         * doc/posix-functions/mknod.texi (mknod):
17933         * doc/posix-functions/mknodat.texi (mknodat):
17934         Document the HP-UX 11.11 bug.
17935         * tests/test-mkfifo.h (test_mkfifo):
17936         Allow the HP-UX 11.11 bug.
17938 2013-10-14  Paul Eggert  <eggert@cs.ucla.edu>
17940         acl: allow cross-compilation to Gentoo
17941         Problem reported by Gabriel Marcano in
17942         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00058.html>.
17943         * m4/acl.m4 (gl_ACL_GET_FILE): When cross-compiling,
17944         test only whether it links.
17946 2013-10-13  Paul Eggert  <eggert@cs.ucla.edu>
17948         mgetgroups: remove dependency on realloc-gnu
17949         The dependency violates the comment in realloc-gnu, which
17950         says that tests can't depend on realloc-gnu; some tests depend
17951         on mgetgroups, so mgetgroups can't depend on realloc-gnu.
17952         Problem reported by Daniel Richard G. in
17953         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00056.html>.
17954         * lib/mgetgroups.c (mgetgroups): Don't call realloc (NULL, 0).
17955         * modules/mgetgroups (Depends-on): Depend on realloc-posix,
17956         not realloc-gnu.
17958 2013-10-12  Paul Eggert  <eggert@cs.ucla.edu>
17960         regex-tests: port to HP-UX 11.11
17961         Problem reported by Daniel Richard G. in
17962         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00052.html>.
17963         * modules/regex-tests (test_regex_LDADD): Add LIBTHREAD, LIB_PTHREAD.
17965 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
17967         verify: document some 'assume' pitfalls
17968         * doc/verify.texi (Compile-time Assertions):
17969         Mention that 'assume (E)' can sometimes slow things down.
17970         Use CHAR_MAX + 1, not UCHAR_MAX + 1.
17972 2013-10-10  Eric Blake  <eblake@redhat.com>
17974         strtoumax: fix typo in previous commit.
17975         * modules/strtoumax (Depends-on): Fix typo.
17976         * modules/strtoimax (Depends-on): Likewise.
17978 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
17980         strtoumax: port to Solaris 8
17981         This problem was introduced in the recent HP-UX patch.
17982         Reported by Tom G. Christensen in
17983         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00037.html>.
17984         * modules/strtoumax (Depends-on): Test HAVE_STRTOUMAX
17985         and REPLACE_STRTOUMAX rather than ac_cv_func_strtoumax.
17987 2013-10-09  Paul Eggert  <eggert@cs.ucla.edu>
17989         strtoimax, strtoumax: port to HP-UX 11.11
17990         Problem reported by Daniel Richard G. in
17991         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00023.html>.
17992         * lib/inttypes.in.h (strtoumax): Replace strtoumax if
17993         REPLACE_STRTOUMAX, thus treating it consistently with strtoimax.
17994         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Add default for
17995         REPLACE_STRTOUMAX.
17996         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX):
17997         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX):
17998         Replace the function if defined as a macro but not as a function.
17999         * modules/inttypes-incomplete (inttypes.h): Substitute
18000         REPLACE_STRTOUMAX.
18001         * modules/strtoumax (configure.ac): Replace strtoumax if
18002         REPLACE_STRTOUMAX.
18004 2013-10-08  Paul Eggert  <eggert@cs.ucla.edu>
18006         strtoimax: port to HP-UX 11.11
18007         Problem reported by Daniel Richard G.
18008         * lib/strtoimax.c (Strtoimax, Strtol, Strtoll): New macros.
18009         (strtoimax, strtol, strtoll) [UNSIGNED]: Remove, since
18010         they might clash with inttypes.h.
18012 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
18014         New module 'count-trailing-zeros'.
18015         * MODULES.html.sh: Mention it.
18016         * lib/count-trailing-zeros.c, lib/count-trailing-zeros.h:
18017         * m4/count-trailing-zeros.m4, modules/count-trailing-zeros:
18018         * modules/count-trailing-zeros-tests:
18019         * tests/test-count-trailing-zeros.c:
18020         New files.
18022         count-leading-zeros: port to MSC; support types wider than 64 bits
18023         The ideas behind the MSC port are stolen from Emacs.
18024         * lib/count-leading-zeros.h:
18025         Don't include verify.h: it's no longer needed, as types wider than
18026         64 bits are now supported.
18027         (COUNT_LEADING_ZEROS): New arg MSC_BUILTIN, for better
18028         performance with MSC.  All uses changed.  Do not assume that TYPE
18029         has at most 64 bits.
18030         (count_leading_zeros_32): Assume 0 < X < 2**32, for speed.
18031         All uses changed.  Fold the subtraction from 31 into the table.
18033         count-one-bits: port to MSC; support types wider than 64 bits
18034         The ideas behind the MSC port are stolen from Emacs.
18035         * lib/count-one-bits.c (popcount_support) [_MSC_VER]: New variable.
18036         * lib/count-one-bits.h: Include limits.h, for CHAR_BIT.
18037         Don't include verify.h: it's no longer needed, as types wider than
18038         64 bits are now supported.
18039         (COUNT_ONE_BITS_GENERIC): New macro.
18040         (popcount_supported) [_MSC_VER]: New inline function.
18041         (COUNT_ONE_BITS): Use it.  New arg MSC_BUILTIN, for better
18042         performance with MSC.  All uses changed.  Do not assume that TYPE
18043         has at most 64 bits.
18044         * modules/count-one-bits (Depends-on): Do not depend on 'verify'.
18046 2013-10-06  Andrew Borodin  <aborodin@vmail.ru>
18048         mountlist: fix resource leak with MOUNTED_INTERIX_STATVFS
18049         * lib/mountlist.c (read_file_system_list): fix leak of directory
18050         streams in case of #ifdef MOUNTED_INTERIX_STATVFS.
18052 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
18054         tests: improve diagnostic when an assertion fails
18055         * tests/macros.h (ASSERT): Report the assertion that failed.
18057 2013-10-02  Paul Eggert  <eggert@cs.ucla.edu>
18059         verify: new macro 'assume'
18060         This is taken from Emacs, and should be generally useful.
18061         * doc/verify.texi (assume): Document it.
18062         * lib/verify.h (assume): New macro.
18063         (__has_builtin): Expand to 0 if not defined.
18065 2013-09-26  Eric Blake  <eblake@redhat.com>
18067         dup2, dup3: work around another cygwin crasher
18068         * m4/dup2.m4 (gl_FUNC_DUP2): Expose the bug.
18069         * m4/dup3.m4 (gl_FUNC_DUP3): Likewise.
18070         * tests/test-dup2.c (main): Likewise.
18071         * lib/dup2.c (rpl_dup2): Use setdtablesize to avoid it.
18072         * lib/dup3.c (dup3): Likewise.
18073         * doc/posix-functions/dup2.texi (dup2): Document it.
18074         * doc/glibc-functions/dup3.texi (dup3): Likewise.
18076         getdtablesize: work around cygwin issue
18077         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Detect problem.
18078         * modules/getdtablesize (configure.ac): Build replacement.
18079         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set up a witness.
18080         * modules/unistd (Makefile.am): Expose the witness.
18081         * lib/unistd.in.h (getdtablesize): Declare replacement.
18082         * lib/getdtablesize.c (rpl_getdtablesize): Work around it.
18083         * tests/test-getdtablesize.c (main): Test it.
18084         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Document it.
18086 2013-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
18088         pmccabe2html: escaping of special characters
18089         Escape all '<', '>', and '&' in HTML output.
18090         * build-aux/pmccabe2html (html_fnc): Call gsub()
18091         instead of sub() to capture all '<', '>', and '&'.
18092         Neither of '<' and '>' is special in a regexp,
18093         so first arguments to gsub() are corrected. Also,
18094         in replacement strings, ampersand must be escaped.
18095         Finally, '&' must be handled first, then '<' and '>'.
18097 2013-09-24  Eric Blake  <eblake@redhat.com>
18099         manywarnings: enable nicer gcc warning messages
18100         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Older gcc requires
18101         some -f options for optimal warnings.
18103 2013-09-21  Jim Meyering  <meyering@fb.com>
18105         timespec: use the new TIMESPEC_RESOLUTION in a few more places
18106         * lib/timespec-add.c (timespec_add): Also replace 999999999
18107         with TIMESPEC_RESOLUTION - 1.
18108         * lib/timespec-sub.c (timespec_sub): Likewise.
18110 2013-09-23  Paul Eggert  <eggert@cs.ucla.edu>
18112         warnings: port --enable-gcc-warnings to Solaris Studio 12.3
18113         Problem reported by Dagobert Michelsen via Eric Blake in
18114         <http://lists.gnu.org/r/bug-gnulib/2013-09/msg00052.html>.
18115         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use AC_LINK_IFELSE,
18116         not AC_COMPILE_IFELSE.
18118 2013-09-23  Eric Blake  <eblake@redhat.com>
18120         configmake: support new --runstatedir option
18121         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Substitute runstatedir
18122         even if autoconf was too old to provide the command line option.
18123         * modules/configmake (Makefile.am): Propagate it to .h file.
18125 2013-09-22  Paul Eggert  <eggert@cs.ucla.edu>
18127         ctype, string: depend on extern-inline
18128         This is needed to complete the recent OS X fixes.
18129         Also, fix related documentation as suggested by Eric Blake.
18130         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
18131         * doc/posix-functions/isascii.texi, doc/posix-functions/iscntrl.texi:
18132         * doc/posix-functions/isdigit.texi, doc/posix-functions/isgraph.texi:
18133         * doc/posix-functions/islower.texi, doc/posix-functions/isprint.texi:
18134         * doc/posix-functions/ispunct.texi, doc/posix-functions/isspace.texi:
18135         * doc/posix-functions/isupper.texi, doc/posix-functions/isxdigit.texi:
18136         * doc/posix-functions/toascii.texi, doc/posix-functions/tolower.texi:
18137         * doc/posix-functions/toupper.texi:
18138         List the 'ctype' gnulib module.
18139         * doc/posix-functions/strcat.texi, doc/posix-functions/strcpy.texi:
18140         * doc/posix-functions/strncpy.texi:
18141         List the 'string' gnulib module.
18142         * modules/memcpy, modules/memmove, modules/memset (Depends-on):
18143         Add string.
18144         * modules/ctype, modules/string (Depends-on): Add extern-inline.
18146 2013-09-19  Pádraig Brady  <P@draigBrady.com>
18148         userspec: support optional parameters to parse_user_spec()
18149         * lib/userspec.c (parse_user_spec): If the GID param is NULL,
18150         then avoid group processing and treat the full spec as a user.
18151         (parse_with_separator): Allow the USERNAME and GROUPNAME to
18152         be optional params (NULL), in which case they're ignored.
18154 2013-09-19  Paul Eggert  <eggert@cs.ucla.edu>
18156         timespec: new function make_timespec, and new constants
18157         * lib/timespec.h: Incorporate recent changes on the Emacs trunk.
18158         (TIMESPEC_RESOLUTION, LOG10_TIMESPEC_RESOLUTION): New constants.
18159         (make_timespec): New function.
18160         * lib/dtotimespec.c (dtotimespec):
18161         * lib/timespec-add.c (timespec_add):
18162         * lib/timespec-sub.c (timespec_sub):
18163         * lib/utimens.c (validate_timespec):
18164         * lib/utimensat.c (rpl_utimensat):
18165         Use these new constants and functions.
18167         stdio: OS X port of putc_unlocked + extern inline
18168         * lib/stdio.in.h (putc_unlocked): #undef on problematic Apple platforms.
18169         * doc/posix-functions/putc_unlocked.texi:
18170         * doc/posix-functions/putchar_unlocked.texi:
18171         Document this portability problem.
18173         signal: OS X port of sigaddset etc. + extern inline
18174         * lib/signal.in.h (sigaddset, sigdelset, sigemptyset, sigfillset)
18175         (sigismember): #undef on problematic Apple platforms.
18176         * doc/posix-functions/sigaddset.texi:
18177         * doc/posix-functions/sigdelset.texi:
18178         * doc/posix-functions/sigemptyset.texi:
18179         * doc/posix-functions/sigfillset.texi:
18180         * doc/posix-functions/sigismember.texi:
18181         Document this portability problem.
18183         extern-inline: do not always suppress extern inline on OS X
18184         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Suppress the use of
18185         extern inline on Apple only if the particular compile-time
18186         configuration is known to have the problem.
18187         (_GL_EXTERN_INLINE_APPLE_BUG): New private macro, to implement this.
18188         (_GL_EXTERN_INLINE_IN_USE): New macro, intended for use by
18189         other Gnulib modules.
18191         extern-inline: document fixes for ctype and wctype macros
18192         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
18193         * doc/posix-functions/isascii.texi, doc/posix-functions/isblank.texi:
18194         * doc/posix-functions/iscntrl.texi, doc/posix-functions/isdigit.texi:
18195         * doc/posix-functions/isgraph.texi, doc/posix-functions/islower.texi:
18196         * doc/posix-functions/isprint.texi, doc/posix-functions/ispunct.texi:
18197         * doc/posix-functions/isspace.texi, doc/posix-functions/isupper.texi:
18198         * doc/posix-functions/iswalnum.texi, doc/posix-functions/iswalpha.texi:
18199         * doc/posix-functions/iswcntrl.texi, doc/posix-functions/iswctype.texi:
18200         * doc/posix-functions/iswdigit.texi, doc/posix-functions/iswgraph.texi:
18201         * doc/posix-functions/iswlower.texi, doc/posix-functions/iswprint.texi:
18202         * doc/posix-functions/iswpunct.texi, doc/posix-functions/iswspace.texi:
18203         * doc/posix-functions/iswupper.texi, doc/posix-functions/iswxdigit.texi:
18204         * doc/posix-functions/isxdigit.texi, doc/posix-functions/toascii.texi:
18205         * doc/posix-functions/memcpy.texi, doc/posix-functions/memmove.texi:
18206         * doc/posix-functions/memset.texi, doc/posix-functions/stpcpy.texi:
18207         * doc/posix-functions/stpncpy.texi, doc/posix-functions/strcat.texi:
18208         * doc/posix-functions/strcpy.texi, doc/posix-functions/strncat.texi:
18209         * doc/posix-functions/strncpy.texi:
18210         * doc/posix-functions/tolower.texi, doc/posix-functions/toupper.texi:
18211         * doc/posix-functions/towlower.texi, doc/posix-functions/towupper.texi:
18212         Document that Gnulib fixes portability problems with these
18213         functions on OS X 10.8 and earlier when called from plain inline
18214         or extern inline functions.
18216 2013-09-17  Kevin Cernekee  <cernekee@gmail.com>
18218         fflush, freadahead, fseeko: Fix for Android
18219         Suggested by Bruno Haible in:
18220         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00306.html>
18221         * lib/stdio-impl.h: Use local __sfileext definition.
18223 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>
18225         pmccabe2html: Portability to other awk versions.
18226         The functions systime() and strftime() are available
18227         in Gawk only.  Properly close two HTML-tags 'style'
18228         and 'span'.
18229         * build-aux/pmccabe2html (BEGIN): Store timing
18230         strings in EPOCH_TIME and CHRONOS_TIME.  Replace
18231         systime() in HTML_COMMENT.
18232         (html_header): Correctly close tag 'style'.
18233         (END): Replace strftime() by CHRONOS_TIME.  Close
18234         tag 'span' correctly, not as 'div'.
18236 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
18238         getgroups: statement without effect
18239         * lib/getgroups.c (rpl_getgroups) [HAVE_GETGROUPS]:
18240         Change equality conditional to expected assignment.
18242 2013-09-09  Eric Blake  <eblake@redhat.com>
18244         glob: fix compilation
18245         * lib/glob.in.h (__THROW): Fix missing line in previous commit.
18247 2013-09-07  Eric Blake  <eblake@redhat.com>
18249         glob: fix build for platforms without __THROW
18250         * lib/glob.in.h (__THROW): Add definition again.
18252 2013-09-04  Anton Ovchinnikov  <revolver112@gmail.com>  (tiny change)
18254         regex-quote: fix buffer access out of bounds
18255         http://lists.gnu.org/r/bug-gnulib/2013-09/msg00001.html
18256         * lib/regex-quote.c (regex_quote_spec_pcre):
18257         Fix typo that resulted in an out-of-bounds read.
18259 2013-09-04  Eric Blake  <eblake@redhat.com>
18261         glob: avoid -Wattribute warnings on glibc
18262         * lib/glob.c (next_brace_sub, prefix_array, collated_compare): Use
18263         __THROWNL, not __THROW, on static functions.
18264         * lib/glob.in.h (__THROW): Adjust...
18265         (__THROWNL): ...accordingly.
18267 2013-08-28  Paul Eggert  <eggert@cs.ucla.edu>
18269         headers: check that _GL_INLINE_HEADER_BEGIN is defined
18270         Suggested by Bruce Korb in:
18271         http://lists.gnu.org/r/bug-gnulib/2013-08/msg00070.html
18272         * doc/extern-inline.texi (extern inline):
18273         Suggest checking that _GL_INLINE_HEADER_BEGIN is defined.
18274         * lib/acl-internal.h, lib/argp-fmtstream.h, lib/argp.h:
18275         * lib/binary-io.h, lib/bitrotate.h, lib/count-leading-zeros.h:
18276         * lib/count-one-bits.h, lib/eealloc.h, lib/execinfo.in.h:
18277         * lib/gethrxtime.h, lib/gl_list.h, lib/gl_oset.h, lib/gl_xlist.h:
18278         * lib/gl_xoset.h, lib/gl_xsublist.h, lib/glthread/cond.h:
18279         * lib/glthread/thread.h, lib/math.in.h, lib/mbchar.h, lib/mbfile.h:
18280         * lib/mbiter.h, lib/mbuiter.h, lib/openat.h, lib/pipe-filter-aux.h:
18281         * lib/priv-set.h, lib/pthread.in.h, lib/savewd.h, lib/se-context.in.h:
18282         * lib/se-selinux.in.h, lib/sig-handler.h, lib/stat-time.h:
18283         * lib/sys_socket.in.h, lib/timespec.h, lib/u64.h, lib/unistd.in.h:
18284         * lib/utimens.h, lib/wctype.in.h, lib/xalloc.h, lib/xsize.h:
18285         * lib/xtime.h:
18286         Check that _GL_INLINE_HEADER_BEGIN is defined.
18288 2013-08-29  Pádraig Brady  <P@draigBrady.com>
18290         bootstrap: remove the --version requirement from ancillary tools
18291         * build-aux/bootstrap (check_exists): A new refactored function to
18292         determine if a command exists.
18293         (find_tool): Use the new function which does not require the
18294         --version option to be supported.
18295         (check_versions): Use the new function.
18297 2013-08-26  Simon Josefsson  <simon@josefsson.org>
18299         gc: support HMAC-SHA256 and HMAC-SHA512.
18300         * lib/gc.h: Add gc_hmac_sha256 and gc_hmac_sha512.
18301         * lib/gc-libgcrypt.c (gc_hmac_sha256, gc_hmac_sha512): New
18302         functions.
18303         (gc_hmac_md5): Use symbolic constant.
18304         * lib/gc-gnulib.c: Include hmac.h for HMAC-SHA256/512 too.
18305         (gc_hmac_sha256, gc_hmac_sha512): New functions.
18306         * lib/hmac.h: Add hmac_sha256 and hmac_sha512 prototypes.
18307         * m4/sha256.m4: Protect against empty expansion.
18308         * m4/sha512.m4: Likewise.
18309         * lib/hmac-sha256.c: New file.
18310         * lib/hmac-sha512.c: Likewise.
18311         * m4/gc-hmac-sha256.m4: Likewise.
18312         * m4/gc-hmac-sha512.m4: Likewise.
18313         * m4/gc-sha256.m4: Likewise.
18314         * m4/gc-sha512.m4: Likewise.
18315         * modules/crypto/gc-hmac-sha256: Likewise.
18316         * modules/crypto/gc-hmac-sha256-tests: Likewise.
18317         * modules/crypto/gc-hmac-sha512: Likewise.
18318         * modules/crypto/gc-hmac-sha512-tests: Likewise.
18319         * modules/crypto/hmac-sha256: Likewise.
18320         * modules/crypto/hmac-sha256-tests: Likewise.
18321         * modules/crypto/hmac-sha512: Likewise.
18322         * modules/crypto/hmac-sha512-tests: Likewise.
18323         * tests/test-gc-hmac-sha256.c: Likewise.
18324         * tests/test-gc-hmac-sha512.c: Likewise
18325         * tests/test-hmac-sha256.c: Likewise.
18326         * tests/test-hmac-sha512.c: Likewise
18328 2013-08-24  Daiki Ueno  <ueno@gnu.org>
18330         * m4/intl.m4: Update from gettext-0.18.3.1, which fixes a misuse
18331         of AC_CHECK_DECLS.
18333 2013-08-23  Paul Eggert  <eggert@cs.ucla.edu>
18335         selinux-at: omit unnecessary include
18336         * lib/selinux-at.c: Don't include dosname.h; not needed, since
18337         this source file doesn't use its macros, and subsidiary files that
18338         use the macros already include it.
18340 2013-08-21  Eric Blake  <eblake@redhat.com>
18342         d-ino: avoid false negative on symlink
18343         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use lstat.
18344         Reported by Stephane Chazelas.
18346 2013-08-12  Mike Miller  <mtmiller@ieee.org>  (tiny change)
18348         bootstrap: port to OpenBSD sed
18349         * build-aux/bootstrap (insert_if_absent): Port to OpenBSD sed which
18350         does not interpret `-' as a file argument to mean stdin.
18352 2013-08-15  Eric Blake  <eblake@redhat.com>
18354         warnings: minor optimization
18355         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use fewer processes.
18357         warnings: check -Wfoo rather than -Wno-foo
18358         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): If name begins with
18359         -Wno-, test if the compiler recognizes the positive form instead.
18361 2013-08-15  Karl Berry  <karl@gnu.org>
18363         * config/srclist-update: add option "doclicense" to placate
18364         pulling *.texi files from Emacs.  Write terse usage
18365         documentation at the top.
18367 2013-08-13  Paul Eggert  <eggert@cs.ucla.edu>
18369         xvasprintf-tests: port to GCC with hardening flags
18370         * tests/test-xvasprintf.c (test_xasprintf): Pass another arg to
18371         xasprintf, to pacify GCC.  Reported by Santiago Vila in:
18372         http://lists.gnu.org/r/bug-diffutils/2013-08/msg00002.html
18374 2013-08-11  Paul Eggert  <eggert@cs.ucla.edu>
18376         fpending: port to recent Cygwin change to stdio_ext.h
18377         Reported by LRN in
18378         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00028.html>.
18379         * lib/fpending.h: Don't worry about HAVE_DECL___FPENDING;
18380         just declare __fpending unless it's a macro.
18381         A duplicate decl shouldn't hurt.
18382         * m4/fpending.m4 (gl_FUNC_FPENDING): Check that an __fpending
18383         call compiles and links, instead of separately checking for
18384         decl and lib function.
18385         * modules/fpending (configure-ac):
18386         Adjust to fpending.m4's renaming of shell variable.
18388 2013-08-10  Paul Eggert  <eggert@cs.ucla.edu>
18390         sys_time: port to OpenBSD
18391         * lib/sys_time.in.h: Simply delegate to the system's header
18392         in the BSDish cases as well.  Problem reported by Mike Miller in
18393         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00016.html>.
18394         * tests/test-sys_select.c, tests/test-sys_time.c (verify_tv_sec_type):
18395         Allow platforms like 64-bit OpenBSD where timeval's tv_sec is
18396         wider than time_t.
18398 2013-08-09  Pádraig Brady  <P@draigBrady.com>
18400         bootstrap: support checksum utils having -c but not --status
18401         * build-aux/bootstrap: Only look for sha1sum if updating po files.
18402         Add sha1 to the list of supported checksum utils since it's now
18403         supported through adjustments below.
18404         (update_po_files): Remove the use of --status
18405         in a way that will suppress all error messages, but since this is
18406         only used to minimize updates, it shouldn't cause an issue.
18407         Exit early if there is a problem updating the po file checksums.
18408         (find_tool): Remove the check for --version support as this
18409         is optional as per commit 86186b17.  Don't even check for the
18410         presence of the command as if that is needed, it's supported
18411         through configuring prerequisites in bootstrap.conf.
18412         Prompt that when a tool isn't found, one can define an environment
18413         variable to add to the hardcoded search list.
18415 2013-08-05  Jim Meyering  <meyering@fb.com>
18417         regex: port to non-glibc/lock-using systems
18418         Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc
18419         system with GNULIB_LOCK would fail due to absence of the
18420         included "glthread/lock.h".  This would affect any package
18421         for which the "lock" module is used only by the regex module,
18422         and not explicitly used.
18423         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21.
18424         * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]:
18425         Add a dependency on the "lock" module.
18427 2013-07-20  Daiki Ueno  <ueno@gnu.org>
18429         localecharset: make locale_charset thread-safe on Mac OS X
18430         * lib/localcharset.c (locale_charset) [DARWIN7]: Use MB_CUR_MAX_L
18431         instead of MB_CUR_MAX.
18433 2013-07-20  Daiki Ueno  <ueno@gnu.org>
18435         gettext: update to version 0.18.3
18436         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.3.  In particular,
18437         require AC_PROG_SED to allow user to specify custom sed command when
18438         generating en@quot PO file.
18440 2013-07-18  Werner Lemberg  <wl@gnu.org>  (tiny change)
18442         bootstrap: use correct source when copying build-aux files
18443         * build-aux/bootstrap (gnulib_extra_files): This variable is
18444         relative to upstream gnulib layout, not downstream.
18446 2013-07-17  Paul Eggert  <eggert@cs.ucla.edu>
18448         tmpdir: fix bug in VMS port
18449         * lib/tmpdir.c (path_search) [__VMS]: Never add slash.
18450         See Steven M. Schweda in
18451         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00026.html>.
18453 2013-07-15  Paul Eggert  <eggert@cs.ucla.edu>
18455         tmpdir: port to VMS, to // != /, and to long dirs
18456         * lib/tmpdir.c (__libc_secure_getenv) [!_LIBC]: Rename from
18457         __secure_getenv, so that we're more like the glibc version.
18458         All uses changed.
18459         (path_search): Don't put slash after directory if __VMS.
18460         Problem reported by Steven M. Schweda in
18461         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00019.html>.
18462         Simplify code to add slash; no need for a loop.
18463         Do not remove trailing slash from "//".
18464         Do not assume dlen <= INT_MAX.
18466 2013-07-09  Paul Eggert  <eggert@cs.ucla.edu>
18468         regex: port to --with-included-regex --enable-gcc-warnings non-threaded
18469         * lib/regex_internal.h (lock_fini, lock_lock): Rework to avoid
18470         gcc warnings in the non-threaded case.  Reported by Charlie Brown in
18471         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00015.html>.
18473         accept4, dup3, pipe2: port to Cygwin
18474         Problem reported for Emacs by Ken Brown in <http://bugs.gnu.org/14821>.
18475         * lib/accept4.c (accept4) [O_BINARY]:
18476         * lib/dup3.c (dup3) [O_BINARY]:
18477         * lib/pipe2.c (pipe2) [O_BINARY]:
18478         Use set_binary_mode, not setmode.
18479         * lib/pipe2.c [!GNULIB_BINARY_IO]: Include binary-io.h.
18480         * modules/binary-io (Depends-on): Remove module indicator.
18481         These last two bits undo the previous change to pipe2 and binary-io.
18483 2013-07-09  Pádraig Brady  <P@draigBrady.com>
18485         mountlist: add support for deallocating returned list entries
18486         * lib/mountlist.c (free_mount_entry): A new exported function
18487         to deallocate a mount list entry.
18488         (read_file_system_list): Refactor to use the new deallocation function.
18489         Suggested by Anton Ovchinnikov.
18491 2013-07-07  Paul Eggert  <eggert@cs.ucla.edu>
18493         stdalign, verify: port to FreeBSD 9.1, to C11, and to C++11
18494         Problem reported by Ulrich Mueller in <http://bugs.gnu.org/14812>.
18495         * lib/stdalign.in.h (_Alignas, _Alignof):
18496         Port to FreeBSD 9.1, and to C11 and C++11.
18497         (_Alignas): Also support ICC.
18498         * lib/verify.h (_Static_assert): Undef if <stddef.h> defines it.
18499         * m4/stdalign.m4 (gl_STDALIGN_H): Port to ICC and to C++11.
18501 2013-07-06  Paul Eggert  <eggert@cs.ucla.edu>
18503         fnmatch: don't goto over declaration
18504         * lib/fnmatch_loop.c (FCT): Hoist local up one level, to avoid
18505         undefined behavior for goto over a declaration.
18506         Problem reported by Charlie Brown in
18507         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00009.html>.
18509         pipe2: decouple from binary-io a bit
18510         This is for Emacs, which needs pipe2 but not binary-io.
18511         * lib/pipe2.c [!GNULIB_BINARY_IO]: Don't include binary-io.h.
18512         * modules/binary-io (Depends-on): Add module indicator.
18514 2013-07-03  Eric Blake  <eblake@redhat.com>
18516         mgetgroups: relax license to LGPLv2+
18517         * modules/getugroups (License): Change from GPLv3+.
18518         * modules/mgetgroups (License): Likewise.
18519         * modules/getgroups (License): Change from LGPLv3+.
18521         xalloc-oversized: relax license to LGPLv2+
18522         * modules/xalloc-oversized (License): Change from GPLv3+.
18524         nproc: relax license to LGPLv2+
18525         * modules/nproc (License): Change from LGPLv3+.
18527         bootstrap: honor --no-git
18528         * build-aux/bootstrap: Don't even try to use git when user is
18529         pointing to a static checkout.
18531 2013-06-23  Paul Eggert  <eggert@cs.ucla.edu>
18533         ignore-value: port to gcc -pedantic
18534         * lib/ignore-value.h (ignore_value):
18535         Port to gcc -pedantic, by using __extension__.
18536         Reindent as per usual gnulib style nowadays.
18537         Simplify GCC version check.
18539 2013-06-21  Paul Eggert  <eggert@cs.ucla.edu>
18541         extern-inline: port to gcc -std=c89
18542         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
18543         Do not use __gnu_inline__ if pedantic and pre-C99.
18545 2013-06-18  Paul Eggert  <eggert@cs.ucla.edu>
18547         doc: document extern-inline
18548         * doc/extern-inline.texi: New file.
18549         * doc/gnulib.texi (alloca-opt): Include it.
18550         * m4/extern-inline.m4: Move some comments to documentation,
18551         and others closer to what they describe.
18553         doc: chatter less
18554         * doc/Makefile (NEWEST_GNULIB_TEXI_FILE): New macro.
18555         (updated-stamp): Use it.  This causes 'make' to output just
18556         one file name rather than zillions.
18558         fflush, fseeko: port to musl cross-compiles
18559         * lib/fseeko.c (fseeko): Assume that fflushing stdin works if
18560         on some implementation that (1) is not known to be buggy,
18561         (2) claims conformance to POSIX.1-2008 or later, and (3) is being
18562         cross-compiled to so we can't easily check for lack of
18563         conformance.  This is for cross-compiling to musl.
18564         Reported by Rich Felker in
18565         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00043.html>.
18566         * m4/fclose.m4 (gl_FUNC_FCLOSE):
18567         * m4/fflush.m4 (gl_FUNC_FFLUSH):
18568         * m4/fseeko.m4 (gl_FUNC_FSEEKO):
18569         Adjust to above change.
18570         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Set gl_cv_func_fflush_stdin
18571         to 'cross', not to 'no', when cross-compiling.  AC_DEFINE
18572         FUNC_FFLUSH_STDIN to 1, 0, -1 if fflushing stdin is known to work,
18573         known not to work, or unknown.
18575 2013-06-15  Paul Eggert  <eggert@cs.ucla.edu>
18577         msvc-inval: port to mingw-w64
18578         * lib/msvc-inval.c (gl_msvc_invalid_parameter_handler):
18579         Use __cdecl, not cdecl, for mingw-w64.  Reported by LRN in
18580         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00039.html>.
18582 2013-06-11  Paul Eggert  <eggert@cs.ucla.edu>
18584         getcwd-lgpl: port to Tru64
18585         * lib/getcwd-lgpl.c: Include <stdlib.h>, for malloc etc.
18586         Problem reported by Steven M. Schweda in
18587         <http://lists.gnu.org/r/bug-gzip/2013-06/msg00010.html>.
18589         tests: port large-fd POSIX spawn tests to OS X
18590         Problem reported by Daiki Ueno in
18591         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00031.html>.
18592         * tests/test-posix_spawn_file_actions_addclose.c:
18593         * tests/test-posix_spawn_file_actions_adddup2.c:
18594         * tests/test-posix_spawn_file_actions_addopen.c:
18595         Include <limits.h>, for OPEN_MAX, if available.
18596         (big_fd): New static function.
18597         (main): Use it.
18599 2013-06-04  Bernhard Voelker  <mail@bernhard-voelker.de>
18601         tests/nap.h: use an adaptive delay to avoid ctime update issues
18602         The recent change in nap.h (5191133e) decreased the probability of lost
18603         races to about a third, however such problems could still be observed
18604         in virtual machines and openSUSE's OBS.
18605         Before, nap() detected the needed time once empirically and then used
18606         that delay (together with a small correction multiplier) in further
18607         calls.  This problem has been reported and discussed several times,
18608         including guesses about possible kernel issues:
18609         https://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html
18610         http://lists.gnu.org/r/coreutils/2012-03/msg00088.html
18611         https://lists.gnu.org/r/bug-gnulib/2011-11/msg00226.html
18612         http://bugs.gnu.org/12820
18613         https://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html
18614         https://lists.gnu.org/r/bug-gnulib/2009-11/msg00007.html
18615         Now, nap() avoids the race alltogether by verifying on a reference
18616         file whether a timestamp difference has happened.
18617         * tests/nap.h (nap_fd): Define file descriptor variable for the
18618         witness file.
18619         (nap_works): Change return value to bool.  Change passing
18620         the old file's status by value instead of by reference as this function
18621         does no longer update that timestamp; rename the function argument from
18622         st to old_st.  Remove the local variables cdiff and mdiff because that
18623         function now returns true/false instead of the precise delay.
18624         (guess_delay): Remove function.
18625         (clear_tmp_file): Add new function to close and unlink the witness file.
18626         (nap): Instead of re-using the delay which has been calculated during
18627         the first call, avoid the race by actually verifying that a timestamp
18628         difference can be observed on the current file system.  Use an adaptive
18629         approach for the delay to minimize execution time.  Assert that the
18630         maximum delay is <= ~2 seconds, more precisely sum(2^n) from 0 to 30
18631         = 2^31 - 1 = 2.1s.
18632         Use atexit to call clear_tmp_file when the process terminates.
18634 2013-06-02  Paul Eggert  <eggert@cs.ucla.edu>
18636         sig2str: port to C++
18637         * lib/sig2str.h (sig2str, str2sig): Declare as extern "C".
18638         Reported by Daniel J Sebald in
18639         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00000.html>.
18641 2013-05-30  Eric Blake  <eblake@redhat.com>
18643         docs: mention cygwin shortcoming in <sys/un.h>
18644         * doc/posix-headers/sys_un.texi (sys/un.h): Mention problem.
18646         vasnprintf: silence mingw compiler warning
18647         * lib/vasnprintf.c (VASNPRINTF): Avoid unused variable warning.
18649 2013-05-29  Paul Eggert  <eggert@cs.ucla.edu>
18651         c-ctype, regex, verify: port to gcc -std=c90 -pedantic
18652         Avoid constructions that are rejected by gcc -std=c90 -pedantic.
18653         This fixes a porting bug I recently reintroduced in regex, and
18654         some other instances that I discovered while testing the fix.
18655         * lib/c-ctype.h [__STRICT_ANSI__]: Avoid ({ ... }).
18656         * lib/regcomp.c (utf8_sb_map) [__STRICT_ANSI__]: Avoid [0 ... N] = E.
18657         * lib/regex_internal.h [!_LIBC && GNULIB_LOCK]: Do not use a macro
18658         with an empty argument if this is a pedantic pre-C99 GCC.
18659         * lib/verify.h: Do not use _Static_assert if this is a pedantic
18660         pre-C11 GCC.
18662         regex: adapt to locking regime instead of depending on pthread
18663         Instead of depending on pthread, adapt to whatever thread
18664         modules are in use.  Problem reported by Ludovic Courtès in
18665         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00082.html>
18666         and by Mats Erik Andersson in
18667         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00100.html>.
18668         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
18669         Support either the 'lock' module, or the 'pthread' module, or
18670         no module.
18671         (lock_lock, lock_unlock): New macros.
18672         * lib/regexec.c (regexec, re_search_stub): Use the new macros.
18673         * modules/lock, modules/pthread (configure.ac): Add module indicator.
18674         * modules/regex (Depends-on): Remove pthread.
18676 2013-05-22  Eric Blake  <eblake@redhat.com>
18678         getgroups: document portability issues
18679         * doc/glibc-functions/initgroups.texi (initgroups): Mention
18680         multithread safety.
18681         * doc/posix-functions/getpwuid.texi (getpwuid): Likewise.
18682         * doc/posix-functions/getpwuid_r.texi (getpwuid_r): Likewise.
18683         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Mention
18684         getugroups.
18685         * doc/posix-functions/getgroups.texi (getgroups): Mention
18686         multithread safety and mgetgroups.
18688 2013-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
18690         test-lchown, test-chown: also skip test if chown fails with EPERM
18691         * tests/test-lchown.h (test_lchown): Add EPERM to the condition to
18692         skip this test, to handle FAT file systems.
18693         * tests/test-chown.h (test_chown): Likewise.
18695 2013-05-19  Paul Eggert  <eggert@cs.ucla.edu>
18697         regex: fix dfa race in multithreaded uses
18698         Problem reported by Ludovic Courtès in
18699         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00058.html>.
18700         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
18701         New macros.  All uses of __libc_lock_define, __libc_lock_init
18702         changed to use the first two of these.
18703         (__libc_lock_lock, __libc_lock_unlock): New macros, for
18704         non-glibc platforms.
18705         (struct re_dfa_t): Define the lock unconditionally.
18706         * lib/regexec.c (regexec, re_search_stub): Remove some now-incorrect
18707         '#ifdef _LIBC"s.
18708         * modules/regex (Depends-on): Add pthread, if we use the
18709         included regex.
18711         * lib/regcomp.c: Do actions that are not needed for glibc,
18712         but may be needed elsewhere.
18713         (regfree, re_compile_internal): Destroy the lock.
18714         (re_compile_internal): Check for lock-initialization failure.
18716         malloca: port to compilers that reject size-zero arrays
18717         This fixes a bug introduced in my previous patch.
18718         * lib/malloca.c (struct preliminary_header): Use an int
18719         rather than a character array of size int; that's simpler.
18720         (struct header): Remove, replacing with ...
18721         (union header): New type.  This avoids the need for declaring a
18722         character array of size zero, which is not allowed on some platforms.
18723         All uses changed.
18725 2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>
18727         parse-datetime, tests: don't use "string" + int
18728         Recent versions of 'clang' complain about C source code that
18729         uses expressions of the form '"string literal" + integer',
18730         I guess on the theory that it's confusing for readers who are
18731         used to C++.  On those grounds I suppose it's OK to make this
18732         minor style change.
18733         * lib/parse-datetime.y (parse_datetime):
18734         * tests/test-fchdir.c (main):
18735         * tests/test-snprintf-posix.h (test_function):
18736         * tests/test-snprintf.c (main):
18737         * tests/test-vasnprintf-posix.c (test_function):
18738         * tests/test-vasnprintf.c (test_function):
18739         * tests/test-vsnprintf.c (main):
18740         * tests/unistdio/test-ulc-asnprintf1.h (test_function):
18741         Rewrite '"str" + E' to '&"str"[E]'.
18743 2013-05-17  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
18745         argmatch: port to C++
18746         * lib/argmatch.h [__cplusplus]: Add extern "C".
18748         argp: typo fix
18749         * lib/argp-help.c: Typo in comment.
18751 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
18753         manywarnings: update for GCC 4.8.0
18754         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
18755         Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which
18756         are new to GCC 4.8.  Remove -Wformat=2, -Wmissing-format-attribute,
18757         -Wmissing-noreturn, as they are duplicates of other warnings.
18758         Remove -Wunreachable-code, as it is removed in GCC 4.8 and
18759         was documented to be flaky in earlier versions of GCC.
18761         spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
18762         * tests/test-spawn.c (main):
18763         * tests/test-sys_socket.c (main):
18764         * tests/test-sys_wait.c (main):
18765         Don't have a switch value that isn't covered by a case.
18767         getaddrinfo-tests: port --enable-gcc-warnings to clang
18768         * tests/test-getaddrinfo.c (simple):
18769         Avoid casts from looser to stricter-aligned pointers.
18771         thread: port --enable-gcc-warnings to clang
18772         * lib/glthread/thread.h [__clang__ && USE_POSIX_THREADS_WEAK]:
18773         Include <signal.h>, to pacify a warning about pthread_sigmask.
18775         stdio: use __REDIRECT for fwrite, fwrite_unlocked
18776         * lib/stdio.in.h (fwrite):
18777         When working around bug 11959, use __REDIRECT rather than '#define
18778         fwrite(...) ... fwrite (...) ...'.  This is a more-targeted way to
18779         fix the -Wunused-value issue with clang, and it works with GCC too.
18780         Problem with targeting reported by Eric Blake in
18781         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00067.html>.
18782         (fwrite_unlocked): Treat like fwrite.  I ran into this issue while
18783         debugging the fwrite issue.
18785         stdio: port --enable-gcc-warnings to clang
18786         * lib/stdio.in.h (fwrite) [__clang__]: Ignore -Wunused-value entirely,
18787         since the GCC workaround for fwrite does not pacify clang.
18789         sig2str: port --enable-gcc-warnings to clang
18790         * lib/sig2str.c (sig2str): Avoid warning about unused printf argument.
18792         obstack: port --enable-gcc-warnings to clang
18793         * lib/obstack.h (obstack_ptr_grow_fast, obstack_int_grow_fast):
18794         Avoid casts from looser to stricter-aligned pointers.
18796         memchr2: port --enable-gcc-warnings to clang
18797         * lib/memchr2.c (memchr2):
18798         Avoid casts from looser to stricter-aligned pointers.
18800         mbsstr: port --enable-gcc-warnings to clang
18801         * lib/mbsstr.c (knuth_morris_pratt_multibyte):
18802         Avoid casts from looser to stricter-aligned pointers.
18804         malloca: port --enable-gcc-warnings to clang
18805         * lib/malloca.c (struct header): New member 'magic', to avoid casts.
18806         (mmalloca): Avoid casts from looser to stricter-aligned pointers.
18808         inttostr: port --enable-gcc-warnings to clang
18809         * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
18811         warnings: port to clang
18812         Problem reported by Daniel P. Berrange via Eric Blake in
18813         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00055.html>.
18814         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS): New macro.
18815         (gl_WARN_ADD): Use it.
18817 2013-05-11  Jim Meyering  <meyering@fb.com>
18819         quotearg: do not read beyond end of buffer
18820         * lib/quotearg.c (quotearg_buffer_restyled): Do not read beyond the
18821         end of an ARG for which no length was specified.  With an N-byte
18822         quote string, (e.g., N is 3 in the fr_FR.UTF-8 locale), this function
18823         would read N-2 bytes beyond ARG's trailing NUL.  This was triggered
18824         via coreutils' misc/sort-debug-keys.sh test and detected by running
18825         the test against a binary compiled with gcc-4.8.0's -fsanitize=address.
18826         * tests/test-quotearg-simple.c (main): Add a test to trigger the bug.
18827         * modules/quotearg-simple-tests (Files): Add tests/zerosize-ptr.h.
18828         Introduced via the 2000-01-15 commit, c4b7f3f8, "Quote multibyte
18829         characters correctly."
18831 2013-05-11  Daiki Ueno  <ueno@gnu.org>
18833         lock: work around pthread recursive mutexes bug in Mac OS X 10.6
18834         * m4/lock.m4: Don't define HAVE_PTHREAD_MUTEX_RECURSIVE if the
18835         compilation target is Mac OS X 10.6.
18836         Problem reported by parafin and Andoni Morales in
18837         <http://savannah.gnu.org/bugs/?37844> and
18838         <http://lists.gnu.org/r/bug-gettext/2013-05/msg00007.html>.
18840 2013-05-11  Paul Eggert  <eggert@cs.ucla.edu>
18842         mkdir-p: remove assumptions about umask and mode
18843         * lib/mkdir-p.c (make_dir_parents): Do not assume that the current
18844         umask is 0, or that MODE is a subset of MODE_BITS.
18846 2013-05-10  Eric Blake  <eblake@redhat.com>
18848         maint.mk: catch more abuse of HAVE_DECL in syntax-check
18849         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
18851 2013-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
18853         deps: require Automake >= 1.9.6 in generated Makefile fragments
18855         That is the same minimal version required in the DEPENDENCIES file.
18856         Moreover, the old code generated a requirement of Automake >= 1.5,
18857         and that is an insanely outdated version.
18859         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
18860         * tests/havelib/rpathlx/Makefile.am: Likewise.
18861         * tests/havelib/rpathly/Makefile.am: Likewise.
18862         * tests/havelib/rpathlyx/Makefile.am: Likewise.
18863         * tests/havelib/rpathlz/Makefile.am: Likewise.
18864         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
18865         * tests/havelib/rpathx/Makefile.am: Likewise.
18866         * tests/havelib/rpathy/Makefile.am: Likewise.
18867         * tests/havelib/rpathz/Makefile.am: Likewise.
18869 2013-05-08  Eric Blake  <eblake@redhat.com>
18871         bootstrap: AC_INIT may have more than four parameters
18872         * build-aux/bootstrap (extract_package_name): Correctly extract
18873         non-empty tarname field.  Avoid range in regex.
18874         Based on a report by Sami Kerola <kerolasa@iki.fi>.
18876 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
18878         qacl: port to MS-Windows port of GNU Emacs
18879         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
18880         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
18881         port of GNU Emacs.  Problem reported by Eli Zaretskii in
18882         <http://bugs.gnu.org/14295#14>.
18884 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
18886         acl: include quote.h
18887         * lib/copy-acl.c: Include quote.h.
18888         * lib/set-acl.c: Likewise.
18890 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
18892         fchownat, renameat, unlinkat: update statat dependencies
18893         These modules use statat and lstatat, not fstatat; so depend on
18894         the statat module, which was split out recently from fstatat.
18895         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
18896         * modules/renameat: Likewise.  Also delete fstat.
18897         URL: http://bugs.gentoo.org/468790
18899 2013-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
18901         Assume gnulib is checked out from Git, not CVS
18903         In fact, access to the gnulib repository through CVS has been
18904         disabled, or more precisely, got broken and was never restored; see:
18905         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00008.html>
18907         Note that support for CVS is not removed completely and unthinkingly
18908         by this change: only support for CVS checkouts of gnulib itself is
18909         removed.  For example, the 'bootstrap' script still cater to .cvsingore
18910         files and CVS directories, for the benefit of those poor gnulib clients
18911         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
18913         * gnulib-tool: Simplify accordingly.
18914         * posix-modules: Likewise.
18915         * MODULES.html.sh: Likewise.
18916         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
18917         repository.
18918         * doc/gnulib-intro.texi: Likewise.
18919         * doc/gnulib-readme.texi: Likewise.
18920         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
18921         sample '.gitignore' file rather than a sample '.cvsignore'.
18922         * NEWS: Update.
18923         * m4/extensions.m4: While at it, remove a comment mistakenly referring
18924         to "CVS Autoconf" rather than "git Autoconf".
18926 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
18928         utimensat-tests, etc.: try to fix some races
18929         Problem reported by Bernhard Voelker in
18930         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html>.
18931         I don't know whether this patch fixes that race condition, but it
18932         fixes *some* race conditions, so it should be a win.
18933         * modules/chown-tests (Depends-on):
18934         * modules/fchownat-tests (Depends-on):
18935         * modules/fdutimensat-tests (Depends-on):
18936         * modules/futimens-tests (Depends-on):
18937         * modules/lchown-tests (Depends-on):
18938         * modules/stat-time-tests (Depends-on):
18939         * modules/utimens-tests (Depends-on):
18940         * modules/utimensat-tests (Depends-on):
18941         Depend on nanosleep, not usleep.
18942         * modules/chown-tests (test_chown_LDADD):
18943         * modules/lchown-tests (test_lchown_LDADD):
18944         * modules/stat-time-tests (test_stat_time_LDADD):
18945         New macro.
18946         * modules/fchownat-tests (test_fchownat_LDADD):
18947         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
18948         * modules/futimens-tests (test_futimens_LDADD):
18949         * modules/utimens-tests (test_utimens_LDADD):
18950         * modules/utimensat-tests (test_utimensat_LDADD):
18951         Add $(LIB_NANOSLEEP).
18952         * modules/stat-time-tests (Files): Add tests/nap.h.
18953         * tests/nap.h: Include <limits.h>, for INT_MAX.
18954         (lt_mtime): Remove.
18955         (diff_timespec): New function.
18956         (get_stat): Rename from get_mtime.  All callers changed.
18957         (nap_works): Determine the needed delay by inspecting the
18958         file system's timestamp jumps; this should be more reliable.
18959         Look at both mtime and ctime, and take the maximum of the two jumps.
18960         (nap_works, guess_delay):
18961         Return a nanosecond count, not a microsecond count.
18962         All callers changed.
18963         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
18964         failure.
18965         (nap): Multiply the guess by 1.125, to accommodate the case where
18966         the file system's clock is a bit slower than nanosleep's clock.
18967         * tests/test-stat-time.c (BASE): New macro.
18968         Include nap.h.
18969         (nap): Remove; nap.h now defines this.  This removes a duplicate
18970         implementation of 'nap'.
18972         utimens, utimensat: work around Solaris UTIME_OMIT bug
18973         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
18974         Linux kernel 2.6.32 does.  Work around it in the same way.
18975         * doc/posix-functions/futimens.texi (futimens):
18976         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
18977         * lib/utimens.c (fdutimens, lutimens):
18978         * lib/utimensat.c (rpl_utimensat): Work around the bug.
18980         gettext: now it's your responsibility to add -I$(top_builddir)/intl
18981         Formerly, it was your responsibility to do this for all Makefile.ams
18982         other than Gnulib's.  Now it's your responsibility to do it for
18983         Gnulib's Makefile.am, too.
18984         * NEWS: Document this.
18985         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
18987         acl: include errno.h to get errno
18988         Reported by Daiki Ueno in
18989         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00073.html>.
18990         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
18992 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
18994         tests: don't assume getdtablesize () <= 10000000
18995         * modules/cloexec-tests:
18996         * modules/dup2-tests:
18997         * modules/dup3-tests:
18998         * modules/nonblocking-tests:
18999         * modules/posix_spawn_file_actions_addclose-tests:
19000         * modules/posix_spawn_file_actions_adddup2-tests:
19001         * modules/posix_spawn_file_actions_addopen-tests:
19002         * modules/unistd-safer-tests:
19003         Depend on the getdtablesize module.
19004         * tests/test-cloexec.c:
19005         * tests/test-dup-safer.c:
19006         * tests/test-dup2.c:
19007         * tests/test-dup3.c:
19008         * tests/test-fcntl.c:
19009         * tests/test-nonblocking.c:
19010         * tests/test-posix_spawn_file_actions_addclose.c:
19011         * tests/test-posix_spawn_file_actions_adddup2.c:
19012         * tests/test-posix_spawn_file_actions_addopen.c:
19013         Don't assume getdtablesize () <= 10000000.
19015 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
19017         extern-inline: work around bug in Sun c99
19018         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
19019         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
19021 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
19023         qacl: new module, broken out from the acl module
19024         This is for GNU Emacs, which wants the acl functions but does
19025         not want 'error' invoked when they fail.
19026         * lib/acl-internal.h: Do not include error.h, quote.h.
19027         (ENOSYS, ENOTSUP): Remove; no longer needed.
19028         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
19029         * lib/acl.h: Include <stdbool.h>.
19030         (acl_errno_valid): New function.
19031         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
19032         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
19033         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
19034         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
19035         (ACL_INTERNAL_INLINE): Remove; no longer needed.
19036         * lib/file-has-acl.c (file_has_acl):
19037         * lib/qcopy-acl.c (qcopy_acl):
19038         * lib/qset-acl.c (qset_acl):
19039         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
19040         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
19041         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
19042         lib/file-has-acl.c, m4/acl.m4 to qacl module.
19043         Add lib/set-acl.c.
19044         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
19045         Add qacl.
19046         (configure.ac): Move gl_FUNC_ACL to qacl module.
19047         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
19048         Rename set-mode-acl.c to set-acl.c.
19049         * lib/acl-errno-valid.c: New file.
19050         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
19051         copy_acl function remains in copy-acl.c.
19052         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
19053         (_): Remove; not needed.
19054         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
19055         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
19056         * modules/qacl: New file, moved from the old modules/acl.
19057         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
19058         Remove set-mode-acl.c, copy-acl.c.
19059         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
19061         alignof, intprops, malloca: port better to IBM's C compiler
19062         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
19063         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
19064         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
19066 2013-04-25  Daiki Ueno  <ueno@gnu.org>
19068         wctype-h: fix gettext link error on mingw
19069         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
19070         <https://lists.gnu.org/r/bug-gettext/2013-03/msg00086.html>.
19071         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
19072         rpl_towupper and rpl_towupper.
19074 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
19076         regex-tests, regex: allow glibc re_search behavior
19077         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
19078         re_search input data to make the multi-character collating element
19079         in it clearly visible, and treat re_search return code 0 as valid.
19080         * m4/regex.m4 (gl_REGEX): Likewise.
19082 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
19084         stdalign: doc fix
19085         * doc/posix-headers/stdalign.texi (stdalign.h):
19086         Gnulib doesn't support '_Alignof expr'.
19088 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
19090         stdalign: port to stricter ISO C11
19091         ISO C11 says that _Alignof's operand must be a parenthesized type.
19092         Problem reported by Eli Zaretskii in
19093         <http://lists.gnu.org/r/emacs-devel/2013-03/msg00960.html>.
19094         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
19095         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
19097 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
19099         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
19100         Problem reported by Marco Atzeri in
19101         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00000.html>.
19102         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
19103         Simply delegate to the system <sys/select.h> in this case too.
19104         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
19105         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
19106         be needed on Solaris either.
19107         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
19108         Simply delegate to the system <sys/time.h> in this case.
19110 2013-03-19  Karl Berry  <karl@gnu.org>
19112         * build-aux/gnupload: check for erroneous (with gnupload) use of
19113         ftp-upload.gnu.org, tweak help.
19115 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
19117         copy-file, rpmatch: fix problems found by cppcheck
19118         Reported by Arno Onken in
19119         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00069.html>.
19120         * lib/rpmatch.c (try): Fix memory leak.
19121         * lib/copy-file.c: Include "ignore-value.h".
19122         (qcopy_file_preserving): Ignore chown value.
19123         * modules/copy-file (Depends-on): Add ignore-value.
19125 2013-01-27  Jim Meyering  <jim@meyering.net>
19127         prefix-gnulib-mk: give better diagnostics
19128         * build-aux/prefix-gnulib-mk: Don't just "die".
19129         Give better diagnostics upon failure.
19131 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
19133         putenv: port to Solaris 10
19134         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
19135         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
19136         is not what is wanted here.
19137         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
19138         declaration, not for its existence.
19140 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
19142         mktime: fix configure typo
19143         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
19145 2013-03-12  Eric Blake  <eblake@redhat.com>
19147         regex-tests: skip UTF-8 test on mingw
19148         * modules/regex-tests (Depends-on): Add localcharset.
19149         * tests/test-regex.c (main): Use it to skip test on mingw.
19151 2013-03-11  Eric Blake  <eblake@redhat.com>
19153         tests: make it easier to bypass alarm time in debugger
19154         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
19155         * tests/test-memmem.c (main): Likewise.
19156         * tests/test-passfd.c (main): Likewise.
19157         * tests/test-ptsname.c (main): Likewise.
19158         * tests/test-ptsname_r.c (main): Likewise.
19159         * tests/test-strcasestr.c (main): Likewise.
19160         * tests/test-strstr.c (main): Likewise.
19162         regex: port to mingw's recent addition of undeclared alarm
19163         * doc/posix-functions/alarm.texi (alarm): Document that alarm
19164         exists but still doesn't work in newer mingw.
19165         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
19166         not existence.  Ensure SIGALRM is not trapped.
19167         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
19168         * m4/regex.m4 (gl_REGEX): Likewise.
19169         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
19170         * tests/test-regex.c (main): Use correct probe for alarm.
19172         putenv: avoid compilation warning on mingw
19173         * lib/putenv.c (_unsetenv): Protect variable declaration.
19174         (putenv): Fix indentation.
19176 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
19178         unistd: don't prevent Tru64 Unix from using gnulib strtod.
19179         * lib/unistd.in.h: be careful not to include un-needed system
19180         stdlib.h from here, because that prevents gnulib stdlib.h from
19181         defining rpl_strtod correctly.
19183 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
19185         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
19186         changesets, but for the 'precision 0' test.
19187         * tests/test-vasprintf-posix.c (test_function): Don't insist on
19188         round-to-even, since POSIX says rounding is implementation-defined
19189         and OS X 10.8.2 rounds 1.51 to 1 here.
19191         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
19192         changeset.
19193         * tests/test-vasprintf-posix.c (test_function): Don't insist on
19194         round-to-even, since POSIX says rounding is implementation-defined
19195         and OS X 10.8.2 rounds 1.5 to 1 here.
19197 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
19199         vasnprintf-posix-tests: allow rounding 1.5 to 1
19200         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
19201         round-to-even, since POSIX says rounding is implementation-defined
19202         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
19203         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00019.html>.
19205         bootstrap: port to FreeBSD
19206         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
19207         that treat '--' differently.  Reported by Mats Erik Andersson in
19208         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00012.html>.
19210 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
19212         regex: rename remaining __attribute calls to __attribute__.
19213         2012-02-25 changed definition of __attribute, but left some uses
19214         unchanged, preventing compilation of regex module on most non-gcc
19215         environments.
19216         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
19217         (lookup_collation_sequence_value, build_range_exp)
19218         (build_collating_symbol): Set attributes with newly renamed
19219         __attribute__ decorator.
19220         * lib/regex_internal.c (re_string_peek_byte_case)
19221         (re_node_set_compare, re_node_set_contains): Likewise.
19222         * lib/regexec.c (acquire_init_state_context): Likewise.
19224 2013-03-06  Bruno Haible  <bruno@clisp.org>
19226         execute: Revert last change, but use a different condition.
19227         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
19228         on Windows.
19230 2013-03-05  Eric Blake  <eblake@redhat.com>
19232         execute: drop dead code
19233         * lib/execute.c (nonintr_close, nonintr_open): Delete.
19235 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
19237         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
19238         * m4/non-recursive-gnulib-prefix-hack.m4
19239         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
19240         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
19241         <http://bugs.gnu.org/10305#237>.
19243 2013-03-04  Eric Blake  <eblake@redhat.com>
19245         test-getsockopt: avoid compiler warning
19246         * tests/test-getsockopt.c (includes): Ensure close is declared.
19248 2013-03-02  Bruno Haible  <bruno@clisp.org>
19250         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
19251         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
19253 2013-03-02  Bruno Haible  <bruno@clisp.org>
19255         gettext: Update to version 0.18.2.
19256         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
19257         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
19258                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
19260 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
19262         regex: merge patches from libc
19264         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
19265         * lib/regex_internal.h (__attribute__): Rename from __attribute.
19266         All uses changed.
19267         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
19268         (re_string_wchar_at, re_string_elem_size_at):
19269         Mark function as possibly unused.
19271         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
19272         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
19273         elements compare against the byte sequence of it, not its name.
19275 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
19277         putenv: port better to native Windows
19278         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
19279         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
19280         (_unsetenv): Use _putenv if available.
19281         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
19282         a bit less likely to cause damage.
19283         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
19284         Fix the wrong value with SetEnvironmentVariable.
19285         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
19286         code better.
19288 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
19290         regex: ignore old-style-definition warnings
19291         * lib/regex.c: Add pragma to ignore these warnings.
19292         Problem reported for GNU tar by Pavel Raiskup.
19294 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
19296         getcwd: support coreutils better
19297         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
19298         but this might not be correct in coreutils, which disables
19299         the raw decl checks.  Problem reported by Nagendra in
19300         <http://bugs.gnu.org/10305#192>.
19301         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
19302         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
19303         Test the getcwd function, not any macro, since getcwd.c wants the
19304         function.
19305         * m4/getcwd.m4 (gl_FUNC_GETCWD):
19306         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
19307         compile, as might happen if there's a macro but no function.
19309         strtod: support coreutils better
19310         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
19311         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
19312         disables the raw decl checks.  This assumes there is an underlying
19313         strtod, but that's a safe assumption these days.
19314         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
19316         mountlist: port to HP NonStop
19317         Reported by Joachim Schmitz in
19318         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00084.html>.
19319         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
19320         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
19322 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
19324         extern-inline: avoid compilation error with HP-UX cc
19325         Reported by Richard Lloyd in
19326         <http://lists.gnu.org/r/bug-texinfo/2013-02/msg00030.html>.
19327         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
19328         Suppress extern inline with HP-UX cc.  This should be safe,
19329         though it may hurt performance.  Perhaps someone with some HP-UX
19330         experience can come up with a higher-performance fix.
19332 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
19334         putenv: fix heap corruption with mixed putenv/_putenv
19335         Problem reported by Michael Goffioul in
19336         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00061.html>.
19337         * lib/putenv.c (putenv) [HAVE__PUTENV]:
19338         Rely on _putenv to allocate the new environment.
19339         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
19340         * modules/putenv (configure.ac): Use it.
19342 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
19344         unsetenv etc.: port to Solaris 11 + GNU Emacs
19345         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
19346         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
19347         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
19348         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
19349         idea but is too painful to fix right now), and without this gnulib
19350         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
19351         compiling unsetenv.c on Solaris 11.  Fix the problem for
19352         unsetenv.c, and fix other similar occurrences.
19354 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
19356         secure_getenv: fix C++ declaration typo
19357         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
19358         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
19359         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00057.html>.
19361 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
19363         careadlinkat: stop exporting careadlinkatcwd
19364         Only Emacs used it directly, and Emacs no longer needs it.
19365         * NEWS: Document this simplification.
19366         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
19367         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
19368         for readlink.
19369         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
19370         Don't include stdlib.h; no longer needed.
19371         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
19372         * lib/relocwrapper.c: Adjust comment to match new dependencies.
19373         * modules/areadlink (Depends-on): Add readlink.
19374         (Maintainer): Add self.
19375         * modules/careadlinkat (Depends-on): Remove readlink.
19377         extensions: port better to HP-UX
19378         This is merged from git Autoconf.
19379         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
19380         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
19381         so that it's compatible with the value used when compiling.
19383         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
19384         Problem reported by Mats Erik Andersson in
19385         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00051.html>.
19386         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
19387         openpty function exists, not merely when we intend to replace it.
19388         This corrects the 2013-01-31 patch, which mistakenly defined
19389         HAVE_OPENPTY even on hosts that lacked it.
19391 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
19393         secure_getenv: fix include typo
19394         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
19396         secure_getenv: port better to FreeBSD and Solaris
19397         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
19398         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
19399         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
19400         This works better on BSDish platforms.
19401         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
19402         Test for issetugid if __secure_getenv is missing.
19404 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
19406         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
19407         Some of these changes are merged in from git Autoconf.
19408         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
19409         When deciding whether to define _XOPEN_SOURCE, inspect the
19410         preprocessor macro __hpux instead of the more-heavyweight
19411         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
19412         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
19413         as the key for __EXTENSIONS__.
19415         unistd: avoid namespace pollution on non-glibc systems
19416         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
19417         This avoids namespace pollution on non-glibc systems, by causing
19418         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
19419         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
19420         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00027.html>.
19422 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
19424         tmpdir: use secure_getenv
19425         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
19426         Define to secure_getenv, not getenv.
19427         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
19428         as that's now secure_getenv's job.
19429         * modules/tmpdir (Depends-on): Add secure_getenv.
19431         tempname: use secure_getenv
19432         * lib/tempname.c (__secure_getenv) [!_LIBC]:
19433         Define to secure_getenv, not getenv.
19434         * modules/tempname (Depends-on):
19435         Add secure_getenv.
19437         secure_getenv: new module
19438         * MODULES.html.sh (Extra functions based on ANSI C 89):
19439         Add secure_getenv.
19440         * doc/glibc-functions/secure_getenv.texi: New file.
19441         * doc/gnulib.texi: Include it.
19442         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
19443         New files.
19444         * lib/stdlib.in.h (secure_getenv): New decl.
19445         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
19446         * modules/stdlib (stdlib.h):
19447         Add secure_getenv checks.
19449 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
19451         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
19452         Reported for OS X 10.8.2 by Assaf Gordon in
19453         <http://bugs.gnu.org/13516>.
19454         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
19455         !HAVE_OPENAT && !HAVE_FDOPENDIR.
19456         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
19457         so that they can be kept in sync more easily.  Avoid PATH_MAX
19458         test on the Hurd.  Sync from test-getcwd.c for errno tests after
19459         mkdir or chdir failure.
19460         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
19461         lib/getcwd.c.
19462         (test_abort_bug): Do not test for the deep directory bug unless we
19463         have openat support.  Avoid PATH_MAX test on the Hurd.
19465         regex-tests, regex: fix bug: memset undeclared
19466         * tests/test-regex.c: Don't include regex.h twice.  Include
19467         string.h, to declare memset.  Christensen's report also mentioned
19468         this issue.
19469         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
19470         test-regex.c, to avoid future problems like this.  Remove
19471         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
19472         twice.
19474         regex-tests: fix link errors on older Solaris
19475         These need to link with @LIBINTL@ to get libintl_gettext.
19476         Problem reported by Tom G. Christensen in
19477         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00003.html>.
19478         * modules/regex-tests (test_regex_LDADD): New macro.
19480 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
19482         regex-tests: new module
19483         * modules/regex-tests, tests/test-regex.c: New files.
19485         regex: fix off-by-one error in configure test
19486         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
19488 2013-01-31  Eric Blake  <eblake@redhat.com>
19490         regex: avoid infinite configure test
19491         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
19493 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
19495         openpty: fix bug where HAVE_OPENPTY wasn't defined
19496         See the thread starting at:
19497         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00185.html
19498         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
19499         openpty function exists, not merely when we intend to replace it.
19501 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
19503         sys_time: port to Solaris 2.6
19504         There is a circularity problem on Solaris 2.6, where <time.h> includes
19505         <sys/time.h> for struct timespec.  The include nesting is gnulib
19506         <time.h>, system <time.h>, gnulib <sys/time.h>, system
19507         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
19508         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
19509         <sys/siginfo.h>; the last, innermost file needs struct
19510         timestruc_t, which is defined in <sys/time.h>, which has not been
19511         fully parsed.  Problem reported by Tom G. Christensen in
19512         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00113.html>.
19513         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
19514         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
19515         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
19516         uses split double-inclusion guards.
19518 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
19520         regex: test for buffer overrun
19521         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
19522         for the just-fixed regex bug.
19524 2013-01-29  Andreas Schwab  <schwab@suse.de>
19526         regex: fix buffer overrun in regexp matcher [BZ #15078]
19527         * lib/regexec.c (extend_buffers): Add parameter min_len.
19528         (check_matching): Pass minimum needed length.
19529         (clean_state_log_if_needed): Likewise.
19530         (get_subexp): Likewise.
19532 2013-01-28  Pádraig Brady  <P@draigBrady.com>
19534         mountlist: don't consider "devtmpfs" as dummy
19535         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
19536         as there is storage associcated with it.
19538 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
19540         futimens-tests, utimens-tests: Depend on gettext.
19541         This works around a problem introduced in my 2013-01-12 patch,
19542         which added @LIBINTL@ to these modules.
19543         * modules/futimens-tests (Depends-on):
19544         * modules/utimens-tests (Depends-on): Add gettext.
19546 2013-01-26  Eric Blake  <eblake@redhat.com>
19548         test-getpeername: fix typo
19549         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
19551 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
19553         bootstrap: remove the need for a sorted .gitignore file
19554         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
19555         rename to insert_if_absent(), so that we don't need or generate
19556         a sorted .gitignore file.  We do require a .gitignore with no
19557         existing duplicate entries and enforce that.
19558         (sort_patterns): Remove this function as we now use the simpler
19559         technigue of inserting blacklist entries at the top of the file,
19560         assuming gnulib won't be inserting !whitelist entries.
19562 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
19564         readlinkat: don't depend on gl_FUNC_OPENAT
19565         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
19566         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
19567         renameat.m4, symlinkat.m4; but one thing at a time.
19569         statat: new module, split out from fstatat
19570         GNU Emacs needs the POSIX-specified fstatat, but not the
19571         gnulib-specified statat and lstat.  Split the latter two into a
19572         new module 'statat'.
19573         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
19574         * lib/openat.h, lib/statat.c (STATAT_INLINE):
19575         Rename from FSTATAT_INLINE. All uses changed.
19576         * modules/fstatat (Files): Remove lib/statat.c.
19577         (gl_MODULE_INDICATOR([fstatat])): Remove.
19578         (lib_SOURCES): Remove.
19579         (Maintainer): Add self.
19580         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
19581         * tests/test-fstatat.c (BASE): Don't define if already defined.
19582         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
19584 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
19586         tests: don't assume fd 99 is closed
19587         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
19588         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
19589         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
19590         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
19591         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
19592         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
19593         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
19594         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
19595         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
19596         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
19597         * tests/test-fwrite.c, tests/test-getpeername.c:
19598         * tests/test-getsockname.c, tests/test-getsockopt.c:
19599         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
19600         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
19601         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
19602         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
19603         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
19604         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
19605         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
19606         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
19607         * tests/test-unlinkat.c, tests/test-unlockpt.c:
19608         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
19609         Close file descriptor 99, instead of assuming it's already closed.
19611 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
19613         stpncpy: port to OS X 10.8
19614         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
19615         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
19617 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
19619         unistd: port to recent mingw
19620         * lib/unistd.in.h: Remove special invocation convention for mingw,
19621         which breaks for the latest mingw version.  See John W. Eaton in
19622         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00100.html>.
19624         largefile: port better to Mac OS X 10.5
19625         This patch is backported from Autoconf git.
19626         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
19627         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
19628         with ino_t size being different for configuration time versus
19629         build/run time.  Problem reported by PHO in
19630         <http://lists.gnu.org/r/bug-autoconf/2013-01/msg00040.html>.
19632 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
19634         doc: clarify -Werror
19635         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
19636         clarify that it's intended for developers, not for ordinary builds,
19637         and mention --enable-gcc-warnings as one possible use.
19639 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
19641         stdint: fix build with Android's Bionic fox x86
19642         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
19643         was already included as _SSIZE_T_DEFINED_ might also be defined
19644         in include/machine/_types.h, which is included by stdio.h
19646 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
19648         net_if-tests: port to Solaris 7 + GCC 3.4.6
19649         Problem reported by Tom G. Christensen in
19650         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00091.html>.
19651         * tests/test-net_if.c (ni): Move to next the code that uses it,
19652         so that it's declared only if needed.
19654 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
19656         net_if-tests: port to older Solaris
19657         Problem reported by Tom G. Christensen in
19658         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
19659         * modules/net_if-tests (NET_IF_LIB): New substitution.
19660         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
19661         (HAVE_IF_NAMEINDEX): New C macro.
19662         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
19664         system-quote-tests: port to older Solaris
19665         Problem reported by Tom G. Christensen in
19666         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
19667         * tests/test-system-quote-child.c (fopen, fread): Undef.
19669         c-xvasprintf etc.: fix link errors on older Solaris
19670         These need to link with @LIBINTL@ to get libintl_gettext.
19671         Problem reported by Tom G. Christensen in
19672         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
19673         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
19674         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
19675         * modules/futimens-tests (test_futimens_LDADD):
19676         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
19678 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
19680         locale: port to Solaris 2.6 and 7 + GNU gettext
19681         * lib/locale.in.h: Just include_next <locale.h> when
19682         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
19683         when combining the localename module with GNU gettext 0.18.2.
19684         Problem reported by Tom G. Christensen in
19685         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00084.html>.
19687 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
19689         stdlib: port to Solaris 2.6
19690         Also, the code worked on Solaris 7 through 9 only by accident.
19691         Problem reported by Tom G. Christensen in
19692         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00059.html>.
19693         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
19694         simply include the system stdlib.h.
19695         * lib/getopt.in.h (__need_system_stdlib_h):
19696         * lib/pthread.in.h (__need_system_stdlib_h):
19697         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
19698         Define when including <stdlib.h>, to avoid problems at least for
19699         the pthread case on Solaris 2.6 and 7.  These .h files can get by
19700         with the system stdlib.h.
19702 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
19704         doc: update main copyright year
19705         * doc/gnulib.texi: Update copyright date.
19707         doc: improve ISO 8601 discussion
19708         * doc/parse-datetime.texi (Combined date and time of day items):
19709         Specify more carefully what formats are supported and what is
19710         done with excess precision.
19712 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
19714         doc: avoid small caps
19715         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
19716         they're more trouble than they're worth.  Suggested by Karl Berry
19717         in <http://bugs.gnu.org/13360>.
19719         regex: conform to strict C
19720         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
19721         From Aharon Robbins.
19723         gnulib-tool: fix incompatibility with autopoint 0.18.2
19724         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
19725         Problem reported by Tom G. Christensen in
19726         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00053.html>.
19728 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
19730         fprintftime: bring back and reword fwrite comment
19731         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
19733         stdio: remove now-unnecessary stdio.c
19734         Since stdio.in.h no longer uses inline functions, we no longer
19735         need to compile the extern versions.
19736         * lib/stdio.c: Remove.
19737         * modules/stdio (Files): Remove lib/stdio.c.
19738         (lib_SOURCES): Remove.
19740         unicodeio: depend on stdio, not ignore-value
19741         * lib/unicodeio.c: Do not include ignore-value.h.
19742         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
19743         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
19745         fprintftime: depend on stdio, not ignore-value
19746         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
19747         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
19748         since the stdio module arranges to silence that warning now.
19749         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
19751 2012-10-04  Simon Josefsson  <simon@josefsson.org>
19753         stdint-tests: Fix expanded-before-required-warning.
19754         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
19756 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
19758         fwrite: silence __wur only for older glibc versions
19759         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
19760         This will help us remove this workaround some time in the far future.
19762 2013-01-03  Eric Blake  <eblake@redhat.com>
19764         fwrite: silence __wur without using inline
19765         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
19766         just gcc, and in a way that avoids inline issues.
19767         * modules/stdio (Depends-on): Drop extern-inline.
19769 2013-01-03  Jim Meyering  <jim@meyering.net>
19771         update-copyright: avoid copyright notice date corruption
19772         Given a sequence of copyright year numbers in which the final
19773         one was a two-digit number that happened to be a substring of
19774         a preceding four-digit year number, we would mistakenly update
19775         the substring (from two- to four-digit) rather than the two-digit
19776         number at the end, which, combined with the addition of the current
19777         4-digit year number would yield two 5-digit year numbers, e.g.,
19778         here, it would convert the first "99" to "1999, 2013" rather than
19779         the final one:
19780           1991, 99
19781           11999, 20131, 1999
19782         * build-aux/update-copyright: Tighten a regexp.
19783         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
19784         Reported by Joseph Myers in
19785         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
19787 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
19789         regex: omit needless signed-pointer casts
19790         * lib/regcomp.c (build_charclass, build_charclass_op):
19791         Use char *, not unsigned char *, for class name and extra.
19792         The char values are always nonnegative so there's no need to
19793         insist on unsigned char * here, and using char * removes the need
19794         for casts.  Reported by Aharon Robbins in
19795         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
19797         regex: support Gawk, which never uses alloca
19798         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
19799         Do not include in this case.  Gawk doesn't supply a substitute
19800         alloca.h and doesn't need one.
19802         regex: port __libc_lock_define usage to C89
19803         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
19804         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
19805         does not conform to C89, as it has an empty macro argument.
19806         Reported by Aharon Robbins in
19807         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
19809 2013-01-01  Eric Blake  <eblake@redhat.com>
19811         maint: update all copyright year number ranges
19812         Run "make update-copyright".
19814         version-etc: bump copyright year reported in --version
19815         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
19817 2012-12-31  Eric Blake  <eblake@redhat.com>
19819         sigprocmask-tests: skip test if pid is unexpectedly large
19820         * tests/test-sigprocmask.c (main): Add range check.
19822         git-version-gen: avoid test -z portability glitch
19823         * build-aux/git-version-gen: Prefer portable test spelling, since
19824         git-version-gen is run on more than just developer machines.
19826 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
19828         git-version-gen: add --fallback option to use if git is not present
19829         * build-aux/git-version-gen: Add support for the new option --fallback,
19830         which comes into play when there is no $tarball_version_file and
19831         git is not working.
19832         (scriptversion): Update.
19834         maint.mk: handle missing git with more grace
19835         * top/maint.mk (no-submodule-changes, public-submodule-commit):
19836         Quietly proceed if git is not present.
19838 2012-12-31  Eric Blake  <eblake@redhat.com>
19840         dup2: work around cygwin bug
19841         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
19842         * lib/dup2.c (rpl_dup2): Work around it.
19843         * doc/posix-functions/dup2.texi (dup2): Document it.
19845 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
19847         regex: remove unnecessary dependency on localcharset.h
19848         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
19849         hasn't been needed for years.
19850         * modules/regex (Depends-on): Remove localcharset.
19852         regex: revert single-byte change
19853         * lib/regexec.c (check_node_accept_bytes): Revert previous change
19854         to this function.  This was alredy fixed in a different way, at
19855         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
19856         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
19857         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
19859         regex: simplify based on Gawk version
19860         * lib/regex_internal.c (re_dfa_add_node): Simplify.
19861         Reported by Aharon Robbins in
19862         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
19864 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
19866         regex: check that pattern char is single-byte
19867         Reported by Aharon Robbins in
19868         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
19869         * lib/regexec.c (check_node_accept_bytes):
19870         Return 0 if the pattern string has a multibyte character here.
19872         regex: implement rational ranges
19873         Reported by Aharon Robbins in
19874         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
19875         * lib/regcomp.c (build_range_exp) [!_LIBC]:
19876         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
19877         Implement rational ranges.
19879         regex: avoid redefining __wctype
19880         Reported by Aharon Robbins in
19881         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
19882         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
19883         #undef before defining.
19885         regex: port to hosts where malloc (0) == NULL
19886         Reported by Aharon Robbins in
19887         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
19888         * lib/regex_internal.c (re_node_set_alloc):
19889         Don't assume that malloc (0) yields nonnull.
19890         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
19891         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
19892         * modules/regex (Files): Add m4/eealloc.m4.
19894         regex: port to C89
19895         Reported by Aharon Robbins in
19896         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
19897         * lib/regcomp.c (init_word_char): Declaration before statement.
19899         regex: merge glibc changes
19900         Also, copy the license wording from glibc.  This simplifies
19901         merging changes.  gnulib-tool will change the wording to GPL as
19902         appropriate, when importing it to other packages.  The only
19903         glibc change made since the last merge, which needs merging, is:
19904         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
19905         * lib/regex_internal.h (gettext): Remove use of INTUSE.
19907         * users.txt: Add Emacs.
19909         doc: omit mention of version when not needed
19910         * doc/gnulib-intro.texi (Portability and Application Code):
19911         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
19912         Don't mention particular dates or versions when not necessary, so
19913         that the documentation won't go out of date so quickly.
19915         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
19917 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
19919         bootstrap: pass --force to autoreconf.
19920         * build-aux/bootstrap (AUTORECONFFLAGS): New.
19921         Add "--force" so that Automake's ylwrap and other such tools
19922         be updated at each bootstrap invocation.
19923         Use it.
19925 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
19927         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
19928         The earlier patch forgot to update one of the #if conditions, causing
19929         a problem on Debian testing i386 reported by Mats Erik Andersson
19930         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00124.html>.
19931         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
19932         (__argp_fmtstream_puts, argp_fmtstream_puts)
19933         (__argp_fmtstream_write, argp_fmtstream_write)
19934         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
19936         * doc/gnulib-readme.texi: Minor fixups.
19937         (Portability guidelines): Modernize URLs.  Remove some repetition.
19938         (Indent with spaces not TABs): Reword to avoid too-long lines.
19939         Remove some '@ifset standalone' stuff that isn't used.
19941         * doc/gnulib-readme.texi (Portability guidelines):
19942         ctype.h, not ctime.h.
19944         Correct name of POSIX.1-2001.
19945         * doc/posix-functions/fgetc.texi (fgetc):
19946         * doc/posix-functions/fgets.texi (fgets):
19947         * doc/posix-functions/fread.texi (fread):
19948         * doc/posix-functions/fscanf.texi (fscanf):
19949         * doc/posix-functions/getc.texi (getc):
19950         * doc/posix-functions/getchar.texi (getchar):
19951         * doc/posix-functions/scanf.texi (scanf):
19952         POSIX.1-2001, not POSIX-2001.
19954         doc: move README into manual
19955         * README: Move contents to new file doc/gnulib-readme.texi.
19956         Replace with a one-line summary.
19957         * doc/gnulib.texi (Brief Overview): New section,
19958         with old intro preface.  Include gnulib-readme.texi for contents.
19959         (Philosophy): Rename from "Introduction", since this
19960         section no longer introduces the rest.  Write a new preface.
19961         * doc/gnulib-readme.texi: New file, with the old contents of
19962         README texinfo-ized.  This way, the README info appears
19963         in the online and printed manual.
19965 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
19967         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
19968         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
19969         c_vasprintf() prototype.
19971 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
19973         c-vasprintf: Fix "empty declaration" warning reported by GCC.
19974         * lib/c-vasprintf.h: Remove stray semicolon.
19976 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
19978         gettext: avoid obsolete macro AM_PROG_MKDIR_P
19979         It is obsolete and is planned to be removed from Automake 1.14; see
19980         <http://lists.gnu.org/r/automake/2012-12/msg00029.html>.
19981         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
19982         (installdirs-data, installdirs-data-yes):
19983         Use $(MKDIR_P), not $(mkdir_p).
19984         * m4/intl.m4 (AM_INTL_SUBDIR):
19985         * m4/po.m4 (AM_PO_SUBDIRS):
19986         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
19988 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
19990         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
19991         On this platform, we are not optimizing but we are using
19992         the substitute for extern inlines, so compile as if
19993         C99-style extern inline, or a substitute, is available.
19994         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
19995         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
19996         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
19997         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
19998         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
19999         Declare as ARGP_FS_EI, not as extern.
20000         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
20001         (__option_is_short, _option_is_end, __option_is_end)
20002         [!_LIBC && __USE_EXTERN_INLINES]:
20003         Declare as ARGP_EI, not as extern.
20005 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
20007         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
20008         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
20009         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
20010         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
20011         ...), as the latter is fatal with older Autoconfs.
20012         Problem reported and fix suggested by Eric Blake in thread starting at
20013         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00097.html>.
20015 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
20017         AC_PROG_MKDIR_P: don't workaround if not buggy
20018         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
20019         Define only for Autoconf versions before 2.62.
20020         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
20021         undocumented m4_PACKAGE_VERSION, for consistency with the
20022         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
20023         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
20024         was introduced in 2.62.
20026 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
20028         New 'c-*printf' modules for formatted output in C locale.
20030         New module 'c-vasnprintf'.
20031         * modules/c-vasnprintf: New file.
20032         * lib/c-vasnprintf.c: New file.
20033         * lib/c-vasnprintf.h: New file.
20035         New module 'c-snprintf'.
20036         * modules/c-snprintf: New file.
20037         * modules/c-snprintf-tests: New file.
20038         * lib/c-snprintf.c: New file.
20039         * lib/c-snprintf.h: New file.
20040         * tests/test-c-snprintf.c: New file.
20041         * tests/test-c-snprintf.sh: New file.
20043         New module 'c-vsnprintf'.
20044         * modules/c-vsnprintf: New file.
20045         * modules/c-vsnprintf-tests: New file.
20046         * lib/c-vsnprintf.c: New file.
20047         * lib/c-vsnprintf.h: New file.
20048         * tests/test-c-vsnprintf.c: New file.
20049         * tests/test-c-vsnprintf.sh: New file.
20051         New module 'c-vasprintf'.
20052         * modules/c-vasprintf: New file.
20053         * modules/c-vasprintf-tests: New file.
20054         * lib/c-asprintf.c: New file.
20055         * lib/c-vasprintf.c: New file.
20056         * lib/c-vasprintf.h: New file.
20057         * tests/test-c-vasprintf.c  +: New file.
20058         * tests/test-c-vasprintf.sh: New file.
20060         New module 'c-xvasprintf'.
20061         * modules/c-xvasprintf: New file.
20062         * modules/c-xvasprintf-tests: New file.
20063         * lib/c-xasprintf.c: New file.
20064         * lib/c-xvasprintf.c: New file.
20065         * lib/c-xvasprintf.h: New file.
20066         * tests/test-c-xvasprintf.c: New file.
20067         * tests/test-c-xvasprintf.sh: New file.
20069 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
20071         argp: better 'inline'
20072         Use extern-inline module to declare extern inline functions.
20073         This avoids some bogus warning diagnostics.  Problem discovered
20074         when modifying GNU tar to use the manywarnings module.
20075         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
20076         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
20077         Define based on extern-inline.
20078         * modules/argp (Depends-on): Add extern-inline.
20080 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
20082         filemode, sys_stat: Handle MPX files a la AIX.
20083         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
20084         * lib/sys_stat.in.h (S_ISMPX): New macro.
20085         * tests/test-sys_stat.c: Add tests for MPX files.
20087 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
20089         x-to-1: honor $PERL
20090         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
20091         a chance to use his preferred version of Perl.  This is typically
20092         required by Darwin users whose default /usr/bin/perl does not have all
20093         the libraries required by help2man, and who need to use their MacPorts
20094         installation of Perl instead.
20096 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
20098         gnu-web-doc-update: add all the new files, even in new directories
20099         See http://lists.gnu.org/r/bug-gnulib/2012-12/msg00057.html
20100         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
20101         Use it.
20102         (main): Don't use cvsutils to get the list of unknown files,
20103         just add all the existing files and directories.
20105 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
20107         gnu-web-doc-update: improve --help
20108         * build-aux/gnu-web-doc-update: Move comments into --help.
20110 2012-12-07  Eric Wong  <normalperson@yhbt.net>
20112         mountlist: recognize more "dummy" file systems
20113         * lib/mountlist.c (ME_DUMMY_0):
20114         Add these dummy FS names to the list:
20115         - "debugfs" virtual filesystem for kernel debugging
20116         - "devpts" PTY slave filesystem
20117         - "devtmpfs" device filesystem on top of tmpfs/ramfs
20118         - "fusectl" control filesystem for FUSE
20119         - "mqueue" enumerates POSIX message queues
20120         - "rpc_pipefs" kernel <-> userspace bridge for NFS
20121         - "sysfs" is for exporting kernel objects
20122         - "devfs" device filesystem for Linux 2.4 and FreeBSD
20124 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
20126         extern-inline: avoid incompatibility with Darwin Libc
20127         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
20128         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
20129         Problem reported by Akim Demaille in
20130         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00023.html>.
20132 2012-12-11  Simon Josefsson  <simon@josefsson.org>
20134         gnupload: Work with GnuPG using gpg-agent (for smartcards).
20135         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
20136         let it handle password prompting.
20138 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
20140         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
20141         * lib/canonicalize.c (canonicalize_filename_mode):
20142         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
20143         fetching the current directory.  Don't overrun the beginning of
20144         rpath if there's no slashes after the MS-Windows drive letter.
20146 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
20148         maint.mk: avoid extra forks
20149         * top/maint.mk (_cfg_mk): The GNU make manual documents that
20150         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
20151         So use that instead of "$(shell test -f FILE && echo FILE)".
20153 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
20155         vasnprintf: fix ASCII_ONLY typo
20156         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
20157         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
20158         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
20159         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
20160         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00021.html>.
20162 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
20164         list, oset, xlist, xoset: fix extern inline issue with C99
20165         This was introduced by my recent changes for 'inline'.
20166         Problem reported for gettext by Daiki Ueno in
20167         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00000.html>.
20168         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
20169         (gl_list_nx_create, gl_list_size, gl_list_node_value)
20170         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
20171         (gl_list_previous_node, gl_list_get_at)
20172         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
20173         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
20174         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
20175         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
20176         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
20177         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
20178         (gl_list_iterator_free, gl_sortedlist_search)
20179         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
20180         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
20181         (gl_sortedlist_remove):
20182         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
20183         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
20184         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
20185         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
20186         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
20187         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
20188         (gl_list_add_at, gl_sortedlist_add):
20189         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
20190         Wrap these extern decls inside "#if 0", because they are implemented
20191         as inline functions, and extern inline is not what's wanted here.
20192         It would simplify these .h files to remove the extern decls entirely,
20193         although a downside would be less-clear separation between
20194         specification and implementation.
20196 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
20198         sys_stat: no 'static inline'
20199         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
20200         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
20202         extern-inline: no 'static inline'
20203         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
20204         Do not require AC_C_INLINE.
20205         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
20206         'static inline', for older compilers.
20208         snippet/warn-on-use: no 'static inline'
20209         * build-aux/snippet/warn-on-use.h:
20210         Remove unnecessary 'inline' in comment.
20212         rbtree-list, rbtreehash-list: no 'static inline'
20213         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
20214         * lib/gl_anytree_list2.h (node_at):
20215         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
20216         (gl_oset_first, add_nodes_to_buckets):
20217         Now static, not static inline.
20219         regex: no 'static inline'
20220         * lib/regex_internal.c (calc_state_hash):
20221         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
20222         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
20223         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
20224         Now static, not static inline.
20225         (inline) [__GNUC__ < 3 && _LIBC]:
20226         Remove macro; no longer needed.
20228         xvasprintf: no 'static inline'
20229         * lib/xvasprintf.c (xstrcat):
20230         Now static, not static inline.
20231         * m4/xvasprintf.m4 (gl_XVASPRINTF):
20232         Do not require AC_C_INLINE.
20234         parse-datetime, parse-duration: no 'static inline'
20235         * lib/parse-datetime.y (to_uchar):
20236         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
20237         (scale_n_add):
20238         Now static, not static inline.
20239         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
20240         * modules/parse-duration (configure.ac):
20241         Do not require AC_C_INLINE.
20243         getaddrinfo: no 'static inline'
20244         * lib/getaddrinfo.c (validate_family):
20245         Now static, not static inline.
20246         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
20247         Do not require AC_C_INLINE.
20249         ftruncate, fts, lstat, openat, raise: no 'static inline'
20250         * lib/ftruncate.c (chsize_nothrow):
20251         * lib/fts.c (opendirat, diropen):
20252         * lib/lstat.c (orig_lstat):
20253         * lib/openat.c (orig_openat):
20254         * lib/raise.c (raise_nothrow):
20255         Now static, not static inline.
20256         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
20257         * m4/fts.m4 (gl_FUNC_FTS_CORE):
20258         * m4/lstat.m4 (gl_PREREQ_LSTAT):
20259         * m4/openat.m4 (gl_PREREQ_OPENAT):
20260         * m4/raise.m4 (gl_PREREQ_RAISE):
20261         Do not require AC_C_INLINE.
20263         fflush, stat: no 'static inline'
20264         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
20265         (clear_ungetc_buffer, disable_seek_optimization)
20266         (restore_seek_optimization, update_fpos_cache):
20267         * lib/stat.c (orig_stat):
20268         Now static, not static inline.
20269         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
20270         (update_fpos_cache):
20271         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
20272         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
20273         * m4/stat.m4 (gl_PREREQ_STAT):
20274         Do not require AC_C_INLINE.
20276         error, filevercmp: no 'static inline'
20277         * lib/error.c (is_open, flush_stdout):
20278         * lib/filevercmp.c (order):
20279         Now static, not static inline.
20280         * m4/error.m4 (gl_PREREQ_ERROR):
20281         * modules/filevercmp (configure.ac):
20282         Do not require AC_C_INLINE.
20284         dup, execute, fatal-signal, etc.: no 'static inline'
20285         * lib/dup.c (dup_nothrow):
20286         * lib/execute.c (nonintr_close, nonintr_open):
20287         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
20288         * lib/fopen.c (orig_fopen):
20289         * lib/freadseek.c (freadptrinc):
20290         * lib/freopen.c (orig_freopen):
20291         * lib/fstat.c (orig_fstat, fstat_nothrow):
20292         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
20293         (get_rusage_as_via_iterator):
20294         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
20295         * lib/getdtablesize.c (_setmaxstdio_nothrow):
20296         * lib/isatty.c (_isatty_nothrow):
20297         * lib/open.c (orig_open):
20298         * lib/read.c (read_nothrow):
20299         * lib/sigprocmask.c (signal_nothrow):
20300         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
20301         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
20302         * lib/wait-process.c (unregister_slave_subprocess):
20303         * lib/write.c (write_nothrow):
20304         Now static, not static inline.
20305         * lib/spawn-pipe.c (nonintr_open): Define only if
20306         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
20307         * m4/dup.m4 (gl_PREREQ_DUP):
20308         * m4/execute.m4 (gl_EXECUTE):
20309         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
20310         * m4/fopen.m4 (gl_PREREQ_FOPEN):
20311         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
20312         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
20313         * m4/fstat.m4 (gl_PREREQ_FSTAT):
20314         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
20315         * m4/isatty.m4 (gl_PREREQ_ISATTY):
20316         * m4/open.m4 (gl_PREREQ_OPEN):
20317         * m4/read.m4 (gl_PREREQ_READ):
20318         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
20319         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
20320         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
20321         * m4/wait-process.m4 (gl_WAIT_PROCESS):
20322         * m4/write.m4 (gl_PREREQ_WRITE):
20323         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
20324         Do not require AC_C_INLINE.
20326         c-strtod, memcoll, readutmp: no 'static inline'
20327         * lib/c-strtod.c (c_locale):
20328         * lib/memcoll.c (strcoll_loop):
20329         * lib/readutmp.c (desirable_utmp_entry):
20330         Now static, not static inline.
20331         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
20332         * m4/memcoll.m4 (gl_MEMCOLL):
20333         * m4/readutmp.m4 (gl_READUTMP):
20334         Do not require AC_C_INLINE.
20336         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
20337         * lib/arctwo.c (to_uchar):
20338         * lib/md4.c (set_uint32):
20339         * lib/md5.c (set_uint32):
20340         * lib/sha1.c (set_uint32):
20341         * lib/sha256.c (set_uint32):
20342         * lib/sha512.c (set_uint64):
20343         Now static, not static inline.  This is a bit simpler, and doesn't
20344         affect performance with GCC and default optimization.
20345         * m4/arctwo.m4 (gl_ARCTWO):
20346         * m4/md4.m4 (gl_MD4):
20347         * m4/md5.m4 (gl_MD5):
20348         * m4/sha1.m4 (gl_SHA1):
20349         * m4/sha256.m4 (gl_SHA256):
20350         * m4/sha512.m4 (gl_SHA512):
20351         Do not require AC_C_INLINE.
20353         cond, lock, thread: better 'inline'
20354         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
20355         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
20356         New macros.  Use them instead of static inline, for header functions.
20357         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
20358         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
20359         * lib/glthread/lock.c (gl_waitqueue_init)
20360         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
20361         * lib/glthread/thread.c (get_current_thread_handle):
20362         Change 'static inline' to 'inline'.
20363         * lib/glthread/cond.h, lib/glthread/thread.h:
20364         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20365         * m4/cond.m4 (gl_COND):
20366         * m4/lock.m4 (gl_PREREQ_LOCK):
20367         * m4/thread.m4 (gl_THREAD):
20368         Do not require AC_C_INLINE.
20369         * modules/cond, modules/thread (Depends-on): Add extern-inline.
20371         chdir-long, cycle-check, savewd: better 'inline'
20372         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
20373         (find_non_slash):
20374         * lib/cycle-check.c (is_zero_or_power_of_two):
20375         * lib/savewd.c (savewd_delegating):
20376         Change 'static inline' to 'inline'.
20377         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
20378         Replace all remaining uses of 'static inline' with it.
20379         * lib/savewd.h:
20380         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20381         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
20382         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
20383         * m4/savewd.m4 (gl_SAVEWD):
20384         Do not require AC_C_INLINE.
20385         * modules/savewd (Depends-on): Add extern-inline.
20387         base32, base64: no need for 'inline'
20388         * lib/base32.c (to_uchar, get_8, decode_8):
20389         * lib/base64.c (to_uchar, get_4, decode_4):
20390         Change 'static inline' to 'inline'.
20391         * m4/base32.m4 (gl_PREREQ_BASE32):
20392         * m4/base64.m4 (gl_PREREQ_BASE64):
20393         Do not require AC_C_INLINE.
20395         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
20396         * lib/gl_array_oset.c (gl_array_nx_add_at):
20397         (gl_array_remove_at):
20398         * lib/gl_linkedhash_list.c (hash_resize_after_add)
20399         (add_to_bucket, remove_from_bucket):
20400         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
20401         Change 'static inline' to 'static', as it's simpler to omit
20402         'inline' unless there's a significant performance advantage.
20404         list, oset, xlist, xoset, xsublist: simplify via extern inline
20405         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
20406         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
20407         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
20408         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
20409         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
20410         New macro.  Replace all uses of 'static inline' with it.
20411         [HAVE_INLINE]: Implement functions as *_INLINE functions,
20412         instead of as macros FOO that are defined to static inline
20413         functions FOO_inline.
20414         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
20415         * lib/gl_xsublist.c:
20416         Reimplement from scratch, by defining the corresponding *_INLINE
20417         macro and including the corresponding .h file.  This is simpler.
20418         * modules/list, modules/oset, modules/xlist, modules/xoset:
20419         (Files): Remove m4/gl_list.m4.
20420         (configure.ac): Remove gl_LIST.
20421         * m4/gl_list.m4: Remove.
20422         * modules/list, modules/oset, modules/xlist, modules/xoset:
20423         * modules/xsublist:
20424         (Depends-on): Depend on extern-inline, not inline.
20426         xalloc: better 'inline'
20427         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
20428         New macro.  Replace all uses of 'static inline' with it.
20429         (static_inline): Remove.
20430         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
20431         Let 'extern inline' do the work automatically, instead of doing
20432         it by hand.
20433         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
20434         Remove.  All uses removed.
20435         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
20437         gethrxtime: better 'inline'
20438         * lib/xtime.c: New file.
20439         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
20440         * lib/xtime.h (XTIME_INCLUDE):
20441         New macros.  Replace all uses of 'static inline' with them.
20442         * lib/gethrxtime.c (gethrxtime): Define only if
20443         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
20444         this source file is now always compiled, because of the extern inline.
20445         * lib/gethrxtime.h, lib/xtime.h:
20446         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20447         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
20448         if gethrtime works, as they're not needed in that case.
20449         (gl_XTIME): Do not require AC_C_INLINE.
20450         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
20451         compiled now.  Move the check into gl_GETHRXTIME.
20452         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
20453         (Depends-on): Add extern-inline.
20454         (configure.ac): gethrxtime is always compiled now.
20455         (lib_SOURCES): Add gethrxtime.c.
20457         wctype-h: better 'inline'
20458         * lib/wctype-h.c: New file.
20459         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
20460         New macro.  Replace all uses of 'static inline' with it.
20461         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20462         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
20463         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
20464         (Depends-on): Add extern-inline.
20466         unistd: better 'inline'
20467         * lib/unistd.c: New file.
20468         * lib/unistd.in.h (_GL_UNISTD_INLINE):
20469         New macro.  Replace all uses of 'static inline' with it.
20470         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20471         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
20472         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
20473         (Depends-on): Add extern-inline.
20475         sys_socket: better 'inline'
20476         * lib/sys_socket.c: New file.
20477         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
20478         New macro.  Replace all uses of 'static inline' with it.
20479         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20480         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
20481         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
20482         (Depends-on): Add extern-inline.
20484         stdio: better 'inline'
20485         * lib/stdio.c: New file.
20486         * lib/stdio.in.h (_GL_STDIO_INLINE):
20487         New macro.  Replace all uses of 'static inline' with it.
20488         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20489         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
20490         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
20491         (Depends-on): Add extern-inline.
20493         sigaction: better 'inline'
20494         * lib/sig-handler.c: New file.
20495         * lib/sig-handler.h (SIG_HANDLER_INLINE):
20496         New macro.  Replace all uses of 'static inline' with it.
20497         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20498         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
20499         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
20500         (Depends-on): Add extern-inline.
20502         selinux-h: better 'inline'
20503         * lib/se-context.c, lib/se-selinux.c: New files.
20504         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
20505         * lib/se-context.in.h (SE_CONTEXT_INLINE):
20506         New macro.  Replace all uses of 'static inline' with it.
20507         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20508         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
20509         New macro.  Replace all uses of 'static inline' with it.
20510         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20511         * modules/selinux-h (Files, lib_SOURCES):
20512         Add lib/se-context.c, lib/se-selinux.c.
20513         (Depends-on): Add extern-inline.
20514         (configure.ac): Do not require AC_C_INLINE.
20516         pthread: better 'inline'
20517         * lib/pthread.c: New file.
20518         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
20519         New macro.  Replace all uses of 'static inline' with it.
20520         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20521         * m4/pthread.m4 (gl_PTHREAD_CHECK):
20522         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
20523         * modules/pthread (Files): Add lib/pthread.c.
20524         (Depends-on): Add extern-inline.
20526         math: better 'inline'
20527         * lib/math.c: New file.
20528         * lib/math.in.h (_GL_MATH_INLINE):
20529         New macro.  Replace all uses of 'static inline' with it.
20530         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20531         * m4/math_h.m4 (gl_MATH_H):
20532         Do not require AC_C_INLINE.
20533         * modules/math (Files, lib_SOURCES):
20534         Add lib/math.c.
20535         (Depends-on): Add extern-inline.
20537         count-one-bits: better 'inline'
20538         * lib/count-one-bits.c: New file.
20539         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
20540         New macro.  Replace all uses of 'static inline' with it.
20541         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20542         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
20543         Do not require AC_C_INLINE.
20544         * modules/count-one-bits (Files, lib_SOURCES):
20545         Add lib/count-one-bits.c.
20546         (Depends-on): Add extern-inline.
20548         count-leading-zeros: better 'inline'
20549         * lib/count-leading-zeros.c: New file.
20550         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
20551         New macro.  Replace all uses of 'static inline' with it.
20552         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20553         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
20554         Do not require AC_C_INLINE.
20555         * modules/count-leading-zeros (Files, lib_SOURCES):
20556         Add lib/count-leading-zeros.c.
20557         (Depends-on): Add extern-inline.
20559         bitrotate: better 'inline'
20560         * lib/bitrotate.c: New file.
20561         * lib/bitrotate.h (BITROTATE_INLINE):
20562         New macros.
20563         Replace all uses of 'static inline' with them.
20564         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20565         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
20566         (Depends-on): Add extern-inline.
20567         (configure.ac): Do not require AC_C_INLINE.
20569 2012-11-20  Theophile Ranquet  <ranquet@lrde.epita.fr>
20571         maint.mk: avoid gratuitous failure
20572         Reported by Stefano Lattarini in
20573         <http://lists.gnu.org/r/bug-bison/2012-11/msg00022.html>
20574         * top/maint.mk (public-submodule-commit): Quote more safely.
20576 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
20578         canonicalize, canonicalize-lgpl: support MS-Windows file names
20579         See <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00074.html>
20580         for test cases, which it'd be nice to add at some point.
20581         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
20582         * lib/canonicalize.c (canonicalize_filename_mode):
20583         * lib/canonicalize-lgpl.c (__realpath):
20584         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
20585         slash is at the beginning of the file name.  Use ISSLASH, instead
20586         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
20587         the first character with '/'.  Test for
20588         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
20589         with a drive letter.
20590         * lib/canonicalize.c (SLASHES): New macro.
20591         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
20593 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
20595         fts: introduce FTS_VERBATIM
20596         * lib/fts_.h (FTS_VERBATIM): New bit flag.
20597         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
20598         * lib/fts.c (fts_open): Honor it.
20600 2012-11-09  Pádraig Brady  <P@draigBrady.com>
20602         getlogin-tests: allow errno == ENXIO
20603         * tests/test-getlogin.c (main): Skip tests if getlogin fails
20604         with errno == ENXIO (No controlling tty).
20605         getlogin_r-tests: Likewise. Also allow errno == ENOENT
20606         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
20607         with errno == ENOENT.  This was reported to happen in various
20608         situations on GNU/Linux.
20610 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
20612         getlogin-tests: allow errno == ENOENT
20613         * tests/test-getlogin.c (main): Skip tests if getlogin fails
20614         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
20615         when running a test in an Emacs shell buffer.
20617 2012-11-08  Jim Meyering  <jim@meyering.net>
20619         tests/nap.h: avoid warning about unused variable
20620         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
20622         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
20623         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
20624         white space before each of the special-cased file names, to avoid
20625         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
20626         in http://bugs.gnu.org/12830.
20628 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
20630         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
20631         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
20632         fails with errno == EBADF when fd is opened with O_PATH.
20633         Reported by Jim Meyering in
20634         <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00026.html>.
20635         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
20636         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
20638 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
20640         test-utimens: speed up by taking shorter naps
20641         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
20642         New functions.
20643         (nap): Use them, to do a better job of guessing the delay.
20644         On Fedora 17 with ext4 atop md atop hard disks, this made
20645         test-utimens run 10x faster, because the test napped for
20646         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
20647         <http://bugs.gnu.org/12820#11>.
20649 2012-11-07  Jim Meyering  <jim@meyering.net>
20651         mountlist.c: fix a compilation failure
20652         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
20653         I introduced while transforming commit v0.0-7683-g613bcb6
20655 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
20657         errno: port to LynxOS 178 2.2.2
20658         Problem reported by Joel Brobecker in
20659         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00088.html>.
20660         * doc/posix-headers/errno.texi (errno.h): Document this.
20661         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
20662         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
20663         Supply a string for EILSEQ.
20664         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
20666 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
20668         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
20669         Linux kernel 2.6.39 introduced O_PATH (see
20670         <http://lwn.net/Articles/433854/>) and this is a better fallback
20671         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
20672         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
20673         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
20674         * lib/fcntl.in.h (O_ACCMODE):
20675         * tests/test-fcntl-h.c (main):
20676         Do not reject O_ACCMODE merely because it has more than the
20677         minimal number of bits, as POSIX allows extensions here.
20679 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
20681         mountlist: do not classify a bind-mounted dir entry as "dummy"
20682         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
20683         the "none"-testing clause.
20684         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
20685         exception for bind-mounted directories.
20687 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
20689         quote: provide a means to escape strings with nul characters
20690         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
20691         (quote, quote_n): Rename formal arguments for consistency with
20692         quotearg.
20694 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
20696         test-raise: don't assume 199 is an invalid signal
20697         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
20699         sh-quote-tests: port to Solaris 9
20700         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
20701         Problem reported by Dagobert Michelsen in
20702         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00114.html>.
20704 2012-10-28  Jim Meyering  <jim@meyering.net>
20706         maint.mk: rename a new configurable variable
20707         * top/maint.mk (_gl_translatable_string_re): Rename from
20708         translation-markers: _gl_ prefix to insulate from user Makefile code,
20709         and the _re suffix to inform that it's a regular expression.
20711 2012-10-26  Eric Blake  <eblake@redhat.com>
20713         maint.mk: let packages tweak sc_po_check pattern
20714         * top/maint.mk (sc_po_check): Add translation-markers, to allow
20715         finding files with other translation markers.
20717 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
20719         euidaccess: speed up 'configure' on GNU hosts
20720         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
20721         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
20722         it's needed only in this case.  Use AC_CHECK_DECLS, not
20723         AC_CHECK_DECLS_ONCE.
20724         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
20725         or AC_REQUIRE for AC_FUNC_GETGROUPS.
20727         * lib/regexec.c (re_search_internal): Fix grammar in comment.
20729 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
20731         fchmodat, fchownat, fstatat: port to non-inlining compilers
20732         Problem reported for FreeBSD 9 by Jim Meyering in
20733         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00070.html>.
20734         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
20735         New files, which define FCHMODAT_INLINE etc.
20736         * lib/fchmodat.c (FCHMODAT_INLINE):
20737         * lib/fchownat.c (FCHOWNAT_INLINE):
20738         * lib/fstatat.c (FSTATAT_INLINE):
20739         Remove, as chmodat.c etc. now do this.
20740         * modules/fchmodat (Files): Add lib/chmodat.c.
20741         * modules/fchownat (Files): Add lib/chownat.c.
20742         * modules/fstatat (Files): Add lib/statat.c.
20744 2012-10-15  Jim Meyering  <jim@meyering.net>
20746         fchmodat.c, fchownat.c: compile-impeding typos
20747         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
20748         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
20749         Introduced in commit v0.0-7636-gd202279.
20751 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
20753         fcntl-h: support GNU flags like O_IGNORE_CTTY
20754         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
20755         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
20756         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
20757         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
20758         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
20759         Define to 0 if not already defined.
20760         * tests/test-fcntl-h.c: Test these new flags.
20762 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
20764         faccessat, etc.: support AT_FDCWD-only use
20765         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
20766         this function only if its first argument is AT_FDCWD.
20767         Emacs wants faccessat for AT_EACCESS but not for any first-arg
20768         values other than AT_FDCWD, so it doesn't want all the openat
20769         machinery with fchdir etc.
20770         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
20771         * modules/fstatat, modules/mkdirat, modules/openat (Files):
20772         * modules/unlinkat (Files):
20773         Remove lib/openat-priv.h, as at-internal supplies this file.
20774         Removing this file here allows us to support programs like Emacs
20775         that avoid at-internal.
20777         faccessat: speed up 'configure' on mainstream hosts
20778         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
20779         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
20780         since it's only on unusual platforms that we need to check for
20781         'access', and it's better not to slow 'configure' down on all
20782         platforms.
20784         faccessat: port to Solaris 10
20785         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
20786         Needed on Solaris 10, which doesn't have AT_EACCESS,
20787         so we need the Gnulib fcntl.h, which defines it.
20789 2012-10-14  Pádraig Brady  <P@draigBrady.com>
20790         canonicalize: fix C89 compilation
20791         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
20792         declarations so C89 is supported.  Also remove the comment
20793         referencing memorty allocation as the suggested feature could
20794         not be implemented as suggested.
20795         Reported by Michael Goffioul.
20797 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
20799         group-member: omit unnecessary dependencies
20800         This is for Emacs, which has its own allocator and where we
20801         don't want to use xalloc.
20802         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
20803         since we no longer use xmalloc.  Do not include stdbool.h, since
20804         the changes below happen to remove the only use of bool.
20805         (GROUPBUF_SIZE): New constant.
20806         (struct group_info): Remove n_groups member.  Add groupbuf member.
20807         This lets us get the groups without using malloc, usually.
20808         (free_group_info, get_group_info): Adjust to this.
20809         (get_group_info): Return the number of groups found, or -1 on error.
20810         Use plain malloc not xmalloc, and treat its failure as if there
20811         are no groups, as the user already loses in case of error.
20812         (group_member): Simplify, based on changes to get_group_info.
20813         * modules/group-member (Depends-on): Remove dependencies on
20814         xalloc and stdbool.  Add dependency on xalloc-oversized.
20816 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
20818         gethrxtime: port to C++
20819         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
20821 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
20823         ptsname: fix macro-name typo
20824         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
20826 2012-10-03  Simon Josefsson  <simon@josefsson.org>
20828         inttostr: Relax license.
20829         * modules/inttostr (License): Change from LGPL to LGPLv2+.
20831 2012-10-03  Eric Blake  <eblake@redhat.com>
20833         ptsname_r: support ptys returned by FreeBSD posix_openpt
20834         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
20835         lives in /dev/pts/.
20837 2012-10-02  Eric Blake  <eblake@redhat.com>
20839         pselect: reject invalid file descriptors
20840         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
20841         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
20842         * modules/pselect (Depends-on): Add dup2.
20843         * doc/posix-functions/pselect.texi (pselect): Document this.
20845         select: reject invalid file descriptors
20846         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
20847         * lib/select.c (rpl_select) [!win32]: Work around it.
20848         * modules/select (Depends-on): Add dup2.
20849         * doc/posix-functions/select.texi (select): Document this.
20851         select: enhance test
20852         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
20853         New functions.
20854         (test_function): Enhance test.
20855         (do_select_bad_fd): Avoid any stale errno values.
20857         ptsname: reject invalid file descriptors
20858         http://www.austingroupbugs.net/view.php?id=503
20859         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
20860         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
20861         * modules/stdlib (Makefile.am): Replace witness.
20862         * lib/stdlib.in.h (ptsname): Allow for replacement.
20863         * modules/ptsname (configure.ac): Trigger replacement.
20864         * doc/posix-functions/ptsname.texi (ptsname): Document this.
20866 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
20868         hash-pjw-bare: new module
20869         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
20870         * lib/hash-pjw-bare.h: Likewise.
20871         * modules/hash-pjw-bare: New file.
20872         * MODULES.html.sh (Misc): Add it.
20874 2012-10-02  Eric Blake  <eblake@redhat.com>
20876         manywarnings: cater to more gcc infelicities
20877         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
20878         -Wuninitialized without -O.
20880 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
20882         select, poll tests: Make setsockopt invocation effective.
20883         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
20884         the bind() call.
20885         * tests/test-select.h (open_server_socket): Likewise.
20887 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
20889         sockets, sys_stat: restore AC_C_INLINE
20890         This undoes the 2012-09-22 patch.
20891         * m4/sockets.m4 (gl_SOCKETS):
20892         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
20893         Restore AC_C_INLINE, since MSVC requires __inline or _inline
20894         and does not support plain 'inline'.  Reported by Bruno Haible in
20895         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00183.html>.
20897 2012-09-30  Bruno Haible  <bruno@clisp.org>
20899         localeconv tests: Avoid test failure on OpenIndiana.
20900         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
20901         skip the 'grouping' and 'mon_grouping' tests.
20902         Reported by Jim Meyering.
20904 2012-09-30  Bruno Haible  <bruno@clisp.org>
20906         havelib: Follow libtool developments.
20907         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
20908         Suggested by Simon Josefsson.
20910 2012-09-29  Jim Meyering  <meyering@redhat.com>
20912         fstatat.c: fix a compile-impeding typo
20913         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
20914         Introduced in commit v0.0-7636-gd202279.
20915         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
20917 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
20919         extern-inline: provide a -Wundef safe config.h
20920         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
20921         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
20922         to produce a -Wundef warning free config.h.
20924 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
20926         hash-pjw: relax license to LGPLv2+
20927         * modules/hash-pjw (License): Relax, with consent of author.
20929 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
20931         maint.mk: fix strict vs. lazy variable issues with RELEASE
20932         * top/maint.mk (_equal): New function.
20933         (member_check): Strip the result to avoid spurious spaces.
20934         (url_dir_list): Do not use ifeq, which is strict, as it will
20935         require RELEASE_TYPE to be defined.
20936         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
20937         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
20938         (announcement_Cc_alpha,announcement_mail_headers_alpha)
20939         (announcement_Cc_beta,announcement_mail_headers_beta)
20940         (announcement_Cc_stable,announcement_mail_headers_stable): these.
20941         (release): Do not depend on $(release-type), as it forces its
20942         evaluation.  Bounce to it.
20944 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
20946         maint.mk: formatting changes
20947         * top/maint.mk: Indent bodies of if's.
20949 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
20951         maint.mk: factor the validation of RELEASE_TYPE
20952         With help from Jim Meyering.
20953         http://lists.gnu.org/r/bug-gnulib/2012-09/msg00132.html
20954         * top/maint.mk (_empty, _sp): Move their definition earlier.
20955         (member-check, release-type): New.
20956         Use the latter instead of $(RELEASE_TYPE).
20957         Remove now useless local checks.
20959 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
20961         maint.mk: provide "make upload" to ease uploading
20962         See
20963         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00028.html>.
20964         Do not depend simply on the current $(VERSION), as there may have been
20965         new commits since the tarball generation.  Rather, rely on $(RELEASE),
20966         as "make release-commit" already does.
20968         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
20969         "make TYPE".
20971         * top/maint.mk (upload_command, upload, release): New.
20972         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
20973         (VERSION): first word of $(RELEASE) is always right.
20974         (emit_upload_commands): Adjust.
20975         * top/README-release: Update.
20977 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
20979         maint.mk: silent rules
20980         With help from Stefano Lattarini.
20981         * top/maint.mk (writable-files): Use $(AM_V_GEN).
20982         (announcement): Use $(AM_V_at).
20984 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
20986         localename: port gl_locale_name_thread_unsafe to FreeBSD
20987         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
20988         and use the simpler FreeBSD implementation on Mac OS X as well.
20989         Original idea suggested by Ed Maste in
20990         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00094.html>.
20992 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
20994         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
20995         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
20996         * lib/mbuiter.c, lib/xsize.c: New files.
20997         * lib/binary-io.h (BINARY_IO_INLINE):
20998         * lib/eealloc.h (EEALLOC_INLINE):
20999         * lib/mbfile.h (MBFILE_INLINE):
21000         * lib/mbiter.h (MBITER_INLINE):
21001         * lib/mbuiter.h (MBUITER_INLINE):
21002         * lib/xsize.h (XSIZE_INLINE):
21003         New macros.
21004         Replace all uses of 'static inline' with them.
21005         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21006         * m4/eealloc.m4 (gl_EEALLOC):
21007         * m4/mbfile.m4 (gl_MBFILE):
21008         * m4/mbiter.m4 (gl_MBITER):
21009         * m4/xsize.m4 (gl_XSIZE):
21010         Do not require AC_C_INLINE.
21011         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
21012         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
21013         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
21014         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
21015         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
21016         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
21017         * modules/binary-io, modules/eealloc, modules/mbfile:
21018         * modules/mbiter, modules/mbuiter:
21019         (Depends-on): Add extern-inline.
21021         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
21022         * lib/pipe-filter-aux.c: New file.
21023         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
21024         Replace all uses of 'static inline' with it.
21025         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21026         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
21027         (filter_retcode): No real need for inline here.
21028         * modules/pipe-filter-gi, modules/pipe-filter-ii:
21029         (Files): Add lib/pipe-filter-aux.c.
21030         (Depends-on): Add extern-inline.
21031         (configure.ac): Do not require AC_C_INLINE.
21032         (lib_SOURCES): Add pipe-filter-aux.c.
21034         fdutimensat: omit unnecessary AC_C_INLINE
21035         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
21037         fchmodat, fchownat, fstatat: use extern-inline
21038         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
21039         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
21040         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
21041         New macros.
21042         * lib/openat.h:
21043         Replace all uses of 'static inline' with them.
21044         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21045         * modules/fchmodat, modules/fchownat, modules/fstatat:
21046         * modules/openat-h:
21047         (Depends-on):
21048         Add extern-inline.
21049         (configure.ac): Remove AC_C_INLINE.
21051         acl, mbchar, priv-set: use extern-inline
21052         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
21053         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
21054         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
21055         New macros.
21056         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
21057         Replace all uses of 'static inline' with it.
21058         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21059         * m4/acl.m4 (gl_FUNC_ACL):
21060         * m4/mbchar.m4 (gl_MBCHAR):
21061         * m4/priv-set.m4 (gl_PRIV_SET):
21062         Remove AC_C_INLINE, since 'inline' is no longer used directly.
21063         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
21064         Add extern-inline.
21066         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
21067         * m4/sockets.m4 (gl_SOCKETS):
21068         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
21069         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
21070         environments where it's already guaranteed to work, so we needn't
21071         check for it at 'configure'-time.
21073         tls-tests: omit unnecessary 'inline'
21074         * tests/test-tls.c (perhaps_yield): No longer inline.
21075         Simplicity and portability trump efficiency in test cases.
21077         utimens-tests: avoid unnecessary 'inline'
21078         * modules/fdutimensat-tests (configure.ac):
21079         * modules/futimens-tests (configure.ac):
21080         * modules/utimens-tests (configure.ac):
21081         * modules/utimensat-tests (configure.ac):
21082         Remove AC_C_INLINE.
21083         * tests/test-utimens-common.h (ctime_compare):
21084         No longer inline.  Simplicity and portability trump efficiency here.
21086         misc: don't limit commentary to inline functions
21087         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
21088         * lib/xalloc-oversized.h, lib/xsize.h:
21089         Contrast macros to functions in general, not just to inline functions,
21090         when the commentary does not apply only to inline functions.
21092 2012-09-20  Jim Meyering  <meyering@redhat.com>
21094         non-recursive-gnulib-prefix-hack: new module
21095         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
21096         the file that originated in Bison.
21097         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
21098         largely copied from a snippet that resided in bison's configure.ac.
21099         * modules/non-recursive-gnulib-prefix-hack: New file.
21100         * MODULES.html.sh (Support for maintaining and releasing projects):
21101         Add it.
21103 2012-09-18  Jim Meyering  <meyering@redhat.com>
21105         maint.mk: generalize _gl_tight_scope for non-recursive make
21106         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
21107         that *.h would describe additional .h files in the directory
21108         specified by $(_gl_TS_dir).  I.e., add this...
21109         (_gl_TS_other_headers): New variable.
21111         maint.mk: exempt trailing blanks found in "binary" files
21112         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
21113         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
21114         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
21116 2012-09-17  Jim Meyering  <meyering@redhat.com>
21118         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
21119         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
21120         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
21121         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
21123 2012-09-17  Jim Meyering  <meyering@redhat.com>
21125         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
21126         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
21127         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
21128         It is not in the same category as "exit (0)" or "exit (1)", and
21129         besides, I know of no symbolic name for that 77.  Reported by
21130         Richard W.M. Jones in
21131         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
21133 2012-09-17  Jim Meyering  <meyering@redhat.com>
21135         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
21136         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
21137         all uses of #define, not just those that start in column 1.
21138         Richard W.M. Jones reported a false positive in
21139         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
21141 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
21143         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
21144         * lib/localcharset.c (locale_charset) [DARWIN7]:
21145         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
21146         as these two values are incompatible.  Problem reported by Max Horn.
21147         For more discussion, please see
21148         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00061.html>.
21150         doc: document sticky-EOF issue
21151         * doc/posix-functions/fgetc.texi (fgetc):
21152         * doc/posix-functions/fgets.texi (fgets):
21153         * doc/posix-functions/fread.texi (fread):
21154         * doc/posix-functions/fscanf.texi (fscanf):
21155         * doc/posix-functions/getc.texi (getc):
21156         * doc/posix-functions/getchar.texi (getchar):
21157         * doc/posix-functions/scanf.texi (scanf):
21158         Mention that glibc and default Solaris do not conform to
21159         C99 and POSIX-2001 or later, with respect to how getchar
21160         etc. behave when feof reports nonzero.
21162 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
21164         poll: fix poll(0, NULL, msec)
21165         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
21166         but nfd is 0.  In that case poll should behave like select.
21168 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
21169             Paolo Bonzini  <bonzini@gnu.org>
21171         poll: fix for systems that can't recv() on a non-socket
21172         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
21173         is readable.  In this case POLLHUP will not be supported.
21174         * doc/posix-functions/poll.texi: Document this.
21176 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
21178         poll/select: document portability problems not fixed by Gnulib.
21179         * doc/posix-functions/poll.texi: poll does not work well on
21180         pipes under Windows.  It has the same limitations as select on
21181         BeOS.
21182         * doc/posix-functions/select.texi: select does not work well
21183         on pipes under Windows.
21185 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
21187         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
21188         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
21189         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
21190         <http://lists.gnu.org/r/bug-tar/2012-07/msg00018.html>.
21192 2012-09-06  Eric Blake  <eblake@redhat.com>
21194         net_if: give more details about the bug being fixed
21195         * doc/posix-headers/net_if.texi: Add clarification.
21197 2012-09-05  Eric Blake  <eblake@redhat.com>
21199         net_if: new module
21200         * modules/net_if: New module, borrowing ideas from netinet_in.
21201         * m4/net_if_h.m4: New file.
21202         * lib/net_if.in.h: Likewise.
21203         * doc/posix-headers/net_if.texi (net/if.h): Document it.
21204         * MODULES.html.sh (lacking POSIX:2008): Likewise.
21205         * tests/test-net_if.c: Make function checks conditional.
21206         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
21208 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
21210         readutmp: fix non-portable UT_PID use
21211         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
21212         Use `UT_PID (u) > 0' as absolute condition.
21214 2012-09-04  Jim Meyering  <meyering@redhat.com>
21216         fts: reduce two or more trailing spaces to just one, usually
21217         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
21218         or more slashes, trim all but the final one.  But if a name consists
21219         solely of two slashes, don't modify it.  If it consists solely of
21220         three or more slashes, strip all but one.
21222         This is part of the solution to a minor problem with rm:
21223         it would print a bogus ELOOP diagnostic when failing to remove
21224         the slash-decorated name of a symlink-to-directory:
21226             $ mkdir d && ln -s d s && env rm -r s/
21227             rm: cannot remove 's': Too many levels of symbolic links
21229         With the change below and a trivial don't-trim-trailing-slashes
21230         adjustment to remove.c, it does this:
21232             $ env rm -r s/
21233             rm: cannot remove 's/': Not a directory
21235         Improved by: Eric Blake
21237         fts: when there is no risk of overlap, use memcpy, not memmove
21238         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
21240 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
21242         stdbool: be more compatible with mixed C/C++ compiles
21243         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
21244         Define to bool, true, false, respectively, as GCC's builtin
21245         stdbool.h does.  Problem reported by Michael Goffioul in
21246         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00143.html>.
21248 2012-08-28  Jim Meyering  <meyering@redhat.com>
21250         revert last change: it was not needed
21251         * tests/test-vc-list-files-git.sh: There's already a test for
21252         a working git, just below.
21254 2012-08-28  Jim Meyering  <meyering@redhat.com>
21256         tests: test-vc-list-files-git.sh: skip if git is not available
21257         * tests/test-vc-list-files-git.sh: Skip this test when git is
21258         not available.
21260 2012-08-26  Bruno Haible  <bruno@clisp.org>
21262         gnulib-tool: Remove no-op option --no-changelog.
21263         * gnulib-tool (func_usage): Don't mention --no-changelog.
21264         (do_changelog): Remove variable.
21265         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
21267 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
21269         doc: remove fdl-1.2.texi
21270         It is no longer used or maintained, and its use of @acronym
21271         is problematic.  See the thread containing
21272         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00134.html>.
21273         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
21274         * doc/old-licenses/fdl-1.2.texi: Remove.
21276         execinfo: port to FreeBSD
21277         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
21278         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
21279         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00113.html>.
21280         * modules/execinfo (Link): Add $(LIB_EXECINFO).
21282 2012-08-23  Jim Meyering  <meyering@redhat.com>
21284         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
21285         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
21286         to placate gcc's -Wold-style-declaration.
21288 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
21290         doc: do not use @acronym
21291         * doc/inet_ntoa.texi (inet_ntoa):
21292         * doc/parse-datetime.texi (Seconds since the Epoch)
21293         (Specifying time zone rules):
21294         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
21295         Don't use @acronym.  Problem reported by John Darlington in
21296         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00124.html>.
21298 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
21300         stdnoreturn: port to newer GCCs
21301         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
21302         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
21303         Problem reported by Jim Meyering in
21304         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00121.html>.
21305         Also, rename the 'test' function to a void a clash with the
21306         already-supplied 'main' function; this fixes a bug that incorrectly
21307         rejected GCC 4.7.1's <stdnoreturn.h>.
21308         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
21309         Document GCC problem.
21311 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
21313         pipe-filter: fix comment typo
21314         * lib/pipe-filter.h: Mention correct function.
21316 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
21318         execinfo: new module
21319         This is for Emacs.  Currently, it provides a no-effect stub
21320         on all platforms where it does not already work.
21321         It already works on glibc-based systems, and on Solaris 11.
21322         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
21323         New files.
21324         * doc/glibc-headers/execinfo.texi (execinfo.h):
21325         * MODULES.html.sh (Misc): Document it.
21327 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
21329         extern-inline: support old GCC 'inline'
21330         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
21331         if available.  This applies to GCC versions 2.7 through 4.2, or
21332         when newer GCC is using -fgnu89-inline.  The goal is to address
21333         some of the performance issues mentioned by Bruno Haible in
21334         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00097.html>.
21336 2012-08-20  Eric Blake  <eblake@redhat.com>
21338         maint.mk: avoid redundant file name in message
21339         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
21340         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
21341         (sc_makefile_path_separator_check): Remove bogus $(ME).
21343 2012-08-20  Mike Frysinger  <vapier@gentoo.org>
21345         timer-time: fix link order when static linking on glibc
21346         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
21347         _after_ -lrt so that it's significant.
21349 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
21351         timespec: omit unnecessary AC_C_INLINE
21352         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
21354         stat-time: omit unnecessary AC_C_INLINE
21355         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
21356         Do not require AC_C_INLINE.
21358         ignore-value: omit unnecessary AC_C_INLINE
21359         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
21361         sys_select: avoid 'static inline'
21362         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
21364         mktime: avoid 'static inline'
21365         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
21366         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
21368 2012-08-19  Bruno Haible  <bruno@clisp.org>
21370         gnulib-tool: Improve coding style.
21371         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
21372         func_emit_lib_Makefile_am.
21373         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
21375 2012-08-19  Bruno Haible  <bruno@clisp.org>
21377         gnulib-tool: Fix indentation.
21378         * gnulib-tool (func_import): Fix indentation.
21380 2012-08-19  Bruno Haible  <bruno@clisp.org>
21382         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
21383         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
21384         on the list of removed files.
21386 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
21388         test-parse-datetime: avoid glibc leap-second glitch
21389         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
21390         with the 2012 rules.  Problem reported by Bruce Dubbs in
21391         <http://bugs.gnu.org/12206>.
21393 2012-08-14  Bruno Haible  <bruno@clisp.org>
21395         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
21396         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
21397         from argument.
21398         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
21400 2012-08-14  Eric Blake  <eblake@redhat.com>
21402         ldexp: relax license
21403         * modules/ldexp (License): Trivial relax, since the module only
21404         provides a permissively licensed m4 file.
21406 2012-08-13  Bruno Haible  <bruno@clisp.org>
21408         gnulib-tool: Fix persistence of --witness-c-macro option.
21409         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
21410         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
21412 2012-08-11  Eric Blake  <eblake@redhat.com>
21414         count-leading-zeros: use a lookup table on non-gcc compilers
21415         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
21416         alternate implementation, suggested by Jim Meyering.
21418 2012-08-10  Eric Blake  <eblake@redhat.com>
21420         count-leading-zeros: new module
21421         * modules/count-leading-zeros: New module.
21422         * m4/count-leading-zeros.m4: New file.
21423         * lib/count-leading-zeros.h: Likewise.
21424         * modules/count-leading-zeros-tests: New test.
21425         * tests/test-count-leading-zeros.c: New file.
21426         * MODULES.html.sh (Integer arithmetic functions): Document it.
21428 2012-08-07  Simon Josefsson  <simon@josefsson.org>
21429             Jim Meyering  <meyering@redhat.com>
21431         maintainer-makefile: Fix syntax error with dash.
21432         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
21433         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
21435 2012-08-05  Jim Meyering  <meyering@redhat.com>
21437         extern-inline: also ignore -Wmissing-declarations
21438         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
21439         required with gcc-4.8.0-to-be.
21441         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
21442         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
21443         for /error ?([^,]*)/.  This avoids false-positives for strings like
21444         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
21446 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
21448         gnumakefile: better interaction with Automake-NG
21449         * modules/gnumakefile [Makefile.am]: The makefiles generated by
21450         Automake-NG always contain a definition of VPATH, even in non-VPATH
21451         builds (its value being simply '.' in that case).  So, in the
21452         'clean-GNUmakefile' rule, to determine whether running under a
21453         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
21454         '$(VPATH)' expands to the empty string.
21456 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
21458         base64: Use extern C scope in header file, for C++.
21459         * lib/base64.h: Add C++ namespace protection.
21461 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
21463         stat-time, timespec, u64: support naive out-of-dir builds
21464         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
21465         Use '#include "foo.h"', not '#include <foo.h>', when including
21466         one's own interface.  This works better when configuring with
21467         out-of-directory builds, since packages need not add an
21468         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
21470 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
21472         utimens: use extern-inline
21473         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
21474         * lib/utimens.h: Add copyright notice, since this is now large enough
21475         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21476         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
21477         * modules/utimens (Depends-on): Add extern-inline.
21479         u64: use extern-inline
21480         * lib/u64.c: New file.
21481         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21482         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
21483         * modules/u64 (Files): Add lib/u64.c.
21484         (Depends-on): Add extern-inline.
21485         (configure.ac): No need to require AC_C_INLINE, since extern-inline
21486         does that now.
21487         (lib_SOURCES): Add u64.c.
21489         timespec: use extern-inline
21490         * lib/timespec.c: New file.
21491         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21492         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
21493         * modules/timespec (Files): Add lib/timespec.c.
21494         (Depends-on): Add extern-inline.
21495         (lib_SOURCES): Add timespec.c.
21497         stat-time: use extern-inline
21498         * lib/stat-time.c: New file.
21499         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21500         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
21501         * modules/stat-time (Files): Add lib/stat-time.c.
21502         (Depends-on): Add extern-inline.
21503         (lib_SOURCES): Add stat-time.c.
21505         extern-inline: new module
21506         * modules/extern-inline, m4/extern-inline.m4: New files.
21507         This is for better support of 'extern inline' a la ISO C99,
21508         with a portable alternative on compilers that do not support
21509         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
21510         of the Emacs executable, when compiled with debugging disabled,
21511         which is a typical way that Emacs is built while developing.
21513 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
21515         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
21516         * build-aux/do-release-commit-and-tag: Move variable definitions
21517         together.
21518         ($branch): Instead of defaulting to "master", default to the current
21519         branch (as gnu-web-doc-update does).
21520         (help): Display the current values of the option arguments.
21521         * top/maint.mk (release-commit): New.
21522         * top/README-release: Simplify the corresponding step.
21524 2012-07-30  Eric Blake  <eblake@redhat.com>
21526         passfd: fix comment on recvfd
21527         * lib/passfd.c (recvfd): Fix comment.
21528         Reported by Jann Horn <jannhorn@googlemail.com>.
21530 2012-07-30  Jim Meyering  <meyering@redhat.com>
21532         maint.mk: avoid a sub-shell
21533         * top/maint.mk (release-prep): Remove unneeded sub-shell.
21535 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
21537         maint.mk: use silent-rules support from Automake
21538         * top/maint.mk (news-check, vc-diff-check, announcement)
21539         (no-submodule-changes, alpha beta stable, release-prep)
21540         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
21542 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
21544         maint.mk: provide a web-manual-update target
21545         * top/maint.mk: here.
21546         * top/README-release: Use it to simplify the web manual update step.
21548 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
21550         README-release: shorten the circuit to post a news
21551         * top/README-release: Point directly to the news submission form.
21553 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
21555         gnu-web-doc-update: fix --help
21556         * build-aux/gnu-web-doc-update: The information "top level" was written
21557         twice.
21559 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
21561         maint.mk: absolute VPATH issue
21562         * top/maint.mk (release-prep): Help Git find .git/.
21563         From Jim Meyering.
21565 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
21567         gitlog-to-changelog: fix previous change
21568         * build-aux/gitlog-to-changelog: Fix condition.
21569         Add missing ";".
21571 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
21573         gitlog-to-changelog: don't expect .git to be in $srcdir
21574         Reported by Bruno Haible.
21575         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00265.html>
21576         * build-aux/gitlog-to-changelog (&git_dir_option): New.
21577         Use it.
21579 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
21581         maint.mk: absolute VPATH build fix
21582         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
21583         $(srcdir) is not a parent of $(builddir).
21585 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
21587         clean-temp: Fix memory leak.
21588         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
21589         'files' members of tmpdir.
21591 2012-07-27  Jim Meyering  <meyering@redhat.com>
21593         maint.mk: new rule: refresh-gnulib-patches
21594         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
21595         Use this rule to refresh them.
21596         * top/maint.mk (refresh-gnulib-patches): New rule.
21598 2012-07-24  Bruno Haible  <bruno@clisp.org>
21600         gnulib-tool: Fix handling of inctests variable.
21601         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
21602         Reported by Nick Bowler <nbowler@elliptictech.com>.
21604 2012-07-22  Bruno Haible  <bruno@clisp.org>
21606         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
21607         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
21608         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
21609         Remove exemption for getpass.h.
21610         Suggested by Eric Blake.
21612 2012-07-20  Eric Blake  <eblake@redhat.com>
21614         verify: document conflict with -Wnested-externs
21615         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
21617         maint.mk: forbid exit(-1)
21618         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
21620 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
21622         fsusage: port back to Solaris
21623         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
21624         error (fsd not declared) on Solaris 10.  Reported privately by
21625         Andrew Borodin.
21627 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
21629         gnu-web-doc-update: fix error messages
21630         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
21632         gnu-web-doc-update: check the requirements.
21633         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
21634         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
21635         * build-aux/bootstrap (find_tool): Comment change.
21637 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
21639         maint.mk: minor simplication.
21640         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
21641         for default values.
21643 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
21645         gitlog-to-changelog: VPATH build issues
21646         If builddir is not a subdirectory of srcdir, running git from it will
21647         fail.
21648         * build-aux/gitlog-to-changelog (--srcdir): New option.
21650 2012-07-15  Bruno Haible  <bruno@clisp.org>
21652         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
21653         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
21654         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
21655         Remove exemption for fpending.h.
21656         Suggested by Eric Blake.
21658 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
21660         pthread_sigmask: fix bug on FreeBSD 9
21661         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
21662         Include string.h.
21663         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
21664         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
21665         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
21666         but pthread_sigmask (1729, NULL, NULL) returns zero.
21667         See <http://bugs.gnu.org/11884>.
21668         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
21669         by inspecting whether the main call changed the old mask.
21671 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
21673         README-release: make it more legible
21674         * top/README-release: Improve typography slightly.
21676 2012-07-15  Jim Meyering  <meyering@redhat.com>
21678         maint: require that each sc_... command start with "@"
21679         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
21680         "make sc_maint" helps us avoid this nit.
21682 2012-07-15  Jim Meyering  <meyering@redhat.com>
21684         maint.mk: add leading "@" to quiet new "make syntax-check" rule
21685         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
21687 2012-07-13  Eric Blake  <eblake@redhat.com>
21689         maint.mk: new syntax check for HAVE_DECL checks
21690         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
21691         * cfg.mk
21692         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
21693         Exempt some false positives.
21694         Based on a report by Karel Zak.
21696         argp: make HAVE_DECL usage consistent
21697         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
21698         macros, not whether they are defined.
21699         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
21700         convention with other declaration checks.
21701         Reported by Karel Zak, with suggestions from Paul Eggert.
21703         stat-time: relax license to LGPLv2+
21704         * modules/stat-time (License): Relax, with consent of all authors.
21706         strndup: fix m4 usage error
21707         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
21708         defined, to either 0 or 1.
21709         Reported by Karel Zak.
21711 2012-07-11  Jim Meyering  <meyering@redhat.com>
21713         maint: enable the sc_avoid_if_before_free syntax-check rule
21714         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
21715         (if_before_free_offenders_): Define.
21716         (if_before_free_basename_re_): Define.
21717         Exempt current files with useless if-before-free.
21719 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
21721         gettext: do not assume '#define ... defined ...' behavior
21722         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
21723         Do not use '#define FOO ... defined BAR ...', as the C standard says
21724         it's not portable to expect that this works after macro expansion.
21725         Problem reported for gzip by Steven M. Schweda in
21726         <http://lists.gnu.org/r/bug-gzip/2012-07/msg00000.html>.
21728 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
21730         getloadavg: clean out old Emacs and Autoconf cruft
21731         See Glenn Morris in <http://bugs.gnu.org/11905>.
21732         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
21733         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
21734         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
21735         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
21737 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
21739         bootstrap: let warn be like tests/init.sh's warn_
21740         Reported by Jim Meyering.
21741         * build-aux/bootstrap (warn): Remove, replaced by...
21742         (warnf_, warn_): these.
21743         Adjust callers.
21744         Shorten messages that no longer fit in 80 columns.
21746 2012-07-09  Bruno Haible  <bruno@clisp.org>
21748         getopt: Simplify after Emacs changed.
21749         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
21750         (gl_GETOPT_IFELSE): Remove macro.
21752 2012-07-09  Jim Meyering  <meyering@redhat.com>
21754         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
21755         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
21757         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
21758         Bugs in both of those conspired to make the
21759         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
21760         _sc_search_regexp's handling of non-empty $in_files would filter
21761         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
21762         choice of in_files value meant there would be no match in most
21763         projects, due to the presence of two or more Makefile.in files.
21764         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
21765         Fix a bug in how a non-empty $$in_files was processed:
21766         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
21767         in spite of the name, it's a regexp, not a list of file names.
21769 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
21771         getloadavg, getopt: fix commentary re configure.in
21772         Autoconf is deprecating the name 'configure.in', so change it to
21773         to the new name 'configure.ac' in a couple of places.
21774         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
21775         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
21776         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
21777         Emacs has renamed it to configure.ac, and it no longer refers
21778         to these macros anyway.
21780         timespec: mark functions with const attributes
21781         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
21782         Mark with _GL_ATTRIBUTE_CONST.
21784 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
21786         canonicalize[-lgpl]: handle "guessing" values when cross-building
21787         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
21788         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
21789         matches "*yes" instead of just "yes".  Regression introduced in commit
21790         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
21792 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
21793             Bruno Haible  <bruno@clisp.org>
21795         canonicalize: make the right guess when cross-compiling to GNU
21796         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
21797         determine whether cross-compiling to glibc systems, so as to
21798         include GNU/Hurd.
21800 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
21802         timespec-sub: avoid duplicate include
21803         * lib/timespec-sub.c: Do not include <config.h> twice.
21804         Reported by Juanma Barranquero.
21806 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
21808         bootstrap: use a more consistent error reporting scheme
21809         * build-aux/bootstrap (warn, die): New.
21810         Use them.
21812 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
21814         sys_time: allow too-wide tv_sec
21815         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
21816         timeval even if tv_sec is wider than time_t.  This allows
21817         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
21818         as without this patch gnulib replaces struct timeval
21819         and OpenBSD futimes therefore has a type mismatch.
21820         * doc/posix-headers/sys_time.texi: Mention this.
21822         pthread: check for both pthread_create and pthread_join
21823         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
21824         alter the check so that it tests for both pthread_create and
21825         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
21826         Suggested by Bruno Haible and Richard Yao in
21827         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00048.html>.
21829         parse-datetime: doc tuneup
21830         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
21831         spacing issues.
21833 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
21835         do-release-commit-and-tag: fix the previous commit
21836         * build-aux/do-release-commit-and-tag: Actually the test was right,
21837         but the comment and the error message were misleading.
21838         Fix comment, and improve error message.
21839         Perform check first, so that NEWS is not modified uselessly.
21841         do-release-commit-and-tag: fix typo
21842         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
21843         _not_ start with a stub.
21845 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
21847         pthread: check for pthread_create, not pthread_join
21848         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
21849         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
21850         pthread_join in libc.  I hope this removes the need for all the
21851         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
21852         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00042.html>.
21854 2012-07-04  Jim Meyering  <meyering@redhat.com>
21856         parse-datetime: fix failure to diagnose invalid input
21857         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
21858         rather than diagnosing the invalid input.  Now it reports this:
21859         date: invalid date '\260'
21860         * lib/parse-datetime.y (to_uchar): Define.
21861         (yylex): Don't sign-extend "other" bytes.
21862         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
21863         Thanks to Bruno Haible for the patch to this file.
21864         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
21865         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
21867 2012-07-03  Jim Meyering  <meyering@redhat.com>
21869         bootstrap: do not require now-removed build-aux/missing
21870         Now that build-aux/missing is, er, missing, bootstrap would
21871         silently fail.
21872         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
21873         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
21874         no longer part of gnulib.
21875         Diagnose the failure.
21877 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
21879         alloca: add support for HP NonStop TNS/E native
21880         * lib/alloca.in.h (alloca): Support the new host.
21881         From a suggestion by Joachim Schmitz in
21882         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00355.html>.
21884 2012-07-02  Pádraig Brady  <P@draigBrady.com>
21886         fsusage: remove code not needed on non GNU/Linux systems.
21888         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
21889         Don't include headers no longer needed in this case.
21890         * lib/fsusage.c [STAT_STATVFS &&
21891         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
21892         STAT_STATFS2_FRSIZE to exclude code not used in this case.
21894 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
21896         fsusage: include files needed for glibc 2.6 fallback
21897         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
21898         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
21899         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
21900         Problem reported by Ludovic Courtès in
21901         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00005.html>.
21903         fsusage: avoid needless check on GNU/Linux
21904         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
21905         on GNU/Linux systems, since it can't possibly work.
21907 2012-07-01  Bruno Haible  <bruno@clisp.org>
21909         log: Fix an autoconf >= 2.64 warning.
21910         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
21911         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
21913 2012-06-28  Bruno Haible  <bruno@clisp.org>
21915         log10f: Fix possible configuration problem.
21916         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
21917         $LOGF_LIBM.
21918         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
21920 2012-06-28  Bruno Haible  <bruno@clisp.org>
21922         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
21923         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
21924         not gl_cv_func_unlink_works.
21925         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
21927 2012-06-27  Eric Blake  <eblake@redhat.com>
21929         config: drop scripts that automake says are not independent
21930         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
21931         * build-aux/elisp-comp: Delete.
21932         * build-aux/missing: Likewise.
21933         * build-aux/ylwrap: Likewise.
21934         * modules/elisp-comp: Likewise.
21935         * MODULES.html.sh: Drop mention of elisp-comp.
21936         * NEWS: Mention this.
21938 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
21940         root-uid: new module
21941         This is for portability to Tandem's NonStop Kernel.
21942         * lib/root-uid.h, modules/root-uid: New files.
21943         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
21944         * lib/write-any-file.c, tests/test-sethostname2.c:
21945         Include "root-uid.h".
21946         * lib/euidaccess.c (euidaccess):
21947         * lib/pt_chown.c (main):
21948         * lib/unlinkdir.c (cannot_unlink_dir):
21949         * lib/write-any-file.c (can_write_any_file):
21950         * m4/mknod.m4 (gl_FUNC_MKNOD):
21951         * tests/test-sethostname2.c (geteuid, main):
21952         Don't assume ROOT_UID == 0.
21953         * modules/euidaccess (Depends-on):
21954         * modules/pt_chown (Depends-on):
21955         * modules/sethostname-tests (Depends-on):
21956         * modules/unlinkdir (Depends-on):
21957         * modules/write-any-file (Depends-on):
21958         Add root-uid.
21960         regex: use locale-independent comparison for codeset name
21961         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
21962         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
21963         for codeset name.
21964         * lib/regex_internal.h: Do not include <strings.h>, since we
21965         no longer use strcasecmp.
21966         * modules/regex (Depends-on): Remove strcase.
21968 2012-06-23  Bruno Haible  <bruno@clisp.org>
21970         getopt-posix: No longer guarantee that option processing is resettable.
21971         * doc/posix-functions/getopt.texi: Drop description of problem with
21972         internal state. Fix info about mingw and msvc9.
21973         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
21974         option processing by getopt(). Run three test programs instead of one.
21975         Simplify cross-compilation guess.
21976         * NEWS: Mention the change.
21977         Reported by Rich Felker <dalias@aerifal.cx>.
21979 2012-06-26  Bruno Haible  <bruno@clisp.org>
21981         argp, regex: Ensure strcasecmp gets declared.
21982         * lib/argp-help.c: Include <strings.h>.
21983         * lib/regex_internal.h: Likewise.
21984         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
21986 2012-06-24  Bruno Haible  <bruno@clisp.org>
21988         ptsname_r: Make it consistent with ptsname on AIX.
21989         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
21990         implementation as for OSF/1.
21991         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
21992         a pty master.
21994         ptsname_r: Make it consistent with ptsname on OSF/1.
21995         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
21996         OSF/1.
21998 2012-06-24  Bruno Haible  <bruno@clisp.org>
22000         ttyname_r: Fix result on OSF/1, Solaris.
22001         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
22003 2012-06-24  Bruno Haible  <bruno@clisp.org>
22005         ptsname_r: Add support for Solaris.
22006         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
22007         Solaris.
22009         ptsname_r: Fix test failure on native Windows.
22010         * modules/ptsname_r (Depends-on): Add isatty.
22012         ptsname_r: Fix test failures on IRIX, Solaris.
22013         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
22014         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
22015         accordingly.
22016         * lib/ptsname_r.c: Include <fcntl.h>.
22017         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
22018         set errno if fd is invalid.
22019         * tests/test-isatty.c (main): Update comments.
22021 2012-06-24  Bruno Haible  <bruno@clisp.org>
22023         ptsname test: Extend test.
22024         * tests/test-ptsname.c: Include <errno.h>.
22025         (main): Test behaviour with invalid file descriptor.
22027 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
22029         time: fix obsolete comment
22030         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
22031         reference to HAVE_STRUCT_TIMESPEC in comment.
22033 2012-06-23  Bruno Haible  <bruno@clisp.org>
22035         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
22036         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
22037         does not handle abbreviated long options with equivalent
22038         disambiguations, set gl_replace_getopt to yes.
22039         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
22041 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
22043         time_r: fix typo that always overrode localtime_r decl
22044         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
22045         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
22046         not in a standard include.
22048 2012-06-22  Bruno Haible  <bruno@clisp.org>
22050         Write "Mac OS X" instead of "MacOS X".
22051         * README: Write "Mac OS X" instead of "MacOS X".
22052         * build-aux/bootstrap: Likewise.
22053         * build-aux/install-reloc: Likewise.
22054         * lib/acl-internal.h: Likewise.
22055         * lib/acl_entries.c: Likewise.
22056         * lib/argp-ba.c: Likewise.
22057         * lib/argp-pv.c: Likewise.
22058         * lib/config.charset: Likewise.
22059         * lib/copy-acl.c: Likewise.
22060         * lib/csharpexec.c: Likewise.
22061         * lib/euidaccess.c: Likewise.
22062         * lib/fbufmode.c: Likewise.
22063         * lib/fflush.c: Likewise.
22064         * lib/file-has-acl.c: Likewise.
22065         * lib/filemode.h: Likewise.
22066         * lib/fpurge.c: Likewise.
22067         * lib/freadable.c: Likewise.
22068         * lib/freadahead.c: Likewise.
22069         * lib/freading.c: Likewise.
22070         * lib/freadptr.c: Likewise.
22071         * lib/freadseek.c: Likewise.
22072         * lib/fseeko.c: Likewise.
22073         * lib/fseterr.c: Likewise.
22074         * lib/fsusage.c: Likewise.
22075         * lib/fwritable.c: Likewise.
22076         * lib/fwriting.c: Likewise.
22077         * lib/get-rusage-as.c: Likewise.
22078         * lib/get-rusage-data.c: Likewise.
22079         * lib/getdomainname.c: Likewise.
22080         * lib/idpriv-drop.c: Likewise.
22081         * lib/idpriv-droptemp.c: Likewise.
22082         * lib/localcharset.c: Likewise.
22083         * lib/locale.in.h: Likewise.
22084         * lib/localename.c: Likewise.
22085         * lib/mbsrtowcs-state.c: Likewise.
22086         * lib/nproc.c: Likewise.
22087         * lib/passfd.c: Likewise.
22088         * lib/posix_openpt.c: Likewise.
22089         * lib/printf-parse.c: Likewise.
22090         * lib/progreloc.c: Likewise.
22091         * lib/safe-read.h: Likewise.
22092         * lib/safe-write.h: Likewise.
22093         * lib/sched.in.h: Likewise.
22094         * lib/set-mode-acl.c: Likewise.
22095         * lib/signal.in.h: Likewise.
22096         * lib/stdint.in.h: Likewise.
22097         * lib/stdio-impl.h: Likewise.
22098         * lib/stdlib.in.h: Likewise.
22099         * lib/strtod.c: Likewise.
22100         * lib/sys_select.in.h: Likewise.
22101         * lib/tcgetsid.c: Likewise.
22102         * lib/unistd.in.h: Likewise.
22103         * lib/unlockpt.c: Likewise.
22104         * lib/vasnprintf.c: Likewise.
22105         * lib/vma-iter.c: Likewise.
22106         * lib/wcsrtombs-state.c: Likewise.
22107         * m4/acl.m4: Likewise.
22108         * m4/acosl.m4: Likewise.
22109         * m4/asinl.m4: Likewise.
22110         * m4/atanl.m4: Likewise.
22111         * m4/c-stack.m4: Likewise.
22112         * m4/cosl.m4: Likewise.
22113         * m4/expl.m4: Likewise.
22114         * m4/extensions.m4: Likewise.
22115         * m4/fdatasync.m4: Likewise.
22116         * m4/fmal.m4: Likewise.
22117         * m4/frexp.m4: Likewise.
22118         * m4/frexpf.m4: Likewise.
22119         * m4/frexpl.m4: Likewise.
22120         * m4/fsusage.m4: Likewise.
22121         * m4/getdomainname.m4: Likewise.
22122         * m4/getloadavg.m4: Likewise.
22123         * m4/getopt.m4: Likewise.
22124         * m4/gettext.m4: Likewise.
22125         * m4/gnulib-common.m4: Likewise.
22126         * m4/intdiv0.m4: Likewise.
22127         * m4/intlmacosx.m4: Likewise.
22128         * m4/largefile.m4: Likewise.
22129         * m4/ldexpl.m4: Likewise.
22130         * m4/link-follow.m4: Likewise.
22131         * m4/locale-ar.m4: Likewise.
22132         * m4/locale-fr.m4: Likewise.
22133         * m4/locale-ja.m4: Likewise.
22134         * m4/locale-tr.m4: Likewise.
22135         * m4/locale-zh.m4: Likewise.
22136         * m4/locale_h.m4: Likewise.
22137         * m4/lock.m4: Likewise.
22138         * m4/logl.m4: Likewise.
22139         * m4/mathfunc.m4: Likewise.
22140         * m4/minus-zero.m4: Likewise.
22141         * m4/mktime.m4: Likewise.
22142         * m4/mmap-anon.m4: Likewise.
22143         * m4/multiarch.m4: Likewise.
22144         * m4/nanosleep.m4: Likewise.
22145         * m4/nocrash.m4: Likewise.
22146         * m4/poll.m4: Likewise.
22147         * m4/printf-frexpl.m4: Likewise.
22148         * m4/printf.m4: Likewise.
22149         * m4/signbit.m4: Likewise.
22150         * m4/sinl.m4: Likewise.
22151         * m4/sqrtl.m4: Likewise.
22152         * m4/strerror_r.m4: Likewise.
22153         * m4/tanl.m4: Likewise.
22154         * m4/threadlib.m4: Likewise.
22155         * m4/ttyname_r.m4: Likewise.
22156         * m4/unlink.m4: Likewise.
22157         * m4/visibility.m4: Likewise.
22158         * m4/wcwidth.m4: Likewise.
22159         * tests/minus-zero.h: Likewise.
22160         * tests/test-alloca-opt.c: Likewise.
22161         * tests/test-copy-acl.sh: Likewise.
22162         * tests/test-copy-file.sh: Likewise.
22163         * tests/test-fdatasync.c: Likewise.
22164         * tests/test-file-has-acl.sh: Likewise.
22165         * tests/test-flock.c: Likewise.
22166         * tests/test-fsync.c: Likewise.
22167         * tests/test-localename.c: Likewise.
22168         * tests/test-malloca.c: Likewise.
22169         * tests/test-nonblocking-pipe.h: Likewise.
22170         * tests/test-nonblocking-socket.h: Likewise.
22171         * tests/test-openpty.c: Likewise.
22172         * tests/test-posix_openpt.c: Likewise.
22173         * tests/test-ptsname.c: Likewise.
22174         * tests/test-ptsname_r.c: Likewise.
22175         * tests/test-sameacls.c: Likewise.
22176         * tests/test-select.h: Likewise.
22177         * tests/test-set-mode-acl.sh: Likewise.
22178         * tests/test-snprintf-posix.h: Likewise.
22179         * tests/test-sprintf-posix.h: Likewise.
22180         * tests/test-strtod.c: Likewise.
22181         * tests/test-time.c: Likewise.
22182         * tests/test-vasnprintf-posix.c: Likewise.
22183         * tests/test-vasprintf-posix.c: Likewise.
22184         * doc/acl-resources.txt: Likewise.
22185         * doc/**/*.texi: Likewise.
22186         Reported by Max Horn <max@quendi.de>.
22188 2012-06-22  Bruno Haible  <bruno@clisp.org>
22190         grantpt: Relax requirement regarding invalid file descriptors.
22191         * lib/grantpt.c: Don't include <fcntl.h>.
22192         (grantpt): Don't verify the validity of the file descriptor.
22193         * modules/grantpt (Depends-on): Remove fcntl-h.
22194         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
22195         file descriptors.
22196         * doc/posix-functions/grantpt.texi: Document more platforms on which
22197         grantpt succeeds for invalid file descriptors.
22198         Reported by Rich Felker <dalias@aerifal.cx>.
22200 2012-06-22  Bruno Haible  <bruno@clisp.org>
22202         fbufmode test: Don't test unportable behaviour.
22203         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
22204         (main): Invoke it three times.
22205         Reported by Szabolcs Nagy <nsz@port70.net>
22206         and Rich Felker <dalias@aerifal.cx>.
22208 2012-06-21  Bruno Haible  <bruno@clisp.org>
22210         gnulib-tool: Refactor inctests variable.
22211         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
22212         (func_modules_transitive_closure,
22213         func_modules_transitive_closure_separately,
22214         func_import, func_create_testdir): Update.
22216         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
22217         * gnulib-tool: Accept option --without-tests.
22218         (func_usage): Document --without-tests option. Rearrange.
22219         (inctests): Normalize according to the mode.
22220         * NEWS: Mention the change.
22221         Suggested by Simon Josefsson.
22223 2012-06-21  Bruce Korb  <bkorb@gnu.org>
22225         parse-duration test: Avoid spurious output.
22226         * tests/test-parse-duration.sh: Reindent with leading tabs.
22228 2012-06-21  Jim Meyering  <meyering@redhat.com>
22230         maint: disable the strncpy prohibition
22231         * cfg.mk: Do not prohibit strncpy here.
22233 2012-06-21  Bruno Haible  <bruno@clisp.org>
22235         nonblocking: Avoid compilation error on mingw64.
22236         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
22237         fscanf.
22238         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
22239         * modules/vfscanf (configure.ac): Likewise.
22240         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
22241         definition only if stdio.h has prepared it.
22242         Reported by Daniel P. Berrange <berrange@redhat.com>.
22244 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
22246         gnulib-tool: Use readlink if it is available.
22247         * gnulib-tool (func_readlink): Choose function more appropriately.
22249 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
22251         posixtm-tests: port to buggy compiler
22252         Problem reported by Simon Josefsson in
22253         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00246.html>.
22254         * modules/posixtm-tests (Depends-on): Add stdint.
22255         * tests/test-posixtm.c (struct posixtm_test.t_expected):
22256         Now of type int_least64_t, not int64_t, both because that's
22257         what INT64_C returns and because int_least64_t works even
22258         on 72-bit hosts.
22259         (T): Use INT64_C on constants outside the traditional int range,
22260         to work around compiler bug noted by Simon.
22262         mktime: fix integer overflow in 'configure'-time test
22263         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
22264         after integer overflow.  Problem reported by Rich Felker in
22265         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00257.html>.
22266         Also, don't look for further instances of a bug if we've already
22267         found one instance; this helps 'configure' run faster.
22269 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
22271         tmpfile, clean-temp: Fix invocation of GetVersionEx.
22272         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
22273         GetVersionEx correctly.
22274         * lib/clean-temp.c (supports_delete_on_close): Likewise.
22276 2012-06-20  Bruno Haible  <bruno@clisp.org>
22278         fdopen: Allow implementations that don't reject invalid fd arguments.
22279         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
22280         succeeds.
22281         Reported by Rich Felker <dalias@aerifal.cx>.
22283 2012-06-20  Simon Josefsson  <simon@josefsson.org>
22285         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
22286         bring in LIBINTL.
22288 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
22290         init.sh: do not rely on autoupated PWD
22291         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
22292         <http://lists.gnu.org/r/bug-gzip/2012-06/msg00008.html>.
22293         Although Nelson's bug was not necessarily fixed by this patch,
22294         it seems wise to make the change for safety.
22295         * tests/init.sh (path_prepend_): Do not rely on PWD updating
22296         automagically after 'cd'; this is not reliable on older shells.
22297         (setup_): Fail if we cannot cd to temporary directory.
22299 2012-06-19  Bruno Haible  <bruno@clisp.org>
22301         stat, fstat: Avoid warnings on mingw64.
22302         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
22303         redefining.
22304         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
22305         Reported by Daniel P. Berrange <berrange@redhat.com>.
22307 2012-06-19  Bruno Haible  <bruno@clisp.org>
22309         stdioext: Add support for musl libc.
22311         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
22312         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
22314         * m4/fseterr.m4: New file.
22315         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
22316         function exists.
22317         * modules/fseterr (Files): Add m4/fseterr.m4.
22318         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
22319         __fseterr does not exist.
22320         (Makefile.am): Remove fseterr.c from lib_SOURCES.
22322         * lib/freadable.h: Update comment.
22324         * lib/fwritable.h: Update comment.
22326         * lib/freading.h: Update comment.
22328         * lib/fwriting.h: Update comment.
22330         * m4/freadahead.m4: New file.
22331         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
22332         that function exists.
22333         * modules/freadahead (Files): Add m4/freadahead.m4.
22334         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
22335         __freadahead does not exist.
22336         (Makefile.am): Remove freadahead.c from lib_SOURCES.
22338         * m4/freadptr.m4: New file.
22339         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
22340         function exists.
22341         * modules/freadptr (Files): Add m4/freadptr.m4.
22342         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
22343         __freadptr does not exist.
22344         (Makefile.am): Remove freadptr.c from lib_SOURCES.
22346         * m4/freadseek.m4: New file.
22347         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
22348         exists.
22349         * modules/freadseek (Files): Add m4/freadseek.m4.
22350         (configure.ac): Invoke gl_FUNC_FREADSEEK.
22352         * lib/fpurge.c (fpurge): Update comment.
22354         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
22356 2012-06-19  Bruno Haible  <bruno@clisp.org>
22358         *printf-posix: Put more info into config.log.
22359         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
22360         exit code into config.log.
22362 2012-06-19  Bruno Haible  <bruno@clisp.org>
22364         getopt-gnu: Fix exit code overflow in autoconf test.
22365         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
22366         to keep them below < 128.
22368 2012-06-17  Jim Meyering  <meyering@redhat.com>
22370         maint.mk: fix typo in code to derive GPG key at release time
22371         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
22373 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
22375         regex: avoid warning when pointers are not long
22376         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
22377         and uintptr_t, not long, for portability to hosts where pointers and
22378         long have different sizes.  Issue noted by Daniel P. Berrange in
22379         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00122.html>
22380         and fix suggested by Bruno Haible in
22381         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00128.html>.
22383 2012-06-17  Bruno Haible  <bruno@clisp.org>
22385         dummy: Relicense into the public domain.
22386         * modules/dummy (License): Set to "public domain".
22387         Suggested by Reuben Thomas.
22389 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
22391         announce-gen: VPATH issues
22392         * build-aux/announce-gen (--srcdir): New option, used to trim the
22393         $srcdir part of the path from $builddir to NEWS.
22394         * top/maint.mk (announcement): Adjust.
22396 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
22398         gnu-web-doc-update: VPATH builds
22399         * build-aux/gnu-web-doc-update (--builddir): New option.
22400         Revamp the handling of options.
22401         Prefer $(...) to `...`.
22402         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
22403         the template, and it is GNU mktemp specific.
22404         Prefer set -e to long series of &&.
22405         Restore the initial git branch, not "master".
22406         Properly initialize submodules (don't rely only on bootstrap).
22407         Do not reconfigure blindly, use config.status.
22408         * top/README-release: Update instructions for gnu-web-doc-update.
22410 2012-06-11  Jim Meyering  <meyering@redhat.com>
22412         maint.mk: revert most of the previous change re "all these"
22413         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
22414         For rationale, see the discussion at
22415         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
22417 2012-06-10  Karl Berry  <karl@gnu.org>
22419         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
22421         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
22423 2012-06-10  Bruce Korb  <bkorb@gnu.org>
22425         parse-duration: Relicense under LGPLv2+.
22426         * modules/parse-duration (License): Change to LGPLv2+.
22428 2012-06-10  Jim Meyering  <meyering@redhat.com>
22430         maint.mk: prohibit common grammar error: "all these"
22431         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
22432         the list of prohibited word sequences.  It should be "all of these".
22433         * lib/tempname.c (__gen_tempname): Fix one of them.
22435 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
22437         do-release-commit-and-tag: support VPATH builds
22438         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
22439         (noteworthy): Defined earlier to factor its value.
22440         (noteworthy_stub): New.
22441         Use it to factor.
22442         (help_version): Split into...
22443         (help, version): these.
22444         Adjust the option processing part.
22445         Support "--option=value" in addition to "--option value".
22446         (builddir): New.
22447         (--builddir): New option.
22448         * top/README-release: Document this.
22449         Reword slightly so that the reader cannot understand that he
22450         has to do these steps before calling do-release-commit-and-tag.
22452 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
22454         readme-release: also require announce-gen and maintainer-makefile
22455         * modules/readme-release (Depends-on): here.
22456         * modules/announce-gen, modules/do-release-commit-and-tag,
22457         modules/gnu-web-doc-update, modules/maintainer-makefile
22458         (Description): Point to readme-release.
22460 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
22462         maint.mk: fix VPATH issues.
22463         * top/maint.mk (news-check): GNU Make understand $< very well.
22464         (release-prep): NEWS is in $(srcdir).
22466 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
22468         readme-release: require the promoted modules.
22469         * modules/readme-release (Depends-on): Add
22470         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
22471         in this text.
22473 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
22474             Bruno Haible  <bruno@clisp.org>
22476         error, strerror-override: Support mingw64 from Fedora 17.
22477         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
22478         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
22479         EINPROGRESS.
22480         * lib/strerror-override.h (strerror_override): Test it.
22481         * lib/strerror-override.c (strerror_override): Likewise.
22482         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
22484 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
22485             Bruno Haible  <bruno@clisp.org>
22487         error, strerror-override: Support mingw64 from Fedora 17.
22488         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
22489         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
22490         * lib/strerror-override.h (strerror_override): Test it.
22491         * lib/strerror-override.c (strerror_override): Likewise.
22493 2012-06-03  Bruno Haible  <bruno@clisp.org>
22495         error, strerror-override: Support new errno values from POSIX:2008.
22496         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
22497         ENOTRECOVERABLE.
22498         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
22499         platforms.
22500         * lib/strerror-override.c (strerror_override): Conditionalize the
22501         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
22502         * lib/strerror-override.h (strerror_override): Declare also if
22503         GNULIB_defined_EOWNERDEAD is defined.
22504         * tests/test-errno.c (e130, e131): New variables.
22505         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
22506         ENOTRECOVERABLE.
22507         Reported by Paolo Bonzini.
22509 2012-05-31  Jim Meyering  <meyering@redhat.com>
22511         savewd: add missing dependency on sys_wait module
22512         * modules/savewd (Depends-on): Add sys_wait, needed at least
22513         for MSVC.  Report and suggested change by Michael Goffioul.
22515 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
22517         system-quote-tests: port to CentOS 5
22518         Problem reported by Tom G. Christensen in
22519         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00255.html>.
22520         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
22522 2012-05-29  Jim Meyering  <meyering@redhat.com>
22524         maint: fix typos in comments and ChangeLog
22525         Culprits identified and fixed mostly automatically using these commands:
22526         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
22527         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
22528         using http://github.com/lyda/misspell-check
22529         * ChangeLog: Fix typos.
22530         * doc/solaris-versions: Likewise.
22531         * lib/regexec.c (re_search_stub): Likewise.
22532         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
22534 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
22536         manywarnings: remove duplicate -Wmultichar entry
22537         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
22538         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
22539         so keep the entry marked as documented.
22541 2012-05-27  Karl Berry  <karl@gnu.org>
22543         * config/srclist.txt (mktime.c): remove last libc sync,
22544         perhaps just temporarily.
22546 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
22548         regex: don't assume uint64_t or uint32_t
22549         * lib/regcomp.c (init_word_char): Don't assume that the types
22550         uint64_t and uint32_t exist.  The C standard doesn't guarantee
22551         them, and on some 32-bit compilers there is no uint64_t.
22552         Problem reported by Gianluigi Tiesi in
22553         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00154.html>.
22555 2012-05-25  Jim Meyering  <meyering@redhat.com>
22557         maint.mk: add strncpy-prohibiting syntax-check rule
22558         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
22560 2012-05-24  Jim Meyering  <meyering@redhat.com>
22562         maint.mk: compute $(gpg_key_ID) more portably
22563         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
22564         That use of sed is not portable to some fringe systems.
22565         Reported by Paul Eggert in
22566         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
22568 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
22570         mktime: sync from glibc
22571         * config/srclist.txt: Uncomment mktime.c.
22572         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
22573         First, indent with tabs, since glibc uses tabs and doesn't want to
22574         change and we'd rather be identical to glibc.  Also, two small
22575         coding changes:
22576         (isdst_differ): Use &&, not &, as && is the usual style.
22577         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
22578         for clarity.
22580 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
22582         announce-gen: du -h is more portable than du --human
22583         * build-aux/announce-gen (sizes): Invoke du with -h instead
22584         of --human.  Accept leading white space in its output.
22586 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
22588         announce-gen: Improve diagnostics.
22589         * build-aux/announce-gen: When parsing command line options,
22590         prefer "announce-gen: option --release-type requires an argument"
22591         to "Option release-type requires an argument".
22593 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
22595         maint.mk: gpg_key_ID: use sed more portably
22596         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
22597         the closing brace.
22598         (refresh-po): Fuse two sed invocations into one.
22600 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
22602         gitlog-to-changelog: support the log message format used in Bison.
22603         * build-aux/gitlog-to-changelog: Support --strip-tab and
22604         --strip-cherry-picked.
22606 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
22608         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
22609         the rest of the current time slice to another thread in the current
22610         process. So if the thread that feeds the file decscriptor we're
22611         polling is not in the current process, we get busy-waiting.
22612         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
22613         Patch from Theodore Leblond.
22614         * lib/select.c: Split polling out of the loop that sets the output
22615         fd_sets.  Check for zero result and loop if the wait timeout is
22616         infinite.
22618 2012-05-21  Simon Josefsson  <simon@josefsson.org>
22620         select: Fix build error on IRIX 6.5.
22621         * lib/select.c: Include stddef.h for NULL.
22623 2012-05-21  Simon Josefsson  <simon@josefsson.org>
22625         gc: fix libgcrypt detection on older machines.
22626         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
22627         copyright years because the file has been distributed every year
22628         since it was created.
22630 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
22632         crypto: fix bug in large buffer handling
22633         Problem reported by Serge Belyshev for glibc in
22634         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
22635         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00226.html>.
22636         * lib/md4.c (md4_process_block):
22637         * lib/md5.c (md5_process_block):
22638         * lib/sha1.c (sha1_process_block):
22639         * lib/sha256.c (sha256_process_block):
22640         Don't assume the buffer length is less than 2**32.
22641         * lib/sha512.c (sha512_process_block): Likewise.
22642         Here, the bug is present only in the rare case where the host does
22643         not support uint64_t or where size_t is wider than 64 bits.
22644         Use u64size to work around the problems.
22645         * lib/u64.h (u64size): New macro.
22647 2012-05-15  Pádraig Brady  <P@draigBrady.com>
22649         fsusage: fix block size returned on older Linux 2.6
22651         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
22652         which is available since Linux 2.6.
22653         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
22654         when the member is available so it can be used as a fallback.
22655         * doc/posix-functions/statvfs.texi: Mention the hang issue
22656         on Linux < 2.6.36.
22658 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
22660         bootstrap: suppress stderr chatter
22661         * build-aux/bootstrap (insert_sorted_if_absent, main program):
22662         Omit unnecessary chatter to stderr.  The main program chatter
22663         was there only inadvertantly.
22665         bootstrap: .gitignore files created by autopoint, libtool
22666         I ran into this problem when bootstrapping the latest diffutils.
22667         After './bootstrap', 'git status' reported lots of untracked files
22668         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
22669         autopoint and do not need to be version-controlled.
22670         * build-aux/bootstrap: Put into .gitignore the files that
22671         autopoint and libtool create, by keeping track of files that exist
22672         after but not before these programs are run.
22673         (version_controlled_file): Move up.  2nd arg is now full file
22674         name, not base name; this is more convenient.  Put CVS at the end,
22675         as it's now somewhat deprecated.
22677 2012-05-14  Jim Meyering  <meyering@redhat.com>
22679         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
22680         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
22681         definition.  Reported by Bruno Haible.
22683 2012-05-13  Bruno Haible  <bruno@clisp.org>
22684             Paul Eggert  <eggert@cs.ucla.edu>
22686         binary-io: Define set_binary_mode function.
22687         * lib/binary-io.h (set_binary_mode): New function.
22688         (SET_BINARY): Define in terms of set_binary_mode.
22689         * modules/binary-io (configure.ac): Require AC_C_INLINE.
22690         * tests/test-binary-io.c (main): Accept an argument, and test either
22691         set_binary_mode or SET_BINARY depending on the argument.
22692         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
22693         argument. Clean up also t-bin-out0.tmp.
22695 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
22697         bootstrap: take advantage of POSIX shell features
22699         The 'bootstrap' script offered by Gnulib script already uses POSIX
22700         shell features (like $((...)) arithmetic expansions) that are not
22701         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
22702         means that bootstrap must already be run using a proper POSIX shell,
22703         which will thus provide more features, like ${var#pattern} parameter
22704         expansion or inversion of a command exit status with '!'.  We can
22705         thus use these features to improve the clarity and the performances
22706         of the bootstrap script.
22708         Suggested by Eric Blake.
22710         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
22711         of sed/expr plus command substitutions, to save some forks.  While
22712         we are at it, prefer the POSIX $(...) form of command substitution,
22713         rather than the legacy form `...` (since the former is visually
22714         clearer and interacts better with quoting), and prefer the idiom:
22715           "if ! CMD; then ACTION ..."
22716         over the idiom:
22717           "if CMD; then :; else ACTION ..."
22718         which was required by legacy Bourne shells not supporting '!'.
22720 2012-05-12  Bruno Haible  <bruno@clisp.org>
22722         system-quote: Add more comments.
22723         * lib/system-quote.h: Add more comments about wilcards and limitations.
22724         Suggested by Eli Zaretskii <eliz@gnu.org>.
22726         sh-quote, system-quote: Add comments about wildcards.
22727         * lib/sh-quote.h: Clarify what happens with wildcard characters.
22728         * lib/system-quote.h: Likewise.
22729         Reported by Eli Zaretskii <eliz@gnu.org>.
22731 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
22733         fsusage: check for GNU/Linux statvfs problem dynamically
22734         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
22735         Define STAT_STATFS2_BSIZE too, since in this case the code now
22736         checks dynamically whether statvfs is reliable, falling back on
22737         Linux-style statfs otherwise.
22738         (statvfs_works): New function, for dynamically testing statvfs.
22739         (get_fs_usage) [STAT_STATVFS]: Use it.
22740         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
22741         statvfs on GNU/Linux hosts, since it's now done dynamically.
22743 2012-05-10  Bruno Haible  <bruno@clisp.org>
22745         system-quote, execute, spawn-pipe: Escape '?' on Windows.
22746         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
22747         '?' character.
22748         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
22749         * tests/test-system-quote-main.c (check_all): Check also strings like
22750         "??????????".
22751         Reported by Eli Zaretskii <eliz@gnu.org>.
22753 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
22755         _Noreturn: port config.h to gcc -Wundef
22756         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
22757         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
22758         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00147.html>.
22760 2012-05-10  Bruno Haible  <bruno@clisp.org>
22762         system-quote: Refactor.
22763         * lib/system-quote.h (system_quote_copy): Fix comment.
22764         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
22765         New functions, extracted from system_quote_copy.
22766         (system_quote_length, system_quote_copy): Use these functions.
22767         Reported by Paul Eggert.
22769 2012-05-08  Bruno Haible  <bruno@clisp.org>
22771         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
22772         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
22774 2012-05-08  Bruno Haible  <bruno@clisp.org>
22776         Tests for module 'system-quote'.
22777         * modules/system-quote-tests: New file.
22778         * tests/test-system-quote.sh: New file.
22779         * tests/test-system-quote-main.c: New file.
22780         * tests/test-system-quote-child.c: New file.
22782         New module 'system-quote'.
22783         * lib/system-quote.h: New file.
22784         * lib/system-quote.c: New file.
22785         * modules/system-quote: New file.
22787 2012-05-08  Bruno Haible  <bruno@clisp.org>
22789         sh-quote: Make C++ safe and allow multiple inclusion.
22790         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
22791         declarations in extern "C".
22793 2012-05-08  Bruno Haible  <bruno@clisp.org>
22795         sh-quote tests: Make tests stricter.
22796         * tests/test-sh-quote.c (check_one): Check the return value of
22797         shell_quote_copy.
22798         (main): Check a string with a CR character. Check a string that
22799         contains UCHAR_MAX.
22801 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
22803         warnings.m4: provide a means to specify the program to compile.
22804         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
22805         (gl_WARN_ADD): here.
22806         Use gl_AS_VAR_APPEND.
22807         Support an argument to specify the program to compile.
22808         (gl_WARN_ADD): Accept an argument to specify the program to compile.
22809         AC_SUBST the WARN_CFLAGS when they are used.
22810         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
22811         leave this to gl_WARN_ADD.
22813 2012-05-08  Eric Blake  <eblake@redhat.com>
22815         doc: recommendations on gettext version
22816         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
22817         choice between versions.
22818         * DEPENDENCIES (gettext): Cover both approaches.
22820 2012-05-08  Jim Meyering  <meyering@redhat.com>
22822         init.sh: explain why EXEEXT support uses aliases rather than functions
22823         * tests/init.sh: Add a comment.
22825         init.sh: don't let bash aliases interfere with tests
22826         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
22827         is bash.  This avoids problems for those who alias standard commands to
22828         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
22829         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
22831 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
22833         stdint: be more consistent with glibc, SunOS libc
22834         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
22835         (gl_int_fast16_t, gl_uint_fast16_t)
22836         (gl_int_fast32_t, gl_uint_fast32_t)
22837         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
22838         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
22839         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
22840         Be consistent with glibc by default, and with SunOS 5.10 and later
22841         if __sun is defined.  This lessens the likelihood of clashes if
22842         code compiled for older hosts is combined with code compiled for
22843         newer ones.  Problem reported by Niels Möller in
22844         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00074.html>.
22846 2012-05-07  Eric Blake  <eblake@redhat.com>
22848         isatty: relax license to LGPLv2+
22849         * modules/isatty (License): Relax license.
22851 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
22853         stat-size: comment fix
22854         * lib/stat-size.h: Remove obsolete comment about indenting.
22856 2012-05-06  Bruno Haible  <bruno@clisp.org>
22858         Tests for module 'sh-quote'.
22859         * modules/sh-quote-tests: New file.
22860         * tests/test-sh-quote.c: New file.
22862 2012-05-06  Bruno Haible  <bruno@clisp.org>
22864         sh-quote: Improve shell_quote_argv's signature.
22865         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
22866         * lib/sh-quote.c (shell_quote_argv): Likewise.
22868 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
22870         stdint: document issues with int_fast8_t etc.
22871         * doc/posix-headers/stdint.texi (stdint.h): Say that other
22872         stdint.h substitutes may define these types differently.  See
22873         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00071.html>.
22875 2012-05-05  Bruno Haible  <bruno@clisp.org>
22877         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
22878         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
22879         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
22880         or 'guessing no (mishandles large arguments)'.
22882 2012-05-05  Bruno Haible  <bruno@clisp.org>
22884         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
22885         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
22886         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
22887         set gl_cv_func_link_follows_symlink to "guessing no".
22889 2012-05-05  Bruno Haible  <bruno@clisp.org>
22891         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
22892         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
22893         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
22894         "guessing no".
22895         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
22897 2012-05-05  Bruno Haible  <bruno@clisp.org>
22899         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
22900         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
22901         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
22902         set gl_cv_struct_dirent_d_ino to "guessing yes".
22904 2012-05-05  Bruno Haible  <bruno@clisp.org>
22906         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
22907         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
22908         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
22909         "guessing yes".
22911 2012-05-05  Bruno Haible  <bruno@clisp.org>
22913         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
22914         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
22915         compiling to a glibc system, set gl_cv_func_signbit and
22916         gl_cv_func_signbit_gcc to "guessing yes".
22918 2012-05-05  Bruno Haible  <bruno@clisp.org>
22920         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
22921         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
22922         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
22923         to "guessing yes".
22924         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
22925         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
22927 2012-05-05  Bruno Haible  <bruno@clisp.org>
22929         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
22930         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
22931         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
22932         gl_cv_func_realpath_works to "guessing yes".
22934 2012-05-05  Bruno Haible  <bruno@clisp.org>
22936         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
22937         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
22938         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
22940 2012-05-04  Bruno Haible  <bruno@clisp.org>
22942         Tweak last commit.
22943         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
22944         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
22946 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
22948         unistd_h: make it easier to avoid sys_types_h
22949         This is useful for Emacs, which has its own method of porting to
22950         Windows, and which therefore does not need the sys_types_h module.
22951         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
22952         code moved here from gl_SYS_TYPES_H.
22953         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
22954         using the code directly.
22955         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
22956         gl_SYS_TYPES_H.
22957         * modules/sys_types (Files):
22958         * modules/unistd (Files): Add m4/off_t.m4.
22960 2012-05-03  Bruno Haible  <bruno@clisp.org>
22962         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
22963         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
22964         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
22965         "guessing yes" or "guessing no".
22966         (gl_FUNC_LSTAT): Update.
22967         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
22968         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
22969         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
22971 2012-05-03  Bruno Haible  <bruno@clisp.org>
22973         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
22974         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
22975         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
22976         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
22977         cross-compiling, choose the first alternative on glibc systems.
22978         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
22980 2012-05-03  Bruno Haible  <bruno@clisp.org>
22982         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
22983         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
22984         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
22986 2012-05-03  Bruno Haible  <bruno@clisp.org>
22988         chown: Avoid "guessing no" when cross-compiling to glibc systems.
22989         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
22991 2012-05-03  Bruno Haible  <bruno@clisp.org>
22993         Avoid "guessing no" guesses when cross-compiling to glibc systems.
22994         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
22995         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
22996         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
22997         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
22998         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
22999         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
23000         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
23001         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
23002         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
23003         compiling to glibc systems, set gl_cv_func_chown_slash_works,
23004         gl_cv_func_chown_ctime_works to "guessing yes".
23005         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
23006         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
23007         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
23008         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
23009         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
23010         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
23011         compiling to glibc systems, set gl_cv_func_open_directory_works to
23012         "guessing yes".
23013         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
23014         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
23015         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
23016         "guessing yes".
23017         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
23018         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
23019         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
23020         compiling to glibc systems, set gl_cv_func_floorf_ieee to
23021         "guessing yes".
23022         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
23023         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
23024         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
23025         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
23026         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
23027         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
23028         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
23029         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
23030         "guessing yes".
23031         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
23032         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
23033         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
23034         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
23035         "guessing yes".
23036         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
23037         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
23038         "guessing yes".
23039         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
23040         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
23041         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
23042         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
23043         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
23044         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
23045         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
23046         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
23047         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
23048         compiling to glibc systems, set gl_cv_func_log10f_ieee to
23049         "guessing yes".
23050         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
23051         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
23052         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
23053         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
23054         "guessing yes".
23055         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
23056         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
23057         "guessing yes".
23058         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
23059         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
23060         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
23061         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
23062         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
23063         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
23064         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
23065         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
23066         compiling to glibc systems, set gl_cv_func_mkfifo_works to
23067         "guessing yes".
23068         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
23069         compiling to glibc systems, set gl_cv_func_mknod_works to
23070         "guessing yes".
23071         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
23072         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
23073         "guessing yes".
23074         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
23075         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
23076         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
23077         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
23078         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
23079         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
23080         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
23081         compiling to glibc systems, set gl_cv_func_svid_putenv to
23082         "guessing yes".
23083         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
23084         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
23085         "guessing yes".
23086         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
23087         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
23088         "guessing yes".
23089         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
23090         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
23091         to "guessing yes".
23092         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
23093         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
23094         to "guessing yes".
23095         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
23096         compiling to glibc systems, set gl_cv_func_rmdir_works to
23097         "guessing yes".
23098         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
23099         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
23100         gl_cv_func_unlink_parent_fails to "guessing yes".
23101         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
23102         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
23103         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
23104         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
23105         gl_cv_func_rename_dest_works to "guessing yes".
23106         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
23107         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
23108         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
23109         compiling to glibc systems, set gl_cv_func_roundf_ieee to
23110         "guessing yes".
23111         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
23112         compiling to glibc systems, set gl_cv_func_roundl_ieee to
23113         "guessing yes".
23114         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
23115         compiling to glibc systems, set gl_cv_func_setenv_works to
23116         "guessing yes".
23117         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
23118         compiling to glibc systems, set gl_cv_func_unsetenv_works to
23119         "guessing yes".
23120         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
23121         compiling to glibc systems, set gl_cv_func_sleep_works to
23122         "guessing yes".
23123         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
23124         compiling to glibc systems, set gl_cv_func_stat_file_slash to
23125         "guessing yes".
23126         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
23127         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
23128         "guessing yes".
23129         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
23130         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
23131         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
23132         compiling to glibc systems, set gl_cv_func_truncf_ieee to
23133         "guessing yes".
23134         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
23135         compiling to glibc systems, set gl_cv_func_truncl_ieee to
23136         "guessing yes".
23137         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
23138         compiling to glibc systems, set gl_cv_func_usleep_works to
23139         "guessing yes".
23140         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
23141         compiling to glibc systems, set gl_cv_func_futimesat_works to
23142         "guessing yes".
23144 2012-05-03  Bruno Haible  <bruno@clisp.org>
23146         Say "guessing yes" or "guessing no" when cross-compiling.
23147         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
23148         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
23149         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
23150         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
23151         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
23152         am_cv_func_working_getline to "guessing yes" or "guessing no".
23153         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
23154         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
23155         (gl_FUNC_MEMMEM): When cross-compiling, set
23156         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
23157         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
23158         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
23159         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
23160         set gl_cv_func_strcasestr_works_always to "guessing yes" or
23161         "guessing no".
23162         (gl_FUNC_STRCASESTR): When cross-compiling, set
23163         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
23164         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
23165         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
23166         (gl_FUNC_STRSTR): When cross-compiling, set
23167         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
23168         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
23169         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
23170         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
23171         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
23173 2012-05-01  Bruno Haible  <bruno@clisp.org>
23175         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
23176         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
23177         * build-aux/reloc-ldflags: Likewise.
23178         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
23180 2012-05-01  Bruno Haible  <bruno@clisp.org>
23182         gnulib-tool: Remove transitional code.
23183         * gnulib-tool: Don't warn about --import with 0 arguments any more.
23184         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
23186 2012-05-01  Bruno Haible  <bruno@clisp.org>
23188         getcwd: Fix misindentation.
23189         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
23191 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
23193         exclude: process exclude and include directives in order
23194         This restores the pre-2009 behavior, and is part of a fix of a
23195         grep bug reported by Quentin Arce in
23196         <http://lists.gnu.org/r/bug-grep/2012-04/msg00056.html>.
23197         * lib/exclude.c (struct exclude): Remove 'tail' member.
23198         (new_exclude_segment): Prepend the new segment instead of appending.
23199         Return void, since that's now more convenient.
23200         (file_pattern_matches): Renamed from excluded_file_pattern_p.
23201         (file_name_matches): Renamed from excluded_file_name_p.
23202         (file_pattern_matches, file_name_matches):
23203         Return true if the pattern matches, not if it excludes.
23204         All callers changed.
23205         (excluded_file_name): Process the list in reverse order;
23206         since the list is now reversed this restores the pre-2009 behavior.
23207         (add_exclude): Adjust to new reversed-order list.  Use local var
23208         rather than macro, for clarity.
23209         * tests/test-exclude7.sh: Adjust to corrected behavior.
23211         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
23212         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
23213         it's not possible here.  Handle the case of \ at end of pattern
23214         without dumping core.
23215         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
23217         _Noreturn: future-proof non-GNU and non-MSVC compilers
23218         * build-aux/snippet/_Noreturn.h (_Noreturn):
23219         * m4/gnulib-common.m4 (gl_COMMON_BODY):
23220         Do not define _Noreturn if __STDC_VERSION__ indicates this is
23221         C11 or later.  This is more likely to work with random future C
23222         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
23223         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00195.html>.
23225         exclude: handle wildcards with FNM_EXTMATCH
23226         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
23227         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
23228         comment that "has wildcards" really means "has or may have
23229         wildcards".  Simplify by avoiding the need to call strcspn.
23231 2012-04-29  Bruno Haible  <bruno@clisp.org>
23233         gnulib-tool: Fix list of authors.
23234         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
23236 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
23238         bootstrap: support Automake-NG in $buildreq
23239         * bootstrap (check_versions): Handle automake and aclocal from
23240         Automake-NG specially.  They can be specified as respectively
23241         the "automake-ng" and "aclocal-ng" requirements.
23243 2012-04-25  Eric Blake  <eblake@redhat.com>
23245         bootstrap: only force latest Makefile.in.in for gettext module
23246         * build-aux/bootstrap (with_gettext): Only install latest
23247         Makefile.in.in for projects requesting bleeding edge gettext.
23249 2012-04-22  Bruno Haible  <bruno@clisp.org>
23251         doc: Mention reason for replacement on glibc/Linux systems.
23252         * doc/posix-functions/dprintf.texi: Mention the problem with special
23253         'long double' values.
23254         * doc/posix-functions/fprintf.texi: Likewise.
23255         * doc/posix-functions/printf.texi: Likewise.
23256         * doc/posix-functions/snprintf.texi: Likewise.
23257         * doc/posix-functions/sprintf.texi: Likewise.
23258         * doc/posix-functions/vdprintf.texi: Likewise.
23259         * doc/posix-functions/vfprintf.texi: Likewise.
23260         * doc/posix-functions/vprintf.texi: Likewise.
23261         * doc/posix-functions/vsnprintf.texi: Likewise.
23262         * doc/posix-functions/vsprintf.texi: Likewise.
23263         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
23264         platforms with F_DUPFD_CLOEXEC problems.
23265         * doc/posix-functions/glob.texi: Mention which platforms are affected
23266         by the problem with symbolic links.
23267         * doc/posix-functions/linkat.texi: Mention the problem with
23268         AT_SYMLINK_FOLLOW on Linux.
23270 2012-04-22  Bruno Haible  <bruno@clisp.org>
23272         pwrite: Don't replace on all platforms.
23273         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
23275 2012-04-22  Bruno Haible  <bruno@clisp.org>
23277         rint* tests: Avoid gcc warnings.
23278         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
23279         * tests/test-rintf.c (INFINITY, NAN): Likewise.
23280         * tests/test-rintl.c (INFINITY, NAN): Likewise.
23282 2012-04-21  Bruno Haible  <bruno@clisp.org>
23284         users.txt: Update.
23285         * users.txt: Add freedink, wdiff. Update URLs for projects that have
23286         switched from CVS to git, bzr, or svn.
23288 2012-04-21  Bruno Haible  <bruno@clisp.org>
23290         Large File Support for native Windows platforms.
23292         * m4/largefile.m4 (gl_LARGEFILE): New macro.
23293         * modules/largefile (configure.ac): Require gl_LARGEFILE.
23295         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
23296         type.
23297         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
23298         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
23299         * doc/posix-headers/sys_types.texi: Mention the effect of the
23300         'largefile' module.
23302         * lib/fcntl.in.h: Add comments about off_t.
23303         * modules/fcntl-h (Depends-on): Add sys_types.
23305         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
23306         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
23307         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
23308         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
23309         * modules/unistd (Depends-on): Add sys_types.
23310         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
23312         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
23313         instead of lseek.
23314         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
23315         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
23316         * modules/lseek (Depends-on): Add sys_types.
23318         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
23319         msvc-nothrow.h.
23320         (SetFileSize): New function.
23321         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
23322         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
23323         if Large File Support is requested.
23324         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
23325         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
23327         * lib/stdio.in.h: Add comments about off_t.
23328         * modules/stdio (Depends-on): Add sys_types.
23330         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
23331         instead of ftello.
23332         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
23333         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
23334         (gl_PREREQ_FTELLO): New macro.
23335         * modules/ftello (Depends-on): Add sys_types.
23336         (configure.ac): Incoke gl_PREREQ_FTELLO.
23338         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
23339         instead of fseeko.
23340         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
23341         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
23342         (gl_PREREQ_FSEEKO): New macro.
23343         * modules/fseeko (Depends-on): Add sys_types.
23344         (configure.ac): Invoke gl_PREREQ_FSEEKO.
23346         * lib/sys_stat.in.h: Add comments about off_t.
23347         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
23348         64-bit integer for st_size in 'struct stat'.
23349         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
23350         Define _GL_WINDOWS_64_BIT_ST_SIZE.
23351         * modules/sys_stat (Depends-on): Add sys_types.
23352         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
23354         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
23355         instead of stat or _stat.
23357         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
23358         'struct _stati64' instead of fstat and 'struct stat'.
23359         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
23360         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
23362         Reported by Ray Satiro <raysatiro@yahoo.com>.
23364 2012-04-19  Eric Blake  <eblake@redhat.com>
23366         bootstrap: accommodate older libtool
23367         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
23368         Reported by Daniel P. Berrange.
23370 2012-04-19  Jim Meyering  <meyering@redhat.com>
23372         announce-gen: avoid failure due to lack of Digest::SHA1
23373         Even with the preferred Digest::SHA available, this script
23374         would fail when the backup module, Digest::SHA1, was not installed.
23375         * build-aux/announce-gen: Quote the conditional use of "use".
23376         Reported by Reuben Thomas in:
23377         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
23379         bootstrap: don't let a user's CDPATH setting affect this script
23380         When CDPATH is set, cd will sometimes generate output.
23381         When "cd" is run in a subshell whose output matters, that
23382         surprising-to-some output can cause malfunction.
23383         Unsetting CDPATH turns off this shell "feature."
23384         * build-aux/bootstrap (CDPATH): Unset.
23385         Reported by Reuben Thomas in:
23386         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
23387         and inspired by his patch here:
23388         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
23390 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
23391         and Jim Meyering  <meyering@redhat.com>
23393         maint.mk: catch "see @xref{}" and similar
23394         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
23395         prohibit "See also @xref{", "Also see @pxref{", and similar.
23397 2012-04-16  Jim Meyering  <meyering@redhat.com>
23399         bootstrap: really use gnulib's po/Makefile.in.in
23400         * build-aux/bootstrap: Correct the source file name in previous change.
23401         Reported by Akim Demaille.
23403         configmake: correct minor inconsistency in Makefile rule
23404         * modules/configmake (Makefile.am): All other rules like this one
23405         run the final "mv -f ..." in the same backslash-continued command
23406         as the one that does everything else.  This one put the mv -f ...
23407         command on a separate, non-backslash-continued line.
23408         Make it like the others.
23410         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
23411         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
23412         the one from gettext.  Reported by Akim Demaille.
23414 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
23416         Fix recursion of install-* into po directories.
23417         Bison's install-pdf bug reported by Hans Aberg at
23418         <http://lists.gnu.org/r/bug-bison/2011-05/msg00008.html>.
23419         * build-aux/po/Makefile.in.in (install-dvi, install-html)
23420         (install-info, install-pdf, install-ps): New targets.
23422 2012-04-16  Jim Meyering  <meyering@redhat.com>
23424         maint: avoid spurious "make sc_maint" failure
23425         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
23426         exempt all *.class file names, for lib/javaversion.class.
23428 2012-04-15  Bruno Haible  <bruno@clisp.org>
23430         lseek: Make configure test independent of environment.
23431         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
23432         Windows, we know that lseek() on pipes is broken; skip the runtime
23433         test.
23435 2012-04-14  Bruno Haible  <bruno@clisp.org>
23437         stat: Bypass buggy override in mingw64.
23438         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
23439         * lib/stat.c (stat) [mingw64]: Define to _stat.
23440         * doc/posix-functions/stat.texi: Mention mingw64 bug.
23442 2012-04-14  Bruno Haible  <bruno@clisp.org>
23444         pathmax: Fix compilation error on MSVC 9.
23445         * modules/pathmax (Depends-on): Add unistd.
23447 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
23449         README: document pointer comparison assumption
23450         * README (Portability guidelines): Document assumption about
23451         pointer comparisons, in response to a recent bug-gnulib comment by
23452         Jeffrey Kegler.
23454 2012-04-12  Bruno Haible  <bruno@clisp.org>
23456         Tests for module 'getrusage'.
23457         * modules/getrusage-tests: New file.
23458         * tests/test-getrusage.c: New file.
23460         New module 'getrusage'.
23461         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
23462         warn-on-use.h.
23463         (getrusage): New declaration.
23464         * lib/getrusage.c: New file.
23465         * m4/getrusage.m4: New file.
23466         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
23467         is declared.
23468         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
23469         HAVE_GETRUSAGE.
23470         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
23471         snippet/c++defs, snippet/warn-on-use.
23472         (Makefile.am): Update generation of sys/resource.h. Substitute
23473         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
23474         * modules/getrusage: New file.
23475         * doc/posix-functions/getrusage.texi: Mention the new module.
23477 2012-04-12  Bruno Haible  <bruno@clisp.org>
23479         Tests for module 'sys_resource'.
23480         * modules/sys_resource-tests: New file.
23481         * tests/test-sys_resource.c: New file.
23483         New module 'sys_resource'.
23484         * lib/sys_resource.in.h: New file.
23485         * m4/sys_resource_h.m4: New file.
23486         * modules/sys_resource: New file.
23487         * doc/posix-headers/sys_resource.texi: Mention the new module.
23489 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
23491         ioctl: Fix compilation error on mingw.
23492         * lib/ioctl.c: Include <windows.h>.
23493         Also reported by Ray Satiro <raysatiro@yahoo.com>.
23495 2012-04-04  Jim Meyering  <meyering@redhat.com>
23497         regex: correct #pragma guard expression
23498         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
23499         not 4.3.  Correct its cpp guard expression.
23501 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
23503         regex: remove unnecessary type punning
23504         Problem reported by Vladimir Serbinenko in
23505         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00006.html>.
23506         * lib/regex.h (struct re_pattern_buffer): Change the type of
23507         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
23508         Fix comment to match code.
23509         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
23510         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
23511         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
23512         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
23513         (set_regs):
23514         Omit no-longer-necessary casts.
23516 2012-04-03  Bruno Haible  <bruno@clisp.org>
23518         Tests for module 'ilogbl'.
23519         * modules/ilogbl-tests: New file.
23520         * tests/test-ilogbl.c: New file.
23522         New module 'ilogbl'.
23523         * lib/math.in.h (ilogbl): New declaration.
23524         * lib/ilogbl.c: New file.
23525         * m4/ilogbl.m4: New file.
23526         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
23527         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
23528         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
23529         Split sed invocation, to avoid the limit of 100 substitutions of
23530         HP-UX 'sed'.
23531         * modules/ilogbl: New file.
23532         * tests/test-math-c++.cc: Check the declaration of ilogbl.
23533         * doc/posix-functions/ilogbl.texi: Mention the new module.
23535 2012-04-03  Bruno Haible  <bruno@clisp.org>
23537         Tests for module 'ilogbf'.
23538         * modules/ilogbf-tests: New file.
23539         * tests/test-ilogbf.c: New file.
23541         New module 'ilogbf'.
23542         * lib/math.in.h (ilogbf): New declaration.
23543         * lib/ilogbf.c: New file.
23544         * m4/ilogbf.m4: New file.
23545         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
23546         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
23547         REPLACE_ILOGBF.
23548         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
23549         REPLACE_ILOGBF.
23550         * modules/ilogbf: New file.
23551         * tests/test-math-c++.cc: Check the declaration of ilogbf.
23552         * doc/posix-functions/ilogbf.texi: Mention the new module.
23554 2012-04-03  Bruno Haible  <bruno@clisp.org>
23556         Tests for module 'ilogb'.
23557         * modules/ilogb-tests: New file.
23558         * tests/test-ilogb.c: New file.
23559         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
23560         tests/test-logb-ieee.h.
23562         New module 'ilogb'.
23563         * lib/math.in.h (ilogb): New declaration.
23564         * lib/ilogb.c: New file.
23565         * m4/ilogb.m4: New file.
23566         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
23567         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
23568         REPLACE_ILOGB.
23569         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
23570         REPLACE_ILOGB.
23571         * modules/ilogb: New file.
23572         * tests/test-math-c++.cc: Check the declaration of ilogb.
23573         * doc/posix-functions/ilogb.texi: Mention the new module.
23575 2012-04-03  Bruno Haible  <bruno@clisp.org>
23577         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
23578         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
23579         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
23580         (main): Check their values.
23581         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
23582         problem.
23584 2012-04-03  Bruno Haible  <bruno@clisp.org>
23586         Tests for module 'logbl-ieee'.
23587         * modules/logbl-ieee-tests: New file.
23588         * tests/test-logbl-ieee.c: New file.
23590         New module 'logbl-ieee'.
23591         * modules/logbl-ieee: New file.
23593         Tests for module 'logb-ieee'.
23594         * modules/logb-ieee-tests: New file.
23595         * tests/test-logb-ieee.c: New file.
23597         New module 'logb-ieee'.
23598         * modules/logb-ieee: New file.
23600         Tests for module 'logbf-ieee'.
23601         * modules/logbf-ieee-tests: New file.
23602         * tests/test-logbf-ieee.c: New file.
23603         * tests/test-logb-ieee.h: New file.
23605         New module 'logbf-ieee'.
23606         * modules/logbf-ieee: New file.
23608 2012-04-03  Bruno Haible  <bruno@clisp.org>
23610         Tests for module 'logbl'.
23611         * modules/logbl-tests: New file.
23612         * tests/test-logbl.c: New file.
23614         New module 'logbl'.
23615         * lib/math.in.h (logbl): New declaration.
23616         * lib/logbl.c: New file.
23617         * m4/logbl.m4: New file.
23618         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
23619         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
23620         REPLACE_LOGBL.
23621         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
23622         REPLACE_LOGBL.
23623         * modules/logbl: New file.
23624         * tests/test-math-c++.cc: Check the declaration of logbl.
23625         * doc/posix-functions/logbl.texi: Mention the new module.
23627 2012-04-02  Bruno Haible  <bruno@clisp.org>
23629         Tests for module 'logbf'.
23630         * modules/logbf-tests: New file.
23631         * tests/test-logbf.c: New file.
23633         New module 'logbf'.
23634         * lib/math.in.h (logbf): New declaration.
23635         * lib/logbf.c: New file.
23636         * m4/logbf.m4: New file.
23637         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
23638         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
23639         REPLACE_LOGBF.
23640         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
23641         REPLACE_LOGBF.
23642         * modules/logbf: New file.
23643         * tests/test-math-c++.cc: Check the declaration of logbf.
23644         * doc/posix-functions/logbf.texi: Mention the new module.
23646 2012-04-02  Bruno Haible  <bruno@clisp.org>
23648         logb tests: More tests.
23649         * tests/test-logb.h: New file, based on tests/test-logb.c and
23650         tests/test-frexp.h.
23651         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
23652         (main): Just invoke test_function.
23653         * modules/logb-tests (Files): Add tests/test-logb.h,
23654         tests/minus-zero.h, tests/randomd.c.
23655         (Makefile.am): Add randomd.c to test_logb_SOURCES.
23657         logb: Provide replacement and workarounds.
23658         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
23659         is 1.
23660         * lib/logb.c: New file.
23661         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
23662         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
23663         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
23664         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
23665         * modules/logb (Files): Add lib/logb.c.
23666         (Depends-on): Add isfinite, frexp, isnand.
23667         (configure.ac): Compile the replacement code logb.c if needed.
23668         * tests/test-math-c++.cc: Check the declaration of logb.
23669         * doc/posix-functions/logb.texi: Mention the replacement and the bug
23670         with subnormal numbers.
23672 2012-04-02  Bruno Haible  <bruno@clisp.org>
23674         log10* tests: Speed up.
23675         * tests/test-log10.h (test_function): Reduce amount of random numbers
23676         to test.
23678 2012-04-01  Bruno Haible  <bruno@clisp.org>
23680         logf-ieee: Fix test whether logf works.
23681         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
23683 2012-04-01  Bruno Haible  <bruno@clisp.org>
23685         log10l: Work around log10l-ieee test failure on IRIX 6.5.
23686         * lib/log10l.c: Include <float.h>
23687         (log10l): On IRIX, normalize the +Infinity value.
23688         * modules/log10l (Depends-on): Add 'float'.
23689         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
23690         +Infinity.
23692         log10f-ieee: Work around test failure on NetBSD 5.1.
23693         * m4/log10f-ieee.m4: New file.
23694         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
23695         test whether log10f works with a negative argument. Replace it if not.
23696         * lib/log10f.c (log10f): For negative arguments, return NaN.
23697         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
23698         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
23699         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
23701         log10f-ieee: Work around test failure on Solaris 9.
23702         * modules/log10f-ieee (Depends-on): Add log10-ieee.
23703         (configure.ac): Require gl_FUNC_LOG10F.
23705         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
23706         * m4/log10-ieee.m4: New file.
23707         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
23708         whether log10 works with a negative argument. Replace it if not.
23709         * lib/log10.c (log10): For negative arguments, return NaN.
23710         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
23711         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
23712         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
23714         Tests for module 'log10l-ieee'.
23715         * modules/log10l-ieee-tests: New file.
23716         * tests/test-log10l-ieee.c: New file.
23718         New module 'log10l-ieee'.
23719         * modules/log10l-ieee: New file.
23721         Tests for module 'log10-ieee'.
23722         * modules/log10-ieee-tests: New file.
23723         * tests/test-log10-ieee.c: New file.
23725         New module 'log10-ieee'.
23726         * modules/log10-ieee: New file.
23728         Tests for module 'log10f-ieee'.
23729         * modules/log10f-ieee-tests: New file.
23730         * tests/test-log10f-ieee.c: New file.
23731         * tests/test-log10-ieee.h: New file.
23733         New module 'log10f-ieee'.
23734         * modules/log10f-ieee: New file.
23736 2012-04-01  Bruno Haible  <bruno@clisp.org>
23738         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
23739         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
23740         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
23741         workaround.
23742         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
23743         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
23744         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
23745         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
23746         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
23747         (Depends-on): Update conditions.
23748         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
23749         IRIX 6.5, OSF/1 5.1 problems.
23751 2012-04-01  Bruno Haible  <bruno@clisp.org>
23753         log10f: Work around OSF/1 5.1 bug.
23754         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
23755         * lib/log10f.c (log10f): If logf exists, use it and provide just the
23756         workaround.
23757         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
23758         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
23759         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
23760         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
23761         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
23762         (Depends-on): Update conditions.
23763         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
23765 2012-04-01  Bruno Haible  <bruno@clisp.org>
23767         log10: Work around OSF/1 5.1 bug.
23768         * lib/math.in.h (log10): New declaration.
23769         * lib/log10.c: New file.
23770         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
23771         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
23772         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
23773         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
23774         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
23775         * modules/log10 (Files): Add lib/log10.c.
23776         (Depends-on): Add math.
23777         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
23778         * tests/test-math-c++.cc: Check the declaration of log10.
23779         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
23781 2012-03-31  Bruno Haible  <bruno@clisp.org>
23783         log10l tests: More tests.
23784         * modules/log10l-tests (Files): Add tests/test-log10l.h,
23785         tests/minus-zero.h, tests/randoml.c.
23786         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
23787         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
23788         (main): Invoke test_function.
23790         log10f tests: More tests.
23791         * modules/log10f-tests (Files): Add tests/test-log10.h,
23792         tests/minus-zero.h, tests/randomf.c.
23793         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
23794         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
23795         (main): Invoke test_function.
23797         log10 tests: More tests.
23798         * tests/test-log10.h: New file.
23799         * modules/log10-tests (Files): Add tests/test-log10.h,
23800         tests/minus-zero.h, tests/randomd.c.
23801         (Makefile.am): Add randomd.c to test_log10_SOURCES.
23802         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
23803         (main): Invoke test_function.
23805 2012-03-31  Simon Josefsson  <simon@josefsson.org>
23807         fflush: Fix syntax error.
23808         * lib/fflush.c: Include unused-parameter.h, needed for
23809         _GL_UNUSED_PARAMETER.
23810         * modules/fflush (Depends-on): Add snippet/unused-parameter.
23812 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
23814         regex: pacify GCC when compiling GRUB
23815         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
23816         a diagnostic.  Reported by Vladimir Serbinenko in
23817         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00163.html>.
23819 2012-03-29  Eric Blake  <eblake@redhat.com>
23821         stdio: don't assume gets any more
23822         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
23823         support.
23824         * modules/stdio (Makefile.am): Likewise.
23825         * lib/stdio-read.c (gets): Likewise.
23826         * tests/test-stdio-c++.cc: Likewise.
23827         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
23828         * lib/stdio.in.h (gets): Make warning occur in more places.
23829         * doc/posix-functions/gets.texi (gets): Update documentation.
23830         Reported by Christer Solskogen.
23832         maint.mk: fix syntax checks without exclusions
23833         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
23834         Reported by Daniel P. Berrange.
23836         strerror_r: avoid compiler warning
23837         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
23838         level.
23840         fflush: avoid compiler warning
23841         * lib/fflush.c (update_fpos_cache): Mark variables that are
23842         potentially unused.
23844 2012-03-25  Bruno Haible  <bruno@clisp.org>
23846         Tests for module 'localeconv'.
23847         * modules/localeconv-tests: New file.
23848         * tests/test-localeconv.c: New file.
23850         New module 'localeconv'.
23851         * lib/locale.in.h (localeconv): New declaration.
23852         * lib/localeconv.c: New file.
23853         * m4/localeconv.m4: New file.
23854         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
23855         REPLACE_LOCALECONV.
23856         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
23857         REPLACE_LOCALECONV.
23858         * modules/localeconv: New file.
23859         * modules/nl_langinfo (Depends-on): Add localeconv.
23860         * modules/human (Depends-on): Likewise.
23861         * doc/posix-functions/localeconv.texi: Mention the new module.
23863 2012-03-25  Bruno Haible  <bruno@clisp.org>
23865         locale: Provide a complete 'struct lconv'.
23866         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
23867         'struct lconv' does not contain int_p_cs_precedes.
23868         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
23869         * doc/posix-headers/locale.texi: Update.
23871         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
23872         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
23873         * doc/posix-headers/locale.texi: Update.
23875         locale: Provide a working 'struct lconv'.
23876         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
23877         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
23878         'struct lconv' does not even contain decimal_point.
23879         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
23880         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
23881         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
23882         * doc/posix-headers/locale.texi: Mention the problems with
23883         'struct lconv'.
23884         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
23886 2012-03-24  Bruno Haible  <bruno@clisp.org>
23888         Enable common subexpression optimization in GCC.
23889         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
23890         macros.
23891         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
23892         GCC attribute 'const'.
23893         (uc_locale_language): Declare with GCC attribute 'pure'.
23894         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
23895         with GCC attribute 'const'.
23896         * lib/unictype.in.h (uc_is_general_category_withtable,
23897         uc_combining_class, uc_combining_class_name,
23898         uc_combining_class_long_name, uc_bidi_class_name,
23899         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
23900         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
23901         uc_decimal_value, uc_digit_value, uc_numeric_value,
23902         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
23903         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
23904         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
23905         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
23906         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
23907         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
23908         Declare with GCC attribute 'const'.
23909         (uc_general_category_name, uc_general_category_long_name,
23910         uc_general_category_byname, uc_general_category,
23911         uc_is_general_category, uc_combining_class_byname,
23912         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
23913         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
23914         Declare with GCC attribute 'pure'.
23915         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
23916         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
23917         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
23918         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
23919         with GCC attribute 'pure'.
23920         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
23921         'const'.
23922         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
23923         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
23924         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
23925         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
23926         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
23927         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
23928         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
23929         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
23930         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
23931         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
23932         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
23933         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
23934         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
23935         GCC attribute 'pure'.
23936         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
23937         'const'.
23938         * lib/uniwidth.in.h (uc_width): Simplify declaration.
23939         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
23940         u32_strwidth): Declare with GCC attribute 'pure'.
23942         Enable common subexpression optimization in GCC.
23943         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
23944         (alphasort): Declare with GCC attribute 'pure'.
23945         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
23946         (atoll): Declare with GCC attribute 'pure'.
23947         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
23948         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
23949         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
23950         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
23951         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
23952         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
23953         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
23955 2012-03-24  Bruno Haible  <bruno@clisp.org>
23957         gnulib-tool: Avoid unintended error output from 'cmp'.
23958         * gnulib-tool (func_add_file, func_update_file, func_import): Use
23959         "cmp -s", not "cmp > /dev/null".
23961 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
23963         gnulib-tool: fix imprecise comments w.r.t. an automake bug
23965         It's not just Automake versions < 1.9b that creates an empty
23966         pkgdatadir at installation time if pkgdata_DATA is specified
23967         to empty; modern automake versions do this as well, at least
23968         until automake 1.11.4 (not yet released at the moment of writing,
23969         but soon to appear).  That behaviour was generally considered a
23970         feature rather than a bug, at least until this discussion:
23971         <http://lists.gnu.org/r/automake/2012-03/msg00014.html>
23973         See also automake bugs #10997 and #11030.
23975         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
23976         reference to relevant automake bug numbers.
23977         (func_emit_tests_Makefile_am): Likewise.
23979 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
23981         announce-gen: use Digest::SHA when possible
23982         * build-aux/announce-gen: Use Digest::SHA when possible, falling
23983         back to Digest::SHA1 if necessary.
23985 2012-03-20  Jim Meyering  <meyering@redhat.com>
23987         tests: avoid gcc warnings about argv vs. const initializers
23988         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
23989         warnings about discarding 'const' qualifier from pointer target type.
23990         * tests/test-posix_spawn2.c (main): Likewise.
23992 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
23994         README-release: simplify slightly
23995         * top/README-release: Run "git checkout master" only once.
23997 2012-03-15  Mark Wielaard  <mark@klomp.org>
23999         git-merge-changelog: add specific example on how to use with hg.
24000         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
24002 2012-03-18  Mark Wielaard  <mark@klomp.org>
24004         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
24006 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
24008         git-version-gen: don't let "prefix" envvar cause trouble
24009         * build-aux/git-version-gen (prefix): Initialize properly,
24010         so as not to use a value specified via the environment.
24011         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
24013 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
24015         regex: diagnose too-large repeat counts in EREs
24016         Previously, the code did not diagnose the too-large repeat count
24017         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
24018         as if it were 'b\{1000000000}', which is unexpected.
24019         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
24020         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
24021         is a reasonable one for this problem.  Another option would be to
24022         create a new REG_OVERFLOW error for repeat counts that are too large.
24023         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
24024         count is too large, so that the caller can distinguish the two cases.
24025         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
24026         "Too large" return code, and that repeat counts are one example of this.
24028 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
24030         doc: some glibc x32 integer width issues
24031         * doc/posix-headers/sys_types.texi (sys/types.h):
24032         * doc/posix-headers/time.texi (time.h):
24033         Mention that glibc x32 does not conform to POSIX in a couple of
24034         areas related to integer widths.
24036 2012-03-15  Bruno Haible  <bruno@clisp.org>
24038         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
24039         * lib/fma.c (VOLATILE): New macro.
24040         (FUNC): Use it to work around a GCC compiler bug.
24042 2012-03-13  Bruno Haible  <bruno@clisp.org>
24044         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
24045         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
24046         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
24047         REPLACE_HYPOTL to 1.
24048         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
24050 2012-03-13  Bruno Haible  <bruno@clisp.org>
24052         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
24053         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
24054         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
24055         REPLACE_REMAINDERL to 1.
24056         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
24057         bug.
24059 2012-03-13  Bruno Haible  <bruno@clisp.org>
24061         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
24062         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
24063         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
24064         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
24065         too big rounding errors.
24066         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
24067         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
24068         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
24069         (Depends-on): Update conditions.
24070         * tests/test-sqrtl.c (my_ldexpl): New function.
24071         (main): Add test of a particular value.
24072         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
24074 2012-03-13  Pádraig Brady  <P@draigBrady.com>
24076         doc: Update timer_* platform portability notes.
24077         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
24078         that always return ENOSYS.
24079         * doc/posix-functions/timer_delete.texi: Likewise.
24080         * doc/posix-functions/timer_gettime.texi: Likewise.
24081         * doc/posix-functions/timer_settime.texi: Likewise.
24083 2012-03-13  Bruno Haible  <bruno@clisp.org>
24085         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
24086         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
24087         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
24088         REPLACE_CBRTL to 1.
24089         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
24091 2012-03-13  Bruno Haible  <bruno@clisp.org>
24093         remainderl: Avoid compilation error on AIX >= 5.2.
24094         * lib/math.in.h (remainderl): Undefine macro from the system header.
24096 2012-03-13  Bruno Haible  <bruno@clisp.org>
24098         Avoid compilation errors with MSVC option -fp:strict.
24099         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
24100         * lib/cbrtf.c: Likewise.
24101         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
24103 2012-03-12  Bruno Haible  <bruno@clisp.org>
24105         uninorm: Don't crash in out-of-memory conditions.
24106         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
24107         gracefully.
24108         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
24109         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
24111 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
24113         quote: fix syntax-check
24114         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
24115         also exports quote_quoting_options.
24117 2012-03-12  Simon Josefsson  <simon@josefsson.org>
24119         Collapse list of copyright years to ranges.  See
24120         <https://lists.gnu.org/r/bug-gnulib/2012-03/msg00051.html>.
24121         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
24122         build-aux/csharpexec.sh.in, build-aux/gnupload,
24123         build-aux/install-reloc, build-aux/javacomp.sh.in,
24124         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
24125         build-aux/move-if-change, build-aux/reloc-ldflags,
24126         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
24128 2012-03-11  Bruno Haible  <bruno@clisp.org>
24130         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
24131         * m4/log2f-ieee.m4: New file.
24132         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
24133         whether log2f works with a minus zero argument. Replace it if not.
24134         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
24135         (Depends-on): Add log2-ieee.
24136         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
24137         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
24139         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
24140         * m4/log2-ieee.m4: New file.
24141         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
24142         whether log2 works with a minus zero argument. Replace it if not.
24143         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
24144         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
24145         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
24147         Tests for module 'log2l-ieee'.
24148         * modules/log2l-ieee-tests: New file.
24149         * tests/test-log2l-ieee.c: New file.
24151         New module 'log2l-ieee'.
24152         * modules/log2l-ieee: New file.
24154         Tests for module 'log2-ieee'.
24155         * modules/log2-ieee-tests: New file.
24156         * tests/test-log2-ieee.c: New file.
24158         New module 'log2-ieee'.
24159         * modules/log2-ieee: New file.
24161         Tests for module 'log2f-ieee'.
24162         * modules/log2f-ieee-tests: New file.
24163         * tests/test-log2f-ieee.c: New file.
24164         * tests/test-log2-ieee.h: New file.
24166         New module 'log2f-ieee'.
24167         * modules/log2f-ieee: New file.
24169 2012-03-11  Bruno Haible  <bruno@clisp.org>
24171         Tests for module 'log2l'.
24172         * modules/log2l-tests: New file.
24173         * tests/test-log2l.c: New file.
24175         New module 'log2l'.
24176         * lib/math.in.h (log2l): New declaration.
24177         * lib/log2l.c: New file.
24178         * m4/log2l.m4: New file.
24179         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
24180         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
24181         REPLACE_LOG2L.
24182         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
24183         REPLACE_LOG2L.
24184         * modules/log2l: New file.
24185         * tests/test-math-c++.cc: Check the declaration of log2l.
24186         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
24187         and OSF/1 problems.
24189 2012-03-11  Bruno Haible  <bruno@clisp.org>
24191         Tests for module 'log2f'.
24192         * modules/log2f-tests: New file.
24193         * tests/test-log2f.c: New file.
24195         New module 'log2f'.
24196         * lib/math.in.h (log2f): New declaration.
24197         * lib/log2f.c: New file.
24198         * m4/log2f.m4: New file.
24199         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
24200         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
24201         REPLACE_LOG2F.
24202         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
24203         REPLACE_LOG2F.
24204         * modules/log2f: New file.
24205         * tests/test-math-c++.cc: Check the declaration of log2f.
24206         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
24207         and OSF/1 and Cygwin problems.
24209 2012-03-11  Bruno Haible  <bruno@clisp.org>
24211         Tests for module 'log2'.
24212         * modules/log2-tests: New file.
24213         * tests/test-log2.c: New file.
24214         * tests/test-log2.h: New file.
24216         New module 'log2'.
24217         * lib/math.in.h (log2): New declaration.
24218         * lib/log2.c: New file.
24219         * m4/log2.m4: New file.
24220         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
24221         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
24222         REPLACE_LOG2.
24223         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
24224         REPLACE_LOG2.
24225         * modules/log2: New file.
24226         * tests/test-math-c++.cc: Check the declaration of log2.
24227         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
24228         and OSF/1 and Cygwin problems.
24230 2012-03-11  Bruno Haible  <bruno@clisp.org>
24232         exp2* tests: More tests.
24233         * tests/test-exp2.h (test_function): Test all integral arguments that
24234         don't need to overflow or denormalized numbers.
24235         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
24236         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
24237         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
24239 2012-03-10  Bruno Haible  <bruno@clisp.org>
24241         log1pl-ieee: Work around test failure on AIX 7.1.
24242         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
24244         log1pl-ieee: Work around test failure on IRIX 6.5.
24245         * m4/log1pl-ieee.m4: New file.
24246         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
24247         test whether log1pl works with a minus zero argument. Replace it if
24248         not.
24249         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
24250         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
24251         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
24252         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
24253         (Depends-on): Update conditions.
24254         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
24255         m4/signbit.m4.
24256         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
24257         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
24259         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
24260         * m4/log1pf-ieee.m4: New file.
24261         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
24262         test whether log1pf works with a minus zero argument. Replace it if
24263         not.
24264         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
24265         m4/signbit.m4.
24266         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
24267         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
24269         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
24270         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
24271         (configure.ac): Require gl_FUNC_LOG1PF.
24273         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
24274         * m4/log1p-ieee.m4: New file.
24275         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
24276         whether log1p works with a minus zero argument. Replace it if not.
24277         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
24278         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
24279         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
24280         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
24281         (Depends-on): Update conditions.
24282         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
24283         m4/signbit.m4.
24284         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
24285         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
24287         Tests for module 'log1pl-ieee'.
24288         * modules/log1pl-ieee-tests: New file.
24289         * tests/test-log1pl-ieee.c: New file.
24291         New module 'log1pl-ieee'.
24292         * modules/log1pl-ieee: New file.
24294         Tests for module 'log1p-ieee'.
24295         * modules/log1p-ieee-tests: New file.
24296         * tests/test-log1p-ieee.c: New file.
24298         New module 'log1p-ieee'.
24299         * modules/log1p-ieee: New file.
24301         Tests for module 'log1pf-ieee'.
24302         * modules/log1pf-ieee-tests: New file.
24303         * tests/test-log1pf-ieee.c: New file.
24304         * tests/test-log1p-ieee.h: New file.
24306         New module 'log1pf-ieee'.
24307         * modules/log1pf-ieee: New file.
24309 2012-03-10  Bruno Haible  <bruno@clisp.org>
24311         Tests for module 'log1pl'.
24312         * modules/log1pl-tests: New file.
24313         * tests/test-log1pl.c: New file.
24315         New module 'log1pl'.
24316         * lib/math.in.h (log1pl): New declaration.
24317         * lib/log1pl.c: New file.
24318         * m4/log1pl.m4: New file.
24319         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
24320         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
24321         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
24322         * modules/log1pl: New file.
24323         * tests/test-math-c++.cc: Check the declaration of log1pl.
24324         * doc/posix-functions/log1pl.texi: Mention the new module.
24326 2012-03-10  Bruno Haible  <bruno@clisp.org>
24328         Tests for module 'log1pf'.
24329         * modules/log1pf-tests: New file.
24330         * tests/test-log1pf.c: New file.
24332         New module 'log1pf'.
24333         * lib/math.in.h (log1pf): New declaration.
24334         * lib/log1pf.c: New file.
24335         * m4/log1pf.m4: New file.
24336         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
24337         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
24338         REPLACE_LOG1PF.
24339         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
24340         REPLACE_LOG1PF.
24341         * modules/log1pf: New file.
24342         * tests/test-math-c++.cc: Check the declaration of log1pf.
24343         * doc/posix-functions/log1pf.texi: Mention the new module.
24345 2012-03-10  Bruno Haible  <bruno@clisp.org>
24347         log1p tests: More tests.
24348         * tests/test-log1p.h: New file.
24349         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
24350         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
24351         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
24352         (main): Invoke test_function.
24354         log1p: Provide replacement for Minix and MSVC.
24355         * lib/math.in.h (log1p): New declaration.
24356         * lib/log1p.c: New file.
24357         * m4/log1p.m4: New file.
24358         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
24359         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
24360         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
24361         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
24362         (Depends-on): Add math, isnand, log, round.
24363         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
24364         HAVE_LOG1P is 0.
24365         * tests/test-math-c++.cc: Check the declaration of log1p.
24366         * doc/posix-functions/log1p.texi: Mention the replacement.
24368 2012-03-10  Bruno Haible  <bruno@clisp.org>
24370         math tests: Small simplification.
24371         * tests/test-exp.h (test_function): Use the same err_bound for
24372         'double' on platforms with sizeof (long double) == sizeof (double)
24373         than on platforms with sizeof (long double) > sizeof (double).
24374         * tests/test-exp2.h (test_function): Likewise.
24375         * tests/test-expm1.h (test_function): Likewise.
24376         * tests/test-log.h (test_function): Likewise.
24378 2012-03-10  Bruno Haible  <bruno@clisp.org>
24380         Fix some comments.
24381         * lib/expl.c: Fix an ambiguous comment.
24382         * lib/expm1.c: Likewise.
24383         * lib/expm1l.c: Likewise.
24384         * lib/exp2.c: Likewise.
24385         * lib/exp2l.c: Likewise.
24387 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
24389         regex: allow inclusion of <regex.h> before <limits.h>
24390         Without this patch, portable programs had to include <limits.h> before
24391         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
24392         I ran into this problem with a test version of GNU grep on Solaris 8.
24393         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
24394         This is done conditionally so that this change can be merged
24395         back to glibc.
24396         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
24397         using the included regex.
24399         fts: depend on fdopendir
24400         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
24401         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
24402         problem was introduced when fdopendir was split out.
24404 2012-03-10  Bruno Haible  <bruno@clisp.org>
24406         Remove unused variables.
24407         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
24408         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
24410 2012-03-10  Bruno Haible  <bruno@clisp.org>
24412         isnanf-nolibm: Fix last commit.
24413         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
24415         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
24416         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
24418 2012-03-10  Bruno Haible  <bruno@clisp.org>
24420         logf-ieee: Work around test failure on NetBSD 5.1.
24421         * m4/logf-ieee.m4: New file.
24422         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
24423         whether logf works with a negative argument. Replace it if not.
24424         * lib/logf.c (logf): For negative arguments, return NaN.
24425         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
24426         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
24427         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
24429         logf-ieee: Work around test failure on Solaris 9.
24430         * modules/logf-ieee (Depends-on): Add log-ieee.
24431         (configure.ac): Require gl_FUNC_LOGF.
24433         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
24434         * m4/log-ieee.m4: New file.
24435         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
24436         log works with a negative argument. Replace it if not.
24437         * lib/log.c (log): For negative arguments, return NaN.
24438         * modules/log-ieee (Files): Add m4/log-ieee.m4.
24439         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
24440         * doc/posix-functions/log.texi: Mention the log-ieee module.
24442         Tests for module 'logl-ieee'.
24443         * modules/logl-ieee-tests: New file.
24444         * tests/test-logl-ieee.c: New file.
24446         New module 'logl-ieee'.
24447         * modules/logl-ieee: New file.
24449         Tests for module 'log-ieee'.
24450         * modules/log-ieee-tests: New file.
24451         * tests/test-log-ieee.c: New file.
24453         New module 'log-ieee'.
24454         * modules/log-ieee: New file.
24456         Tests for module 'logf-ieee'.
24457         * modules/logf-ieee-tests: New file.
24458         * tests/test-logf-ieee.c: New file.
24459         * tests/test-log-ieee.h: New file.
24461         New module 'logf-ieee'.
24462         * modules/logf-ieee: New file.
24464 2012-03-10  Bruno Haible  <bruno@clisp.org>
24466         log: Fix bug introduced on 2012-03-09.
24467         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
24469 2012-03-10  Pádraig Brady  <P@draigBrady.com>
24471         timer-time: link explicitly with pthreads on glibc
24472         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
24473         to support static linking, when newer glibc is
24474         detected, as that contains pthread emulation of
24475         POSIX timer functions where required.
24476         * modules/timer-time: Depend on threadlib to
24477         pull in the appropriate library to link.
24479 2012-03-10  Bruno Haible  <bruno@clisp.org>
24481         log* tests: More tests.
24482         * tests/test-log.h: New file.
24483         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
24484         (main): Invoke test_function.
24485         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
24486         (main): Invoke test_function.
24487         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
24488         (main): Invoke test_function.
24489         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
24490         tests/randomd.c.
24491         (Makefile.am): Add randomd.c to test_log_SOURCES.
24492         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
24493         tests/randomf.c.
24494         (Makefile.am): Add randomf.c to test_logf_SOURCES.
24495         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
24496         tests/randoml.c.
24497         (Depends-on): Add 'float'.
24498         (Makefile.am): Add randoml.c to test_logl_SOURCES.
24500 2012-03-09  Bruno Haible  <bruno@clisp.org>
24502         logl: Work around OSF/1 5.1 bug.
24503         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
24504         * lib/logl.c (logl): If logl exists, use it and provide just the
24505         workaround.
24506         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
24507         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
24508         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
24509         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
24510         * modules/logl (configure.ac): Consider REPLACE_LOGL.
24511         (Depends-on): Update conditions.
24512         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
24514 2012-03-09  Bruno Haible  <bruno@clisp.org>
24516         logf: Work around OSF/1 5.1 bug.
24517         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
24518         * lib/logf.c (logf): If logf exists, use it and provide just the
24519         workaround.
24520         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
24521         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
24522         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
24523         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
24524         * modules/logf (configure.ac): Consider REPLACE_LOGF.
24525         (Depends-on): Update conditions.
24526         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
24528 2012-03-09  Bruno Haible  <bruno@clisp.org>
24530         log: Work around OSF/1 5.1 bug.
24531         * lib/math.in.h (log): New declaration.
24532         * lib/log.c: New file.
24533         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
24534         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
24535         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
24536         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
24537         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
24538         * modules/log (Files): Add lib/log.c.
24539         (Depends-on): Add math.
24540         (configure.ac): If REPLACE_LOG is 1, compile an override.
24541         * tests/test-math-c++.cc: Check the declaration of log.
24542         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
24544 2012-03-09  Jim Meyering  <meyering@redhat.com>
24546         readtokens.c: adjust wording in a comment
24547         * lib/readtokens.c: Insert omitted "that" in a comment.
24549 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
24551         modechange: add notations +40, 00440, etc.
24552         * lib/modechange.c (mode_compile): Support new notations
24553         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
24555 2012-03-08  Bruno Haible  <bruno@clisp.org>
24557         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
24558         * m4/exp2l-ieee.m4: New file.
24559         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
24560         test whether exp2l works with a NaN argument and with a negative
24561         infinity argument. Replace it if not.
24562         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
24563         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
24564         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
24565         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
24566         (Depends-on): Update conditions.
24567         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
24568         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
24569         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
24571         Tests for module 'exp2l-ieee'.
24572         * modules/exp2l-ieee-tests: New file.
24573         * tests/test-exp2l-ieee.c: New file.
24575         New module 'exp2l-ieee'.
24576         * modules/exp2l-ieee: New file.
24578         Tests for module 'exp2-ieee'.
24579         * modules/exp2-ieee-tests: New file.
24580         * tests/test-exp2-ieee.c: New file.
24582         New module 'exp2-ieee'.
24583         * modules/exp2-ieee: New file.
24585         Tests for module 'exp2f-ieee'.
24586         * modules/exp2f-ieee-tests: New file.
24587         * tests/test-exp2f-ieee.c: New file.
24588         * tests/test-exp2-ieee.h: New file.
24590         New module 'exp2f-ieee'.
24591         * modules/exp2f-ieee: New file.
24593 2012-03-08  Bruno Haible  <bruno@clisp.org>
24595         Tests for module 'exp2l'.
24596         * modules/exp2l-tests: New file.
24597         * tests/test-exp2l.c: New file.
24599         New module 'exp2l'.
24600         * lib/math.in.h (exp2l): New declaration.
24601         * lib/exp2l.c: New file.
24602         * lib/expl-table.c: New file, extracted from lib/expl.c.
24603         * lib/expl.c (gl_expl_table): New declaration.
24604         (expl): Remove expl_table. Update reference.
24605         * m4/exp2l.m4: New file.
24606         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
24607         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
24608         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
24609         * modules/exp2l: New file.
24610         * modules/expl (Files): Add lib/expl-table.c.
24611         (configure.ac): Compile also expl-table.c.
24612         * tests/test-math-c++.cc: Check the declaration of exp2l.
24613         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
24614         problem.
24616 2012-03-08  Bruno Haible  <bruno@clisp.org>
24618         Tests for module 'exp2f'.
24619         * modules/exp2f-tests: New file.
24620         * tests/test-exp2f.c: New file.
24622         New module 'exp2f'.
24623         * lib/math.in.h (exp2f): New declaration.
24624         * lib/exp2f.c: New file.
24625         * m4/exp2f.m4: New file.
24626         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
24627         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
24628         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
24629         * modules/exp2f: New file.
24630         * tests/test-math-c++.cc: Check the declaration of exp2f.
24631         * doc/posix-functions/exp2f.texi: Mention the new module and the
24632         IRIX problem.
24634 2012-03-08  Bruno Haible  <bruno@clisp.org>
24636         Tests for module 'exp2'.
24637         * modules/exp2-tests: New file.
24638         * tests/test-exp2.c: New file.
24639         * tests/test-exp2.h: New file.
24641         New module 'exp2'.
24642         * lib/math.in.h (exp2): New declaration.
24643         * lib/exp2.c: New file.
24644         * m4/exp2.m4: New file.
24645         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
24646         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
24647         REPLACE_EXP2.
24648         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
24649         REPLACE_EXP2.
24650         * modules/exp2: New file.
24651         * tests/test-math-c++.cc: Check the declaration of exp2.
24652         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
24653         and OpenBSD problems.
24655 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
24657         savedir: fix comment typo
24658         * lib/savedir.c (savedirstream): Fix typo in comment.
24660 2012-03-08  Bruno Haible  <bruno@clisp.org>
24662         test-readtokens.c: use const; remove unwarranted cast
24663         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
24665 2012-03-08  Bruno Haible  <bruno@clisp.org>
24667         fmal: Avoid compilation error on AIX.
24668         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
24669         AIX 5.2..7.1.
24671 2012-03-08  Bruno Haible  <bruno@clisp.org>
24673         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
24674         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
24675         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
24676         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
24677         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
24678         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
24679         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
24681 2012-03-08  Bruno Haible  <bruno@clisp.org>
24683         remainderf: Override buggy system function on IRIX 6.5.
24684         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
24685         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
24686         when it exists.
24687         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
24689 2012-03-08  Jim Meyering  <meyering@redhat.com>
24691         test-readtokens.c: avoid const-related compilation warnings
24692         * tests/test-readtokens.c: Avoid const-related compilation warnings.
24694 2012-03-07  Jim Meyering  <meyering@redhat.com>
24695             Bruno Haible  <bruno@clisp.org>
24697         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
24698         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
24699         tests/randomd.c.
24700         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
24701         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
24702         tests/randoml.c.
24703         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
24705 2012-03-07  Bruno Haible  <bruno@clisp.org>
24707         expm1l: Avoid compilation error on AIX.
24708         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
24709         AIX 5.2..7.1.
24711 2012-03-07  Bruno Haible  <bruno@clisp.org>
24713         expm1l: Don't override undeclared system function on IRIX 6.5.
24714         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
24715         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
24716         it exists. Set HAVE_DECL_EXPM1L.
24717         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
24718         HAVE_EXPM1L.
24719         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
24720         HAVE_EXPM1L.
24721         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
24723 2012-03-07  Bruno Haible  <bruno@clisp.org>
24725         remainderl: Don't override undeclared system function on IRIX 6.5.
24726         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
24727         HAVE_REMAINDERL.
24728         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
24729         declared when it exists. Set HAVE_DECL_REMAINDERL.
24730         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
24731         not HAVE_REMAINDERL.
24732         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
24733         HAVE_REMAINDERL.
24734         * doc/posix-functions/remainderl.texi: Mention missing declaration
24735         problem.
24737 2012-03-07  Bruno Haible  <bruno@clisp.org>
24739         rintf: Don't override undeclared system function on IRIX 6.5.
24740         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
24741         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
24742         exists. Set HAVE_DECL_RINTF.
24743         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
24744         HAVE_RINTF.
24745         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
24746         HAVE_RINTF.
24747         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
24749 2012-03-07  Bruno Haible  <bruno@clisp.org>
24751         roundl: Avoid compilation error on AIX.
24752         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
24753         AIX 5.2..7.1.
24755 2012-03-07  Bruno Haible  <bruno@clisp.org>
24757         roundl: Don't override undeclared system function on IRIX 6.5.
24758         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
24759         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
24760         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
24761         * modules/roundl (configure.ac): For replacement code, test
24762         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
24763         (Depends-on): Update conditions.
24764         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
24766 2012-03-07  Bruno Haible  <bruno@clisp.org>
24768         roundf: Don't override undeclared system function on IRIX 6.5.
24769         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
24770         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
24771         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
24772         * modules/roundf (configure.ac): For replacement code, test
24773         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
24774         (Depends-on): Update conditions.
24775         * modules/roundf-ieee (Depends-on): Update conditions.
24776         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
24778 2012-03-07  Bruno Haible  <bruno@clisp.org>
24780         round: Don't override undeclared system function on IRIX 6.5.
24781         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
24782         argument.
24783         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
24784         also when it is not declared. Set HAVE_ROUND. For replacement code,
24785         test HAVE_ROUND, not HAVE_DECL_ROUND.
24786         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
24787         not HAVE_DECL_ROUND.
24788         (Depends-on): Update conditions.
24789         * modules/round-ieee (Depends-on): Update conditions.
24790         * doc/posix-functions/round.texi: Mention the IRIX problem.
24792 2012-03-07  Bruno Haible  <bruno@clisp.org>
24794         copysignf: Don't override undeclared system function on IRIX 6.5.
24795         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
24796         HAVE_COPYSIGNF.
24797         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
24798         declared when it exists. Set HAVE_DECL_COPYSIGNF.
24799         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
24800         not HAVE_COPYSIGNF.
24801         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
24802         HAVE_COPYSIGNF.
24803         * doc/posix-functions/copysignf.texi: Mention missing declaration
24804         problem.
24806 2012-03-07  Jim Meyering  <meyering@redhat.com>
24808         readtokens: add tests
24809         * modules/readtokens-tests: New file.
24810         * tests/test-readtokens.c: New file.
24812 2012-03-07  Jim Meyering  <meyering@redhat.com>
24814         quotearg: the module must now include quote.h
24815         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
24816         So must the module.
24817         * modules/quotearg (Files): Add quote.h.
24819 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
24821         readtokens: avoid core dumps with unusual calling patterns
24822         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
24823         * lib/readtokens.c: Include limits.h.
24824         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
24825         (readtoken): Don't cache the delimiters; the cache code was buggy
24826         if !delim && saved_delim, or if the new n_delim differs from the old.
24827         Also, it wasn't thread-safe.
24829 2012-03-07  Bruno Haible  <bruno@clisp.org>
24831         quote: Adhere to common module description layout.
24832         * modules/quote (Makefile.am): Add back empty section.
24834 2012-03-06  Akim Demaille  <demaille@gostai.com>
24836         quote: fuse into quotearg
24837         This patch is made for the benefit of Bison.
24838         quote does not leave the choice of the quoting style to the user.
24839         quoting_style provides poor customizability, yet quoting_options,
24840         which is very rich, is hidden inside quotearg.c.  So in order to
24841         allow quote customization, move its implementation to quotearg.c.
24842         * lib/quote.c: Remove.
24843         * modules/quote: Adjust.
24844         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
24845         warning: provide all the members of literal structs.
24846         (quote_quoting_options): New.
24847         (quote, quote_n): Import implementation from quote.c.
24848         * lib/quote.h: Import the comments from quote.c.
24849         (quote_quoting_options): New.
24851 2012-03-06  Bruno Haible  <bruno@clisp.org>
24853         Tests for module 'expm1l-ieee'.
24854         * modules/expm1l-ieee-tests: New file.
24855         * tests/test-expm1l-ieee.c: New file.
24857         New module 'expm1l-ieee'.
24858         * modules/expm1l-ieee: New file.
24860         Tests for module 'expm1f-ieee'.
24861         * modules/expm1f-ieee-tests: New file.
24862         * tests/test-expm1f-ieee.c: New file.
24864         New module 'expm1f-ieee'.
24865         * modules/expm1f-ieee: New file.
24867         Tests for module 'expm1-ieee'.
24868         * modules/expm1-ieee-tests: New file.
24869         * tests/test-expm1-ieee.c: New file.
24870         * tests/test-expm1-ieee.h: New file.
24872         New module 'expm1-ieee'.
24873         * modules/expm1-ieee: New file.
24874         * m4/expm1-ieee.m4: New file.
24875         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
24876         whether expm1 works with a minus zero argument. Replace it if not.
24877         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
24878         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
24879         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
24880         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
24881         (Depends-on): Update conditions.
24882         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
24883         AIX problem.
24885 2012-03-06  Bruno Haible  <bruno@clisp.org>
24887         Work around expm1f bug on IRIX 6.5.
24888         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
24889         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
24890         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
24891         not work.
24892         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
24893         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
24894         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
24895         (Depends-on): Update conditions.
24896         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
24898 2012-03-06  Bruno Haible  <bruno@clisp.org>
24900         Tests for module 'expm1l'.
24901         * modules/expm1l-tests: New file.
24902         * tests/test-expm1l.c: New file.
24904         New module 'expm1l'.
24905         * lib/math.in.h (expm1l): New declaration.
24906         * lib/expm1l.c: New file.
24907         * m4/expm1l.m4: New file.
24908         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
24909         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
24910         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
24911         * modules/expm1l: New file.
24912         * tests/test-math-c++.cc: Check the declaration of expm1l.
24913         * doc/posix-functions/expm1l.texi: Mention the new module.
24915 2012-03-06  Bruno Haible  <bruno@clisp.org>
24917         Tests for module 'expm1f'.
24918         * modules/expm1f-tests: New file.
24919         * tests/test-expm1f.c: New file.
24921         New module 'expm1f'.
24922         * lib/math.in.h (expm1f): New declaration.
24923         * lib/expm1f.c: New file.
24924         * m4/expm1f.m4: New file.
24925         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
24926         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
24927         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
24928         * modules/expm1f: New file.
24929         * tests/test-math-c++.cc: Check the declaration of expm1f.
24930         * doc/posix-functions/expm1f.texi: Mention the new module.
24932 2012-03-06  Bruno Haible  <bruno@clisp.org>
24934         Tests for module 'expm1'.
24935         * modules/expm1-tests: New file.
24936         * tests/test-expm1.c: New file.
24937         * tests/test-expm1.h: New file.
24939         New module 'expm1'.
24940         * lib/math.in.h (expm1): New declaration.
24941         * lib/expm1.c: New file.
24942         * m4/expm1.m4: New file.
24943         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
24944         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
24945         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
24946         * modules/expm1: New file.
24947         * tests/test-math-c++.cc: Check the declaration of expm1.
24948         * doc/posix-functions/expm1.texi: Mention the new module.
24950 2012-03-06  Bruno Haible  <bruno@clisp.org>
24952         math: Ensure declarations of math functions.
24953         * modules/acosf (Depends-on): Add 'extensions'.
24954         * modules/asinf (Depends-on): Likewise.
24955         * modules/atan2f (Depends-on): Likewise.
24956         * modules/atanf (Depends-on): Likewise.
24957         * modules/cbrt (Depends-on): Likewise.
24958         * modules/cbrtf (Depends-on): Likewise.
24959         * modules/cbrtl (Depends-on): Likewise.
24960         * modules/copysignf (Depends-on): Likewise.
24961         * modules/copysignl (Depends-on): Likewise.
24962         * modules/cosf (Depends-on): Likewise.
24963         * modules/coshf (Depends-on): Likewise.
24964         * modules/expf (Depends-on): Likewise.
24965         * modules/fabsf (Depends-on): Likewise.
24966         * modules/fabsl (Depends-on): Likewise.
24967         * modules/fmaf (Depends-on): Likewise.
24968         * modules/fmal (Depends-on): Likewise.
24969         * modules/fmodf (Depends-on): Likewise.
24970         * modules/fmodl (Depends-on): Likewise.
24971         * modules/frexpf (Depends-on): Likewise.
24972         * modules/frexpl (Depends-on): Likewise.
24973         * modules/hypot (Depends-on): Likewise.
24974         * modules/hypotf (Depends-on): Likewise.
24975         * modules/hypotl (Depends-on): Likewise.
24976         * modules/ldexpf (Depends-on): Likewise.
24977         * modules/ldexpl (Depends-on): Likewise.
24978         * modules/log10f (Depends-on): Likewise.
24979         * modules/log10l (Depends-on): Likewise.
24980         * modules/log1p (Depends-on): Likewise.
24981         * modules/logb (Depends-on): Likewise.
24982         * modules/logf (Depends-on): Likewise.
24983         * modules/modff (Depends-on): Likewise.
24984         * modules/modfl (Depends-on): Likewise.
24985         * modules/powf (Depends-on): Likewise.
24986         * modules/remainderf (Depends-on): Likewise.
24987         * modules/remainderl (Depends-on): Likewise.
24988         * modules/rintf (Depends-on): Likewise.
24989         * modules/rintl (Depends-on): Likewise.
24990         * modules/sinf (Depends-on): Likewise.
24991         * modules/sinhf (Depends-on): Likewise.
24992         * modules/sqrtf (Depends-on): Likewise.
24993         * modules/tanf (Depends-on): Likewise.
24994         * modules/tanhf (Depends-on): Likewise.
24995         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
24996         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
24997         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
24998         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
24999         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
25000         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
25001         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
25002         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
25003         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
25004         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
25005         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
25006         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
25007         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
25008         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
25009         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
25010         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
25011         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
25012         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
25013         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
25014         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
25015         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
25016         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
25017         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
25018         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
25019         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
25020         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
25021         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
25022         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
25023         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
25024         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
25025         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
25026         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
25027         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
25028         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
25029         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
25030         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
25031         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
25032         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
25033         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
25034         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
25035         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
25037 2012-03-06  Bruno Haible  <bruno@clisp.org>
25039         math: Update module names in warnings.
25040         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
25041         tanl): Use specific module name in warn-on-use warning.
25043 2012-03-06  Bruno Haible  <bruno@clisp.org>
25045         expl: Simplify computation.
25046         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
25048 2012-03-05  Bruno Haible  <bruno@clisp.org>
25050         exp* tests: More tests.
25051         * tests/test-exp.h: New file.
25052         * tests/test-exp.c: Include <float.h> and test-exp.h.
25053         (main): Invoke test_function.
25054         * tests/test-expf.c: Include <float.h> and test-exp.h.
25055         (main): Invoke test_function.
25056         * tests/test-expl.c: Include <float.h> and test-exp.h.
25057         (main): Invoke test_function.
25058         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
25059         (Makefile.am): Add randomd.c to test_exp_SOURCES.
25060         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
25061         (Makefile.am): Add randomf.c to test_expf_SOURCES.
25062         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
25063         (Depends-on): Add 'float'.
25064         (Makefile.am): Add randoml.c to test_expl_SOURCES.
25066         expl: Fix precision of computed result.
25067         * lib/expl.c: Completely rewritten.
25068         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
25069         (Maintainer): Add me.
25070         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
25072 2012-03-05  Bruno Haible  <bruno@clisp.org>
25074         cbrt* tests: More tests.
25075         * tests/test-cbrt.h: New file.
25076         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
25077         (main): Invoke test_function.
25078         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
25079         (main): Invoke test_function.
25080         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
25081         (main): Invoke test_function.
25082         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
25083         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
25084         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
25085         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
25086         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
25087         (Depends-on): Add 'float'.
25088         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
25090 2012-03-05  Bruno Haible  <bruno@clisp.org>
25092         hypot* tests: More tests.
25093         * tests/test-hypot.h: New file, partially extracted from
25094         tests/test-hypotl.c.
25095         * tests/test-hypot.c: Include test-hypot.h.
25096         (main): Invoke test_function.
25097         * tests/test-hypotf.c: Include test-hypot.h.
25098         (main): Invoke test_function.
25099         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
25100         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
25101         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
25102         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
25103         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
25104         tests/randomf.c.
25105         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
25106         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
25107         tests/randoml.c.
25108         (Depends-on): Add 'fpucw', 'float'.
25109         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
25111 2012-03-05  Bruno Haible  <bruno@clisp.org>
25113         fpucw: Doc about FreeBSD.
25114         * lib/fpucw.h: Mention FreeBSD in comments.
25116 2012-03-04  Bruno Haible  <bruno@clisp.org>
25118         sqrt* tests: More tests.
25119         * tests/test-sqrt.h: New file.
25120         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
25121         (main): Invoke test_function.
25122         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
25123         (main): Invoke test_function.
25124         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
25125         (main): Invoke test_function.
25126         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
25127         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
25128         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
25129         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
25130         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
25131         (Depends-on): Add 'float'.
25132         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
25134 2012-03-04  Bruno Haible  <bruno@clisp.org>
25136         remainder* tests: More tests.
25137         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
25138         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
25139         (main): Invoke test_function.
25140         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
25141         (main): Invoke test_function.
25142         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
25143         (main): Invoke test_function.
25144         * modules/remainder-tests (Files): Add tests/test-remainder.h,
25145         tests/randomd.c.
25146         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
25147         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
25148         tests/randomf.c.
25149         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
25150         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
25151         tests/randoml.c.
25152         (Depends-on): Add 'float'.
25153         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
25155 2012-03-04  Bruno Haible  <bruno@clisp.org>
25157         remainder, remainderf, remainderl: Fix computation for large quotients.
25158         * lib/remainder.c: Completely rewritten.
25159         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
25160         USE_FLOAT.
25161         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
25162         USE_LONG_DOUBLE.
25163         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
25164         isnand, isinf. Remove round, fma.
25165         * modules/remainderf (Files): Add lib/remainder.c.
25166         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
25167         Remove roundf, fmaf.
25168         * modules/remainderl (Files): Add lib/remainder.c.
25169         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
25170         isinf. Remove roundl, fmal.
25171         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
25172         REMAINDER_LIBM.
25173         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
25174         REMAINDERF_LIBM.
25175         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
25176         REMAINDERL_LIBM.
25178 2012-03-04  Bruno Haible  <bruno@clisp.org>
25180         fmod* tests: More tests.
25181         * tests/test-fmod.h (my_ldexp): New function.
25182         (test_function): Reduce amount of random numbers to test. Add tests
25183         of very large quotients x / y.
25184         * tests/test-fmod.c (MAX_EXP): New macro.
25185         * tests/test-fmodf.c (MAX_EXP): Likewise.
25186         * tests/test-fmodl.c (MAX_EXP): Likewise.
25188 2012-03-04  Bruno Haible  <bruno@clisp.org>
25190         fmod, fmodl: Fix computation for large quotients x / y.
25191         * lib/fmod.c: Completely rewritten.
25192         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
25193         USE_LONG_DOUBLE.
25194         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
25195         isnand. Remove fma.
25196         * modules/fmodl (Files): Add lib/fmod.c.
25197         (Depends-on): Add float, isfinite, signbit, fabsl,
25198         frexpl, ldexpl, isnanl. Remove fma.
25199         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
25200         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
25202 2012-03-03  Bruno Haible  <bruno@clisp.org>
25204         fmod* tests: More tests.
25205         * tests/test-fmod.h: New file.
25206         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
25207         (main): Invoke test_function.
25208         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
25209         (main): Invoke test_function.
25210         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
25211         (main): Invoke test_function.
25212         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
25213         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
25214         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
25215         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
25216         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
25217         (Depends-on): Add 'float'.
25218         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
25220 2012-03-03  Bruno Haible  <bruno@clisp.org>
25222         rint* tests: More tests.
25223         * tests/test-rint.h: New file, partially extracted from
25224         tests/test-rintl.c.
25225         * tests/test-rint.c: Include test-rint.h.
25226         (main): Invoke test_function.
25227         * tests/test-rintf.c: Include test-rint.h.
25228         (main): Invoke test_function.
25229         * tests/test-rintl.c: Include test-rint.h.
25230         (main): Invoke test_function.
25231         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
25232         (Makefile.am): Add randomd.c to test_rint_SOURCES.
25233         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
25234         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
25235         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
25236         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
25238 2012-03-03  Bruno Haible  <bruno@clisp.org>
25240         modf* tests: More tests.
25241         * tests/test-modf.h: New file.
25242         * tests/test-modf.c: Include <float.h> and test-modf.h.
25243         (main): Invoke test_function.
25244         * tests/test-modff.c: Include <float.h> and test-modf.h.
25245         (main): Invoke test_function.
25246         * tests/test-modfl.c: Include <float.h> and test-modf.h.
25247         (main): Invoke test_function.
25248         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
25249         (Makefile.am): Add randomd.c to test_modf_SOURCES.
25250         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
25251         (Makefile.am): Add randomf.c to test_modff_SOURCES.
25252         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
25253         (Depends-on): Add 'float'.
25254         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
25256 2012-03-03  Bruno Haible  <bruno@clisp.org>
25258         fabs* tests: More tests.
25259         * tests/test-fabs.h: New file, partially extracted from
25260         tests/test-fabsl.c.
25261         * tests/test-fabs.c (RANDOM): New macro.
25262         * tests/test-fabsf.c (RANDOM): New macro.
25263         * tests/test-fabsl.c (RANDOM): New macro.
25264         * modules/fabs-tests (Files): Add tests/randomd.c.
25265         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
25266         * modules/fabsf-tests (Files): Add tests/randomf.c.
25267         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
25268         * modules/fabsl-tests (Files): Add tests/randoml.c.
25269         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
25271 2012-03-03  Bruno Haible  <bruno@clisp.org>
25273         ldexp* tests: More tests.
25274         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
25275         * tests/test-ldexp.c (RANDOM): New macro.
25276         * tests/test-ldexpf.c (RANDOM): New macro.
25277         * tests/test-ldexpl.c (RANDOM): New macro.
25278         * modules/ldexp-tests (Files): Add tests/randomd.c.
25279         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
25280         * modules/ldexpf-tests (Files): Add tests/randomf.c.
25281         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
25282         * modules/ldexpl-tests (Files): Add tests/randoml.c.
25283         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
25285 2012-03-03  Bruno Haible  <bruno@clisp.org>
25287         frexp* tests: More tests.
25288         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
25289         * tests/test-frexp.c (RANDOM): New macro.
25290         * tests/test-frexpf.c (RANDOM): New macro.
25291         * tests/test-frexpl.c (RANDOM): New macro.
25292         * modules/frexp-tests (Files): Add tests/randomd.c.
25293         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
25294         * modules/frexpf-tests (Files): Add tests/randomf.c.
25295         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
25296         * modules/frexpl-tests (Files): Add tests/randoml.c.
25297         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
25299 2012-03-03  Bruno Haible  <bruno@clisp.org>
25301         Support for pseudo-random numbers in tests.
25302         * tests/randomf.c: New file.
25303         * tests/randomd.c: New file.
25304         * tests/randoml.c: New file.
25305         * tests/macros.h (randomf, randomd, randoml): New declarations.
25307 2012-03-03  Bruno Haible  <bruno@clisp.org>
25309         frexp* tests: Refactor.
25310         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
25311         * tests/test-frexp.c: Include and use it.
25312         * tests/test-frexpf.c: Likewise.
25313         * tests/test-frexpl.c: Likewise.
25314         * modules/frexp-tests (Files): Add tests/test-frexp.h.
25315         * modules/frexpf-tests (Files): Likewise.
25316         * modules/frexpl-tests (Files): Likewise.
25318 2012-03-02  Jim Meyering  <meyering@redhat.com>
25320         maint: don't specify XZ_OPT=-9ev in dist-related rule
25321         Using xz's -9 option is warranted only if you have a very large
25322         tarball (see xz's documentation for the sizes vs. presets), and
25323         requires 64MiB of memory at decompression time.
25324         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
25325         Automake's default of just "-e" is fine.  Override on a
25326         per-package basis by setting XZ_OPT e.g., in cfg.mk.
25328 2012-03-01  Eric Blake  <eblake@redhat.com>
25330         maint.mk: allow announcement for non-gnulib project
25331         * maint.mk (announcement): Skip gnulib version if not used.
25333 2012-03-01  Jim Meyering  <meyering@redhat.com>
25335         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
25336         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
25337         envvar settings cannot interfere.  Otherwise, setting envvars like
25338         prohibit=foo require=bar, etc. would cause spurious test failures.
25340 2012-03-01  Eric Blake  <eblake@redhat.com>
25342         maint.mk: add per-line exclusions to prohibitions
25343         * maint.mk (_sc_search_regexp): Add $exclude parameter.
25344         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
25345         (sc_const_long_option): Use it.
25347 2012-03-01  Bruno Haible  <bruno@clisp.org>
25349         Tests for module 'expl-ieee'.
25350         * modules/expl-ieee-tests: New file.
25351         * tests/test-expl-ieee.c: New file.
25353         New module 'expl-ieee'.
25354         * modules/expl-ieee: New file.
25356         Tests for module 'exp-ieee'.
25357         * modules/exp-ieee-tests: New file.
25358         * tests/test-exp-ieee.c: New file.
25360         New module 'exp-ieee'.
25361         * modules/exp-ieee: New file.
25363         Tests for module 'expf-ieee'.
25364         * modules/expf-ieee-tests: New file.
25365         * tests/test-expf-ieee.c: New file.
25366         * tests/test-exp-ieee.h: New file.
25368         New module 'expf-ieee'.
25369         * modules/expf-ieee: New file.
25371 2012-02-29  Bruno Haible  <bruno@clisp.org>
25373         cbrtl-ieee: Work around test failure on IRIX 6.5.
25374         * m4/cbrtl-ieee.m4: New file.
25375         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
25376         test whether cbrtl works with a minus zero argument. Replace it if not.
25377         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
25378         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
25379         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
25380         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
25381         (Depends-on): Update conditions.
25382         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
25383         m4/signbit.m4.
25384         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
25385         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
25386         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
25388         Tests for module 'cbrtl-ieee'.
25389         * modules/cbrtl-ieee-tests: New file.
25390         * tests/test-cbrtl-ieee.c: New file.
25392         New module 'cbrtl-ieee'.
25393         * modules/cbrtl-ieee: New file.
25395         Tests for module 'cbrt-ieee'.
25396         * modules/cbrt-ieee-tests: New file.
25397         * tests/test-cbrt-ieee.c: New file.
25399         New module 'cbrt-ieee'.
25400         * modules/cbrt-ieee: New file.
25402         Tests for module 'cbrtf-ieee'.
25403         * modules/cbrtf-ieee-tests: New file.
25404         * tests/test-cbrtf-ieee.c: New file.
25405         * tests/test-cbrt-ieee.h: New file.
25407         New module 'cbrtf-ieee'.
25408         * modules/cbrtf-ieee: New file.
25410 2012-02-29  Bruno Haible  <bruno@clisp.org>
25412         cbrtf: Work around bug in IRIX 6.5 system function.
25413         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
25414         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
25415         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
25416         work.
25417         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
25418         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
25419         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
25420         (Depends-on): Update conditions.
25421         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
25423 2012-02-29  Bruno Haible  <bruno@clisp.org>
25425         Tests for module 'cbrtl'.
25426         * modules/cbrtl-tests: New file.
25427         * tests/test-cbrtl.c: New file.
25429         New module 'cbrtl'.
25430         * lib/math.in.h (cbrtl): New declaration.
25431         * lib/cbrtl.c: New file.
25432         * m4/cbrtl.m4: New file.
25433         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
25434         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
25435         HAVE_DECL_CBRTL.
25436         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
25437         HAVE_DECL_CBRTL.
25438         * modules/cbrtl: New file.
25439         * tests/test-math-c++.cc: Check the declaration of cbrtl.
25440         * doc/posix-functions/cbrtl.texi: Mention the new module.
25442 2012-02-29  Bruno Haible  <bruno@clisp.org>
25444         Tests for module 'cbrtf'.
25445         * modules/cbrtf-tests: New file.
25446         * tests/test-cbrtf.c: New file.
25448         New module 'cbrtf'.
25449         * lib/math.in.h (cbrtf): New declaration.
25450         * lib/cbrtf.c: New file.
25451         * m4/cbrtf.m4: New file.
25452         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
25453         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
25454         HAVE_DECL_CBRTF.
25455         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
25456         HAVE_DECL_CBRTF.
25457         * modules/cbrtf: New file.
25458         * tests/test-math-c++.cc: Check the declaration of cbrtf.
25459         * doc/posix-functions/cbrtf.texi: Mention the new module.
25461 2012-02-29  Bruno Haible  <bruno@clisp.org>
25463         cbrt: Provide replacement on MSVC and Minix.
25464         * lib/math.in.h (cbrt): New declaration.
25465         * lib/cbrt.c: New file.
25466         * m4/cbrt.m4: New file.
25467         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
25468         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
25469         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
25470         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
25471         (Depends-on): Add dependencies.
25472         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
25473         * tests/test-math-c++.cc: Check the declaration of cbrt.
25474         * doc/posix-functions/cbrt.texi: Mention that the module provides a
25475         replacement.
25477 2012-02-29  Bruno Haible  <bruno@clisp.org>
25479         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
25480         * m4/hypotl-ieee.m4: New file.
25481         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
25482         test whether hypotl works with mixed NaN and Infinity arguments.
25483         Replace it if not.
25484         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
25485         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
25486         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
25487         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
25488         (Depends-on): Update conditions.
25489         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
25490         (Depends-on): Add hypot-ieee.
25491         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
25492         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
25494         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
25495         * m4/hypotf-ieee.m4: New file.
25496         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
25497         test whether hypotf works with mixed NaN and Infinity arguments.
25498         Replace it if not.
25499         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
25500         (Depends-on): Add hypot-ieee.
25501         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
25502         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
25504         hypot-ieee: Work around test failure on OSF/1 and native Windows.
25505         * lib/math.in.h (hypot): New declaration.
25506         * lib/hypot.c: New file.
25507         * m4/hypot-ieee.m4: New file.
25508         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
25509         whether hypot works with mixed NaN and Infinity arguments. Replace it
25510         if not.
25511         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
25512         REPLACE_HYPOT.
25513         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
25514         * modules/hypot (Files): Add lib/hypot.c.
25515         (Depends-on): Add dependencies.
25516         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
25517         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
25518         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
25519         * tests/test-math-c++.cc: Check the declaration of hypot.
25520         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
25522         Tests for module 'hypotl-ieee'.
25523         * modules/hypotl-ieee-tests: New file.
25524         * tests/test-hypotl-ieee.c: New file.
25526         New module 'hypotl-ieee'.
25527         * modules/hypotl-ieee: New file.
25529         Tests for module 'hypot-ieee'.
25530         * modules/hypot-ieee-tests: New file.
25531         * tests/test-hypot-ieee.c: New file.
25533         New module 'hypot-ieee'.
25534         * modules/hypot-ieee: New file.
25536         Tests for module 'hypotf-ieee'.
25537         * modules/hypotf-ieee-tests: New file.
25538         * tests/test-hypotf-ieee.c: New file.
25539         * tests/test-hypot-ieee.h: New file.
25541         New module 'hypotf-ieee'.
25542         * modules/hypotf-ieee: New file.
25544 2012-02-29  Bruno Haible  <bruno@clisp.org>
25546         Remove unused variables.
25547         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
25548         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
25549         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
25550         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
25552 2012-02-29  Eric Blake  <eblake@redhat.com>
25554         termios: fix pid_t always, not just for tcgetsid
25555         * doc/posix-headers/termios.texi (termios.h): Mention problem.
25556         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
25557         just when building tcgetsid.
25559 2012-02-29  Bruno Haible  <bruno@clisp.org>
25561         Tests for module 'hypotl'.
25562         * modules/hypotl-tests: New file.
25563         * tests/test-hypotl.c: New file.
25565         New module 'hypotl'.
25566         * lib/math.in.h (hypotl): New declaration.
25567         * lib/hypotl.c: New file.
25568         * m4/hypotl.m4: New file.
25569         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
25570         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
25571         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
25572         * modules/hypotl: New file.
25573         * tests/test-math-c++.cc: Check the hypotl declaration.
25574         * doc/posix-functions/hypotl.texi: Mention the new module.
25576 2012-02-29  Eric Blake  <eblake@redhat.com>
25578         tcgetsid: fix cygwin header bug
25579         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
25581         docs: update cygwin progress
25582         * doc/posix-functions/llround.texi (llround): Added in cygwin
25583         1.7.8.
25584         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
25585         * doc/glibc-functions/program_invocation_name.texi
25586         (program_invocation_name): Likewise.
25587         * doc/glibc-functions/program_invocation_short_name.texi
25588         (program_invocation_short_name): Likewise.
25589         * doc/glibc-functions/madvise.texi (madvise): Likewise.
25590         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
25591         Likewise.
25592         * doc/posix-functions/pthread_spin_destroy.texi
25593         (pthread_spin_destroy): Added in cygwin 1.7.10.
25594         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
25595         Likewise.
25596         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
25597         Likewise.
25598         * doc/posix-functions/pthread_spin_trylock.texi
25599         (pthread_spin_trylock): Likewise.
25600         * doc/posix-functions/pthread_spin_unlock.texi
25601         (pthread_spin_unlock): Likewise.
25602         * doc/posix-functions/pthread_setschedprio.texi
25603         (pthread_setschedprio): Likewise.
25604         * doc/posix-functions/pthread_attr_getstack.texi
25605         (pthread_attr_getstack): Likewise.
25606         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
25607         (pthread_attr_getstackaddr): Likewise.
25608         * doc/glibc-functions/pthread_getattr_np.texi
25609         (pthread_getattr_np): Likewise.
25610         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
25611         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
25612         * doc/posix-functions/clock_settime.texi (clock_settime):
25613         Likewise.
25614         * doc/posix-functions/pthread_attr_getguardsize.texi
25615         (pthread_attr_getguardsize): Likewise.
25616         * doc/posix-functions/pthread_attr_setguardsize.texi
25617         (pthread_attr_setguardsize): Likewise.
25618         * doc/posix-functions/pthread_attr_setstack.texi
25619         (pthread_attr_setstack): Likewise.
25620         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
25621         (pthread_attr_setstackaddr): Likewise.
25622         * doc/posix-functions/clock_getcpuclockid.texi
25623         (clock_getcpuclockid): Likewise.
25624         * doc/posix-functions/pthread_getcpuclockid.texi
25625         (pthread_getcpuclockid): Likewise.
25626         * doc/glibc-functions/error.texi (error): Likewise.
25627         * doc/glibc-functions/error_at_line.texi (error_at_line):
25628         Likewise.
25629         * doc/glibc-functions/error_message_count.texi
25630         (error_message_count): Likewise.
25631         * doc/glibc-functions/error_one_per_line.texi
25632         (error_one_per_line): Likewise.
25633         * doc/glibc-functions/error_print_progname.texi
25634         (error_print_progname): Likewise.
25635         * doc/posix-functions/pthread_condattr_getclock.texi
25636         (pthread_condattr_getclock): Likewise.
25637         * doc/posix-functions/pthread_condattr_setclock.texi
25638         (pthread_condattr_setclock): Likewise.
25639         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
25640         Likewise.
25641         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
25642         * doc/glibc-functions/getpt.texi (getpt): Likewise.
25643         * doc/glibc-functions/get_current_dir_name.texi
25644         (get_current_dir_name): Likewise.
25645         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
25646         Likewise.
25647         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
25648         wrong return type.
25649         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
25650         1.7.11.
25652 2012-02-29  Bruno Haible  <bruno@clisp.org>
25654         Tests for module 'hypotf'.
25655         * modules/hypotf-tests: New file.
25656         * tests/test-hypotf.c: New file.
25658         New module 'hypotf'.
25659         * lib/math.in.h (hypotf): New declaration.
25660         * lib/hypotf.c: New file.
25661         * m4/hypotf.m4: New file.
25662         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
25663         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
25664         REPLACE_HYPOTF.
25665         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
25666         REPLACE_HYPOTF.
25667         * modules/hypotf: New file.
25668         * tests/test-math-c++.cc: Check the hypotf declaration.
25669         * doc/posix-functions/hypotf.texi: Mention the new module.
25671         hypot: Prepare for hypotf module.
25672         * m4/hypot.m4: New file.
25673         * modules/hypot (Files): Add m4/hypot.m4.
25674         (configure.ac): Invoke gl_FUNC_HYPOT.
25676 2012-02-29  Bruno Haible  <bruno@clisp.org>
25678         hypot tests: More tests.
25679         * tests/test-hypot.c: Include <float.h>.
25680         (main): Add tests about overflow and underflow.
25682 2012-02-29  Bruno Haible  <bruno@clisp.org>
25684         math code: Add comments.
25685         * lib/acosl.c: Add comment about related glibc source files.
25686         * lib/asinl.c: Likewise.
25687         * lib/atanl.c: Likewise.
25688         * lib/expl.c: Likewise.
25689         * lib/logl.c: Likewise.
25690         * lib/sincosl.c: Likewise.
25691         * lib/sinl.c: Likewise.
25692         * lib/tanl.c: Likewise.
25693         * lib/trigl.c: Likewise.
25694         * lib/cosl.c: Likewise. Fix comments.
25696 2012-02-28  Bruno Haible  <bruno@clisp.org>
25698         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
25699         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
25700         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
25701         HUGE_VALL are defined.
25702         (numeric_equald): Renamed from numeric_equal.
25703         (numeric_equalf, numeric_equall): New functions.
25704         (main): Check also HUGE_VALF, HUGE_VALL.
25705         * modules/math-tests (Files): Add tests/macros.h.
25706         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
25707         HUGE_VALL.
25709 2012-02-28  Bruno Haible  <bruno@clisp.org>
25711         doc: Move ISO C11 feature notes into POSIX chapters.
25712         * doc/posix-functions/aligned_alloc.texi: Renamed from
25713         doc/glibc-functions/aligned_alloc.texi.
25714         * doc/posix-functions/quick_exit.texi: Renamed from
25715         doc/glibc-functions/quick_exit.texi.
25716         * doc/posix-headers/uchar.texi: Renamed from
25717         doc/glibc-headers/uchar.texi.
25718         * doc/posix-functions/c16rtomb.texi: Renamed from
25719         doc/glibc-functions/c16rtomb.texi.
25720         * doc/posix-functions/c32rtomb.texi: Renamed from
25721         doc/glibc-functions/c32rtomb.texi.
25722         * doc/posix-functions/mbrtoc16.texi: Renamed from
25723         doc/glibc-functions/mbrtoc16.texi.
25724         * doc/posix-functions/mbrtoc32.texi: Renamed from
25725         doc/glibc-functions/mbrtoc32.texi.
25726         * doc/gnulib.texi: Update.
25727         (Glibc uchar.h): Remove section.
25728         Suggested by Eric Blake.
25730 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
25732         stdnoreturn: port to MSVC better
25733         MSVC standard headers use __declspec(noreturn), so #define noreturn
25734         to empty on that platform.  Reported by Bruno Haible in
25735         <http://lists.gnu.org/r/bug-gnulib/2012-02/msg00152.html>.
25736         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
25737         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
25739 2012-02-28  Bruno Haible  <bruno@clisp.org>
25741         doc: Mention new glibc headers and functions.
25742         * doc/glibc-headers/uchar.texi: New file.
25743         * doc/glibc-functions/aligned_alloc.texi: New file.
25744         * doc/glibc-functions/c16rtomb.texi: New file.
25745         * doc/glibc-functions/c32rtomb.texi: New file.
25746         * doc/glibc-functions/clock_adjtime.texi: New file.
25747         * doc/glibc-functions/fanotify_init.texi: New file.
25748         * doc/glibc-functions/fanotify_mark.texi: New file.
25749         * doc/glibc-functions/inet6_opt_append.texi: New file.
25750         * doc/glibc-functions/inet6_opt_find.texi: New file.
25751         * doc/glibc-functions/inet6_opt_finish.texi: New file.
25752         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
25753         * doc/glibc-functions/inet6_opt_init.texi: New file.
25754         * doc/glibc-functions/inet6_opt_next.texi: New file.
25755         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
25756         * doc/glibc-functions/inet6_rth_add.texi: New file.
25757         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
25758         * doc/glibc-functions/inet6_rth_init.texi: New file.
25759         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
25760         * doc/glibc-functions/inet6_rth_segments.texi: New file.
25761         * doc/glibc-functions/inet6_rth_space.texi: New file.
25762         * doc/glibc-functions/login.texi: New file.
25763         * doc/glibc-functions/mbrtoc16.texi: New file.
25764         * doc/glibc-functions/mbrtoc32.texi: New file.
25765         * doc/glibc-functions/name_to_handle_at.texi: New file.
25766         * doc/glibc-functions/ntp_gettimex.texi: New file.
25767         * doc/glibc-functions/open_by_handle_at.texi: New file.
25768         * doc/glibc-functions/prlimit.texi: New file.
25769         * doc/glibc-functions/process_vm_readv.texi: New file.
25770         * doc/glibc-functions/process_vm_writev.texi: New file.
25771         * doc/glibc-functions/recvmmsg.texi: New file.
25772         * doc/glibc-functions/scandirat.texi: New file.
25773         * doc/glibc-functions/sendmmsg.texi: New file.
25774         * doc/glibc-functions/setns.texi: New file.
25775         * doc/glibc-functions/timespec_get.texi: New file.
25776         * doc/gnulib.texi: Include them.
25777         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
25778         sections.
25779         Reported by Eric Blake.
25781 2012-02-28  Bruno Haible  <bruno@clisp.org>
25783         Avoid compilation errors with MSVC option -fp:strict.
25784         * lib/floor.c: Use MSVC specific pragma fenv_access.
25785         * lib/ceil.c: Likewise.
25786         * lib/trunc.c: Likewise.
25787         * lib/round.c: Likewise.
25788         * lib/rint.c: Likewise.
25789         * lib/fma.c: Likewise.
25790         * lib/integer_length.c: Likewise.
25791         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
25792         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
25793         * tests/test-floor2.c: Likewise.
25794         * tests/test-floorf2.c: Likewise.
25795         * tests/test-ceil2.c: Likewise.
25796         * tests/test-ceilf2.c: Likewise.
25797         * tests/test-trunc2.c: Likewise.
25798         * tests/test-truncf2.c: Likewise.
25799         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
25801 2012-02-27  Bruno Haible  <bruno@clisp.org>
25803         Tests for module 'sqrtl-ieee'.
25804         * modules/sqrtl-ieee-tests: New file.
25805         * tests/test-sqrtl-ieee.c: New file.
25807         New module 'sqrtl-ieee'.
25808         * modules/sqrtl-ieee: New file.
25810         Tests for module 'sqrt-ieee'.
25811         * modules/sqrt-ieee-tests: New file.
25812         * tests/test-sqrt-ieee.c: New file.
25814         New module 'sqrt-ieee'.
25815         * modules/sqrt-ieee: New file.
25817         Tests for module 'sqrtf-ieee'.
25818         * modules/sqrtf-ieee-tests: New file.
25819         * tests/test-sqrtf-ieee.c: New file.
25820         * tests/test-sqrt-ieee.h: New file.
25822         New module 'sqrtf-ieee'.
25823         * modules/sqrtf-ieee: New file.
25825 2012-02-27  Bruno Haible  <bruno@clisp.org>
25827         remainderl-ieee: Work around test failure on OSF/1.
25828         * m4/remainderl-ieee.m4: New file.
25829         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
25830         present, test whether remainderl works with a zero second argument.
25831         Replace it if not.
25832         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
25833         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
25834         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
25835         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
25836         (Depends-on): Update conditions.
25837         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
25838         (Depends-on): Add remainder-ieee.
25839         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
25840         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
25841         module.
25843         remainderf-ieee: Work around test failure on OSF/1.
25844         * m4/remainderf-ieee.m4: New file.
25845         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
25846         present, test whether remainderf works with a zero second argument.
25847         Replace it if not.
25848         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
25849         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
25850         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
25851         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
25852         (Depends-on): Update conditions.
25853         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
25854         (Depends-on): Add remainder-ieee.
25855         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
25856         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
25857         module.
25859         remainder-ieee: Work around test failure on OSF/1.
25860         * m4/remainder-ieee.m4: New file.
25861         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
25862         present, test whether remainder works with a zero second argument.
25863         Replace it if not.
25864         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
25865         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
25866         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
25867         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
25868         (Depends-on): Update dependencies.
25869         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
25870         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
25871         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
25873         Tests for module 'remainderl-ieee'.
25874         * modules/remainderl-ieee-tests: New file.
25875         * tests/test-remainderl-ieee.c: New file.
25877         New module 'remainderl-ieee'.
25878         * modules/remainderl-ieee: New file.
25880         Tests for module 'remainder-ieee'.
25881         * modules/remainder-ieee-tests: New file.
25882         * tests/test-remainder-ieee.c: New file.
25884         New module 'remainder-ieee'.
25885         * modules/remainder-ieee: New file.
25887         Tests for module 'remainderf-ieee'.
25888         * modules/remainderf-ieee-tests: New file.
25889         * tests/test-remainderf-ieee.c: New file.
25890         * tests/test-remainder-ieee.h: New file.
25892         New module 'remainderf-ieee'.
25893         * modules/remainderf-ieee: New file.
25895 2012-02-27  Bruno Haible  <bruno@clisp.org>
25897         modff, modfl: Fix configure syntax error.
25898         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
25899         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
25901 2012-02-27  Bruno Haible  <bruno@clisp.org>
25903         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
25904         * m4/fmodl-ieee.m4: New file.
25905         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
25906         whether fmodl works with zero arguments. Replace it if not.
25907         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
25908         (Depends-on): Add fmod-ieee.
25909         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
25910         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
25912         fmodf-ieee: Work around test failure on OSF/1.
25913         * m4/fmodf-ieee.m4: New file.
25914         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
25915         whether fmodf works with zero arguments. Replace it if not.
25916         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
25917         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
25918         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
25919         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
25920         (Depends-on): Update dependencies.
25921         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
25922         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
25923         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
25925         fmodf-ieee: Work around test failure on MSVC 9.
25926         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
25927         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
25929         fmod-ieee: Work around test failures on OSF/1, mingw.
25930         * m4/fmod-ieee.m4: New file.
25931         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
25932         whether fmod works with zero arguments. Replace it if not.
25933         * lib/math.in.h (fmod): New declaration.
25934         * lib/fmod.c: New file.
25935         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
25936         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
25937         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
25938         * modules/fmod (Files): Add lib/fmod.c.
25939         (Depends-on): Add math, isinf, trunc, fma.
25940         (configure.ac): Arrange to compile lib/fmod.c if needed.
25941         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
25942         m4/signbit.m4.
25943         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
25944         * tests/test-math-c++.cc: Check the declaration of fmod.
25945         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
25947         fmodl-ieee: Fix test failures.
25948         * lib/fmodl.c (fmodl): Treat Inf specially.
25949         * modules/fmodl (Depends-on): Add isinf.
25951         Tests for module 'fmodl-ieee'.
25952         * modules/fmodl-ieee-tests: New file.
25953         * tests/test-fmodl-ieee.c: New file.
25955         New module 'fmodl-ieee'.
25956         * modules/fmodl-ieee: New file.
25958         Tests for module 'fmod-ieee'.
25959         * modules/fmod-ieee-tests: New file.
25960         * tests/test-fmod-ieee.c: New file.
25962         New module 'fmod-ieee'.
25963         * modules/fmod-ieee: New file.
25965         Tests for module 'fmodf-ieee'.
25966         * modules/fmodf-ieee-tests: New file.
25967         * tests/test-fmodf-ieee.c: New file.
25968         * tests/test-fmod-ieee.h: New file.
25970         New module 'fmodf-ieee'.
25971         * modules/fmodf-ieee: New file.
25973 2012-02-27  Bruno Haible  <bruno@clisp.org>
25975         Tests for module 'rintl-ieee'.
25976         * modules/rintl-ieee-tests: New file.
25977         * tests/test-rintl-ieee.c: New file.
25979         New module 'rintl-ieee'.
25980         * modules/rintl-ieee: New file.
25982         Tests for module 'rint-ieee'.
25983         * modules/rint-ieee-tests: New file.
25984         * tests/test-rint-ieee.c: New file.
25986         New module 'rint-ieee'.
25987         * modules/rint-ieee: New file.
25989         Tests for module 'rintf-ieee'.
25990         * modules/rintf-ieee-tests: New file.
25991         * tests/test-rintf-ieee.c: New file.
25992         * tests/test-rint-ieee.h: New file.
25994         New module 'rintf-ieee'.
25995         * modules/rintf-ieee: New file.
25997 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
25999         regex: re_search etc. should return -2 when memory exhausted
26000         This bug was uncovered when testing 'grep'.  Without the fix,
26001         re_search and friends return -1 when memory is exhausted, but -1
26002         means no match, and this causes grep to falsely report no-match
26003         instead of memory-exhaustion.  See
26004         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
26005         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
26006         trouble; this can occur if re_search_internal ran out of memory.
26008 2012-02-26  Bruno Haible  <bruno@clisp.org>
26010         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
26011         * m4/modfl-ieee.m4: New file.
26012         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
26013         whether modfl works with Inf. Replace it if not.
26014         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
26015         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
26016         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
26017         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
26018         (Depends-on): Update dependencies.
26019         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
26020         m4/signbit.m4.
26021         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
26022         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
26024         modfl-ieee: Fix dependencies.
26025         * modules/modfl-ieee (Depends-on): Add modf-ieee.
26027         modfl-ieee: Fix test failures.
26028         * lib/modfl.c (modfl): Treat NaN and Inf specially.
26029         * modules/modfl (Depends-on): Add isfinite, isinf.
26031         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
26032         * m4/modff-ieee.m4: New file.
26033         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
26034         whether modff works with NaN and Inf. Replace it if not.
26035         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
26036         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
26037         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
26038         * modules/modff (configure.ac): Consider REPLACE_MODFF.
26039         (Depends-on): Update dependencies.
26040         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
26041         m4/signbit.m4.
26042         (Depends-on): Add modf-ieee.
26043         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
26044         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
26046         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
26047         * m4/modf-ieee.m4: New file.
26048         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
26049         whether modf works with NaN and Inf. Replace it if not.
26050         * lib/math.in.h (modf): New declaration.
26051         * lib/modf.c: New file.
26052         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
26053         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
26054         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
26055         * modules/modf (Files): Add lib/modf.c.
26056         (Depends-on): Add math, isfinite, trunc, isinf.
26057         (configure.ac): Addrange to compile lib/modf.c if needed.
26058         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
26059         m4/signbit.m4.
26060         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
26061         * tests/test-math-c++.cc: Check the declaration of modf.
26062         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
26064         Tests for module 'modfl-ieee'.
26065         * modules/modfl-ieee-tests: New file.
26066         * tests/test-modfl-ieee.c: New file.
26068         New module 'modfl-ieee'.
26069         * modules/modfl-ieee: New file.
26071         Tests for module 'modf-ieee'.
26072         * modules/modf-ieee-tests: New file.
26073         * tests/test-modf-ieee.c: New file.
26075         New module 'modf-ieee'.
26076         * modules/modf-ieee: New file.
26078         Tests for module 'modff-ieee'.
26079         * modules/modff-ieee-tests: New file.
26080         * tests/test-modff-ieee.c: New file.
26081         * tests/test-modf-ieee.h: New file.
26083         New module 'modff-ieee'.
26084         * modules/modff-ieee: New file.
26086 2012-02-26  Bruno Haible  <bruno@clisp.org>
26088         Tests for module 'fabsl-ieee'.
26089         * modules/fabsl-ieee-tests: New file.
26090         * tests/test-fabsl-ieee.c: New file.
26092         New module 'fabsl-ieee'.
26093         * modules/fabsl-ieee: New file.
26095         Tests for module 'fabs-ieee'.
26096         * modules/fabs-ieee-tests: New file.
26097         * tests/test-fabs-ieee.c: New file.
26099         New module 'fabs-ieee'.
26100         * modules/fabs-ieee: New file.
26102         Tests for module 'fabsf-ieee'.
26103         * modules/fabsf-ieee-tests: New file.
26104         * tests/test-fabsf-ieee.c: New file.
26105         * tests/test-fabs-ieee.h: New file.
26107         New module 'fabsf-ieee'.
26108         * modules/fabsf-ieee: New file.
26110 2012-02-26  Bruno Haible  <bruno@clisp.org>
26112         Tests for module 'fmal-ieee'.
26113         * modules/fmal-ieee-tests: New file.
26114         * tests/test-fmal-ieee.c: New file.
26116         New module 'fmal-ieee'.
26117         * modules/fmal-ieee: New file.
26119         Tests for module 'fma-ieee'.
26120         * modules/fma-ieee-tests: New file.
26121         * tests/test-fma-ieee.c: New file.
26123         New module 'fma-ieee'.
26124         * modules/fma-ieee: New file.
26126         Tests for module 'fmaf-ieee'.
26127         * modules/fmaf-ieee-tests: New file.
26128         * tests/test-fmaf-ieee.c: New file.
26129         * tests/test-fma-ieee.h: New file.
26131         New module 'fmaf-ieee'.
26132         * modules/fmaf-ieee: New file.
26134 2012-02-26  Bruno Haible  <bruno@clisp.org>
26136         Tests for module 'ldexpl-ieee'.
26137         * modules/ldexpl-ieee-tests: New file.
26138         * tests/test-ldexpl-ieee.c: New file.
26140         New module 'ldexpl-ieee'.
26141         * modules/ldexpl-ieee: New file.
26143         Tests for module 'ldexp-ieee'.
26144         * modules/ldexp-ieee-tests: New file.
26145         * tests/test-ldexp-ieee.c: New file.
26147         New module 'ldexp-ieee'.
26148         * modules/ldexp-ieee: New file.
26150         Tests for module 'ldexpf-ieee'.
26151         * modules/ldexpf-ieee-tests: New file.
26152         * tests/test-ldexpf-ieee.c: New file.
26153         * tests/test-ldexp-ieee.h: New file.
26155         New module 'ldexpf-ieee'.
26156         * modules/ldexpf-ieee: New file.
26158 2012-02-26  Bruno Haible  <bruno@clisp.org>
26160         Refactor frexp*-ieee tests.
26161         * tests/test-frexp-ieee.h: New file.
26162         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
26163         (main): Just call test_function.
26164         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
26165         (main): Just call test_function.
26166         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
26167         (main): Just call test_function.
26168         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
26169         * modules/frexp-ieee-tests (Files): Likewise.
26170         * modules/frexpl-ieee-tests (Files): Likewise.
26172         Tests for module 'frexpl-ieee'.
26173         * modules/frexpl-ieee-tests: New file.
26174         * tests/test-frexpl-ieee.c: New file.
26176         New module 'frexpl-ieee'.
26177         * modules/frexpl-ieee: New file.
26179         Tests for module 'frexp-ieee'.
26180         * modules/frexp-ieee-tests: New file.
26181         * tests/test-frexp-ieee.c: New file.
26183         New module 'frexp-ieee'.
26184         * modules/frexp-ieee: New file.
26186         Tests for module 'frexpf-ieee'.
26187         * modules/frexpf-ieee-tests: New file.
26188         * tests/test-frexpf-ieee.c: New file.
26190         New module 'frexpf-ieee'.
26191         * modules/frexpf-ieee: New file.
26193 2012-02-26  Bruno Haible  <bruno@clisp.org>
26195         roundl-ieee tests: More tests.
26196         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
26197         (main): Add tests for [MX] shaded specification in POSIX.
26198         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26199         (Depends-on): Add isnanl-nolibm.
26201         round-ieee tests: More tests.
26202         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
26203         (main): Add tests for [MX] shaded specification in POSIX.
26204         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26205         (Depends-on): Add isnand-nolibm.
26207         roundf-ieee tests: More tests.
26208         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
26209         (main): Add tests for [MX] shaded specification in POSIX.
26210         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26211         (Depends-on): Add isnanf-nolibm.
26213         truncl-ieee tests: More tests.
26214         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
26215         (main): Add tests for [MX] shaded specification in POSIX.
26216         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26217         (Depends-on): Add isnanl-nolibm.
26219         trunc-ieee tests: More tests.
26220         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
26221         (main): Add tests for [MX] shaded specification in POSIX.
26222         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26223         (Depends-on): Add isnand-nolibm.
26225         truncf-ieee tests: More tests.
26226         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
26227         (main): Add tests for [MX] shaded specification in POSIX.
26228         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26229         (Depends-on): Add isnanf-nolibm.
26231         ceill-ieee tests: More tests.
26232         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
26233         (main): Add tests for [MX] shaded specification in POSIX.
26234         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26235         (Depends-on): Add isnanl-nolibm.
26237         ceil-ieee tests: More tests.
26238         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
26239         (main): Add tests for [MX] shaded specification in POSIX.
26240         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26241         (Depends-on): Add isnand-nolibm.
26243         ceilf-ieee tests: More tests.
26244         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
26245         (main): Add tests for [MX] shaded specification in POSIX.
26246         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26247         (Depends-on): Add isnanf-nolibm.
26249         floorl-ieee tests: More tests.
26250         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
26251         (main): Add tests for [MX] shaded specification in POSIX.
26252         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26253         (Depends-on): Add isnanl-nolibm.
26255         floor-ieee tests: More tests.
26256         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
26257         (main): Add tests for [MX] shaded specification in POSIX.
26258         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26259         (Depends-on): Add isnand-nolibm.
26261         floorf-ieee tests: More tests.
26262         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
26263         (main): Add tests for [MX] shaded specification in POSIX.
26264         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26265         (Depends-on): Add isnanf-nolibm.
26267 2012-02-26  Bruno Haible  <bruno@clisp.org>
26269         fpieee: More comments.
26270         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
26272 2012-02-25  Bruno Haible  <bruno@clisp.org>
26274         Tests for module 'log10l'.
26275         * modules/log10l-tests: New file.
26276         * tests/test-log10l.c: New file.
26277         * tests/test-math-c++.cc: Check the declaration of log10l.
26279         New module 'log10l'.
26280         * lib/math.in.h (log10l): New declaration.
26281         * lib/log10l.c: New file.
26282         * m4/log10l.m4: New file.
26283         * modules/log10l: New file.
26284         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
26285         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
26286         HAVE_DECL_LOG10L.
26287         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
26288         HAVE_DECL_LOG10L.
26289         * doc/posix-functions/log10l.texi: Mention the new module.
26291 2012-02-25  Bruno Haible  <bruno@clisp.org>
26293         fmodl, remainder*: Avoid wrong results due to rounding errors.
26294         * lib/fmodl.c (fmodl): Correct the result if it is not within the
26295         expected bounds.
26296         * lib/remainderf.c (remainderf): Likewise.
26297         * lib/remainder.c (remainder): Likewise.
26298         * lib/remainderl.c (remainderl): Likewise.
26300 2012-02-25  Bruno Haible  <bruno@clisp.org>
26302         Tests for module 'remainderl'.
26303         * modules/remainderl-tests: New file.
26304         * tests/test-remainderl.c: New file.
26305         * tests/test-math-c++.cc: Check the declaration of remainderl.
26307         New module 'remainderl'.
26308         * lib/math.in.h (remainderl): New declaration.
26309         * lib/remainderl.c: New file.
26310         * m4/remainderl.m4: New file.
26311         * modules/remainderl: New file.
26312         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
26313         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
26314         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
26315         HAVE_REMAINDERL.
26316         * doc/posix-functions/remainderl.texi: Mention the new module.
26318 2012-02-25  Bruno Haible  <bruno@clisp.org>
26320         Tests for module 'remainderf'.
26321         * modules/remainderf-tests: New file.
26322         * tests/test-remainderf.c: New file.
26323         * tests/test-math-c++.cc: Check the declaration of remainderf.
26325         New module 'remainderf'.
26326         * lib/math.in.h (remainderf): New declaration.
26327         * lib/remainderf.c: New file.
26328         * m4/remainderf.m4: New file.
26329         * modules/remainderf: New file.
26330         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
26331         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
26332         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
26333         HAVE_REMAINDERF.
26334         * doc/posix-functions/remainderf.texi: Mention the new module.
26336 2012-02-25  Bruno Haible  <bruno@clisp.org>
26338         remainder: Support for MSVC.
26339         * lib/math.in.h (remainder): New declaration.
26340         * lib/remainder.c: New file.
26341         * m4/remainder.m4: New file.
26342         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
26343         (Depends-on): Add math, round, fma.
26344         (configure.ac): Use results of gl_FUNC_REMAINDER.
26345         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
26346         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
26347         HAVE_DECL_REMAINDER.
26348         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
26349         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
26350         * tests/test-math-c++.cc: Check the declaration of remainder.
26351         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
26352         problems are fixed.
26354 2012-02-25  Bruno Haible  <bruno@clisp.org>
26356         Tests for module 'fmodl'.
26357         * modules/fmodl-tests: New file.
26358         * tests/test-fmodl.c: New file.
26359         * tests/test-math-c++.cc: Check the declaration of fmodl.
26361         New module 'fmodl'.
26362         * lib/math.in.h (fmodl): New declaration.
26363         * lib/fmodl.c: New file.
26364         * m4/fmodl.m4: New file.
26365         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
26366         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
26367         REPLACE_FMODL.
26368         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
26369         REPLACE_FMODL.
26370         * modules/fmodl: New file.
26371         * doc/posix-functions/fmodl.texi: Mention the new module.
26373 2012-02-25  Bruno Haible  <bruno@clisp.org>
26375         Tests for module 'modfl'.
26376         * modules/modfl-tests: New file.
26377         * tests/test-modfl.c: New file.
26378         * tests/test-math-c++.cc: Check the declaration of modfl.
26380         New module 'modfl'.
26381         * lib/math.in.h (modfl): New declaration.
26382         * lib/modfl.c: New file.
26383         * m4/modfl.m4: New file.
26384         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
26385         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
26386         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
26387         * modules/modfl: New file.
26388         * doc/posix-functions/modfl.texi: Mention the new module.
26390 2012-02-25  Bruno Haible  <bruno@clisp.org>
26392         Tests for module 'fabsl'.
26393         * modules/fabsl-tests: New file.
26394         * tests/test-fabsl.c: New file.
26395         * tests/test-math-c++.cc: Check the declaration of fabsl.
26397         New module 'fabsl'.
26398         * lib/math.in.h (fabsl): New declaration.
26399         * lib/fabsl.c: New file.
26400         * m4/fabsl.m4: New file.
26401         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
26402         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
26403         REPLACE_FABSL.
26404         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
26405         REPLACE_FABSL.
26406         * modules/fabsl: New file.
26407         * doc/posix-functions/fabsl.texi: Mention the new module.
26409 2012-02-25  Bruno Haible  <bruno@clisp.org>
26411         fabs tests: More tests.
26412         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
26413         (zero): New variable.
26414         (main): Add tests for signed zero.
26415         * modules/fabs-tests (Files): Add tests/minus-zero.h.
26417         fabsf tests: More tests.
26418         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
26419         (zero): New variable.
26420         (main): Add tests for signed zero.
26421         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
26423 2012-02-24  Bruno Haible  <bruno@clisp.org>
26425         atanl: Provide function definition on MSVC.
26426         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
26427         function pointer.
26428         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
26430 2012-02-24  Bruno Haible  <bruno@clisp.org>
26432         acosl: Provide function definition on MSVC.
26433         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
26434         function pointer.
26435         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
26437 2012-02-24  Bruno Haible  <bruno@clisp.org>
26439         asinl: Provide function definition on MSVC.
26440         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
26441         function pointer.
26442         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
26444 2012-02-24  Bruno Haible  <bruno@clisp.org>
26446         tanl: Provide function definition on MSVC.
26447         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
26448         function pointer.
26449         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
26451 2012-02-24  Bruno Haible  <bruno@clisp.org>
26453         cosl: Provide function definition on MSVC.
26454         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
26455         function pointer.
26456         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
26458 2012-02-24  Bruno Haible  <bruno@clisp.org>
26460         sinl: Provide function definition on MSVC.
26461         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
26462         function pointer.
26463         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
26465 2012-02-24  Bruno Haible  <bruno@clisp.org>
26467         logl: Provide function definition on MSVC.
26468         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
26469         function pointer.
26470         * lib/math.in.h (logl): Undefine if it does not exist as a function.
26472 2012-02-24  Bruno Haible  <bruno@clisp.org>
26474         expl: Provide function definition on MSVC.
26475         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
26476         function pointer.
26477         * lib/math.in.h (expl): Undefine if it does not exist as a function.
26479 2012-02-24  Bruno Haible  <bruno@clisp.org>
26481         sqrtl: Provide function definition on MSVC.
26482         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
26483         a function pointer.
26484         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
26486 2012-02-24  Bruno Haible  <bruno@clisp.org>
26488         ceill: Provide function definition on MSVC.
26489         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
26490         used as a function pointer.
26491         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
26493 2012-02-24  Bruno Haible  <bruno@clisp.org>
26495         floorl: Provide function definition on MSVC.
26496         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
26497         used as a function pointer.
26498         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
26500 2012-02-24  Bruno Haible  <bruno@clisp.org>
26502         ceilf: Provide function definition on MSVC.
26503         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
26504         used as a function pointer.
26505         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
26507 2012-02-24  Bruno Haible  <bruno@clisp.org>
26509         floorf: Provide function definition on MSVC.
26510         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
26511         used as a function pointer.
26512         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
26514 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
26516         stdnoreturn: new module
26517         This implements a replacement for C11's <stdnoreturn.h>.
26518         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
26519         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
26520         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
26521         * tests/test-stdnoreturn.c: New files.
26523 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
26525         regex: fix false multibyte matches in some regular expressions
26526         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
26527         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
26528         * lib/regex_internal.c (re_string_skip_chars):
26529         Fix miscomputation of remain_len that may cause incomplete
26530         multi-byte character and false match.
26532 2012-02-24  Jim Meyering  <meyering@redhat.com>
26534         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
26535         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
26536         uses with "==" *before* the call, e.g., 0 == strcmp (...)
26537         Remove now-unnecessary str''cmp obfuscation.
26538         Suggested by Akim Demaille.
26540 2012-02-24  Bruno Haible  <bruno@clisp.org>
26542         streq: Rename macro.
26543         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
26544         * NEWS: Mention the change.
26545         * lib/mbrtowc.c (mbrtowc): Update.
26546         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
26547         * lib/wcwidth.c (wcwidth): Update.
26548         Suggested by Akim Demaille and Jim Meyering.
26550 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
26552         regex: fix typo in definition of MIN
26553         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
26554         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
26556 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
26557             Bruno Haible  <bruno@clisp.org>
26559         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
26560         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
26561         entries into a stack-allocated buffer directly.
26562         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
26564 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
26565             Bruno Haible  <bruno@clisp.org>
26567         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
26569          - There were several instances of this pattern:
26571              for (;;) {
26572                n = acl (f, GETACLCNT, 0, NULL);
26573                [ allocate an array A of size N ]
26574                if (acl (f, GETACL, n, a) == n)
26575                  break;
26576              }
26578            This loop might never terminate if some other process is constantly
26579            manipulating the file's ACL.  The loop should be rewritten to
26580            terminate.
26582          - The acl (... GETACLNT ...) call is merely an optimization; its value
26583            is merely a hint as to how big to make the array.  A better
26584            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
26585            and just guess a reasonably-big size, growing the size and trying
26586            again if it's not large enough.  This guarantees termination, and
26587            saves a system call.
26589         * lib/acl-internal.h: Include <limits.h>.
26590         (MIN, SIZE_MAX): New macros.
26591         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
26592         a stack-allocated buffer, and use malloc if it does not fit. Don't
26593         use GETACLCNT.
26594         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
26596 2012-02-19  Bruno Haible  <bruno@clisp.org>
26598         acl: Fix endless loop on Solaris with vxfs.
26599         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
26600         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
26601         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
26602         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
26603         * tests/test-sameacls.c (main)[Solaris]: Likewise.
26604         Reported by Bill Jones in
26605         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
26607 2012-02-19  Bruno Haible  <bruno@clisp.org>
26609         acl: Fix copy-acl test failure on Solaris 11.0.
26610         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
26611         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
26612         that this function returns 0 in some more cases.
26614 2012-02-19  Bruno Haible  <bruno@clisp.org>
26616         acl: Update doc references.
26617         * doc/acl-resources.txt: Update links to Solaris documentation.
26619 2012-02-19  Bruno Haible  <bruno@clisp.org>
26621         Fix test failure in many locales on Solaris 11.
26622         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
26623         'tr' arguments.
26624         * tests/test-pipe-filter-ii1.c (main): Likewise.
26625         * build-aux/bootstrap (check_versions): Run 'tr' command with range
26626         expressions in the C locale.
26627         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
26628         * m4/host-os.m4 (gl_HOST_OS): Likewise.
26630 2012-02-19  Bruno Haible  <bruno@clisp.org>
26632         gnulib-tool: Improve usage message.
26633         * gnulib-tool (func_usage): Move doc of --help and --version to the
26634         section "Operation modes".
26636 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
26638         README-release: make it easier to execute commands
26639         * top/README-release: break commands out on to separate lines.
26641 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
26643         GNUmakefile: simplify detection of unconfigured trees
26644         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
26645         whether the tree make is being run from is already configured or
26646         not.  Related simplifications.
26648 2012-02-13  Simon Josefsson  <simon@josefsson.org>
26650         * gnulib-tool (func_usage): Document --help and --version.
26652 2012-02-11  Jim Meyering  <meyering@redhat.com>
26654         bootstrap: don't exit 0 upon gnulib-tool failure
26655         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
26656         its exit status, not 0.
26658 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
26660         README-release: various improvements
26661         * top/README-release: Give a command to push changes for the
26662         release.  Add "distcheck" to list of other pre-release checks.
26663         Fix instance of "make stable" which should be "make TYPE".
26665 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
26667         maint: replace FSF snail-mail addresses with URLs
26668         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
26669         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
26670         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
26671         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
26672         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
26673         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
26674         * lib/check-version.c, lib/check-version.h, lib/config.charset:
26675         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
26676         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
26677         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
26678         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
26679         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
26680         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
26681         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
26682         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
26683         * lib/glthread/thread.c, lib/glthread/thread.h:
26684         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
26685         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
26686         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
26687         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
26688         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
26689         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
26690         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
26691         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
26692         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
26693         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
26694         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
26695         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
26696         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
26697         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
26698         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
26699         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
26700         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
26701         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
26702         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
26703         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
26704         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
26705         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
26706         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
26707         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
26708         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
26709         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
26710         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
26711         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
26712         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
26713         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
26714         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
26715         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
26716         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
26717         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
26718         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
26719         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
26720         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
26721         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
26722         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
26723         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
26724         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
26725         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
26726         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
26727         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
26728         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
26729         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
26730         * tests/test-poll.c, tests/test-quotearg-simple.c:
26731         * tests/test-quotearg.c, tests/test-quotearg.h:
26732         * tests/test-round-ieee.c, tests/test-round1.c:
26733         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
26734         * tests/test-roundl-ieee.c, tests/test-roundl.c:
26735         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
26736         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
26737         * tests/test-strerror.c, tests/test-strerror_r.c:
26738         * tests/test-strsignal.c, tests/test-strverscmp.c:
26739         * tests/test-xmemdup0.c:
26740         Replace FSF snail mail addresses with URLs, as per GNU coding
26741         standards.  See glibc bug
26742         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
26744 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
26746         README-release: capitalize a word and split a line
26747         * top/README-release: Fix punctuation and spacing.
26749 2012-02-08  Akim Demaille  <demaille@gostai.com>
26751         fatal-signal: use C prototypes (with explicit void).
26752         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
26753         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
26755 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
26757         regex: spelling fix
26758         * lib/regexec.c: spelling fix
26760         regex: rely on stdint.h for SIZE_MAX
26761         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
26763 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
26765         regex: merge glibc changes
26767         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
26768         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
26769         (init_word_char): Work even if bitset words are not exactly 32 or
26770         64 bits wide.  Don't assume there are no padding bits.
26771         * lib/regex.c [_LIBC]: Do not include <config.h>.
26772         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
26773         and -Wtype-limits.
26774         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
26775         needless disagreement with glibc.  All uses changed.  Define it to
26776         1 only if _GNU_SOURCE, to match glibc.
26777         (_REG_RM_NAME): Remove; no longer needed, since the names in
26778         question are now all protected by __USE_GNU.
26779         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
26780         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
26781         * lib/regex_internal.h (MIN): New macro.
26783         2012-01-03 Ulrich Drepper <drepper@gmail.com>
26784         * lib/regcomp.c (init_word_char): Optimize regex a bit.
26786         2011-12-30 Jakub Jelinek <jakub@redhat.com>
26787         * lib/regex_internal.c (re_string_fetch_byte_case):
26788         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
26789         is miscompiled, and it turns out it is because of an incorrect
26790         attribute on re_string_fetch_byte_case.  Unlike
26791         re_string_peek_byte_case, this one is really not pure, it modifies
26792         memory (increments pstr->cur_idx), and with the pure attribute GCC
26793         assumed it doesn't and it cached the presumed value of
26794         regexp->cur_idx in a variable across the
26795          for (;; ++i)
26796            {
26797              if (i >= BRACKET_NAME_BUF_SIZE)
26798                return REG_EBRACK;
26799              if (token->type == OP_OPEN_CHAR_CLASS)
26800                ch = re_string_fetch_byte_case (regexp);
26801              else
26802                ch = re_string_fetch_byte (regexp);
26803              if (re_string_eoi(regexp))
26804                return REG_EBRACK;
26805              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
26806                break;
26807              elem->opr.name[i] = ch;
26808            }
26810         2011-11-29 Andreas Schwab <schwab@redhat.com>
26811         * lib/regcomp.c (build_equiv_class):
26812         Fix access after end of search string in regex matcher.
26814         2011-11-12 Ulrich Drepper <drepper@redhat.com>
26815         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
26817         2011-10-12 Ulrich Drepper <drepper@redhat.com>
26818         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
26820         2011-10-11 Ulrich Drepper <drepper@redhat.com>
26821         * lib/regcomp.c (parse_branch, parse_sub_exp):
26822         More regex memory leak fixes and tests.
26823         (parse_sub_exp, parse_bracket_exp):
26824         Fix memory leak for some invalid regular expressions.
26826         2011-05-28 Ulrich Drepper <drepper@gmail.com>
26827         * lib/regex_internal.c, lib/regexec.c:
26828         Fix unnecessary overallocation due to incomplete character.  When
26829         incomplete characters are found at the end of a string the code
26830         ran amok and allocated lots of memory.  Stricter limits are now in
26831         place.
26833         2011-05-20 Reuben Thomas <rrt@sc3d.org>
26834         * lib/regex.h: Update documentation.
26836         2011-05-16 Aharon Robbins <arnold@skeeve.com>
26837         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
26839         2010-05-05 Andreas Schwab <schwab@redhat.com>
26840         * lib/regexec.c (find_collation_sequence_value):
26841         Fix lookup of collation sequence value during regexp matching.
26843         2010-01-22 Ulrich Drepper <drepper@redhat.com>
26844         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
26846         2008-01-16 Ulrich Drepper <drepper@redhat.com>
26847         * lib/regex.h: Cleanup namespace.
26849         2007-11-26 Ulrich Drepper <drepper@redhat.com>
26850         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
26852         2007-08-26 Ulrich Drepper <drepper@redhat.com>
26853         * lib/regex_internal.h: Prevent some declarations and definitions
26854         to be seen when used in tests.
26856         2005-05-06 Ulrich Drepper <drepper@redhat.com>
26857         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
26858         __libc_lock_* macros if not _LIBC.
26859         (struct re_dfa_t): Add lock.
26861 2012-02-07  Eric Blake  <eblake@redhat.com>
26863         maint.mk: also prohibit lower-case @var@
26864         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
26865         lower case, like @top_srcdir@.
26867 2012-02-04  Eric Blake  <eblake@redhat.com>
26869         canonicalize: avoid uninitialized memory use
26870         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
26871         random '/' left in dest.
26872         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
26874 2012-02-04  Bruno Haible  <bruno@clisp.org>
26876         isatty: Fix test failure of ptsname_r on native Windows.
26877         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
26878         and don't set errno.
26879         (isatty): Test first whether fd is valid. Set errno when returning 0.
26881 2012-02-04  Bruno Haible  <bruno@clisp.org>
26883         spawn-pipe tests: Fix a NULL program name in a diagnostic.
26884         * tests/test-spawn-pipe-main.c: Include progname.h.
26885         (main): Invoke set_program_name.
26886         * modules/spawn-pipe-tests (Depends-on): Add progname.
26888         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
26889         * tests/test-nonblocking-socket-main.c: Include progname.h.
26890         (main): Invoke set_program_name.
26891         * modules/nonblocking-socket-tests (Depends-on): Add progname.
26893         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
26894         * tests/test-nonblocking-pipe-main.c: Include progname.h.
26895         (main): Invoke set_program_name.
26896         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
26898 2012-02-04  Eric Blake  <eblake@redhat.com>
26900         canonicalize-lgpl: fix // handling
26901         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
26903         canonicalize: fix // handling
26904         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
26905         /// to //, since only // is special.
26907 2012-02-04  Bruno Haible  <bruno@clisp.org>
26909         ioctl: Fix test failure on native Windows.
26910         * lib/ioctl.c: Include msvc-nothrow.h.
26911         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
26913 2012-02-04  Bruno Haible  <bruno@clisp.org>
26915         fsync: Avoid test failure on native Windows.
26916         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
26917         read-only.
26919 2012-02-04  Bruno Haible  <bruno@clisp.org>
26921         sys_select: Avoid syntax error on OpenBSD 5.0.
26922         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
26923         currently being included, just include the system's <sys/select.h>.
26925 2012-02-04  Bruno Haible  <bruno@clisp.org>
26927         sys_select: Avoid syntax error on OpenBSD 5.0.
26928         * lib/sys_select.in.h: Include <signal.h> only after the include_next
26929         <sys/select.h>, not before.
26930         Reported by Jiri B <jirib@devio.us>.
26932 2012-02-04  Bruno Haible  <bruno@clisp.org>
26934         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
26935         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
26936         global variables.
26937         * tests/test-get-rusage-data.c (main): Likewise.
26938         Reported by Jim Meyering.
26940 2012-02-04  Bruno Haible  <bruno@clisp.org>
26942         stdioext: Fix last commit.
26943         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
26945 2012-02-03  Bruno Haible  <bruno@clisp.org>
26947         stdioext: Add tentative support for Plan9.
26948         * lib/stdio-impl.h: Include <errno.h>.
26949         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
26950         * lib/freadable.c (freadable): Likewise.
26951         * lib/fwritable.c (fwritable): Likewise.
26952         * lib/fbufmode.c (fbufmode): Likewise.
26953         * lib/freading.c (freading): Likewise.
26954         * lib/fwriting.c (fwriting): Likewise.
26955         * lib/freadptr.c (freadptr): Likewise.
26956         * lib/freadseek.c (freadptrinc): Likewise.
26957         * lib/freadahead.c (freadahead): Likewise.
26958         * lib/fpurge.c (fpurge): Likewise.
26959         * lib/fseeko.c (rpl_fseeko): Likewise.
26960         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
26961         Reported by Jens Staal <staal1978@gmail.com>.
26963 2012-02-02  Jim Meyering  <meyering@redhat.com>
26965         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
26966         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
26967         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
26968         not even to try to add the attribute.  Instead, add a pragma to suppress
26969         the suggestion/warning.
26971 2012-01-31  Karl Berry  <karl@gnu.org>
26973         setstate doc: typo.
26974         * doc/posix-functions/setstate.texi (setstate): { not (.
26976 2012-01-31  Bruno Haible  <bruno@clisp.org>
26978         popen: Make more robust on Windows.
26979         * lib/popen.c: On native Windows, use the _popen based code even if
26980         HAVE_POPEN is set.
26981         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
26982         environment variable on native Windows.
26984 2012-01-30  Bruno Haible  <bruno@clisp.org>
26986         pclose: Fix typo.
26987         * lib/stdio.in.h (pclose): Fix typo in warning message.
26989 2012-01-30  Bruno Haible  <bruno@clisp.org>
26991         doc about getlogin_r, setstate.
26992         * doc/posix-functions/getlogin_r.texi: List the incompatible
26993         declaration problem under "not fixed by gnulib".
26994         * doc/posix-functions/setstate.texi: Mention incompatible declaration
26995         problem on Solaris 11 and other platforms.
26997 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
26998             Bruno Haible  <bruno@clisp.org>
27000         poll tests: Make test more robust.
27001         * tests/test-poll.c: Include macros.h.
27002         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
27003         return value of various I/O operations.
27004         * modules/poll-tests (Files): Add tests/macros.h.
27006 2012-01-30  Bruno Haible  <bruno@clisp.org>
27008         sys_stat: Fix support for mingw64 and MSVC.
27009         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
27010         header files already do it.
27011         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
27012         stat itself.
27013         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
27015 2012-01-30  Bruno Haible  <bruno@clisp.org>
27017         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
27018         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
27019         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
27021 2012-01-29  Bruno Haible  <bruno@clisp.org>
27023         quotearg: Fix test failure on MacOS X 10.5.
27024         * tests/test-quotearg-simple.c: Include localcharset.h.
27025         (main): If the locale encoding is not ASCII, bypass the tests of
27026         locale_quoting_style and clocale_quoting_style.
27027         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
27029 2012-01-29  Jim Meyering  <meyering@redhat.com>
27031         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
27032         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
27033         detect uses of canonicalize_file_name.
27035 2012-01-28  Bruno Haible  <bruno@clisp.org>
27037         test-framework-sh: Fix test failure with AIX 7.1 diff.
27038         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
27039         in column 1, like 'diff -c' does.
27040         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
27041         whether 'diff -u' is used. Instead, test whether the output contains
27042         some '@' character.
27044 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
27046         strtoimax: eliminate need for stdint.h, inttypes.h checks
27047         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
27048         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
27049         the prerequisites for a recently-introduced strtoimax test.
27050         I guess this might cause strtoimax to be replaced when not
27051         strictly necessary on older hosts, but this shouldn't introduce
27052         any bugs and it should make Emacs 'configure' faster on typical
27053         modern hosts.  Problem discovered when importing the latest gnulib
27054         to an Emacs test version.
27055         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
27057 2012-01-28  Bruno Haible  <bruno@clisp.org>
27059         sys_time: Override 'struct timeval' on some native Windows platforms.
27060         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
27061         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
27062         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
27063         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
27064         needs to be overridden.
27065         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
27066         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
27067         * tests/test-sys_select.c: Check that the tv_sec member has the same
27068         size as a 'time_t'.
27069         * tests/test-sys_time.c: Likewise.
27070         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
27071         is set, set also REPLACE_GETTIMEOFDAY.
27072         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
27073         convert the resulting 'struct timeval' before returning.
27074         * lib/select.c: Include <sys/time.h>.
27075         (select, timeval): Undefine at the right place.
27076         * modules/select (Depends-on): Add sys_time.
27077         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
27078         some Windows platforms.
27079         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
27081 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
27083         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
27084         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
27085         an integer.
27086         * lib/fcntl.c (dupfd): Likewise.
27087         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
27089 2012-01-28  Bruno Haible  <bruno@clisp.org>
27091         fcntl: Avoid compilation error on native Windows.
27092         * modules/fcntl (Depends-on): Add 'close'.
27094 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
27096         select, poll, isatty: Avoid warnings on x86_64 mingw64.
27097         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
27098         pointer to an integer.
27099         * lib/poll.c (IsConsoleHandle): Likewise.
27100         * lib/isatty.c (IsConsoleHandle): Likewise.
27102 2012-01-28  Jim Meyering  <meyering@redhat.com>
27104         doc: clarify README-release
27105         * top/README-release: Clarify: you should make a point to have
27106         the latest stable versions of build tools in your PATH, and the
27107         reference to buildreq is solely for its list of tool names, not
27108         for its minimal-functional version numbers.
27109         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
27111         maint.mk: use more readable (yet functionally equivalent) quoting
27112         It is common to quote a single quote in a single quoted string like
27113         this:  '...'\''...'.  Unless you know the idiom, that looks like
27114         gibberish, so prefer to double-quote the string when possible.
27115         Then you can use a more readable, lone single quote: "...'..."
27116         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
27117         "don't" is more readable than the equivalent 'don'\''t'.
27118         (sc_cast_of_x_alloc_return_value): Likewise.
27119         (sc_cast_of_alloca_return_value): Likewise.
27120         (sc_makefile_path_separator_check): Similar: use ":" in '...',
27121         rather than '\'':'\''.
27123 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
27125         stdalign: relax _Alignof and tighten _Alignas test
27126         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
27127         as it was too strict: alignof must divide offsetof, but it need
27128         not equal offsetof.  Inspired by Joseph S. Myers's comment
27129         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
27130         Conversely, tighten the _Alignas test a bit, as the resulting
27131         alignment must be exactly 8.
27133 2012-01-27  Bruno Haible  <bruno@clisp.org>
27135         stdalign: Document the last change.
27136         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
27138 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
27140         stdalign: check that alignof and offsetof are consistent
27141         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
27142         Problem reported for gnulib by Richard W.M. Jones in
27143         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00340.html>.
27145 2012-01-27  Jim Meyering  <meyering@redhat.com>
27147         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
27148         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
27149         convert a sequence with gaps to the minimal containing range.
27150         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
27151         * tests/test-update-copyright.sh: Test for this.
27152         The FSF confirmed it is ok to do this, assuming there is at
27153         least one significant change per year in the affected range:
27154         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
27156 2012-01-26  Bruno Haible  <bruno@clisp.org>
27158         pipe2: refine doc about thread-safety
27159         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
27160         multithread-safety problem.
27161         * doc/glibc-functions/accept4.texi: Likewise.
27163 2012-01-26  Bruno Haible  <bruno@clisp.org>
27165         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
27166         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
27167         In the test program, include <fcntl.h>, for O_RDONLY.
27169 2012-01-26  Eric Blake  <eblake@redhat.com>
27171         pipe2: document lack of thread-safety in replacement
27172         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
27173         issue in replacement.
27174         * doc/glibc-functions/accept4.texi (accept4): Likewise.
27175         Based on a report by Eric Wong.
27177 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
27178             Bruno Haible  <bruno@clisp.org>
27180         malloca: Avoid warnings on x86_64 mingw64.
27181         * lib/malloca.c: Include <stdint.h>.
27182         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
27183         * modules/malloca (Depends-on): Add stdint.
27184         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
27186 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
27188         obstack: remove __STDC__ conditionals
27189         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
27190         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
27191         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
27192         m4/include_next.m4 as the only gnulib-maintained places that still
27193         refer to __STDC__.
27195 2012-01-24  Bruno Haible  <bruno@clisp.org>
27197         havelib: Modern quoting.
27198         * build-aux/config.rpath: Quote 'like this', not `like this', as per
27199         the recent change to the GNU coding standards.
27201 2012-01-24  Bruno Haible  <bruno@clisp.org>
27203         stdint: Improve support for Android.
27204         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
27205         Reported by Simon Josefsson <simon@josefsson.org>.
27207 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
27209         doc: omit trailing empty lines from INSTALL etc.
27210         * doc/Makefile (INSTALL): Omit trailing empty lines.
27211         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
27212         omit trailing empty lines.  This simplifies the build procedure.
27214 2012-01-23  Jim Meyering  <meyering@redhat.com>
27216         tests: avoid spurious warnings about gl_sockets_startup
27217         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
27218         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
27219         reporting a "statement with no effect".
27220         * tests/test-accept.c (main): Mark as "(void)".
27221         * tests/test-accept4.c (main): Likewise.
27222         * tests/test-bind.c (main): Likewise.
27223         * tests/test-connect.c (main): Likewise.
27224         * tests/test-getpeername.c (main): Likewise.
27225         * tests/test-getsockname.c (main): Likewise.
27226         * tests/test-getsockopt.c (main): Likewise.
27227         * tests/test-listen.c (main): Likewise.
27228         * tests/test-recv.c (main): Likewise.
27229         * tests/test-recvfrom.c (main): Likewise.
27230         * tests/test-send.c (main): Likewise.
27231         * tests/test-sendto.c (main): Likewise.
27232         * tests/test-setsockopt.c (main): Likewise.
27233         * tests/test-shutdown.c (main): Likewise.
27235 2012-01-21  Bruno Haible  <bruno@clisp.org>
27237         locale-fr.m4: Fix for Android.
27238         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
27239         failure of the test program on Bionic libc.
27241 2012-01-21  Jim Meyering  <meyering@redhat.com>
27243         bootstrap: fail when bootstrap_post_import_hook fails
27244         Otherwise, it's far too easy to miss diagnostics emitted
27245         between gnulib-tool's output and that of running configure.
27246         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
27248 2012-01-17  Jim Meyering  <meyering@redhat.com>
27250         maint: enable sc_trailing_blank
27251         * build-aux/pmccabe.css: Remove trailing blanks.
27252         * doc/acl-cygwin.txt: Likewise.
27253         * doc/gnu-oids.texi: Likewise
27254         * cfg.mk: Enable sc_trailing_blank.
27255         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
27257 2012-01-17  Jim Meyering  <meyering@redhat.com>
27259         maint: enable sc_prohibit_openat_without_use
27260         * cfg.mk: Enable sc_prohibit_openat_without_use.
27261         Exempt lib/selinux-at.c.
27263 2012-01-17  Jim Meyering  <meyering@redhat.com>
27265         maint: enable sc_prohibit_cloexec_without_use
27266         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
27267         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
27269 2012-01-17  Jim Meyering  <meyering@redhat.com>
27271         maint: enable sc_prohibit_intprops_without_use
27272         * cfg.mk: Enable sc_prohibit_intprops_without_use
27273         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
27275 2012-01-17  Jim Meyering  <meyering@redhat.com>
27277         maint: enable sc_prohibit_hash_pjw_without_use
27278         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
27279         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
27280         to match any use of \<hash_pjw\>, i.e., not necessarily with a
27281         following " (".
27283 2012-01-17  Jim Meyering  <meyering@redhat.com>
27285         maint: enable double-word-prohibiting rule
27286         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
27287         Exempt three files.
27289 2012-01-17  Jim Meyering  <meyering@redhat.com>
27291         maint: remove empty lines at EOF, but excluding modules/*
27292         Apply syntax rules at home as well as abroad.  Most changes
27293         were induced by running this:
27294           make srcdir=. _build-aux=build-aux -f top/maint.mk \
27295             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
27296             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
27297         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
27298         Exempt modules/* and two binary files.
27299         Also exempt doc/INSTALL*, per request from Bruno Haible.
27300         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
27301         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
27302         * doc/Copyright/request-assign.future: Likewise.
27303         * doc/Copyright/request-disclaim.changes: Likewise.
27304         * doc/INSTALL: Likewise.
27305         * doc/INSTALL.ISO: Likewise.
27306         * doc/INSTALL.UTF-8: Likewise.
27307         * doc/acl-cygwin.txt: Likewise.
27308         * doc/acl-resources.txt: Likewise.
27309         * doc/fdl-1.2.texi: Likewise.
27310         * doc/fdl-1.3.texi: Likewise.
27311         * doc/fdl.texi: Likewise.
27312         * lib/argp-pin.c: Likewise.
27313         * lib/round.c: Likewise.
27314         * lib/unicase/u16-totitle.c: Likewise.
27315         * lib/unictype/block_test.c: Likewise.
27316         * lib/uninorm/canonical-decomposition.c: Likewise.
27317         * m4/README: Likewise.
27318         * m4/relocatable-lib.m4: Likewise.
27319         * tests/test-isnand-nolibm.c: Likewise.
27320         * tests/test-isnand.c: Likewise.
27321         * tests/uninorm/NormalizationTest.txt: Likewise.
27323 2012-01-17  Jim Meyering  <meyering@redhat.com>
27325         maint: add framework to run syntax-check rules against gnulib sources
27326         * cfg.mk: New file, to disable all currently-failing tests.
27327         We'll enable them one by one, as they are made to pass.
27328         * Makefile (sc_maint): New rule.
27330 2012-01-21  Bruno Haible  <bruno@clisp.org>
27332         stdint: Add support for Android.
27333         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
27334         include the system's <stdint.h>.
27335         Reported by Simon Josefsson <simon@josefsson.org>.
27337 2012-01-19  Jim Meyering  <meyering@redhat.com>
27339         bootstrap: add bootstrap_post_import_hook
27340         Bison does still need something like the gnulib_mk_hook whose
27341         invocation I had to remove along with slurp in commit 767ccd40.
27342         Technically, we could get along without it, but doing so would
27343         have required living with a warning and a mandatory post-bootstrap
27344         automake rerun.
27345         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
27346         (bootstrap_post_import_hook): New function.
27347         Invoke it after gnulib-tool --import and before autoreconf.
27349 2012-01-18  Jim Meyering  <meyering@redhat.com>
27351         gitlog-to-changelog: don't use "no_"-prefixed variable name
27352         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
27353         to enable both --cluster and --no-cluster.  Change variable name,
27354         s/\$no_cluster/$cluster/, and reverse usage to match.
27356         gitlog-to-changelog: use "||", not "or" in expressions
27357         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
27358         expressions.
27360 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
27362         gitlog-to-changelog: new option --no-cluster
27363         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
27364         clustering of adjacent commit messages.
27366 2012-01-17  Jim Meyering  <meyering@redhat.com>
27368         maint: spell file systems with two words, not one
27369         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
27370         two words, not one.
27372 2012-01-16  Jim Meyering  <meyering@redhat.com>
27374         bootstrap: add a FIXME comment to ensure we eventually remove the hack
27375         * build-aux/bootstrap (gnulib_tool_options): Add comment.
27377 2012-01-16  Eric Blake  <eblake@redhat.com>
27379         bootstrap: cater to autoconf 2.59
27380         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
27381         is not available.
27383         bootstrap: properly check for libtool
27384         * build-aux/bootstrap (libtoolize): Also run libtool when older
27385         usage is detected.
27387 2012-01-15  Bruno Haible  <bruno@clisp.org>
27389         Improve support for MSVC 9.
27390         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
27391         clashes on MSVC.
27392         * lib/fcntl.in.h: Likewise.
27393         * lib/stdlib.in.h: Likewise.
27394         * lib/sys_stat.in.h: Likewise.
27396 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
27398         gnupload: we hold the master copy of this script now
27399         For motivation and more information, see:
27400         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00222.html>
27401         * build-aux/gnupload: Make it clear in the heading comments that the
27402         master copy of this file is maintained by gnulib.  Since we are at
27403         it, bump its copyright year and ...
27404         ($scriptversion): ... the date in its version.
27405         ($usage): Patches and bug reports should be sent to the gnulib list,
27406         not the automake one.
27407         * config/srclist.txt: Don't try to sync 'gnupload' from automake
27408         anymore.
27410 2012-01-15  Bruno Haible  <bruno@clisp.org>
27412         Fix module 'random'.
27413         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
27414         initstate, setstate are declared.
27416 2012-01-14  Bruno Haible  <bruno@clisp.org>
27418         Tests for module 'random'.
27419         * modules/random-tests: New file.
27420         * tests/test-random.c: New file, based on tests/test-random_r.c.
27422         New module 'random'.
27423         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
27424         declarations.
27425         * lib/random.c: New file, based on glibc/stdlib/random.c.
27426         * m4/random.m4: New file.
27427         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
27428         HAVE_RANDOM.
27429         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
27430         * modules/random: New file.
27431         * config/srclist.txt: Add an entry for random.c.
27432         * doc/posix-functions/random.texi: Mention the 'random' module.
27433         * doc/posix-functions/initstate.texi: Likewise.
27434         * doc/posix-functions/setstate.texi: Likewise.
27435         * doc/posix-functions/srandom.texi: Likewise.
27437 2012-01-12  Bruno Haible  <bruno@clisp.org>
27439         random_r: Use common idioms.
27440         * lib/random_r.c: Include <stdlib.h> first.
27442         random_r: Override incompatible API on AIX, OSF/1.
27443         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
27444         Override the system function if REPLACE_RANDOM_R is 1.
27445         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
27446         and OSF/1, set REPLACE_RANDOM_R.
27447         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
27448         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
27449         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
27450         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
27451         * doc/glibc-functions/random_r.texi: Likewise.
27452         * doc/glibc-functions/setstate_r.texi: Likewise.
27454         random_r: Support for MSVC 9.
27455         * lib/random_r.c: Include stdint.h, not inttypes.h.
27457 2012-01-12  Eric Blake  <eblake@redhat.com>
27459         inet_ntop: guard extra work by IF_LINT
27460         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
27461         better code generation when not checking for warnings.
27462         Suggested by Paul Eggert and Jim Meyering.
27464         strptime: fix regression on mingw
27465         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
27466         Fix regression.  Reported by Bruno Haible.
27468 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
27469             Bruno Haible  <bruno@clisp.org>
27471         copy-file: add error-code-returning variant.
27472         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
27473         (qcopy_file_preserving): New declaration.
27474         * lib/copy-file.c (qcopy_file_preserving): Renamed from
27475         copy_file_preserving. Change return type to 'int'. Don't emit an error
27476         message here.
27477         (copy_file_preserving): New function.
27478         * tests/test-copy-file.c: Include <stdlib.h>.
27479         (main): Test qcopy_file_preserving if the environment variable
27480         NO_STDERR_OUTPUT is set.
27481         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
27482         with NO_STDERR_OUTPUT
27483         * tests/test-copy-file-2.sh: Likewise.
27485 2012-01-10  Bruno Haible  <bruno@clisp.org>
27487         copy-file: Use 'quote' module consistently.
27488         * lib/copy-file.c (copy_file_preserving): Use quote().
27490         copy-file: Refactor.
27491         * lib/copy-file.c: Include quote.h.
27492         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
27493         message here.
27494         * modules/copy-file (Depends-on): Add quote.
27496         acl: Export qcopy_acl.
27497         * lib/acl.h (qcopy_acl): New declaration.
27498         * lib/copy-acl.c (qcopy_acl): Make non-static.
27500         acl: Rename a local variable.
27501         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
27503         acl: Align return values of copy_acl and qcopy_acl.
27504         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
27505         maybe < -1.
27507 2012-01-11  Eric Blake  <eblake@redhat.com>
27509         strptime: silence gcc warnings
27510         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
27511         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
27512         Reported by Daniel P. Berrange.
27514         inet_ntop: silence gcc warning
27515         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
27516         Reported by Daniel P. Berrange.
27518 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
27520         getloadavg test: skip the test on GNU/Linux without /proc mounted
27521         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
27522         file.  When /proc is not mounted, it always fails with ENOENT.
27523         * tests/test-getloadavg.c (main): Treat ENOENT return code from
27524         getloadavg(3) the same way as ENOSYS and ENOTSUP.
27526 2012-01-10  Bruno Haible  <bruno@clisp.org>
27528         regex: Avoid link error on MSVC 9.
27529         * modules/regex (Depends-on): Add wctype.
27531 2012-01-10  Bruno Haible  <bruno@clisp.org>
27533         doc: Mention --with-tests option.
27534         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
27535         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
27536         --with-tests.
27537         Reported by Reuben Thomas.
27539 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
27541         users.txt: order package names lexicographically.
27542         * users.txt: Order package names lexicographically.
27544 2012-01-10  Jim Meyering  <meyering@redhat.com>
27546         maint.mk: fix description in comment
27547         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
27549         ignore-value: remove deprecated ignore_ptr function
27550         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
27551         * NEWS: Note this.
27553 2012-01-09  Jim Meyering  <meyering@redhat.com>
27555         test-init.sh: avoid a subshell
27556         * tests/test-init.sh: Remove protective subshell.
27557         Suggested by Bernhard Voelker.  While a subshell is normally
27558         required to protect against older shells (Solaris, FreeBSD) that
27559         warn about a missing program before performing redirection, the
27560         shell-selection tests performed by init.sh probably exclude any
27561         offending shell.
27563 2012-01-08  Bruno Haible  <bruno@clisp.org>
27565         setlocale tests: Avoid test failure on Solaris 11.0.
27566         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
27567         variable.
27569 2012-01-08  Bruno Haible  <bruno@clisp.org>
27571         posix_spawn_file_actions_addopen: Work around Solaris 11.0 bug.
27572         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
27573         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
27574         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
27575         macro.
27576         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
27577         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
27578         * lib/spawn_faction_addopen.c: Add workaround implementation if
27579         HAVE_WORKING_POSIX_SPAWN.
27580         * modules/spawn (Makefile): Substitute
27581         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
27582         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
27583         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
27584         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
27585         (Depends-on): Update conditions.
27586         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
27587         the Solaris 11 bug.
27589 2012-01-08  Bruno Haible  <bruno@clisp.org>
27591         posix_spawn_file_actions_adddup2: Work around Solaris 11.0 bug.
27592         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
27593         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
27594         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
27595         macro.
27596         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
27597         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
27598         * lib/spawn_faction_adddup2.c: Add workaround implementation if
27599         HAVE_WORKING_POSIX_SPAWN.
27600         * modules/spawn (Makefile): Substitute
27601         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
27602         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
27603         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
27604         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
27605         (Depends-on): Update conditions.
27606         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
27607         the Solaris 11 bug.
27609 2012-01-08  Bruno Haible  <bruno@clisp.org>
27611         posix_spawn_file_actions_addclose: Work around Solaris 11.0 bug.
27612         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
27613         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
27614         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
27615         HAVE_WORKING_POSIX_SPAWN.
27616         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
27617         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
27618         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
27619         * lib/spawn_faction_addclose.c: Add workaround implementation if
27620         HAVE_WORKING_POSIX_SPAWN.
27621         * modules/spawn (Makefile): Substitute
27622         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
27623         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
27624         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
27625         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
27626         (Depends-on): Update conditions.
27627         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
27628         the Solaris 11 bug.
27630 2012-01-08  Bruno Haible  <bruno@clisp.org>
27632         doc: Update for Solaris 11.0.
27633         * doc/*/*.texi: Mention Solaris 11.0 where appropriate.
27634         * m4/printf.m4: Update comments.
27636 2012-01-08  Bruno Haible  <bruno@clisp.org>
27638         mktime: Avoid compilation error on Solaris 11.
27639         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
27641 2012-01-08  Bruno Haible  <bruno@clisp.org>
27643         doc: Small fix.
27644         * doc/posix-headers/nl_types.texi: Correct platforms list.
27646 2012-01-08  Simon Josefsson  <simon@josefsson.org>
27648         Add lgpl-3.0 module.
27649         * MODULES.html.sh (Support for building documentation): Add
27650         lgpl-3.0.
27651         * modules/lgpl-3.0: New file.
27653 2012-01-08  Jim Meyering  <meyering@redhat.com>
27655         select.c: indent with spaces, not TABs
27656         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
27658 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
27660         quotearg: do not use grave accent for left quote
27661         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
27662         locale_quoting_style.
27663         (quotearg_buffer_restyled): Fix example.
27664         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
27666 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
27668         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
27669         Most programs do not have translation catalogs for English and much
27670         less separate catalogs for British and American English.  Drop the
27671         suggestion to translators about these two, and provide it
27672         automatically for Unicode locales.  Like most programs, even those
27673         using American English, we use single quotation marks.  This conflicts
27674         with the American typographic convention, but works better when you
27675         cite the entire error message within double quotes.  It also tries not
27676         to clash with established practice and with what non-gnulib programs
27677         will usually do.
27678         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
27679         using an UTF-8 or GB-18030 locale.  The list of other locales with
27680         quotes was provided by Bruno Haible.
27681         (quotearg_buffer_restyled): Adjust instructions to translators.
27682         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
27683         text, since this would be wrong when using Unicode.
27684         * modules/quotearg: Depend on c-strcaseeq.
27686 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
27688         quotearg: fix Wikipedia link
27689         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
27691 2012-01-07  Simon Josefsson  <simon@josefsson.org>
27693         Fix for mingw with MSVC9.
27694         * m4/ld-version-script.m4: Check that compiler rejects version
27695         scripts with syntax errors.  Reported by Bruno Haible
27696         <bruno@clisp.org>.
27698 2012-01-06  Bruno Haible  <bruno@clisp.org>
27700         Talk about "native Windows API", not "Woe32".
27701         * lib/accept4.c: Update comments to mention native Windows.
27702         * lib/execute.c: Likewise.
27703         * lib/fatal-signal.c: Likewise.
27704         * lib/localcharset.c: Likewise.
27705         * lib/nanosleep.c: Likewise.
27706         * lib/nl_langinfo.c: Likewise.
27707         * lib/pclose.c: Likewise.
27708         * lib/pipe-filter-gi.c: Likewise.
27709         * lib/pipe-filter-ii.c: Likewise.
27710         * lib/pipe.c: Likewise.
27711         * lib/pipe2.c: Likewise.
27712         * lib/popen.c: Likewise.
27713         * lib/progreloc.c: Likewise.
27714         * lib/relocatable.c: Likewise.
27715         * lib/sigaction.c: Likewise.
27716         * lib/sigprocmask.c: Likewise.
27717         * lib/spawn-pipe.h: Likewise.
27718         * lib/spawn-pipe.c: Likewise.
27719         * lib/spawni.c: Likewise.
27720         * lib/stat-time.h: Likewise.
27721         * lib/w32spawn.h: Likewise.
27722         * tests/test-isatty.c: Likewise.
27723         * lib/config.charset: More comments.
27724         * doc/gnulib-intro.texi: Mention native Windows.
27725         * doc/posix-functions/_Exit_C99.texi: Likewise.
27726         * doc/posix-headers/fcntl.texi: Likewise.
27728 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
27730         argp: Avoid crash if translator uses % characters in a translation.
27731         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
27732         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
27734 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
27736         doc: C11 and C++11 are now official
27737         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
27738         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
27739         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
27740         * modules/stdalign:
27741         Replace references to draft C1X to C11, and to draft C++0X to C++11.
27743 2012-01-06  Bruno Haible  <bruno@clisp.org>
27745         uc-is-grapheme-break tests: Tweak.
27746         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
27747         message.
27749 2012-01-06  Bruno Haible  <bruno@clisp.org>
27751         test-init.sh: correct the test for diff -u
27752         * tests/test-init.sh: Also redirect stdout to /dev/null.
27754 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
27756         Use ', not `, for quoting output.
27757         * build-aux/announce-gen (usage, sizes, print_news_deltas)
27758         (print_changelog_deltas, get_tool_versions, main program):
27759         * build-aux/git-version-gen:
27760         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
27761         * build-aux/move-if-change (help):
27762         * build-aux/useless-if-before-free (usage, main program):
27763         * check-module (parse_module_file, usage)
27764         (find_included_lib_files, check_module):
27765         * lib/argmatch.c (main) [TEST]:
27766         * lib/argp-help.c (_help):
27767         * lib/getopt1.c (main) [TEST]:
27768         * lib/git-merge-changelog.c (usage):
27769         * lib/xstrtol-error.c (xstrtol_error):
27770         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
27771         * m4/argz.m4 (gl_FUNC_ARGZ):
27772         * m4/bison.m4 (gl_BISON):
27773         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
27774         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
27775         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
27776         * m4/fpending.m4 (gl_PREREQ_FPENDING):
27777         * m4/gc-random.m4 (gl_GC_RANDOM):
27778         * m4/intl.m4 (gt_CHECK_DECL):
27779         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
27780         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
27781         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
27782         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
27783         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
27784         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
27785         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
27786         * tests/test-dirname.c (main):
27787         * tests/test-getpass.c (main):
27788         * tests/test-iconvme.c (main):
27789         * tests/test-parse-datetime.c (LOG):
27790         * tests/test-xstrtoimax.sh:
27791         * tests/test-xstrtol.sh:
27792         * tests/test-xstrtoll.sh:
27793         * tests/test-xstrtoumax.sh:
27794         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
27795         * top/GNUmakefile (abort-due-to-no-makefile):
27796         Quote 'like this', not `like this', as per the recent change to
27797         the GNU coding standards.
27799 2012-01-05  Bruno Haible  <bruno@clisp.org>
27801         strtoimax: Don't force a replacement on systems where intmax_t is int.
27802         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
27803         'intmax_t' is not larger than 'int'.
27804         Reported by Pádraig Brady <P@draigBrady.com>.
27806 2012-01-05  Bruno Haible  <bruno@clisp.org>
27808         doc: Mention NetBSD bugs.
27809         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
27810         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
27812 2012-01-05  Bruno Haible  <bruno@clisp.org>
27814         strtoumax tests: Enhance tests.
27815         * tests/test-strtoumax.c (main): Add tests for large values.
27817 2012-01-05  Bruno Haible  <bruno@clisp.org>
27819         strtoimax: Work around AIX 5.1 bug.
27820         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
27821         definition.
27822         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
27823         Set HAVE_STRTOIMAX.
27824         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
27825         REPLACE_STRTOIMAX.
27826         * modules/inttypes-incomplete (Makefile.am): Substitute
27827         REPLACE_STRTOIMAX.
27828         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
27829         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
27830         (Depends-on): Update conditions.
27831         * tests/test-strtoimax.c (main): Add tests for large values.
27832         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
27834 2012-01-05  Bruno Haible  <bruno@clisp.org>
27836         inttypes: Modernize.
27837         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
27838         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
27839         (Makefile.am): Update inttypes.h rule.
27841 2012-01-05  Jim Meyering  <meyering@redhat.com>
27843         init.sh: don't waste a subshell just to redirect stderr
27844         * tests/init.sh: In testing for diff -u and diff -c, use a
27845         stderr-redirecting exec inside `...` rather than a subshell.
27847         test-init.sh: avoid failure on HP-UX 11.00
27848         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
27849         resolves to diff -c or cmp.  Reported by Bruno Haible.
27851 2012-01-05  Bruno Haible  <bruno@clisp.org>
27853         Tests for module 'strtoull'.
27854         * modules/strtoull-tests: New file.
27855         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
27857 2012-01-05  Bruno Haible  <bruno@clisp.org>
27859         Tests for module 'strtoll'.
27860         * modules/strtoll-tests: New file.
27861         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
27863 2012-01-05  Bruno Haible  <bruno@clisp.org>
27865         Tests for module 'strtoul'.
27866         * modules/strtoul-tests: New file.
27867         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
27869 2012-01-05  Bruno Haible  <bruno@clisp.org>
27871         Tests for module 'strtol'.
27872         * modules/strtol-tests: New file.
27873         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
27875 2012-01-04  Jim Meyering  <meyering@redhat.com>
27877         test-init.sh: accommodate Solaris 5.10's different diff -u output
27878         * tests/test-init.sh: Also exempt @@ lines from the comparison
27879         of diff output, since Solaris 5.10 and GNU diff formats differ.
27880         Reported by Stefano Lattarini.
27882 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
27884         test-posixtm: don't assume signed integer wraparound
27885         * tests/test-posixtm.c (main): Don't assume wraparound semantics
27886         after signed integer overflow.  Inspired by (though it may not
27887         fix) Bruno Haible's bug report in
27888         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00066.html>.
27890         Spell out "Windows 9x" and "Windows XP".
27891         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
27892         "Windows 9x" and "WinXP" with "Windows XP".
27894 2012-01-04  Jim Meyering  <meyering@redhat.com>
27896         test-vc-list-files-cvs.sh: remove obsolete comment
27897         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
27898         double exit.  Now that's all encapsulated via skip_ and Exit.
27900 2012-01-04  Bruno Haible  <bruno@clisp.org>
27902         Talk about "native Windows API", not "Win32".
27903         * lib/classpath.c: Update comments to mention native Windows.
27904         * lib/csharpexec.c: Likewise.
27905         * lib/dup2.c: Likewise.
27906         * lib/error.c: Likewise.
27907         * lib/fcntl.c: Likewise.
27908         * lib/filename.h: Likewise.
27909         * lib/findprog.c: Likewise.
27910         * lib/get-rusage-as.c: Likewise.
27911         * lib/get-rusage-data.c: Likewise.
27912         * lib/getpagesize.c: Likewise.
27913         * lib/javaexec.c: Likewise.
27914         * lib/msvc-inval.c: Likewise.
27915         * lib/msvc-nothrow.c: Likewise.
27916         * lib/nanosleep.c: Likewise.
27917         * lib/nonblocking.c: Likewise.
27918         * lib/printf-parse.c: Likewise.
27919         * lib/setlocale.c: Likewise.
27920         * lib/sigaction.c: Likewise.
27921         * lib/strerror_r.c: Likewise.
27922         * lib/tmpdir.c: Likewise.
27923         * lib/vasnprintf.c: Likewise.
27924         * lib/w32spawn.h: Likewise.
27925         * lib/waitpid.c: Likewise.
27926         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
27927         * m4/locale-ar.m4: Likewise.
27928         * m4/locale-fr.m4: Likewise.
27929         * m4/locale-ja.m4: Likewise.
27930         * m4/locale-tr.m4: Likewise.
27931         * m4/locale-zh.m4: Likewise.
27932         * m4/printf.m4: Likewise.
27933         * tests/test-cloexec.c: Likewise.
27934         * tests/test-copy-acl.sh: Likewise.
27935         * tests/test-copy-file.sh: Likewise.
27936         * tests/test-file-has-acl.sh: Likewise.
27937         * tests/test-set-mode-acl.sh: Likewise.
27938         * tests/test-dup-safer.c: Likewise.
27939         * tests/test-dup2.c: Likewise.
27940         * tests/test-dup3.c: Likewise.
27941         * tests/test-fcntl.c: Likewise.
27942         * tests/test-nonblocking-pipe.h: Likewise.
27943         * tests/test-nonblocking-socket.h: Likewise.
27944         * tests/test-pipe.c: Likewise.
27945         * tests/test-pipe2.c: Likewise.
27946         * tests/test-spawn-pipe-child.c: Likewise.
27947         * doc/acl-resources.txt: Likewise.
27948         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
27949         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
27950         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
27951         * lib/localcharset.c: Update comments to mention native Windows.
27952         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
27953         * lib/localename.c: Likewise.
27954         * lib/progreloc.c: Likewise.
27955         * lib/relocatable.c: Likewise.
27956         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
27957         (windows_compute_revents): Renamed from win32_compute_revents.
27958         (windows_compute_revents_socket): Renamed from
27959         win32_compute_revents_socket.
27960         * lib/select.c: Update comments to mention native Windows.
27961         (windows_poll_handle): Renamed from win32_poll_handle.
27962         * m4/threadlib.m4: Update comments to mention native Windows.
27963         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
27964         --enable-threads=windows instead of --enable-threads=win32. Set
27965         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
27966         * lib/glthread/lock.h: Update comments to mention native Windows.
27967         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
27968         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
27969         USE_WIN32_THREADS.
27970         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
27971         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
27972         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
27973         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
27974         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
27975         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
27976         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
27977         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
27978         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
27979         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
27980         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
27981         * tests/test-tls.c: Likewise.
27982         Rationale:
27983         Microsoft renamed the "Win32 API" to "Windows API", as it is available
27984         on both 32-bit and 64-bit Windows systems.
27985         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
27986         line of distinction is between "native Windows" on one side and Unix/
27987         POSIX systems on the other side. More details in
27988         <https://lists.gnu.org/r/bug-gnulib/2012-01/msg00027.html>.
27989         Suggested by Paul Eggert.
27991 2012-01-03  Bruno Haible  <bruno@clisp.org>
27993         isatty: Support for MSVC 9.
27994         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
27995         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
27996         (_isatty_nothrow): New function.
27997         (isatty): Use it instead of _isatty.
27998         (IsConsoleHandle): Add comment, from Paolo Bonzini.
27999         * lib/poll.c (IsConsoleHandle): Likewise.
28000         * lib/select.c (IsConsoleHandle): Likewise.
28001         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
28002         (gl_PREREQ_ISATTY): New macro.
28003         * modules/isatty (Depends-on): Add msvc-inval.
28004         (configure.ac): Invoke gl_PREREQ_ISATTY.
28006 2012-01-03  Jim Meyering  <meyering@redhat.com>
28008         maint.mk: remove temporary transition aid from over 1.5 years ago
28009         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
28010         purpose was to aid in the transition (avoiding silent malfunction)
28011         from that old name to the new _sc_search_regexp.  This shim was
28012         added by commit 219c504b.
28014         init.sh: do not try to accommodate compare arguments starting with "-"
28015         * tests/init.sh (compare_dev_null_): Do not try to accommodate
28016         compare arguments that start with "-".  Besides, we do not worry
28017         about this when invoking diff or cmp; why start now with sed?
28018         Using "--" to separate options from argument would trigger sed
28019         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
28020         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
28022 2012-01-02  Bruno Haible  <bruno@clisp.org>
28024         Enhance tests for module 'isatty'.
28025         * modules/isatty-tests (Depends-on): Add pipe-posix.
28026         * tests/test-isatty.c: Include <fcntl.h>.
28027         (DEV_NULL): New macro.
28028         (main): Test the resut of isatty() also on regular files, pipes, and
28029         /dev/null.
28031         New module 'isatty'.
28032         * lib/unistd.in.h (isatty): New declaration.
28033         * lib/isatty.c: New file, based on an idea of
28034         Bastien Roucariès <roucaries.bastien@gmail.com>.
28035         * m4/isatty.m4: New file.
28036         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
28037         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
28038         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
28039         REPLACE_ISATTY.
28040         * modules/isatty: New file.
28041         * doc/posix-functions/isatty.texi: Mention the new module.
28042         Suggested by Paolo Bonzini.
28044 2012-01-02  Bruno Haible  <bruno@clisp.org>
28046         canonicalize: Tweak 2011-12-29 commit.
28047         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
28048         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
28050 2012-01-02  Jim Meyering  <meyering@redhat.com>
28052         gitlog-to-changelog: describe input syntax in --help output
28053         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
28055         gitlog-to-changelog: fix typo in --help: show backslash before email @
28056         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
28057         in sources, but not in actual output.
28059 2011-12-30  Jim Meyering  <meyering@redhat.com>
28061         gitlog-to-changelog: don't malfunction when name contains %-directive
28062         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
28063         in a name string cause trouble.  E.g., with a user name of "%s",
28064         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
28066 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
28068         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
28069         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
28070         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
28071         the "  (tiny change)" notation that is appended to the standard
28072         ChangeLog "date  name  email" header line.
28074 2012-01-01  Jim Meyering  <meyering@redhat.com>
28076         test-framework-sh: init.sh: fix "make dist" failure
28077         When using gnulib-tool's --with-tests option and any module that
28078         depends on test-framework-sh, "make dist" would fail due to the
28079         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
28080         in the gltests directory, and not in the gllib/ directory.
28081         One way to work around that is to move the EXTRA_DIST += init.sh
28082         from the primary module to the -tests one:
28083         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
28084         * modules/test-framework-sh (Makefile.am): ...not here.
28085         Reported by Tom G. Christensen in
28086         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
28088         version-etc: update copyright year reported by --version
28089         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
28091 2011-12-31  Pádraig Brady  <P@draigBrady.com>
28093         canonicalize: only stat() if required
28094         * lib/canonicalize.c (canonicalize_filename_mode):
28095         Avoid calling l?stat() when both CAN_MISSING,
28096         and CAN_NOLINKS are set, as we neither need
28097         to resolve symlinks or test component existence.
28099 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
28101         doc: cover st_ino issues once; add OpenVMS etc.
28102         * doc/posix-functions/stat.texi (stat):
28103         * doc/posix-functions/lstat.texi (lstat):
28104         * doc/posix-functions/fstatat.texi (fstatat):
28105         * doc/posix-functions/fstat.texi (fstat):
28106         Move general 'struct stat' stuff to sys_stat.texi,
28107         leaving behind a pointer.
28108         * doc/posix-headers/sys_stat.texi (sys/stat.h):
28109         Merge duplicate info about 'struct stat' problems into here.
28110         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
28111         and suggest partial workarounds.
28113         same-inode: port to OpenVMS
28114         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
28115         three st_ino values.
28117 2011-12-30  Pádraig Brady  <P@draigBrady.com>
28119         canonicalize: fix references to stat() and lstat()
28120         * lib/canonicalize.c (canonicalize_filename_mode):
28121         Ensure references always resolve to a replacement
28122         function if required (even via a macro).
28124 2011-12-30  Jim Meyering  <meyering@redhat.com>
28126         gitlog-to-changelog: remove a little duplication
28127         * build-aux/gitlog-to-changelog (main): Grep @lines once,
28128         rather than twice.
28130 2011-12-29  Pádraig Brady  <P@draigBrady.com>
28132         canonicalize: add support for not resolving symlinks
28133         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
28134         indicate we don't want to follow symlinks.  Also
28135         provide CAN_MODE_MASK to aid setting these existing
28136         mutually exclusive values.
28137         * lib/canonicalize.c (canonicalize_filename_mode):
28138         Extract the flags from can_mode parameter, which
28139         are currently just used to select between stat()
28140         and lstat().  Also ensure that mutually exclusive
28141         values are flagged immediately as invalid.
28142         * tests/test-canonicalize.c: Verify symlinks are
28143         not followed, and that invalid flag combinations
28144         are diagnosed.
28146 2011-12-25  Jim Meyering  <meyering@redhat.com>
28148         gitlog-to-changelog: do not clump multi-paragraph entries
28149         Identical header lines (date,name,email+coauthors) are suppressed,
28150         thus putting all entries with those same characteristics under
28151         a single header.  However, when a log entry consists of two or
28152         more paragraphs, it may not be clear where it starts and ends.
28153         This change makes it so that such an entry is always separated
28154         from others by a header line, even when that header would
28155         otherwise be suppressed.
28156         * build-aux/gitlog-to-changelog: Implement the above.
28157         Inspired by a related request from Stefano Lattarini in
28158         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
28160 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
28162         announce-gen: fix `cmd' typo in diagnostic
28163         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
28164         diagnostic: a missing '$' meant that the command was not output.
28166 2011-12-23  Jim Meyering  <meyering@redhat.com>
28168         test-framework-sh: distribute init.sh
28169         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
28170         Otherwise, "make -C gnulib-tests check" (at least in grep) would
28171         fail due to the lack of init.sh.
28173         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
28174         * modules/atexit-tests: Rather than listing tests/init.sh,
28175         now that there's a module for it, simply depend on that new module.
28176         * modules/closein-tests: Likewise.
28177         * modules/exclude-tests: Likewise.
28178         * modules/getcwd-tests: Likewise.
28179         * modules/perror-tests: Likewise.
28180         * modules/pread-tests: Likewise.
28181         * modules/pwrite-tests: Likewise.
28182         * modules/vc-list-files-tests: Likewise.
28183         * modules/verify-tests: Likewise.
28184         * modules/xalloc-die-tests: Likewise.
28185         * modules/xstrtoimax-tests: Likewise.
28186         * modules/xstrtol-tests: Likewise.
28187         * modules/xstrtoll-tests: Likewise.
28188         * modules/xstrtoumax-tests: Likewise.
28189         * modules/yesno-tests: Likewise.
28191 2011-12-22  Jim Meyering  <meyering@redhat.com>
28193         test-framework-sh: add minimal tests of init.sh's compare function
28194         * modules/test-framework-sh-tests: New file.
28195         * tests/test-init.sh: New file.
28197         test-framework-sh: new module
28198         * modules/test-framework-sh: New file.
28199         * MODULES.html.sh (Support for maintaining and releasing projects):
28200         List it.
28202         init.sh: do not emit simulated diff output to stderr
28203         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
28205 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
28207         .gitignore: ignore gnulib.dvi and regex.info
28208         * doc/.gitignore:add gnulib.dvi and regex.info
28210 2011-12-22  Jim Meyering  <meyering@redhat.com>
28212         init.sh: correct previous change
28213         * tests/init.sh (compare): My previous change was wrong.
28214         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
28216         init.sh: avoid unwarranted test failure when using "set -e"
28217         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
28218         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
28219         a use like "compare exp out" would get evoke an unconditional failure.
28221 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
28223         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
28224         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
28225         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
28226         autoreconf that did not.
28227         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
28228         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
28230 2011-12-17  Jim Meyering  <meyering@redhat.com>
28232         bootstrap: remove some now-unneeded code
28233         This script arose back when gnulib-tool was young.
28234         Since then, it has seen improvements that render much of this
28235         script unnecessary.  In particular, it can now make symlinks
28236         to the files it uses.  Also, I no longer see as much value in
28237         marking files as read-only via comments.
28238         If you relied on the symlink-creation feature of the preceding
28239         version of this script, you can get most of that functionality
28240         by adding the --symlink option to the definition of
28241         gnulib_tool_option_extras in your bootstrap.conf file.
28242         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
28243         Run autopoint and libtoolize *before* gnulib-tool.
28244         After it, run an abbreviated autoreconf, rather than a loop around
28245         all tools.
28246         (slirp, bt_mark_as_generated): Remove functions.
28248 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
28250         ftoastr: fix typo
28251         * lib/ftoastr.h: Fix misspelling in comment.
28253 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
28255         * top/README-release: fix punctuation.
28257 2011-12-17  Jim Meyering  <meyering@redhat.com>
28259         bootstrap: correct the recent buildreq change
28260         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
28261         had no effect.
28262         * build-aux/bootstrap (buildreq): Bracket each search term with
28263         "*...*", so that the shell "case" statement works as intended.
28264         Add comments.
28266 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
28268         build: let bootstrap resort to wget when downloading .po files
28269         * build-aux/bootstrap (download_po_files): Fallback to wget when
28270         downloading the .po files via rsync fails.  This is necessary to
28271         bootstrap from behind a strict firewall.
28273 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
28275         stdint: don't assume C++11 when compiling with g++
28276         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
28277         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00099.html>.
28278         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
28279         work also in C++ before C++11, as that improperly inhibits
28280         generating a substitute stdint.h for that case.
28282 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
28284         alloca: protect comment from gnulib-tool
28285         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
28286         that gnulib-tool doesn't think it's a license, and munge it to
28287         say "GCC version 3".
28289 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
28291         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
28292         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
28293         $(abs_top_builddir) instead of $(top_builddir).
28295 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
28297         strftime-tests: also test nanoseconds
28298         * tests/test-strftime.c (T): Add a test of %N.
28300 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
28302         inttypes, stdint: add C++11 support
28303         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
28304         when including inttypes.h and stdint.h.  Support this change to
28305         the standard.
28306         * doc/posix-headers/inttypes.texi (inttypes.h):
28307         * doc/posix-headers/stdint.texi (stdint.h): Document this.
28308         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
28309         Define if not defined already, for the benefit of pre-C++11 hosts.
28310         Define the standard format macros (e.g., PRId8) always.
28311         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
28312         Likewise, if __cpluspus.  Define the standard constant and limit
28313         macros (e.g., INT8_C, INT8_MAX) always.
28314         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
28315         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
28316         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
28317         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
28318         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
28319         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
28320         Likewise.
28322 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
28324         nonblocking tests: Fix test failure on Linux/PPC.
28325         Suggested by Prerna Saxena in
28326         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00080.html>.
28327         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
28328         Set to 1100000.
28330 2011-12-12  Jim Meyering  <meyering@redhat.com>
28332         argmatch: don't hard-code `' when listing valid option arguments
28333         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
28334         use the quote function to add quotes.  Use fputs rather than
28335         fprintf for the format string with no format directive.
28337 2011-12-07  Eric Blake  <eblake@redhat.com>
28339         bootstrap: detect tools required by gnulib-tool
28340         * build-aux/bootstrap (buildreq): Provide minimum implicit
28341         dependencies.
28342         * DEPENDENCIES: Mention patch as a prereq.
28344 2011-12-04  Bruno Haible  <bruno@clisp.org>
28346         sethostname: Port to Windows platforms.
28347         * lib/sethostname.c: Provide an alternate implementation for Windows
28348         platforms.
28349         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
28350         (main): Skip the test if sethostname() fails with EPERM. On Windows
28351         platforms, don't check the result of gethostname().
28353 2011-12-04  Bruno Haible  <bruno@clisp.org>
28354             Jim Meyering  <meyering@redhat.com>
28356         tests: Avoid spurious error message on platforms without mktemp program.
28357         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
28359 2011-12-04  Bruno Haible  <bruno@clisp.org>
28361         sethostname: Fix documentation.
28362         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
28363         "not fixed" section.
28365 2011-12-03  Bruno Haible  <bruno@clisp.org>
28367         gnulib-tool: Verify that the License field is present and non-empty.
28368         * gnulib-tool (func_get_license_raw): New function, extracted from
28369         func_get_license.
28370         (func_get_license): Use it. Warn if the module is not a test module and
28371         has no license.
28372         Suggested by Jim Meyering.
28374 2011-12-03  Bruno Haible  <bruno@clisp.org>
28376         sethostname tests: Fix link error on mingw.
28377         * tests/test-sethostname1.c: New file, extracted from
28378         tests/test-sethostname.c.
28379         * tests/test-sethostname2.c: New file, extracted from
28380         tests/test-sethostname.c.
28381         * tests/test-sethostname.c: Remove file.
28382         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
28383         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
28384         (Depends-on): Add gethostname.
28385         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
28386         Link the latter with $(GETHOSTNAME_LIB).
28388         sethostname tests: Fix compilation error on mingw.
28389         * tests/test-sethostname.c: Don't include <sys/types.h>.
28390         (geteuid): Use a dummy value without uid_t.
28391         * modules/sethostname-tests (Depends-on): Remove sys_types.
28393         sethostname tests: Avoid a gcc warning.
28394         * tests/test-sethostname.c (main): Remove an unused variable.
28396         Tweak last commit.
28397         * modules/sethostname-tests (Files): Sort by decreasing importance.
28398         (configure.ac): Check for geteuid.
28399         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
28400         the test when there's nothing to test. Drop an unnecessary cast.
28401         Improve an error message. Verify that the final sethostname() call
28402         succeeds.
28404 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
28406         Add a test suite for the sethostname module.
28407         * modules/sethostname-tests: New file.  A test program
28408         for the sethostname module.
28409         * tests/test-sethostname.c: Likewise.
28411 2011-12-03  Bruno Haible  <bruno@clisp.org>
28413         Tweak last commit.
28414         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
28415         Fix preprocessor directives indentation. Fix typos.
28416         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
28417         * modules/unistd (Makefile): Likewise.
28419 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
28421         Integrate the sethostname module into unistd.
28422         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
28423         into the unistd.h header.
28424         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
28425         preprocessor directives.
28426         * modules/unistd: Setup the Makefile substitutions of the
28427         SETHOSTNAME preprocessor directives.
28429 2011-12-03  Bruno Haible  <bruno@clisp.org>
28431         Tweak last commit.
28432         * lib/sethostname.c: Don't include <string.h>.
28433         (sethostname): No need to copy the argument string to the stack. Don't
28434         call clearerr. Preserve errno when fprintf failed.
28435         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
28436         Don't invoke AC_REPLACE_FUNCS.
28437         * modules/sethostname (Link): Remove empty section.
28438         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
28439         failure problem.
28441 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
28443         New module 'sethostname'.
28444         * lib/sethostname.c (sethostname): New file.  Provide sethostname
28445         for systems that lack it.
28446         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
28447         sethostname declaration and function.
28448         * modules/sethostname: New file.  Define the sethostname module.
28450 2011-12-03  Bruno Haible  <bruno@clisp.org>
28452         Tweak last commit.
28453         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
28455 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
28457         Split the HOST_NAME_MAX detection into a separate m4 macro.
28458         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
28459         macro so it can be used by the pending sethostname module.
28461 2011-12-03  Bruno Haible  <bruno@clisp.org>
28463         Fix module descriptions syntax.
28464         * modules/argv-iter (License): Fix syntax.
28465         * modules/di-set (License): Likewise.
28466         * modules/ino-map (License): Likewise.
28467         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
28469 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
28471         stdalign: port to Clang 3.0
28472         Problem reported by Simon Josefsson in
28473         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00005.html>.
28474         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
28475         which has <stdalign.h> but which does not define alignof.
28476         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
28478 2011-12-01  Eric Blake  <eblake@redhat.com>
28480         mktempd: silence dd usage
28481         * build-aux/mktempd (rand_bytes): Silence dd.
28483 2011-11-30  Simon Josefsson  <simon@josefsson.org>
28485         manywarnings: Don't mention gcc version in docstring.
28486         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
28487         Jim Meyering <meyering@redhat.com>.
28489 2011-11-30  Jim Meyering  <meyering@redhat.com>
28491         hash: mark a few floating point constants with "f" suffix
28492         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
28493         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
28494         floating point constants with "f", since they're destined to be
28495         saved/used as "float"s.
28497 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
28499         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
28500         * tests/test-float.c (test_long_double): Correct and re-enable the
28501         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
28503 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
28505         Avoid subtracting two pointers that don't point into the same block.
28506         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
28507         only pointers into the same memory block are subtracted. We cannot
28508         assume that sizeof (ptrdiff_t) == sizeof (void *).
28510 2011-11-29  Eric Blake  <eblake@redhat.com>
28512         maint.mk: add syntax check for use of compare from init.sh
28513         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
28514         moved here from coreutils.
28516         manywarnings: drop -Wunsuffixed-float-constants
28517         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
28518         '1.0D', which is the only way to silence this warning for 'double'.
28520 2011-11-29  Jim Meyering  <meyering@redhat.com>
28522         hash: mark compute_bucket_size with the pure attribute
28523         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
28525         quotearg, propername: correct pragma guard expression
28526         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
28527         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
28529 2011-11-28  Jim Meyering  <meyering@redhat.com>
28531         propername: do not mark proper_name with the const attribute
28532         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
28533         since it examines data pointed to by its parameter.
28534         * lib/propername.c (proper_name): Instead, add a pragma to suppress
28535         the suggestion from -Wsuggest-attribute=const.
28537         propername: mark one more function as const
28538         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
28540 2011-11-27  Jim Meyering  <meyering@redhat.com>
28542         mark functions with const and pure attributes
28544         Mark functions per suggestions from gcc-4.6 when using these options:
28545         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
28546         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
28547         Follow these guidelines: when possible, apply the attribute to
28548         an extern declaration, not to its definition.  Apply it to the
28549         definition only when the definition is static.
28550         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
28551         * lib/argv-iter.h (argv_iter_n_args): Likewise.
28552         * lib/base64.h (isbase64): Likewise.
28553         * lib/basename-lgpl.c (last_component, base_len): Likewise.
28554         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
28555         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
28556         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
28557         (c_tolower, c_toupper): Likewise.
28558         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
28559         * lib/chdir-long.c (find_non_slash): Likewise.
28560         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
28561         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
28562         * lib/file-type.h (file_type): Likewise.
28563         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
28564         * lib/filevercmp.c (verrevcmp): Likewise.
28565         * lib/freadahead.h (freadahead): Likewise.
28566         * lib/fts.c (fts_maxarglen): Likewise.
28567         * lib/hash-pjw.h (hash_pjw): Likewise.
28568         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
28569         * lib/hash.c (is_prime, next_prime): Likewise.
28570         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
28571         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
28572         (hash_table_ok, hash_get_first, hash_string): Likewise.
28573         (compute_bucket_size): Likewise.
28574         * lib/i-ring.h (i_ring_empty): Likewise.
28575         * lib/isnan.c (isnanl): Likewise.
28576         * lib/math.h (isnanl, rpl_isnanl): Likewise.
28577         * lib/memcasecmp.h (memcasecmp): Likewise.
28578         * lib/memchr2.h (memchr2): Likewise.
28579         * lib/memcmp2.h (memcmp2): Likewise.
28580         * lib/parse-datetime.y (lookup_zone): Likewise.
28581         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
28582         [!WINDOWS_SOCKETS]: Likewise.
28583         * lib/strnlen1.h (strnlen1): Likewise.
28584         * lib/uniwidth.in.h (uc_width): Likewise.
28585         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
28586         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
28587         (quoting_options_from_style): Add a comment.
28588         * lib/propername.h (proper_name): Add a comment.
28590 2011-11-27  Bruno Haible  <bruno@clisp.org>
28592         Remove unused macros from !_LIBC code in glibc-borrowed files.
28593         * lib/fnmatch.c (STRCOLL): Remove macro.
28594         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
28595         * lib/glob.c (__stat, __readdir64): Remove macros.
28596         * lib/tempname.c (__open64, __xstat64): Remove macros.
28597         Suggested by Paul Eggert.
28599 2011-11-27  Bruno Haible  <bruno@clisp.org>
28601         getcwd: Fix link error on MSVC 9.
28602         * modules/getcwd (Depends-on): Add readdir, rewinddir.
28604 2011-11-27  Bruno Haible  <bruno@clisp.org>
28606         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
28607         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
28608         HAVE_OPENDIR is 0.
28609         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
28610         HAVE_CLOSEDIR is 0.
28611         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
28612         is 0.
28613         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
28615 2011-11-27  Bruno Haible  <bruno@clisp.org>
28617         getcwd: Fix bug from 2011-08-17.
28618         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
28619         platforms that need it.
28620         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
28621         code of 4 to be a failure, not a success. This ensures that
28622         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
28624 2011-11-27  Bruno Haible  <bruno@clisp.org>
28626         binary-io tests: Avoid test failure on mingw when libtool is used.
28627         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
28628         Don't verify the size of t-bin-out1.tmp here.
28629         * tests/test-binary-io.sh: Verify it here.
28630         Reported by Simon Josefsson.
28632 2011-11-26  Bruno Haible  <bruno@clisp.org>
28634         Fix conflict between two instantiations of module 'unistd'.
28635         * gnulib-tool (func_emit_autoconf_snippet): Substitute
28636         ${include_guard_prefix} also in the autoconf snippet.
28637         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
28638         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
28639         GNULIB_UNISTD_H_GETOPT.
28640         * modules/getopt-posix (configure.ac): Set the
28641         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
28642         * modules/getopt-gnu (configure.ac): Likewise.
28643         * modules/unistd (Makefile.am): Change the substitution value of
28644         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
28645         Reported by Simon Josefsson.
28647 2011-11-25  Bruno Haible  <bruno@clisp.org>
28649         pagealign_alloc: Doc and comments.
28650         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
28651         module.
28652         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
28654 2011-11-25  Jim Meyering  <meyering@redhat.com>
28656         test-update-copyright.sh: avoid false-positive failure
28657         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
28658         around false positive failure on Cygwin/Windows.  The latter was
28659         matching erroneously-created files with names like
28660         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
28662 2011-11-25  Simon Josefsson  <simon@josefsson.org>
28664         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
28665         * m4/valgrind-tests.m4: Check that the parameters that will be
28666         used works, not just a subset of them.  Reported by Bruno Haible
28667         <bruno@clisp.org>.
28669 2011-11-24  Jim Meyering  <meyering@redhat.com>
28671         test-stdalign.c: comment out long double tests
28672         * tests/test-stdalign.c: Don't try to reduce alignment of long double
28673         variables.  That provokes errors like this from gcc-4.7.0 20111124:
28674         error: '_Alignas' specifiers cannot reduce alignment of \
28675         'static_longdouble_alignas'.
28677 2011-11-22  Jim Meyering  <meyering@redhat.com>
28679         init.sh: make "compare /dev/null FILE" output more readable
28680         * tests/init.sh (compare_): Document the preferred order of arguments.
28681         (emit_diff_u_header_): New function.
28682         (compare_dev_null_): Emit a simulated diff, rather than just the
28683         contents of the unexpected file.  Suggestion from Bruno Haible.
28685 2011-11-21  Jim Meyering  <meyering@redhat.com>
28686             Eric Blake  <eblake@redhat.com>
28688         init.sh: work around OSF/1 5.1's mishandling of /dev/null
28689         * tests/init.sh: Make our compare function slightly more portable.
28690         Reported by Bruno Haible in
28691         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
28693 2011-11-21  Simon Josefsson  <simon@josefsson.org>
28695         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
28696         before using it, in code that ends up in config.h.
28698 2011-11-20  Bruno Haible  <bruno@clisp.org>
28700         getcwd: Work around getcwd bug on AIX 5..7.
28701         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
28702         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
28703         Use a different value for gl_cv_func_getcwd_path_max. Move the
28704         definition of HAVE_PARTLY_WORKING_GETCWD from here...
28705         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
28706         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
28707         Define HAVE_MINIMALLY_WORKING_GETCWD.
28708         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
28709         where it is not even minimally working, that is, on AIX.
28710         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
28711         m4/getcwd-path-max.m4.
28712         (main): Update exit code computation.
28713         * doc/posix-functions/getcwd.texi: Mention list of platforms where
28714         getcwd does not handle long file names.
28716 2011-11-20  Bruno Haible  <bruno@clisp.org>
28718         getcwd: Fix bug from 2009-09-10.
28719         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
28720         like "no".
28722 2011-11-20  Simon Josefsson  <simon@josefsson.org>
28724         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
28726 2011-11-20  Bruno Haible  <bruno@clisp.org>
28728         fma tests: Avoid shadowing local variables.
28729         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
28730         expected.
28732 2011-11-20  Bruno Haible  <bruno@clisp.org>
28734         copysignf tests: Fix.
28735         * tests/test-copysignf.c: Fix signature check.
28737 2011-11-20  Bruno Haible  <bruno@clisp.org>
28739         fma: Remove unused code.
28740         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
28741         unused macros.
28743 2011-11-20  Bruno Haible  <bruno@clisp.org>
28745         sethostname: Fix doc about AIX.
28746         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
28747         sethostname; it has it.
28749         sethostname: Mention more portability problems.
28750         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
28751         problem.
28752         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
28754 2011-11-19  Bruno Haible  <bruno@clisp.org>
28756         Depend on module fcntl-h when AT_FDCWD is used.
28757         * modules/utimens (Depends-on): Add fcntl-h.
28758         * modules/areadlinkat (Depends-on): Likewise.
28759         * modules/areadlinkat-with-size (Depends-on): Likewise.
28760         * modules/faccessat (Depends-on): Likewise.
28761         * modules/fchmodat (Depends-on): Likewise.
28762         * modules/fchownat (Depends-on): Likewise.
28763         * modules/getcwd (Depends-on): Likewise.
28764         * modules/mkdirat (Depends-on): Likewise.
28765         * modules/mkfifoat (Depends-on): Likewise.
28766         * modules/readlinkat (Depends-on): Likewise.
28767         * modules/symlinkat (Depends-on): Likewise.
28768         * modules/dup2-tests (Depends-on): Likewise.
28769         * modules/fdutimensat-tests (Depends-on): Likewise.
28770         * modules/futimens-tests (Depends-on): Likewise.
28772 2011-11-19  Bruno Haible  <bruno@clisp.org>
28774         euidaccess: Update a comment.
28775         * lib/euidaccess.c: Update comment about platforms with faccessat.
28777 2011-11-19  Bruno Haible  <bruno@clisp.org>
28779         openat: Fix file list.
28780         * modules/openat (Files): Remove lib/at-func.c.
28782 2011-11-19  Bruno Haible  <bruno@clisp.org>
28784         fstatat: Simplify.
28785         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
28786         gnulib should define rpl_fstatat, there is a
28787         "#define fstatat rpl_fstatat" in <sys/stat.h>.
28789 2011-11-19  Bruno Haible  <bruno@clisp.org>
28791         Ensure 'inline' can be used in tests/test-utimens-common.h.
28792         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
28793         * modules/futimens-tests (configure.ac): Likewise.
28794         * modules/utimens-tests (configure.ac): Likewise.
28795         * modules/utimensat-tests (configure.ac): Likewise.
28797 2011-11-19  Simon Josefsson  <simon@josefsson.org>
28799         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
28800         not hash_insert0.
28801         (hash_insert_if_absent): Doc fix.
28803 2011-11-19  Simon Josefsson  <simon@josefsson.org>
28805         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
28807 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
28809         test-getcwd: disambiguate exit status
28810         * tests/test-getcwd.c (test_long_name): Return 0..7.
28811         (main): Exit with an unambiguous exit status.  The old
28812         code yielded a mysterious mixture of two failure codes.
28814         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
28815         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
28816         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
28817         rpl_fstatat or fstatat.  This should fix the other problem
28818         reported by Kai Habel in
28819         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
28820         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
28821         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00239.html>
28822         and I reproduced it on a Solaris 8 host we still have in production.
28824 2011-11-18  Jim Meyering  <meyering@redhat.com>
28826         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
28827         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
28828         Add a sentence to the comment.
28829         (hash_insert0): New function that simply calls hash_insert_if_absent.
28830         * lib/hash.h (hash_insert_if_absent): Declare it.
28831         (hash_insert0): Add deprecation attribute.
28832         (_GL_ATTRIBUTE_DEPRECATED): Define.
28833         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
28834         not hash_insert0.
28835         * NEWS: Mention it, even though it's not really an incompatible change.
28837 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
28839         openat: avoid compilation failure due to lack of <errno.h> inclusion
28840         * lib/openat.c: Include <errno.h>.
28842 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
28844         * modules/getcwd (Depends-on): Add fdopendir.
28845         This fixes one of the two problems reported by Kai Habel in
28846         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
28848         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
28849         stdalign problem reported by Ian Beckwith in
28850         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00238.html>.
28851         * modules/crypto/gc-arcfour (Depends-on):
28852         Depend conditionally on crypto/arcfour.
28853         * modules/crypto/gc-arctwo (Depends-on):
28854         Depend conditionally on crypto/arctwo.
28855         * modules/crypto/gc-des (Depends-on):
28856         Depend conditionally on crypto/des.
28857         * modules/crypto/gc-hmac-md5 (Depends-on):
28858         Depend conditionally on crypto/hmac-md5.
28859         * modules/crypto/gc-hmac-sha1 (Depends-on):
28860         Depend conditionally on crypto/hmac-sha1.
28861         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
28862         * modules/crypto/gc-md4 (Depends-on):
28863         Depend conditionally on crypto/md4.
28864         * modules/crypto/gc-md5 (Depends-on):
28865         Depend conditionally on crypto/md5.
28866         * modules/crypto/gc-rijndael (Depends-on):
28867         Depend conditionally on crypto/rijndael.
28868         * modules/crypto/gc-sha1 (Depends-on):
28869         Depend conditionally on crypto/sha1.
28870         * modules/crypto/gc-arcfour:
28871         * modules/crypto/gc-arctwo:
28872         * modules/crypto/gc-des:
28873         * modules/crypto/gc-hmac-md5:
28874         * modules/crypto/gc-hmac-sha1:
28875         * modules/crypto/gc-md2:
28876         * modules/crypto/gc-md4:
28877         * modules/crypto/gc-md5:
28878         * modules/crypto/gc-rijndael:
28879         * modules/crypto/gc-sha1:
28880         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
28881         now that the conditional dependencies do the work for us.
28883 2011-11-17  Jim Meyering  <meyering@redhat.com>
28885         tests: factor st_ctime-comparison out of two headers
28886         * tests/test-utimens-common.h (ctime_compare): Define.
28887         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
28888         * tests/test-lutimens.h (test_lutimens): Likewise.
28889         * tests/test-utimens.h (test_utimens): Likewise.
28891         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
28892         Invoke the test program via an init.sh-using wrapper.
28893         * tests/test-getcwd.sh: New file.
28894         * modules/getcwd-tests (Files): Add it.
28895         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
28897 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
28899         gitlog-to-changelog: support multi-author commits.
28900         The FSF cares about keeping track of all authors of patches to its
28901         projects, but Git doesn't provide obvious support for multi-author
28902         changesets. Consensus seems to be forming around the use of extra
28903         Signed-off-by inspired lines in the log message formatted as
28904         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
28905         multi-author commits between version control systems.
28906         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
28907         log message and output in standard ChangeLog multi-author format.
28908         Reported by Peter Rosin <peda@lysator.liu.se>
28910 2011-11-15  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
28911             Bruno Haible  <bruno@clisp.org>
28913         Fix some modules' file list.
28914         * modules/fstatat (Files): Add m4/lstat.m4.
28915         * modules/openat (Files): Likewise.
28916         * modules/unlinkat (Files): Likewise.
28918 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
28920         maint.mk: fix tight-scope.mk generation in VPATH builds.
28921         * top/maint.mk (tight-scope.mk): Make sure to prefix file
28922         reference with $(srcdir) so that the file is found correctly even
28923         when running `make syntax-check' in a VPATH build.
28925 2011-11-13  Bruno Haible  <bruno@clisp.org>
28926             Jim Meyering  <meyering@redhat.com>
28928         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
28929         * tests/init.sh (compare): Remove "No differences encountered" or
28930         synonymous output from the 'diff' program.
28932 2011-11-13  Bruno Haible  <bruno@clisp.org>
28934         Makefile: Tweak indentation.
28935         * Makefile: Use tab as first character in every line that contains rule
28936         commands.
28938 2011-11-13  Bruno Haible  <bruno@clisp.org>
28940         Syntax check for copyright statements.
28941         * check-copyright: New file.
28942         * Makefile (sc_check_copyright): New rule.
28944 2011-11-13  Simon Josefsson  <simon@josefsson.org>
28946         * build-aux/git-version-gen: Add --prefix to configure the tag
28947         match string.
28949 2011-11-13  Simon Josefsson  <simon@josefsson.org>
28951         * build-aux/git-version-gen: Add --help and --version.
28953 2011-11-12  Jim Meyering  <meyering@redhat.com>
28955         revamp the other test-exclude?.sh scripts to use init.sh, too
28956         * tests/test-exclude1.sh: Use init.sh.
28957         * tests/test-exclude2.sh: Likewise.
28958         * tests/test-exclude3.sh: Likewise.
28959         * tests/test-exclude4.sh: Likewise.
28960         * tests/test-exclude5.sh: Likewise.
28961         * tests/test-exclude6.sh: Likewise.
28962         * tests/test-exclude7.sh: Likewise.
28963         * tests/test-exclude8.sh: Likewise.
28964         * modules/exclude-tests (Files): List init.sh.
28966         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
28967         These shell scripts ignored failure of the binary test-exclude,
28968         so making the latter return 77 didn't cause them to be skipped.
28969         * tests/test-exclude5.sh: Exit with test-exclude's error status
28970         when that program fails.  Revamp to use init.sh.
28971         * tests/test-exclude2.sh: Likewise.
28973         test-exclude: fix a typo
28974         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
28976 2011-11-11  Bruno Haible  <bruno@clisp.org>
28978         obstack: Fix compilation error on MSVC 9.
28979         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
28981 2011-11-11  Jim Meyering  <meyering@redhat.com>
28983         test-exclude: skip tests rather than failing on deficient systems
28984         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
28985         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
28986         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
28987         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
28989 2011-11-10  Bruno Haible  <bruno@clisp.org>
28991         ptsname_r test: Avoid gcc warning on glibc systems.
28992         * tests/test-ptsname_r.c (null_ptr): New function.
28993         (test_errors): Use it.
28995 2011-11-10  Bruno Haible  <bruno@clisp.org>
28997         ptsname_r: Avoid compilation error on OSF/1 5.1.
28998         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
28999         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
29000         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
29001         function is not declared or incompatibly declared.
29002         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
29003         * modules/ptsname_r (Depends-on, configure.ac): Update.
29004         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
29006 2011-11-10  Bruno Haible  <bruno@clisp.org>
29008         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
29009         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
29010         When cross-compiling, guess yes on all platforms except AIX.
29011         Reported by Ludovic Courtès <ludo@gnu.org>.
29013 2011-11-09  Bruno Haible  <bruno@clisp.org>
29015         ptsname_r tests: Fix bugs.
29016         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
29017         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
29019 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
29021         fstatat: work with cross-compilation
29022         Problem reported by Ludovic Courtès in
29023         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00136.html>.
29024         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
29025         "cross-compiling" and assume the bug is present.  Replace
29026         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
29027         an inverted sense, to be more conservative about our assumptions.
29028         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
29030 2011-11-09  Bruno Haible  <bruno@clisp.org>
29032         Improve MODULES.html output.
29033         * modules/mkfifoat (Description): Use the word "function".
29034         * modules/readlinkat (Description): Likewise.
29035         * modules/symlinkat (Description): Likewise.
29037 2011-11-09  Eric Blake  <eblake@redhat.com>
29039         ptsname_r-tests: new test module
29040         * modules/ptsname_r-tests: New module.
29041         * tests/test-ptsname_r.c: New file.
29043         ptsname_r: new module
29044         * modules/ptsname_r: New module.
29045         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
29046         * lib/ptsname.c (__ptsname_r): Split...
29047         * lib/ptsname_r.c: ...into new file.
29048         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
29049         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
29050         * modules/stdlib (Makefile.am): Substitute witnesses.
29051         * lib/stdlib.in.h (ptsname_r): Declare it.
29052         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
29053         * MODULES.html.sh (Misc): Likewise.
29054         * modules/ptsname (Depends-on): Alter dependency.
29055         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
29057 2011-11-09  Jim Meyering  <meyering@redhat.com>
29059         announce-gen: be more concise when there's only one URL+tarball
29060         * build-aux/announce-gen (get_tool_versions): When you distribute
29061         only one type of tarball, combine the first two "Here are..."
29062         sections and make the key-checking grammar independent of
29063         how many tarballs there are.
29065 2011-11-09  Eric Blake  <eblake@redhat.com>
29067         openpty: provide a stub on mingw
29068         * lib/pty.in.h (includes): Provide forward declarations.
29069         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
29071         raise: fix mingw handling of SIGPIPE
29072         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
29074 2011-11-08  Bruno Haible  <bruno@clisp.org>
29076         More conditional dependencies.
29077         * modules/faccessat (Depends-on): Add conditions.
29078         * modules/fchmodat (Depends-on): Likewise.
29079         * modules/fchownat (Depends-on): Likewise.
29080         * modules/fstatat (Depends-on): Likewise.
29081         * modules/mkfifoat (Depends-on): Likewise.
29082         * modules/readlinkat (Depends-on): Likewise.
29083         * modules/symlinkat (Depends-on): Likewise.
29084         * modules/unlinkat (Depends-on): Likewise.
29085         * modules/utimensat (Depends-on): Likewise.
29086         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
29087         * modules/linkat (Depends-on): Refine the conditions.
29088         * modules/renameat (Depends-on): Likewise.
29090 2011-11-08  Bruno Haible  <bruno@clisp.org>
29092         faccessat: Move AC_LIBOBJ invocation to module description.
29093         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
29094         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
29095         invocation from here...
29096         * modules/faccessat (configure.ac): ... to here. Invoke
29097         gl_PREREQ_FACCESSAT.
29099 2011-11-08  Bruno Haible  <bruno@clisp.org>
29101         faccessat: Simplify autoconf macro.
29102         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
29103         gl_FUNC_EUIDACCESS.
29105 2011-11-08  Bruno Haible  <bruno@clisp.org>
29107         renameat: Fix dependencies.
29108         * modules/renameat (Depends-on): Add stdbool.
29110 2011-11-08  Bruno Haible  <bruno@clisp.org>
29112         mkfifoat: Fix module description.
29113         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
29114         not gl_UNISTD_MODULE_INDICATOR.
29116 2011-11-08  Bruno Haible  <bruno@clisp.org>
29118         fstatat: Remove unused dependency.
29119         * modules/fstatat (Depends-on): Remove fstat.
29121 2011-11-08  Simon Josefsson  <simon@josefsson.org>
29123         GNUmakefile: behave when Makefile is missing.
29124         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
29126 2011-11-08  Bruno Haible  <bruno@clisp.org>
29128         openat: Conditionalize dependencies.
29129         * lib/openat.c: Reduce the scope of some #includes.
29130         * modules/openat (Depends-on): Add conditions.
29132 2011-11-07  Jim Meyering  <meyering@redhat.com>
29134         maint.mk: extract GPG key ID without using a temporary file
29135         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
29136         without using a temporary file.  Based on a suggestion from Werner Koch
29137         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
29139 2011-11-07  Eric Blake  <eblake@redhat.com>
29141         grantpt: fix typo
29142         * lib/stdlib.in.h (grantpt): Check correct function.
29144         maint.mk: silence new syntax check
29145         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
29147 2011-11-06  Bruno Haible  <bruno@clisp.org>
29149         Doc about floating-point and math API.
29150         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
29151         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
29153 2011-11-06  Bruno Haible  <bruno@clisp.org>
29155         stdalign tests: Skip the test when compiled by Sun C.
29156         * tests/test-stdalign.c (main): Skip the test on Sun C.
29158 2011-11-06  Bruno Haible  <bruno@clisp.org>
29160         ansi-c++-opt: Complete the 2011-06-05 change.
29161         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
29162         does not support namespaces, set the variable to "no", not to ":".
29164 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
29166         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
29168 2011-11-06  Bruno Haible  <bruno@clisp.org>
29170         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
29171         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
29172         (minus_zerol) [HP-UX]: New macro.
29173         (unary_minus) [HP-UX]: New function.
29174         (copysignl) [HP-UX]: Use unary_minus function.
29176 2011-11-06  Bruno Haible  <bruno@clisp.org>
29178         ldexp, ldexpf, ldexpl: Enhance tests.
29179         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
29180         and tests/test-ldexpl.c.
29181         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
29182         LDEXP, MIN_EXP, MAX_EXP): New macros.
29183         Include test-ldexp.h.
29184         (main): Just call test_function.
29185         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
29186         infinity.h, nan.h.
29187         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
29188         MAX_EXP): New macros.
29189         Include test-ldexp.h.
29190         (x, y): Remove variables.
29191         (main): Just call test_function.
29192         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
29193         infinity.h, nan.h.
29194         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
29195         MAX_EXP): New macros.
29196         Include test-ldexp.h.
29197         (x, y): Remove variables.
29198         (main): Just call test_function.
29199         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
29200         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
29201         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
29202         (Depends-on): Add isnand-nolibm, signbit, float.
29203         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
29204         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
29205         (Depends-on): Add isnanf-nolibm, signbit, float.
29207 2011-11-06  Bruno Haible  <bruno@clisp.org>
29209         math tests: Cosmetics.
29210         * tests/test-math-c++.cc: Reorder declarations.
29212 2011-11-05  Bruno Haible  <bruno@clisp.org>
29214         fma*: Simplify test.
29215         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
29216         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
29218         Tests for module 'fmal'.
29219         * modules/fmal-tests: New file.
29220         * tests/test-fmal1.c: New file.
29221         * tests/test-fmal2.c: New file.
29223         New module 'fmal'.
29224         * lib/math.in.h (fmal): New declaration.
29225         * lib/fmal.c: New file.
29226         * m4/fmal.m4: New file.
29227         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
29228         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
29229         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
29230         REPLACE_FMAL.
29231         * modules/fmal: New file.
29232         * doc/posix-functions/fmal.texi: Mention the new module and the various
29233         bugs.
29235         Tests for module 'fmaf'.
29236         * modules/fmaf-tests: New file.
29237         * tests/test-fmaf1.c: New file.
29238         * tests/test-fmaf2.c: New file.
29240         New module 'fmaf'.
29241         * lib/math.in.h (fmaf): New declaration.
29242         * lib/fmaf.c: New file.
29243         * m4/fmaf.m4: New file.
29244         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
29245         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
29246         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
29247         REPLACE_FMAF.
29248         * modules/fmaf: New file.
29249         * doc/posix-functions/fmaf.texi: Mention the new module and the various
29250         bugs.
29252         Tests for module 'fma'.
29253         * modules/fma-tests: New file.
29254         * tests/test-fma1.c: New file.
29255         * tests/test-fma1.h: New file.
29256         * tests/test-fma2.c: New file.
29257         * tests/test-fma2.h: New file.
29259         New module 'fma'.
29260         * lib/math.in.h (fma): New declaration.
29261         * lib/fma.c: New file.
29262         * m4/fma.m4: New file.
29263         * m4/fegetround.m4: New file.
29264         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
29265         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
29266         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
29267         REPLACE_FMA.
29268         * modules/fma: New file.
29269         * doc/posix-functions/fma.texi: Mention the new module and the various
29270         bugs.
29272         Extend gl_MATHFUNC.
29273         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
29274         Support 'void' as argument type.
29275         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
29277 2011-11-05  Jim Meyering  <meyering@redhat.com>
29279         maint.mk: also prohibit inclusion of dirent.h without use
29280         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
29282 2011-11-05  Bruno Haible  <bruno@clisp.org>
29284         ldexpl tests: Avoid test failure on MSVC 9.
29285         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
29286         value. Needed in order to enforce the conversion from a value greater
29287         than LDBL_MAX to Infinity.
29289 2011-11-05  Bruno Haible  <bruno@clisp.org>
29291         New modules 'at-internal', 'openat-h', split off from module 'openat'.
29292         * modules/at-internal: New file, extracted from modules/openat.
29293         * modules/openat-h: New file.
29294         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
29295         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
29296         * modules/openat (Description): Add reference to POSIX function.
29297         (Files): Remove lib/openat.h, lib/openat-proc.c.
29298         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
29299         intprops, unistd.
29300         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
29301         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
29302         gl_FCNTL_MODULE_INDICATOR.
29303         (Include): Remove unistd.h, openat.h.
29304         * modules/areadlinkat (Files): Add lib/at-func.c.
29305         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
29306         openat-die, openat-h, save-cwd.
29307         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
29308         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
29309         openat-die, openat-h, save-cwd, unistd.
29310         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
29311         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
29312         openat-h, save-cwd. Remove fcntl-h, openat.
29313         * modules/fchmodat (Files): Remove lib/openat.h.
29314         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
29315         openat, stdbool, unistd.
29316         * modules/fchownat (Files): Remove lib/openat.h.
29317         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
29318         openat, stdbool, sys_stat.
29319         * modules/fdopendir (Files): Remove lib/openat-priv.h,
29320         lib/openat-proc.c.
29321         (Depends-on): Add at-internal.
29322         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
29323         * modules/fstatat (Files): Remove lib/openat.h.
29324         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
29325         stdbool, unistd.
29326         * modules/fts (Depends-on): Add openat-h.
29327         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
29328         openat.
29329         * modules/mkdirat (Files): Remove lib/openat.h.
29330         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
29331         openat, stdbool, sys_stat.
29332         * modules/mkfifoat (Files): Add lib/at-func.c.
29333         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
29334         openat-h, save-cwd. Remove fcntl-h, openat.
29335         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
29336         * modules/readlinkat (Files): Add lib/at-func.c.
29337         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
29338         openat-h, save-cwd. Remove fcntl-h, openat.
29339         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
29340         openat.
29341         * modules/selinux-at (Files): Add lib/at-func.c.
29342         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
29343         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
29344         * modules/symlinkat (Files): Add lib/at-func.c.
29345         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
29346         openat-h, save-cwd. Remove fcntl-h, openat.
29347         * modules/unlinkat (Files): Remove lib/openat.h.
29348         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
29349         stdbool.
29350         * modules/utimensat (Files): Add lib/at-func.c.
29351         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
29352         openat-die, openat-h, save-cwd.
29353         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
29354         * modules/fdutimensat-tests (Depends-on): Add openat.
29355         * modules/fstatat-tests (Depends-on): Add openat-h.
29356         * modules/readlinkat-tests (Depends-on): Add openat.
29357         * modules/symlinkat-tests (Depends-on): Add openat.
29359 2011-11-05  Bruno Haible  <bruno@clisp.org>
29361         openat: Include <stdbool.h>.
29362         * lib/openat.c: Include <stdbool.h>.
29364 2011-11-04  Bruno Haible  <bruno@clisp.org>
29366         fchownat, renameat, unlinkat: Fix dependencies.
29367         * modules/fchownat (Depends-on): Add fstatat.
29368         * modules/renameat (Depends-on): Likewise.
29369         * modules/unlinkat (Depends-on): Likewise.
29371 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
29373         openat: remove direct dependency on dirent
29374         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
29375         and hasn't been needed ever since fdopendir was split into its own
29376         module on 2009-08-31.
29377         * modules/openat (Depends-on): Remove dirent.
29379 2011-11-04  Bruno Haible  <bruno@clisp.org>
29381         renameat: Optimize code size.
29382         * modules/renameat (configure.ac): Don't compile at-func2.c if
29383         REPLACE_RENAMEAT is 1.
29385 2011-11-04  Bruno Haible  <bruno@clisp.org>
29387         openat tests: Fix file list.
29388         * modules/openat-tests (Files): Add tests/test-open.h.
29390 2011-11-04  Bruno Haible  <bruno@clisp.org>
29392         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
29393         * modules/fchmodat (Depends-on): Add openat-die.
29394         * modules/fchownat (Depends-on): Likewise.
29395         * modules/linkat (Depends-on): Likewise.
29396         * modules/renameat (Depends-on): Likewise.
29397         * modules/openat (Depends-on): Add dirent.
29399 2011-11-04  Jim Meyering  <meyering@redhat.com>
29401         at-func*.c: fix comments
29402         * lib/at-func2.c: Correct/improve first-line comment.
29403         * lib/at-func.c: Correct grammar in first-line comment.
29405 2011-11-04  Bruno Haible  <bruno@clisp.org>
29407         New module 'mkdirat', split off from module 'openat'.
29408         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
29409         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
29410         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
29411         * modules/mkdirat: New file, extracted from modules/openat.
29412         * modules/openat (Files): Remove lib/mkdirat.c.
29413         (Depends-on): Remove mkdir.
29414         (configure.ac): Remove AC_LIBOBJ of mkdirat.
29415         (Include): Remove <sys/stat.h>.
29416         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
29417         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
29418         tests/test-mkdir.h.
29419         (Depends-on): Remove ignore-value.
29420         (Makefile.am): Remove rules for test-mkdirat.
29421         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
29422         of module 'openat'.
29423         * NEWS: Mention the change.
29425 2011-11-04  Bruno Haible  <bruno@clisp.org>
29427         closedir: Avoid warning on mingw.
29428         * lib/closedir.c: Include <unistd.h>.
29430 2011-11-04  Bruno Haible  <bruno@clisp.org>
29432         New module 'fstatat', split off from module 'openat'.
29433         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
29434         defined.
29435         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
29436         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
29437         gl_FUNC_FSTATAT.
29438         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
29439         * modules/fstatat: New file, extracted from modules/openat.
29440         * modules/openat (Files): Remove lib/fstatat.c.
29441         (Depends-on): Remove lstat.
29442         (configure.ac): Remove AC_LIBOBJ of fstatat.
29443         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
29444         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
29445         tests/test-lstat.h, tests/test-stat.h.
29446         (Depends-on): Remove getcwd-lgpl.
29447         (Makefile.am): Remove rules for test-fstatat.
29448         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
29449         of module 'openat'.
29450         * NEWS: Mention the change.
29451         * modules/getcwd (Depends-on): Add fstatat.
29452         * modules/linkat (Depends-on): Likewise.
29453         * modules/mkfifoat-tests (Depends-on): Likewise.
29454         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
29456 2011-11-03  Bruno Haible  <bruno@clisp.org>
29458         New module 'unlinkat', split off from module 'openat'.
29459         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
29460         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
29461         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
29462         * modules/unlinkat: New file, extracted from modules/openat. Correct
29463         the dependency conditions.
29464         * modules/openat (Files): Remove lib/unlinkat.c.
29465         (Depends-on): Remove rmdir, unlink.
29466         (configure.ac): Remove AC_LIBOBJ of unlinkat.
29467         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
29468         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
29469         tests/test-rmdir.h, tests/test-unlink.h.
29470         (Depends-on): Remove unlinkdir.
29471         (Makefile.am): Remove rules for test-unlinkat.
29472         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
29473         of module 'openat'.
29474         * NEWS: Mention the change.
29475         * modules/linkat-tests (Depends-on): Add unlinkat.
29476         * modules/mkfifoat-tests (Depends-on): Likewise.
29477         * modules/readlinkat-tests (Depends-on): Likewise.
29479 2011-11-02  Bruno Haible  <bruno@clisp.org>
29481         New module 'fchmodat', split off from module 'openat'.
29482         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
29483         defined.
29484         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
29485         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
29486         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
29487         * modules/fchmodat: New file, extracted from modules/openat.
29488         * modules/openat (Files): Remove lib/fchmodat.c.
29489         (configure.ac): Remove AC_LIBOBJ of fchmodat.
29490         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
29491         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
29492         (Makefile.am): Remove rules for test-fchmodat.
29493         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
29494         of module 'openat'.
29495         * NEWS: Mention the change.
29497 2011-11-02  Jim Meyering  <meyering@redhat.com>
29499         putenv: indent #definition of "environ" to placate cppi
29500         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
29502         gitlog-to-changelog: provide a ChangeLog-repair mechanism
29503         Git logs are often treated as immutable, because editing them
29504         changes the SHA1 checksums of all descendants.  Thus, errors in
29505         git logs tend to stay there forever.  However, when we generate
29506         a ChangeLog file -- typically for distribution -- from that git log,
29507         we can actually make corrections in the generated file.  The key
29508         lies in recording in machine-readable/applicable form the desired
29509         corrections.  See --help for description and an example.
29510         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
29511         (usage): Describe it; alphabetize option descriptions.
29512         (main): Honor the new option, carefully.
29514 2011-11-01  Jim Meyering  <meyering@redhat.com>
29516         gitlog-to-changelog: avoid an infloop
29517         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
29518         that ends up being empty.
29520 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
29522         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
29523         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
29524         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
29525         contains (possibly-quoted) backslashes.  This should avoid
29526         all-too-common shell bugs if COMPLICATED contains backslashes in
29527         the "wrong" places.  Reported by David Evans in
29528         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00013.html>.
29529         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
29530         because we want ASCII ranges.  Is there some reason we don't use
29531         the C locale everywhere in this script?
29532         (func_module, top level): Avoid unwanted pathname expansion when
29533         $repo_url_prefix or $repo_url_suffix_repl contain shell
29534         metacharacters like '?' and '*'.
29536 2011-11-01  Bruno Haible  <bruno@clisp.org>
29538         fchownat: Improve description.
29539         * modules/fchownat (Description): Add link to function.
29541 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
29543         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
29544         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
29545         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00006.html>.
29546         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
29548 2011-11-01  Bruno Haible  <bruno@clisp.org>
29550         alignof: Avoid collision with stdalign module.
29551         * lib/alignof.h (alignof): Remove macro.
29552         * NEWS: Mention the change.
29553         Reported by Paul Eggert.
29555 2011-11-01  Bruno Haible  <bruno@clisp.org>
29557         New module 'fchownat', split off from module 'openat'.
29558         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
29559         defined.
29560         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
29561         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
29562         invoke gl_FUNC_FCHOWNAT.
29563         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
29564         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
29565         * modules/fchownat: New file, extracted from modules/openat.
29566         * modules/openat (Files): Remove lib/fchownat.c.
29567         (Depends-on): Remove lchown.
29568         (configure.ac): Remove AC_LIBOBJ of fchownat.
29569         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
29570         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
29571         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
29572         (Depends-on): Remove mgetgroups, usleep, stat-time.
29573         (configure.ac): Remove test for getegid.
29574         (Makefile.am): Remove rules for test-fchownat.
29575         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
29576         of module 'openat'.
29577         * NEWS: Mention the change.
29579 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
29581         stdalign: port better to MSVC and to Sun C 5.11
29582         This fixes some of the problems reported by Bruno Haible in
29583         <http://lists.gnu.org/r/bug-gnulib/2011-10/msg00300.html>.
29584         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
29585         shortcomings of MSVC and of Sun C 5.11.
29586         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
29587         around __declspec arg.
29588         * modules/stdalign-tests (Files): Add tests/macros.h.
29589         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
29590         Include macros.h, for ASSERT.
29591         (DECLARE_ALIGNED): Remove.
29592         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
29593         to catch bug), and to 1 if not (simplifies the rest of the code).
29594         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
29595         (CHECK_AUTO): Remove.
29596         (CHECK_ALIGNED): Check only the alignment of the static vars,
29597         since auto var alignment isn't supported by Sun C 5.11.
29598         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
29599         ASSERT failures are easier to diagnose.
29601 2011-10-31  Bruno Haible  <bruno@clisp.org>
29603         doc about some IRIX 5.3 problems.
29604         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
29605         on IRIX 5.3.
29606         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
29607         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
29608         5.3.
29609         * doc/posix-functions/grantpt.texi: Likewise.
29610         * doc/posix-functions/unlockpt.texi: Likewise.
29611         * doc/posix-functions/lgamma.texi: Likewise.
29612         * doc/posix-functions/nextafter.texi: Likewise.
29613         * doc/posix-functions/remainder.texi: Likewise.
29614         * doc/posix-functions/select.texi: Mention misplaced declaration on
29615         IRIX 5.3.
29616         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29618 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
29620         gitlog-to-changelog: fix git-log invocation.
29621         git-log mishandles date strings before 1970-01-01 UTC, and there is
29622         no use to specify --since=1970-01-01 by default anyway.
29623         * build-aux/gitlog-to-changelog: By default, when no --since option
29624         was given, do not specify explicit --since option to git-log.
29626 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
29628         gitlog-to-changelog: new option --append-dot.
29629         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
29630         first non-blank line of each commit message terminated with a dot.
29632 2011-10-30  Bruno Haible  <bruno@clisp.org>
29634         ffsl, ffsll: Avoid compilation error due to 'restrict'.
29635         * lib/ffsl.h: Include <config.h>.
29636         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
29638 2011-10-30  Jim Meyering  <meyering@redhat.com>
29640         GNUmakefile: reenable "make syntax-check" for most projects
29641         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
29642         build-aux variable", "syntax-check" would do nothing but succeed with
29643         the "No version control files detected..." diagnostic (unless you
29644         happened to override _build-aux via cfg.mk).
29645         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
29646         to precede inclusion of maint.mk.  Otherwise, these variables would
29647         be used undefined in any project that does not override the default.
29649 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
29651         gitlog-to-changelog: treat a message with only blank lines as empty.
29652         * build-aux/gitlog-to-changelog: Move the code that removes leading and
29653         trailing blank lines before the code that issues a warning about an
29654         empty commit message.
29656 2011-10-30  Jim Meyering  <meyering@redhat.com>
29658         test-parse-datetime.c: avoid new DST-related false positive test failure
29659         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
29660         based on the time/date we'll convert, not the current time.
29661         Otherwise, the moment we cross a DST boundary like today's in
29662         Europe, (CEST to CET), that offset ends up being one hour off.
29664 2011-10-27  Bruno Haible  <bruno@clisp.org>
29666         fstat: Tweak documentation.
29667         * modules/fstat (Description): More precise description.
29669 2011-10-27  Bruno Haible  <bruno@clisp.org>
29671         Update documentation regarding 'largefile' module.
29672         * doc/posix-functions/fstat.texi: Tweak wording.
29673         * doc/posix-functions/opendir.texi: Mention that the module fixes the
29674         problems with huge directories and/or small ino_t types.
29675         * doc/posix-functions/readdir.texi: Likewise.
29676         * doc/posix-functions/rewinddir.texi: Likewise.
29678 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
29680         maint.mk: don't maintain a second build-aux variable.
29681         * maint.mk (build_aux): Removed.  The maintainer-makefile module
29682         depends on GNUmakefile, which already maintains a cfg.mk
29683         overridable $(_build-aux) for projects with a non-standard
29684         build-aux directory location, although without the $(srcdir)
29685         prefix.  Use that variable consistently instead of introducing a
29686         second one.  Adjust all call sites.
29688 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
29690         Add stdalign module and use it in other modules.
29691         This is based on a previous proposal by Bruno Haible
29692         <https://lists.gnu.org/r/bug-gnulib/2011-07/msg00226.html>.
29694         stdalign: new module
29695         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
29696         * modules/stdalign: New files.
29697         * MODULES.html.sh (c1x_core_properties): Add stdalign.
29698         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
29700         stdalign-tests: new module
29701         * modules/stdalign-tests, tests/test-stdalign.c: New files.
29703         argp: use stdalign
29704         * lib/argp-parse.c: Include <stdalign.h>.
29705         (alignof): Remove.
29706         * modules/argp (Depends-on): Add stdalign.
29708         crypto libraries: use stdalign
29709         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
29710         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
29711         Do not include <stdlib.h> twice, in md4.c.
29712         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
29713         because we are accessing a pointer's bit-pattern, not a size.
29714         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
29715         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
29716         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
29717         * modules/crypto/sha512: Likewise.
29719         sys_socket: use stdalign, not alignof
29720         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
29721         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
29723 2011-10-27  Bruno Haible  <bruno@clisp.org>
29725         raise test: Avoid a test failure on Linux/MIPS.
29726         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
29727         because 99 is a valid signal on Linux/MIPS.
29729 2011-10-27  Bruno Haible  <bruno@clisp.org>
29731         nonblocking tests: Fix test failure on Linux/MIPS.
29732         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
29733         Set to 270000.
29735 2011-10-27  Bruno Haible  <bruno@clisp.org>
29737         utimensat: Work around problem on Linux/hppa.
29738         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
29739         values.
29740         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
29742 2011-10-25  Jim Meyering  <meyering@redhat.com>
29744         maint.mk: fix a bug in sc_prohibit_stddef_without_use
29745         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
29746         after symbols like NULL, size_t, etc.
29747         Reported by Alfred M. Szmidt.
29749         maint.mk: exempt ENODATA from a syntax-check rule
29750         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
29751         from the sc_prohibit_always-defined_macros syntax-check rule.
29752         Add a comment.  See this for more details:
29753         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
29755 2011-10-23  Jim Meyering  <meyering@redhat.com>
29757         fts: close parent dir FD before returning from post-traversal fts_read
29758         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
29759         unlink A, even though an FD open on A remained.  This is suboptimal
29760         (holding a file descriptor open longer than needed), but otherwise not
29761         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
29762         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
29763         that represents a real problem: it causes the removal of A to fail
29764         with e.g., "rm: cannot remove `A': Device or resource busy"
29766         fts visits each directory twice and keeps a cache (fts_fd_ring) of
29767         directory file descriptors.  After completing the final, FTS_DP,
29768         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
29769         cache, but then proceeded to add a new FD to it via the subsequent
29770         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
29771         final file descriptor would be closed only via fts_close's call to
29772         fd_ring_clear.  Now, it is usually closed earlier, via the final
29773         FTS_DP-returning fts_read call.
29774         * lib/fts.c (restore_initial_cwd): New function, converted from
29775         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
29776         Update callers.
29777         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
29778         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
29780 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
29781             Bruno Haible  <bruno@clisp.org>
29782             Jim Meyering  <jim@meyering.net>
29784         readme-release: improve safety of release prep instructions.
29785         * README-release: Don't git pull all branches when only master
29786         is needed for the release process.
29787         Run make maintainer-clean before changing trees and merging.
29788         Don't try to run ./configure right after git pull in case files
29789         that influence the bootstrap process have changed, move the
29790         ./configure step to after running ./bootstrap.
29791         Don't bootstrap "one last time"... it's the first time!
29793 2011-10-22  Bruno Haible  <bruno@clisp.org>
29795         errno, strerror-override: Support for MSVC 10.
29796         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
29797         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
29798         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
29799         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
29800         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
29801         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
29802         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
29803         Assign values compatible with MSVC 10.
29804         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
29805         New macros.
29806         (GNULIB_defined_EWINSOCK): New macro.
29807         * lib/strerror-override.c (strerror_override): Update accordingly.
29808         * lib/strerror-override.h: Likewise.
29809         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
29810         longer equal to the corresponding errno value.
29811         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
29813 2011-10-22  Bruno Haible  <bruno@clisp.org>
29815         perror: Recognize when test program crashes.
29816         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
29817         strerror, set gl_cv_func_perror_works to no.
29818         Reported by Daniel Richard G. <skunk@iskunk.org>.
29820         perror: Fix indentation.
29821         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
29823 2011-10-22  Bruno Haible  <bruno@clisp.org>
29825         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
29826         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
29827         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
29828         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
29829         functions, not as a macro.
29830         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
29831         macros.
29832         (isfinite, isinf, isnan, signbit): Check overloaded functions and
29833         absence of macro.
29834         Suggested by Eric Blake.
29835         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
29837 2011-10-21  Bruno Haible  <bruno@clisp.org>
29839         relocatable-prog-wrapper: Don't leave object files behind.
29840         * build-aux/install-reloc: Re-synchronize list of .o files to be
29841         removed with list of compilation units.
29843 2011-10-20  Bruno Haible  <bruno@clisp.org>
29845         openpty, posix_openpt: Remove code duplication.
29846         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
29847         * lib/openpty.c: Include <stdlib.h>.
29848         (openpty): Use posix_openpt on all platforms except IRIX.
29849         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
29851 2011-10-20  Bruno Haible  <bruno@clisp.org>
29853         unlockpt: Detect invalid argument.
29854         * lib/unlockpt.c: Include <fcntl.h>.
29855         (unlockpt): Check whether fd is valid, using fcntl().
29856         * modules/unlockpt (Depends-on): Add fcntl-h.
29858 2011-10-20  Bruno Haible  <bruno@clisp.org>
29860         openpty: Avoid compilation error on AIX 6.1.
29861         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
29863 2011-10-20  Bruno Haible  <bruno@clisp.org>
29865         posix_openpt: Support for OpenBSD.
29866         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
29867         (posix_openpt) [OpenBSD]: New code.
29868         * lib/grantpt.c: Include <fcntl.h>.
29869         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
29870         * modules/grantpt (Depends-on): Add fcntl-h.
29872 2011-10-20  Bruno Haible  <bruno@clisp.org>
29874         posix_openpt test: Coding style.
29875         * tests/test-posix_openpt.c: Use GNU coding style.
29877 2011-10-20  Bruno Haible  <bruno@clisp.org>
29879         grantpt: Support --avoid=pt_chown.
29880         * modules/grantpt (Files): Add lib/pty-private.h.
29882 2011-10-20  Bruno Haible  <bruno@clisp.org>
29884         posix_openpt: Fix autoconf macro.
29885         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
29886         unneeded check for _getpty.
29888 2011-10-20  Bruno Haible  <bruno@clisp.org>
29890         openpty: Update comments.
29891         * lib/openpty.c: Add comments about Minix.
29893 2011-10-19  Eric Blake  <eblake@redhat.com>
29895         openpty: relax license
29896         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
29898         pt_chown: use configmake to simplify build
29899         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
29901         ptsname and others: relax license
29902         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
29903         * modules/unlockpt (License): Likewise.
29904         * modules/pt_chown (License): Likewise.
29905         * modules/ptsname (License): Likewise.
29906         * modules/ttyname_r (License): Likewise.
29908 2011-10-19  Jim Meyering  <meyering@redhat.com>
29910         posix_openpt: remove spurious #endif
29911         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
29913 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
29915         maint.mk: Respect $(build_aux) in web-manual rule.
29916         * top/maint.mk (web-manual): Find gen-announce script in user's
29917         $(build_aux) directory instead of hard-coding 'build-aux'.
29919 2011-10-19  Bruno Haible  <bruno@clisp.org>
29921         posix_openpt: Fix compilation error.
29922         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
29923         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
29924         Mention the openpty module as an alternative.
29926 2011-10-19  Bruno Haible  <bruno@clisp.org>
29928         Support for old NeXTstep 3.3 frexp().
29929         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
29930         execution time of the test to 5 seconds.
29931         Reported by Daniel Richard G. <skunk@iskunk.org>.
29933 2011-10-19  Bruno Haible  <bruno@clisp.org>
29935         Support for old NeXTstep 3.3 sed.
29936         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
29937         part, use /.../, not \|...|. Escape periods in the header file name.
29938         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
29939         Reported by Daniel Richard G. <skunk@iskunk.org>.
29941 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
29943         Support for old NeXTstep 3.3 gcc.
29944         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
29945         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
29946         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
29947         * lib/spawn.in.h (_Restrict_arr_): Likewise.
29948         * lib/regex.h (_Restrict_arr_): Likewise.
29949         * lib/regex_internal.h (re_token_t): Likewise.
29950         * lib/regexec.c (check_node_accept_bytes): Likewise.
29951         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
29953 2011-10-18  Eric Blake  <eblake@redhat.com>
29955         posix_openpt: new module
29956         * modules/posix_openpt: New module.
29957         * m4/posix_openpt.m4: New file.
29958         * lib/posix_openpt.c: Likewise.
29959         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
29960         (gl_STDLIB_H_DEFAULTS): Set defaults.
29961         * modules/stdlib (Makefile.am): Substitute macros.
29962         * lib/stdlib.in.h (posix_openpt): Declare.
29963         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
29964         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
29965         * modules/posix_openpt-tests: New test module.
29966         * tests/test-posix_openpt.c: New test.
29968 2011-10-15  Bruno Haible  <bruno@clisp.org>
29970         xstrtoll: Fix compilation failure.
29971         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
29972         from lib/strtol.c.
29973         * doc/posix-headers/limits.texi: Mention missing numerical limits on
29974         some platforms.
29975         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29977 2011-10-15  Bruno Haible  <bruno@clisp.org>
29979         vasnprintf: Optimize bit search operation.
29980         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
29981         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
29982         gl_DOUBLE_EXPONENT_LOCATION.
29983         * modules/vasnprintf (Files): Add m4/exponentd.m4.
29984         * modules/unistdio/u8-vasnprintf (Files): Likewise.
29985         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
29986         * modules/unistdio/u16-vasnprintf (Files): Likewise.
29987         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
29988         * modules/unistdio/u32-vasnprintf (Files): Likewise.
29989         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
29990         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
29991         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
29993 2011-10-15  Bruno Haible  <bruno@clisp.org>
29995         vasnprintf: Fix comments.
29996         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
29998 2011-10-14  Bruno Haible  <bruno@clisp.org>
30000         Tests for module 'integer_length_ll'.
30001         * modules/integer_length_ll-tests: New file.
30002         * tests/test-integer_length_ll.c: New file.
30004         New module 'integer_length_ll'.
30005         * lib/integer_length_ll.c: New file.
30006         * modules/integer_length_ll: New file.
30008 2011-10-14  Bruno Haible  <bruno@clisp.org>
30010         Tests for module 'integer_length_l'.
30011         * modules/integer_length_l-tests: New file.
30012         * tests/test-integer_length_l.c: New file.
30014         New module 'integer_length_l'.
30015         * lib/integer_length_l.c: New file.
30016         * modules/integer_length_l: New file.
30018 2011-10-14  Bruno Haible  <bruno@clisp.org>
30020         Tests for module 'integer_length'.
30021         * modules/integer_length-tests: New file.
30022         * tests/test-integer_length.c: New file.
30024         New module 'integer_length'.
30025         * lib/integer_length.h: New file.
30026         * lib/integer_length.c: New file.
30027         * modules/integer_length: New file.
30029 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
30031         popen: Fix dependency conditions.
30032         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
30034 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
30036         perror: Fix autoconf test.
30037         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
30038         <stdlib.h> and <string.h>.
30040 2011-10-14  Bruno Haible  <bruno@clisp.org>
30042         ffsl: Optimize on 64-bit platforms.
30043         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
30044         unrolling.
30046 2011-10-13  Bruno Haible  <bruno@clisp.org>
30048         ffsl: Optimize on 32-bit platforms.
30049         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
30050         use ffs() without a loop.
30052         ffsl, ffsll: Optimize for GCC.
30053         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
30054         * lib/ffsl.c (GCC_BUILTIN): New macro.
30055         * lib/ffsll.c (GCC_BUILTIN): Likewise.
30057 2011-10-13  Bruno Haible  <bruno@clisp.org>
30059         ffs, bcopy, memset: Support symbol renaming via config.h.
30060         * lib/ffs.c: Include <config.h>.
30061         * lib/bcopy.c: Likewise.
30062         * lib/memset.c: Likewise.
30064 2011-10-10  Bruno Haible  <bruno@clisp.org>
30066         atanl: Simplify for platforms where 'long double' == 'double'.
30067         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
30068         alternative implementation.
30069         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30070         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30071         * modules/atanl (Depends-on): Add atan. Update conditions.
30073 2011-10-10  Bruno Haible  <bruno@clisp.org>
30075         acosl: Simplify for platforms where 'long double' == 'double'.
30076         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
30077         alternative implementation.
30078         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30079         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30080         * modules/acosl (Depends-on): Add acos. Update conditions.
30082 2011-10-10  Bruno Haible  <bruno@clisp.org>
30084         asinl: Simplify for platforms where 'long double' == 'double'.
30085         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
30086         alternative implementation.
30087         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30088         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30089         * modules/asinl (Depends-on): Add asin. Update conditions.
30091 2011-10-10  Bruno Haible  <bruno@clisp.org>
30093         tanl: Simplify for platforms where 'long double' == 'double'.
30094         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
30095         implementation.
30096         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30097         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30098         * modules/tanl (Depends-on): Add tan. Update conditions.
30099         (configure.ac): Don't compile trigl.c if
30100         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30102 2011-10-10  Bruno Haible  <bruno@clisp.org>
30104         cosl: Simplify for platforms where 'long double' == 'double'.
30105         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
30106         implementation.
30107         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30108         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30109         * modules/cosl (Depends-on): Add cos. Update conditions.
30110         (configure.ac): Don't compile sincosl.c and trigl.c if
30111         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30113 2011-10-10  Bruno Haible  <bruno@clisp.org>
30115         sinl: Simplify for platforms where 'long double' == 'double'.
30116         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
30117         implementation.
30118         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30119         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30120         * modules/sinl (Depends-on): Add sin. Update conditions.
30121         (configure.ac): Don't compile sincosl.c and trigl.c if
30122         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30124 2011-10-10  Bruno Haible  <bruno@clisp.org>
30126         logl: Simplify for platforms where 'long double' == 'double'.
30127         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
30128         implementation.
30129         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30130         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30131         * modules/logl (Depends-on): Add log. Update conditions.
30133 2011-10-10  Bruno Haible  <bruno@clisp.org>
30135         expl: Simplify for platforms where 'long double' == 'double'.
30136         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
30137         implementation.
30138         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30139         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30140         * modules/expl (Depends-on): Add exp. Update conditions.
30142 2011-10-10  Bruno Haible  <bruno@clisp.org>
30144         sqrtl: Simplify for platforms where 'long double' == 'double'.
30145         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
30146         alternative implementation.
30147         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30148         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30149         * modules/sqrtl (Depends-on): Update conditions.
30151 2011-10-10  Bruno Haible  <bruno@clisp.org>
30153         ldexpl: Simplify for platforms where 'long double' == 'double'.
30154         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
30155         alternative implementation.
30156         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30157         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30158         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
30160 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
30162         ffsll: set correct witness
30163         * modules/ffsll (configure.ac): Fix typo.
30165 2011-10-10  Bruno Haible  <bruno@clisp.org>
30167         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
30168         * lib/printf-frexpl.c: Include <config.h>.
30169         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
30170         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
30171         second time.
30172         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
30173         gl_LONG_DOUBLE_VS_DOUBLE.
30174         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
30175         conditions.
30177 2011-10-10  Bruno Haible  <bruno@clisp.org>
30179         frexpl: Simplify for platforms where 'long double' == 'double'.
30180         * lib/frexpl.c: Include <config.h>.
30181         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
30182         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
30183         time.
30184         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30185         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30186         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
30187         * modules/frexpl (Depends-on): Add frexp. Update conditions.
30188         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
30189         conditions.
30191 2011-10-10  Jim Meyering  <meyering@redhat.com>
30193         test-renameat: don't leave behind a temporary file
30194         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
30195           ERROR: files left in build directory after distclean:
30196           ./gltests/test-renameat.too
30197           make[1]: *** [distcleancheck] Error 1
30198         Reported by Tom G. Christensen.
30200 2011-10-09  Bruno Haible  <bruno@clisp.org>
30202         rint: Determine RINT_LIBM correctly on AIX 7.
30203         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
30204         directly, not only through a function pointer. Also accept an optional
30205         4th argument with extra code.
30206         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
30207         rintf() call by gcc when optimizing.
30209         mathfunc.m4: Refactor.
30210         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
30211         m4 variable.
30213 2011-10-09  Bruno Haible  <bruno@clisp.org>
30215         rintl: Simplify for platforms where 'long double' == 'double'.
30216         * lib/rintl.c: Include <config.h>.
30217         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
30218         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
30219         time.
30220         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30221         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30222         * modules/rintl (Depends-on): Add rint. Update conditions.
30224 2011-10-09  Bruno Haible  <bruno@clisp.org>
30226         roundl: Simplify for platforms where 'long double' == 'double'.
30227         * lib/roundl.c: Include <config.h>.
30228         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
30229         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
30230         time.
30231         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30232         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30233         * modules/roundl (Depends-on): Add round. Update conditions.
30235 2011-10-09  Bruno Haible  <bruno@clisp.org>
30237         truncl: Simplify for platforms where 'long double' == 'double'.
30238         * lib/truncl.c: Include <config.h>.
30239         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
30240         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
30241         time.
30242         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30243         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30244         * modules/truncl (Depends-on): Add trunc. Update conditions.
30246 2011-10-09  Bruno Haible  <bruno@clisp.org>
30248         ceill: Simplify for platforms where 'long double' == 'double'.
30249         * lib/ceill.c: Include <config.h>.
30250         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
30251         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
30252         time.
30253         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30254         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30255         * modules/ceill (Depends-on): Add ceil. Update conditions.
30257 2011-10-09  Bruno Haible  <bruno@clisp.org>
30259         floorl: Simplify for platforms where 'long double' == 'double'.
30260         * lib/floorl.c: Include <config.h>.
30261         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
30262         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
30263         time.
30264         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30265         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30266         * modules/floorl (Depends-on): Add floor. Update conditions.
30268 2011-10-09  Bruno Haible  <bruno@clisp.org>
30270         rint: Fix ordering constraints.
30271         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
30272         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
30273         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
30275 2011-10-09  Bruno Haible  <bruno@clisp.org>
30277         copysignl: Simplify for platforms where 'long double' == 'double'.
30278         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
30279         alternative.
30280         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30281         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30282         * modules/copysignl (Depends-on): Add copysign. Update conditions.
30284 2011-10-09  Bruno Haible  <bruno@clisp.org>
30286         Tests for module 'rintl'.
30287         * modules/rintl-tests: New file.
30288         * tests/test-rintl.c: New file.
30290         New module 'rintl'.
30291         * lib/math.in.h (rintl): New declaration.
30292         * lib/rintl.c: New file.
30293         * m4/rintl.m4: New file.
30294         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
30295         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
30296         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
30297         * modules/rintl: New file.
30298         * tests/test-math-c++.cc: Check the declaration of rintl.
30299         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
30300         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
30301         * doc/posix-functions/rintl.texi: Mention the new module.
30303 2011-10-09  Bruno Haible  <bruno@clisp.org>
30305         Tests for module 'rintf'.
30306         * modules/rintf-tests: New file.
30307         * tests/test-rintf.c: New file.
30309         New module 'rintf'.
30310         * lib/math.in.h (rintf): New declaration.
30311         * lib/rintf.c: New file.
30312         * m4/rintf.m4: New file.
30313         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
30314         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
30315         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
30316         * modules/rintf: New file.
30317         * tests/test-math-c++.cc: Check the declaration of rintf.
30318         * doc/posix-functions/rintf.texi: Mention the new module.
30320 2011-10-09  Bruno Haible  <bruno@clisp.org>
30322         rint: Support for MSVC.
30323         * lib/math.in.h (rint): New declaration.
30324         * lib/rint.c: New file.
30325         * m4/rint.m4: New file.
30326         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
30327         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
30328         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
30329         * modules/rint (Description): Fix.
30330         (Files): Add lib/rint.c, m4/rint.m4.
30331         (Depends-on): Add math.
30332         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
30333         gl_MATH_MODULE_INDICATOR.
30334         * tests/test-math-c++.cc: Check the declaration of rint.
30335         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
30336         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
30337         * doc/posix-functions/rint.texi: Mention the replacement provided by
30338         the module.
30340         rint tests: More tests.
30341         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
30342         minus-zero.h, infinity.h, nan.h.
30343         (main): Skip the test if the current rounding mode is not standard. Add
30344         tests for negative numbers, minus zero, infinity, NaN.
30345         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
30346         tests/nan.h.
30347         (Depends-on): Add isnand-nolibm.
30349 2011-10-09  Bruno Haible  <bruno@clisp.org>
30351         Tests for module 'copysignl'.
30352         * modules/copysignl-tests: New file.
30353         * tests/test-copysignl.c: New file.
30355         New module 'copysignl'.
30356         * lib/math.in.h (copysignl): New declaration.
30357         * lib/copysignl.c: New file.
30358         * m4/copysignl.m4: New file.
30359         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
30360         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
30361         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
30362         HAVE_COPYSIGNL.
30363         * modules/copysignl: New file.
30364         * tests/test-math-c++.cc: Check the declaration of copysignl.
30365         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
30366         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
30367         * doc/posix-functions/copysignl.texi: Mention the new module.
30369 2011-10-09  Bruno Haible  <bruno@clisp.org>
30371         Tests for module 'copysignf'.
30372         * modules/copysignf-tests: New file.
30373         * tests/test-copysignf.c: New file.
30375         New module 'copysignf'.
30376         * lib/math.in.h (copysignf): New declaration.
30377         * lib/copysignf.c: New file.
30378         * m4/copysignf.m4: New file.
30379         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
30380         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
30381         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
30382         HAVE_COPYSIGNF.
30383         * modules/copysignf: New file.
30384         * tests/test-math-c++.cc: Check the declaration of copysignf.
30385         * doc/posix-functions/copysignf.texi: Mention the new module.
30387 2011-10-09  Bruno Haible  <bruno@clisp.org>
30389         Ensure that HAVE_* variables are set to 1 before they are set to 0.
30390         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
30391         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
30392         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
30393         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
30394         gl_SIGNAL_H_DEFAULTS.
30396 2011-10-09  Bruno Haible  <bruno@clisp.org>
30398         poll: Make macro safer.
30399         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
30400         ac_cv_header_poll_h is not set.
30402 2011-10-09  Bruno Haible  <bruno@clisp.org>
30404         copysign: Provide replacement.
30405         * lib/math.in.h (copysign): New declaration.
30406         * lib/copysign.c: New file.
30407         * m4/copysign.m4: New file.
30408         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
30409         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
30410         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
30411         HAVE_COPYSIGN.
30412         * modules/copysign (Description): Clarify.
30413         (Files): Add lib/copysign.c, m4/copysign.m4.
30414         (Depends-on): Add math, signbit.
30415         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
30416         gl_MATH_MODULE_INDICATOR.
30417         * tests/test-math-c++.cc: Check the declaration of copysign.
30418         * doc/posix-functions/copysign.texi: Mention the effects of the module
30419         on Minix and MSVC.
30421 2011-10-09  Bruno Haible  <bruno@clisp.org>
30423         isinf: Ensure macro on AIX 5.1.
30424         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
30425         macro.
30426         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
30428 2011-10-09  Bruno Haible  <bruno@clisp.org>
30430         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
30431         * modules/snprintf-posix-tests (configure.ac): Require
30432         gl_LONG_DOUBLE_VS_DOUBLE.
30433         * modules/sprintf-posix-tests (configure.ac): Likewise.
30434         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
30435         * modules/vasprintf-posix-tests (configure.ac): Likewise.
30436         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
30437         * modules/vsprintf-posix-tests (configure.ac): Likewise.
30438         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
30439         tests on platforms where 'long double' is the same as 'double'.
30440         * tests/test-sprintf-posix.h (test_function): Likewise.
30441         * tests/test-vasnprintf-posix.c (test_function): Likewise.
30442         * tests/test-vasprintf-posix.c (test_function): Likewise.
30444         *printf: Fix for platforms where 'long double' == 'double'.
30445         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
30446         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
30447         * modules/dprintf-posix (Files): Add m4/math_h.m4.
30448         * modules/fprintf-posix (Files): Likewise.
30449         * modules/obstack-printf-posix (Files): Likewise.
30450         * modules/snprintf-posix (Files): Likewise.
30451         * modules/sprintf-posix (Files): Likewise.
30452         * modules/vasnprintf (Files): Likewise.
30453         * modules/vasnprintf-posix (Files): Likewise.
30454         * modules/vasprintf-posix (Files): Likewise.
30455         * modules/vdprintf-posix (Files): Likewise.
30456         * modules/vfprintf-posix (Files): Likewise.
30457         * modules/vsnprintf-posix (Files): Likewise.
30458         * modules/vsprintf-posix (Files): Likewise.
30459         * modules/unistdio/u8-vasnprintf (Files): Likewise.
30460         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
30461         * modules/unistdio/u16-vasnprintf (Files): Likewise.
30462         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
30463         * modules/unistdio/u32-vasnprintf (Files): Likewise.
30464         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
30465         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
30467         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
30468         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
30469         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30470         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
30471         'long double'.
30472         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
30474         isinf: Fix for platforms where 'long double' == 'double'.
30475         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
30476         Don't blindly assume 80-bit 'long double'.
30478         isfinite: Fix for platforms where 'long double' == 'double'.
30479         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
30480         Don't blindly assume 80-bit 'long double'.
30482         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
30483         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
30484         * modules/isfinite-tests (configure.ac): Require
30485         gl_LONG_DOUBLE_VS_DOUBLE.
30486         * modules/isinf-tests (configure.ac): Likewise.
30487         * modules/isnan-tests (configure.ac): Likewise.
30488         * modules/isnanl-tests (configure.ac): Likewise.
30489         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
30490         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
30491         tests on platforms where 'long double' is the same as 'double'.
30492         * tests/test-isinf.c (test_isinfl): Likewise.
30493         * tests/test-isnan.c (test_long_double): Likewise.
30494         * tests/test-isnanl.h (main): Likewise.
30496 2011-10-08  Bruno Haible  <bruno@clisp.org>
30498         Tests for module 'tanhf'.
30499         * modules/tanhf-tests: New file.
30500         * tests/test-tanhf.c: New file.
30502         New module 'tanhf'.
30503         * lib/math.in.h (tanhf): New declaration.
30504         * lib/tanhf.c: New file.
30505         * m4/tanhf.m4: New file.
30506         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
30507         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
30508         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
30509         * modules/tanhf: New file.
30510         * tests/test-math-c++.cc: Check the declaration of tanhf.
30511         * doc/posix-functions/tanhf.texi: Mention the new module.
30513         tanh: Use a .m4 file.
30514         * m4/tanh.m4: New file.
30515         * modules/tanh (Files): Add it.
30516         (configure.ac): Just invoke gl_FUNC_TANH.
30518 2011-10-08  Bruno Haible  <bruno@clisp.org>
30520         Tests for module 'coshf'.
30521         * modules/coshf-tests: New file.
30522         * tests/test-coshf.c: New file.
30524         New module 'coshf'.
30525         * lib/math.in.h (coshf): New declaration.
30526         * lib/coshf.c: New file.
30527         * m4/coshf.m4: New file.
30528         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
30529         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
30530         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
30531         * modules/coshf: New file.
30532         * tests/test-math-c++.cc: Check the declaration of coshf.
30533         * doc/posix-functions/coshf.texi: Mention the new module.
30535         cosh: Use a .m4 file.
30536         * m4/cosh.m4: New file.
30537         * modules/cosh (Files): Add it.
30538         (configure.ac): Just invoke gl_FUNC_COSH.
30540 2011-10-08  Bruno Haible  <bruno@clisp.org>
30542         Tests for module 'sinhf'.
30543         * modules/sinhf-tests: New file.
30544         * tests/test-sinhf.c: New file.
30546         New module 'sinhf'.
30547         * lib/math.in.h (sinhf): New declaration.
30548         * lib/sinhf.c: New file.
30549         * m4/sinhf.m4: New file.
30550         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
30551         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
30552         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
30553         * modules/sinhf: New file.
30554         * tests/test-math-c++.cc: Check the declaration of sinhf.
30555         * doc/posix-functions/sinhf.texi: Mention the new module.
30557         sinh: Use a .m4 file.
30558         * m4/sinh.m4: New file.
30559         * modules/sinh (Files): Add it.
30560         (configure.ac): Just invoke gl_FUNC_SINH.
30562 2011-10-08  Bruno Haible  <bruno@clisp.org>
30564         Tests for module 'atan2f'.
30565         * modules/atan2f-tests: New file.
30566         * tests/test-atan2f.c: New file.
30568         New module 'atan2f'.
30569         * lib/math.in.h (atan2f): New declaration.
30570         * lib/atan2f.c: New file.
30571         * m4/atan2f.m4: New file.
30572         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
30573         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
30574         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
30575         * modules/atan2f: New file.
30576         * tests/test-math-c++.cc: Check the declaration of atan2f.
30577         * doc/posix-functions/atan2f.texi: Mention the new module.
30579         atan2: Use a .m4 file.
30580         * m4/atan2.m4: New file.
30581         * modules/atan2 (Files): Add it.
30582         (configure.ac): Just invoke gl_FUNC_ATAN2.
30584 2011-10-08  Bruno Haible  <bruno@clisp.org>
30586         Tests for module 'atanf'.
30587         * modules/atanf-tests: New file.
30588         * tests/test-atanf.c: New file.
30590         New module 'atanf'.
30591         * lib/math.in.h (atanf): New declaration.
30592         * lib/atanf.c: New file.
30593         * m4/atanf.m4: New file.
30594         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
30595         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
30596         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
30597         * modules/atanf: New file.
30598         * tests/test-math-c++.cc: Check the declaration of atanf.
30599         * doc/posix-functions/atanf.texi: Mention the new module.
30601         atan: Use a .m4 file.
30602         * m4/atan.m4: New file.
30603         * modules/atan (Files): Add it.
30604         (configure.ac): Just invoke gl_FUNC_ATAN.
30606 2011-10-08  Bruno Haible  <bruno@clisp.org>
30608         Tests for module 'acosf'.
30609         * modules/acosf-tests: New file.
30610         * tests/test-acosf.c: New file.
30612         New module 'acosf'.
30613         * lib/math.in.h (acosf): New declaration.
30614         * lib/acosf.c: New file.
30615         * m4/acosf.m4: New file.
30616         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
30617         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
30618         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
30619         * modules/acosf: New file.
30620         * tests/test-math-c++.cc: Check the declaration of acosf.
30621         * doc/posix-functions/acosf.texi: Mention the new module.
30623         acos: Use a .m4 file.
30624         * m4/acos.m4: New file.
30625         * modules/acos (Files): Add it.
30626         (configure.ac): Just invoke gl_FUNC_ACOS.
30628 2011-10-08  Bruno Haible  <bruno@clisp.org>
30630         Tests for module 'asinf'.
30631         * modules/asinf-tests: New file.
30632         * tests/test-asinf.c: New file.
30634         New module 'asinf'.
30635         * lib/math.in.h (asinf): New declaration.
30636         * lib/asinf.c: New file.
30637         * m4/asinf.m4: New file.
30638         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
30639         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
30640         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
30641         * modules/asinf: New file.
30642         * tests/test-math-c++.cc: Check the declaration of asinf.
30643         * doc/posix-functions/asinf.texi: Mention the new module.
30645         asin: Use a .m4 file.
30646         * m4/asin.m4: New file.
30647         * modules/asin (Files): Add it.
30648         (configure.ac): Just invoke gl_FUNC_ASIN.
30650 2011-10-08  Bruno Haible  <bruno@clisp.org>
30652         Tests for module 'tanf'.
30653         * modules/tanf-tests: New file.
30654         * tests/test-tanf.c: New file.
30656         New module 'tanf'.
30657         * lib/math.in.h (tanf): New declaration.
30658         * lib/tanf.c: New file.
30659         * m4/tanf.m4: New file.
30660         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
30661         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
30662         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
30663         * modules/tanf: New file.
30664         * tests/test-math-c++.cc: Check the declaration of tanf.
30665         * doc/posix-functions/tanf.texi: Mention the new module.
30667         tan: Use a .m4 file.
30668         * m4/tan.m4: New file.
30669         * modules/tan (Files): Add it.
30670         (configure.ac): Just invoke gl_FUNC_TAN.
30672 2011-10-08  Bruno Haible  <bruno@clisp.org>
30674         Tests for module 'cosf'.
30675         * modules/cosf-tests: New file.
30676         * tests/test-cosf.c: New file.
30678         New module 'cosf'.
30679         * lib/math.in.h (cosf): New declaration.
30680         * lib/cosf.c: New file.
30681         * m4/cosf.m4: New file.
30682         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
30683         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
30684         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
30685         * modules/cosf: New file.
30686         * tests/test-math-c++.cc: Check the declaration of cosf.
30687         * doc/posix-functions/cosf.texi: Mention the new module.
30689         cos: Use a .m4 file.
30690         * m4/cos.m4: New file.
30691         * modules/cos (Files): Add it.
30692         (configure.ac): Just invoke gl_FUNC_COS.
30694 2011-10-08  Bruno Haible  <bruno@clisp.org>
30696         Tests for module 'sinf'.
30697         * modules/sinf-tests: New file.
30698         * tests/test-sinf.c: New file.
30700         New module 'sinf'.
30701         * lib/math.in.h (sinf): New declaration.
30702         * lib/sinf.c: New file.
30703         * m4/sinf.m4: New file.
30704         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
30705         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
30706         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
30707         * modules/sinf: New file.
30708         * tests/test-math-c++.cc: Check the declaration of sinf.
30709         * doc/posix-functions/sinf.texi: Mention the new module.
30711         sin: Use a .m4 file.
30712         * m4/sin.m4: New file.
30713         * modules/sin (Files): Add it.
30714         (configure.ac): Just invoke gl_FUNC_SIN.
30716 2011-10-08  Bruno Haible  <bruno@clisp.org>
30718         Tests for module 'powf'.
30719         * modules/powf-tests: New file.
30720         * tests/test-powf.c: New file.
30722         New module 'powf'.
30723         * lib/math.in.h (powf): New declaration.
30724         * lib/powf.c: New file.
30725         * m4/powf.m4: New file.
30726         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
30727         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
30728         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
30729         * modules/powf: New file.
30730         * tests/test-math-c++.cc: Check the declaration of powf.
30731         * doc/posix-functions/powf.texi: Mention the new module.
30733         pow: Use a .m4 file.
30734         * m4/pow.m4: New file.
30735         * modules/pow (Files): Add it.
30736         (configure.ac): Just invoke gl_FUNC_POW.
30738 2011-10-08  Bruno Haible  <bruno@clisp.org>
30740         Tests for module 'log10f'.
30741         * modules/log10f-tests: New file.
30742         * tests/test-log10f.c: New file.
30744         New module 'log10f'.
30745         * lib/math.in.h (log10f): New declaration.
30746         * lib/log10f.c: New file.
30747         * m4/log10f.m4: New file.
30748         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
30749         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
30750         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
30751         * modules/log10f: New file.
30752         * tests/test-math-c++.cc: Check the declaration of log10f.
30753         * doc/posix-functions/log10f.texi: Mention the new module.
30755         log10: Use a .m4 file.
30756         * m4/log10.m4: New file.
30757         * modules/log10 (Files): Add it.
30758         (configure.ac): Just invoke gl_FUNC_LOG10.
30760 2011-10-08  Bruno Haible  <bruno@clisp.org>
30762         Tests for module 'logf'.
30763         * modules/logf-tests: New file.
30764         * tests/test-logf.c: New file.
30766         New module 'logf'.
30767         * lib/math.in.h (logf): New declaration.
30768         * lib/logf.c: New file.
30769         * m4/logf.m4: New file.
30770         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
30771         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
30772         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
30773         * modules/logf: New file.
30774         * tests/test-math-c++.cc: Check the declaration of logf.
30775         * doc/posix-functions/logf.texi: Mention the new module.
30777         log: Use a .m4 file.
30778         * m4/log.m4: New file.
30779         * modules/log (Files): Add it.
30780         (configure.ac): Just invoke gl_FUNC_LOG.
30782 2011-10-08  Bruno Haible  <bruno@clisp.org>
30784         Tests for module 'expf'.
30785         * modules/expf-tests: New file.
30786         * tests/test-expf.c: New file.
30788         New module 'expf'.
30789         * lib/math.in.h (expf): New declaration.
30790         * lib/expf.c: New file.
30791         * m4/expf.m4: New file.
30792         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
30793         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
30794         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
30795         * modules/expf: New file.
30796         * tests/test-math-c++.cc: Check the declaration of expf.
30797         * doc/posix-functions/expf.texi: Mention the new module.
30799         exp: Use a .m4 file.
30800         * m4/exp.m4: New file.
30801         * modules/exp (Files): Add it.
30802         (configure.ac): Just invoke gl_FUNC_EXP.
30804 2011-10-08  Bruno Haible  <bruno@clisp.org>
30806         Tests for module 'sqrtf'.
30807         * modules/sqrtf-tests: New file.
30808         * tests/test-sqrtf.c: New file.
30810         New module 'sqrtf'.
30811         * lib/math.in.h (sqrtf): New declaration.
30812         * lib/sqrtf.c: New file.
30813         * m4/sqrtf.m4: New file.
30814         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
30815         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
30816         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
30817         * modules/sqrtf: New file.
30818         * tests/test-math-c++.cc: Check the declaration of sqrtf.
30819         * doc/posix-functions/sqrtf.texi: Mention the new module.
30821 2011-10-08  Bruno Haible  <bruno@clisp.org>
30823         Tests: Avoid link failures w.r.t. libintl.
30824         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
30825         $(LIBINTL).
30826         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
30827         $(LIBINTL).
30828         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
30829         against $(LIBINTL).
30830         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
30831         $(LIBINTL).
30832         * modules/openat-tests (Makefile.am): Link test-fchmodat against
30833         $(LIBINTL).
30834         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
30836 2011-10-08  Bruno Haible  <bruno@clisp.org>
30838         pow tests: Defeat compiler optimizations.
30839         * tests/test-pow.c (main): Assign arguments to x and y before use.
30841 2011-10-08  Bruno Haible  <bruno@clisp.org>
30843         gnulib-tool: Improve last commit.
30844         * gnulib-tool (func_modules_transitive_closure): Simplify code.
30845         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
30846         ignore dependencies that are not among the modules list.
30848 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
30850         gnulib-tool: don't follow dependencies to avoided modules
30851         This fixes a bug that is related to the previous one.
30852         * gnulib-tool (func_modules_transitive_closure)
30853         (func_emit_autoconf_snippets):
30854         Check whether a dependency is acceptable before using it.
30855         (--extract-dependencies): Report an error if --avoid is also used,
30856         since this combination of options is not yet supported.
30858         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
30859         Problem reported by Peter Dyballa in
30860         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
30861         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
30862         when echoing "$condition".
30864 2011-10-07  Bruno Haible  <bruno@clisp.org>
30866         Fix documentation about math functions on MacOS X.
30867         * doc/posix-functions/exp2.texi: Don't say the function is missing on
30868         MacOS X 10.5.
30869         * doc/posix-functions/fdim.texi: Likewise.
30870         * doc/posix-functions/feclearexcept.texi: Likewise.
30871         * doc/posix-functions/fegetenv.texi: Likewise.
30872         * doc/posix-functions/fegetround.texi: Likewise.
30873         * doc/posix-functions/feholdexcept.texi: Likewise.
30874         * doc/posix-functions/feraiseexcept.texi: Likewise.
30875         * doc/posix-functions/fesetenv.texi: Likewise.
30876         * doc/posix-functions/fesetround.texi: Likewise.
30877         * doc/posix-functions/fetestexcept.texi: Likewise.
30878         * doc/posix-functions/feupdateenv.texi: Likewise.
30879         * doc/posix-functions/fmax.texi: Likewise.
30880         * doc/posix-functions/fmin.texi: Likewise.
30881         * doc/posix-functions/log2.texi: Likewise.
30882         * doc/posix-functions/modff.texi: Likewise.
30883         * doc/posix-functions/nan.texi: Likewise.
30884         * doc/posix-functions/nanf.texi: Likewise.
30885         * doc/posix-functions/nextafterf.texi: Likewise.
30886         * doc/posix-functions/remquo.texi: Likewise.
30888 2011-10-07  Bruno Haible  <bruno@clisp.org>
30890         modff: Drop assumption about library that defines modff.
30891         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
30892         AC_CHECK_FUNCS.
30893         * modules/modff (Files): Add m4/mathfunc.m4.
30895 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
30897         raise tests: Avoid a GCC warning.
30898         * tests/test-raise.c (handler): Use _Noreturn.
30900 2011-10-07  Bruno Haible  <bruno@clisp.org>
30902         Tests for module 'ldexpf'.
30903         * modules/ldexpf-tests: New file.
30904         * tests/test-ldexpf.c: New file.
30906         New module 'ldexpf'.
30907         * lib/math.in.h (ldexpf): New declaration.
30908         * lib/ldexpf.c: New file.
30909         * m4/ldexpf.m4: New file.
30910         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
30911         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
30912         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
30913         * modules/ldexpf: New file.
30914         * tests/test-math-c++.cc: Check the declaration of ldexpf.
30915         * doc/posix-functions/ldexpf.texi: Mention the new module.
30917 2011-10-06  Bruno Haible  <bruno@clisp.org>
30919         frexpf: Work around problems on IRIX and mingw.
30920         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
30921         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
30922         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
30923         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
30924         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
30925         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
30926         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
30928 2011-10-06  Bruno Haible  <bruno@clisp.org>
30930         fabsf: Drop assumption about library that defines fabsf.
30931         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
30932         AC_CHECK_FUNCS.
30933         * modules/fabsf (Files): Add m4/mathfunc.m4.
30935 2011-10-06  Bruno Haible  <bruno@clisp.org>
30937         frexpf: Drop assumption about library that defines frexpf.
30938         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
30939         'int *', 'float *', 'long double *', 'float', 'long double'.
30940         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
30941         AC_CHECK_FUNCS.
30942         * modules/frexpf (Files): Add m4/mathfunc.m4.
30944         Tests for module 'frexpf'.
30945         * modules/frexpf-tests: New file.
30946         * tests/test-frexpf.c: New file.
30948         New module 'frexpf'.
30949         * lib/math.in.h (frexpf): New declaration.
30950         * lib/frexpf.c: New file.
30951         * m4/frexpf.m4: New file.
30952         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
30953         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
30954         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
30955         * modules/frexpf: New file.
30956         * tests/test-math-c++.cc: Check the declaration of frexpf.
30957         * doc/posix-functions/frexpf.texi: Mention the new module.
30959 2011-10-06  Bruno Haible  <bruno@clisp.org>
30961         math: Sort function declarations of math.in.h.
30962         * lib/math.in.h (frexp, logb): Move declarations.
30964 2011-10-05  Bruno Haible  <bruno@clisp.org>
30966         Tests for module 'modff'.
30967         * modules/modff-tests: New file.
30968         * tests/test-modff.c: New file.
30970         New module 'modff'.
30971         * lib/math.in.h (modff): New declaration.
30972         * lib/modff.c: New file.
30973         * m4/modff.m4: New file.
30974         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
30975         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
30976         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
30977         * modules/modff: New file.
30978         * tests/test-math-c++.cc: Check the declaration of modff.
30979         * doc/posix-functions/modff.texi: Mention the new module.
30981         modf tests: Make test sharper.
30982         * tests/test-modf.c (main): Strengthen upper bound.
30984         modf: Use a .m4 file.
30985         * m4/modf.m4: New file.
30986         * modules/modf (Files): Add it.
30987         (configure.ac): Just invoke gl_FUNC_MODF.
30989 2011-10-05  Bruno Haible  <bruno@clisp.org>
30991         Tests for module 'fmodf'.
30992         * modules/fmodf-tests: New file.
30993         * tests/test-fmodf.c: New file.
30995         New module 'fmodf'.
30996         * lib/math.in.h (fmodf): New declaration.
30997         * lib/fmodf.c: New file.
30998         * m4/fmodf.m4: New file.
30999         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
31000         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
31001         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
31002         * modules/fmodf: New file.
31003         * tests/test-math-c++.cc: Check the declaration of fmodf.
31004         * doc/posix-functions/fmodf.texi: Mention the new module.
31006         fmod: Use a .m4 file.
31007         * m4/fmod.m4: New file.
31008         * modules/fmod (Files): Add it.
31009         (configure.ac): Just invoke gl_FUNC_FMOD.
31011 2011-10-05  Bruno Haible  <bruno@clisp.org>
31013         Tests for module 'fabsf'.
31014         * modules/fabsf-tests: New file.
31015         * tests/test-fabsf.c: New file.
31017         New module 'fabsf'.
31018         * lib/math.in.h (fabsf): New declaration.
31019         * lib/fabsf.c: New file.
31020         * m4/fabsf.m4: New file.
31021         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
31022         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
31023         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
31024         * modules/fabsf: New file.
31025         * tests/test-math-c++.cc: Check the declaration of fabsf.
31026         * doc/posix-functions/fabsf.texi: Mention the new module.
31028         fabs: Use a .m4 file.
31029         * m4/fabs.m4: New file.
31030         * modules/fabs (Files): Add it.
31031         (configure.ac): Just invoke gl_FUNC_FABS.
31033 2011-10-05  Jim Meyering  <meyering@redhat.com>
31035         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
31036         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
31037         ls -lL regression introduced in coreutils-8.12, it does so at the
31038         cost of an additional stat call in the common case.  Besides, now
31039         that the kernel change that prompted commit 95f7c57f has been reverted
31040         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
31041         we have no use for commit 95f7c57f, "file-has-acl: use
31042         acl_extended_file_nofollow if available".
31044 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
31046         file-has-acl: revert unintended change in behavior of ls -L
31047         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
31048         derived from...
31049         (file_has_acl): ...code here.  Call it.
31050         This problem was introduced with 2011-07-22 commit 95f7c57f,
31051         "file-has-acl: use acl_extended_file_nofollow if available".
31052         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
31054 2011-10-03  Bruno Haible  <bruno@clisp.org>
31056         poll: Avoid link errors on MSVC.
31057         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
31058         * modules/poll (Depends-on): Add sockets.
31059         (Link): New section.
31060         * NEWS: Mention the change.
31061         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
31062         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
31063         $(LIB_POLL) instead of $(LIBSOCKET).
31065 2011-10-03  Bruno Haible  <bruno@clisp.org>
31067         sys_select tests: Fix link error on MSVC 9.
31068         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
31069         with $(LIB_SELECT) instead of $(LIBSOCKET).
31071 2011-10-03  Bruno Haible  <bruno@clisp.org>
31073         sys_select: Fix compilation error on mingw.
31074         * lib/sys_select.in.h: On native Windows, include <io.h>.
31076 2011-10-03  Bruno Haible  <bruno@clisp.org>
31078         wmemset: Support for MSVC.
31079         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
31080         whether wmemset() exists.
31082 2011-10-03  Bruno Haible  <bruno@clisp.org>
31084         wmemmove: Support for MSVC.
31085         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
31086         whether wmemmove() exists.
31088 2011-10-03  Bruno Haible  <bruno@clisp.org>
31090         wmemcpy: Support for MSVC.
31091         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
31092         whether wmemcpy() exists.
31094 2011-10-03  Bruno Haible  <bruno@clisp.org>
31096         wmemcmp: Support for MSVC.
31097         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
31098         whether wmemcmp() exists.
31100 2011-10-03  Bruno Haible  <bruno@clisp.org>
31102         wmemchr: Support for MSVC.
31103         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
31104         whether wmemchr() exists.
31106 2011-10-03  Bruno Haible  <bruno@clisp.org>
31108         glthread/*, strsignal: Support for MSVC.
31109         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
31110         including <winsock.h> on MSVC 9.
31111         * lib/glthread/lock.h: Likewise.
31112         * lib/glthread/thread.h: Likewise.
31113         * lib/glthread/tls.h: Likewise.
31114         * lib/glthread/yield.h: Likewise.
31115         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
31116         if HAVE_UNISTD_H is false.
31117         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
31119 2011-10-03  Bruno Haible  <bruno@clisp.org>
31121         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
31122         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
31123         Set to 100000.
31125 2011-10-03  Bruno Haible  <bruno@clisp.org>
31127         acl: Fix specification.
31128         * lib/file-has-acl.c (file_has_acl): Fix specification.
31130 2011-10-03  Bruno Haible  <bruno@clisp.org>
31132         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
31133         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
31134         (compute_curr_prefix, shared_library_fullname,
31135         find_shared_library_fullname, get_shared_library_fullname, relocate):
31136         Use it together with PIC && INSTALLDIR.
31137         Reported by <jojelino@gmail.com>
31138         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
31140 2011-10-01  Jim Meyering  <meyering@redhat.com>
31142         maint.mk: adjust a release-related rule not to require use of gzip
31143         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
31144         Instead, check each file in $(DIST_ARCHIVES).  This is better for
31145         projects that build only .tar.xz files.  Also fix an erroneous test.
31147         test-linkat: don't leave behind a temporary file
31148         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
31149         Otherwise, coreutils' "make distcheck" would fail with this:
31150           Only in /c/cu/tests/torture/coreutils/test/\
31151             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
31152           make[2]: *** [my-distcheck] Error 1
31154         float, math: add omitted file
31155         * lib/itold.c: Add file, required for yesterday's float change.
31157 2011-10-01  Bruno Haible  <bruno@clisp.org>
31159         isinf: Fix for OpenBSD/x86.
31160         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
31161         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
31162         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
31164 2011-10-01  Bruno Haible  <bruno@clisp.org>
31166         isfinite: Fix syntax error in configure test.
31167         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
31169         isfinite: Fix typo.
31170         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
31171         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
31173 2011-10-01  Bruno Haible  <bruno@clisp.org>
31175         nonblocking tests: Fix test failure on Linux/IA-64.
31176         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
31177         Set to 270000.
31179 2011-10-01  Bruno Haible  <bruno@clisp.org>
31181         mkfifoat tests: Fix a test failure on mingw.
31182         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
31183         with error ENOSYS.
31185 2011-09-30  Bruno Haible  <bruno@clisp.org>
31187         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
31188         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
31189         'long double'. Set REPLACE_ITOLD.
31190         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
31191         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
31192         * lib/itold.c: New file.
31193         * modules/float (Files): Add lib/itold.c.
31194         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
31195         (Makefile.am): Substitute REPLACE_ITOLD.
31196         * modules/math (Depends-on): Add float.
31197         (Makefile.am): Substitute REPLACE_ITOLD.
31198         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
31199         * doc/posix-headers/math.texi: Likewise.
31200         * doc/posix-functions/logl.texi: Likewise.
31202 2011-09-30  Bruno Haible  <bruno@clisp.org>
31204         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
31205         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
31206         Set to 140000.
31208 2011-09-30  Bruno Haible  <bruno@clisp.org>
31210         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
31211         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
31212         invocation, say "right after AC_PROG_CC_STDC", not "right after
31213         AC_PROG_CC".
31214         Reported by Gary V. Vaughan <gary@gnu.org>.
31216 2011-09-30  Bruno Haible  <bruno@clisp.org>
31218         Centralize C99 requirement.
31219         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
31220         * modules/stdarg (configure.ac-early): Invoke it instead of
31221         AC_PROG_CC_STDC.
31222         Reported by Gary V. Vaughan and Paul Eggert.
31224 2011-09-29  Bruno Haible  <bruno@clisp.org>
31226         float: Fix LDBL_MAX value on Linux/PowerPC.
31227         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
31228         on Linux/PowerPC.
31229         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
31230         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
31231         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
31232         platform.
31233         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
31235 2011-09-29  Bruno Haible  <bruno@clisp.org>
31237         doc: Improve doc about gl_EARLY.
31238         * doc/gnulib-tool.texi (Initial import): Mention where to place an
31239         AC_PROG_CC_STDC invocation.
31240         Reported by Gary V. Vaughan <gary@gnu.org>.
31242 2011-09-28  Bruno Haible  <bruno@clisp.org>
31244         fgetc, fputc, fread, fwrite tests: Fix link error.
31245         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
31246         on non-MSVC platforms.
31247         * tests/test-fputc.c (main): Likewise.
31248         * tests/test-fread.c (main): Likewise.
31249         * tests/test-fwrite.c (main): Likewise.
31250         Reported by Jim Meyering.
31252 2011-09-27  Bruno Haible  <bruno@clisp.org>
31254         fputc, fwrite tests: Avoid test failure on MSVC.
31255         * tests/test-fgetc.c: Include msvc-inval.h.
31256         (main): Invoke gl_msvc_inval_ensure_handler.
31257         * tests/test-fputc.c: Include msvc-inval.h.
31258         (main): Invoke gl_msvc_inval_ensure_handler.
31259         * tests/test-fread.c: Include msvc-inval.h.
31260         (main): Invoke gl_msvc_inval_ensure_handler.
31261         * tests/test-fwrite.c: Include msvc-inval.h.
31262         (main): Invoke gl_msvc_inval_ensure_handler.
31263         * modules/fgetc-tests (Depends-on): Add msvc-inval.
31264         * modules/fputc-tests (Depends-on): Likewise.
31265         * modules/fread-tests (Depends-on): Likewise.
31266         * modules/fwrite-tests (Depends-on): Likewise.
31268 2011-09-27  Bruno Haible  <bruno@clisp.org>
31270         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
31271         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
31272         (raise): Remove older, duplicated declaration.
31273         (_gl_raise_SIGPIPE): New declaration.
31274         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
31275         (rpl_raise): Remove function.
31276         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
31277         a gnulib-defined SIGPIPE here.
31278         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
31279         'sigprocmask' has detected missing signal-blocking and the module
31280         'sigpipe' is enabled.
31281         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
31283 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
31285         base64-tests: avoid memory leak
31286         * tests/test-base64.c (main): Plug memory leak.
31288         base32: new module
31289         * modules/base32: New module.
31290         * lib/base32.c: New file.
31291         * lib/base32.h: Likewise.
31292         * m4/base32.m4: Likewise.
31293         * modules/base32-tests: New test.
31294         * tests/test-base32.c: Likewise.
31295         * MODULES.html.sh (Misc): Mention it.
31297 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
31299         gnulib: use more-standard license notice wording
31300         * gnulib-tool (func_emit_copyright_notice): When emitting a
31301         license notice into a file, use the standard wording as suggested
31302         by the current information for GNU maintainers, except say "file"
31303         rather than "program".  The new wording gives a license version
31304         number, which addresses an issue raised by Glenn Morris in
31305         <http://lists.gnu.org/r/bug-gnulib/2011-09/msg00397.html>.
31306         * m4/onceonly.m4: Use that same wording here, too.
31308         dup2: minor simplification
31309         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
31310         as lib/dup2.c no longer uses 'inline'.
31312 2011-09-25  Bruno Haible  <bruno@clisp.org>
31314         strings: Fix compilation error on MSVC.
31315         * lib/strings.in.h: Include <stddef.h> for size_t.
31317 2011-09-25  Bruno Haible  <bruno@clisp.org>
31319         fflush et al.: Document limitation on MSVC.
31320         * doc/posix-functions/fflush.texi: Document possible crash in handling
31321         mode other than DEFAULT_HANDLING.
31322         * doc/posix-functions/fgetc.texi: Likewise.
31323         * doc/posix-functions/fputc.texi: Likewise.
31324         * doc/posix-functions/fread.texi: Likewise.
31325         * doc/posix-functions/fwrite.texi: Likewise.
31327 2011-09-25  Bruno Haible  <bruno@clisp.org>
31329         msvc-inval: Allow three invalid parameter handling modes.
31330         * lib/msvc-inval.h: Don't include <stdlib.h> here.
31331         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
31332         macros.
31333         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
31334         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
31335         SANE_LIBRARY_HANDLING as a no-op.
31336         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
31337         <stdlib.h>.
31338         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
31340 2011-09-25  Bruno Haible  <bruno@clisp.org>
31342         msvc-inval: Make handler multithread-safe.
31343         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
31344         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
31345         declarations.
31346         (gl_msvc_inval_current): New declaration.
31347         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
31348         Operate on the structure returned by gl_msvc_inval_current().
31349         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
31350         Remove varaiables.
31351         (tls_index, tls_initialized): New variables.
31352         (not_per_thread): New variable.
31353         (gl_msvc_inval_current): New function.
31354         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
31355         returned by gl_msvc_inval_current().
31357 2011-09-25  Bruno Haible  <bruno@clisp.org>
31359         msvc-inval: Install handler globally.
31360         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
31361         !_MSC_VER.
31362         (gl_msvc_invalid_parameter_handler): Remove declaration.
31363         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
31364         declarations.
31365         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
31366         Install the handler globally, don't uninstall it.
31367         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
31368         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
31369         currently valid, call RaiseException instead.
31370         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
31371         for !_MSC_VER.
31373 2011-09-25  Bruno Haible  <bruno@clisp.org>
31375         strerror_r-posix: Fix for MSVC 9.
31376         * lib/strerror_r.c (local_snprintf): New function.
31377         (snprintf): Define to local_snprintf, not to _snprintf.
31379 2011-09-25  Bruno Haible  <bruno@clisp.org>
31381         ftruncate: Support for MSVC 9.
31382         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
31383         (chsize_nothrow): New function.
31384         (chsize): Redefine as a macro.
31385         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
31386         * modules/ftruncate (Depends-on): Add msvc-inval.
31388 2011-09-25  Bruno Haible  <bruno@clisp.org>
31390         New module 'fstat'.
31391         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
31392         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
31393         * lib/fchdir.c (rpl_fstat): Remove function.
31394         * m4/fstat.m4: New file.
31395         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
31396         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
31397         declared.
31398         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
31399         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
31400         * modules/fstat: New file.
31401         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
31402         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
31403         is set.
31404         * doc/posix-functions/fstat.texi: Mention the new module and the
31405         problem on MSVC.
31406         * NEWS: Mention the change.
31407         * modules/acl (Depends-on): Add fstat.
31408         * modules/chdir-safer (Depends-on): Likewise.
31409         * modules/chown (Depends-on): Likewise.
31410         * modules/copy-file (Depends-on): Likewise.
31411         * modules/fchdir (Depends-on): Likewise.
31412         * modules/fdopendir (Depends-on): Likewise.
31413         * modules/fopen (Depends-on): Likewise.
31414         * modules/fts (Depends-on): Likewise.
31415         * modules/getcwd (Depends-on): Likewise.
31416         * modules/isapipe (Depends-on): Likewise.
31417         * modules/linkat (Depends-on): Likewise.
31418         * modules/lseek (Depends-on): Likewise.
31419         * modules/mkdir-p (Depends-on): Likewise.
31420         * modules/open (Depends-on): Likewise.
31421         * modules/openat (Depends-on): Likewise.
31422         * modules/read-file (Depends-on): Likewise.
31423         * modules/renameat (Depends-on): Likewise.
31424         * modules/utimens (Depends-on): Likewise.
31426 2011-09-25  Bruno Haible  <bruno@clisp.org>
31428         linkat: Fix compilation on MSVC 9.
31429         * lib/linkat.c: Don't include <stdint.h>.
31431 2011-09-25  Bruno Haible  <bruno@clisp.org>
31433         fclose: Support for MSVC 9.
31434         * lib/fclose.c: Include msvc-inval.h.
31435         (fclose_nothrow): New function.
31436         (rpl_fclose): Use it.
31437         * modules/fclose (Depends-on): Add msvc-inval.
31438         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
31440 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
31442         dup2: minor simplifications
31443         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
31444         that it's a performance win.
31445         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
31446         ! defined __CYGWIN__)" to "ifdef F_GETFL".
31448 2011-09-24  Jim Meyering  <meyering@redhat.com>
31450         test-futimens: avoid a warning from gcc -Wshadow
31451         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
31452         to avoid a shadowing warning.
31454 2011-09-24  Bruno Haible  <bruno@clisp.org>
31456         fdopen: Support for MSVC 9.
31457         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
31458         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
31459         * lib/fdopen.c: Include msvc-inval.h.
31460         (fdopen_nothrow): New function.
31461         (rpl_fdopen): Use it.
31462         * modules/fdopen (Depends-on): Add msvc-inval.
31463         * modules/fclose-tests (Depends-on): Add fdopen.
31464         * modules/fflush-tests (Depends-on): Likewise.
31465         * modules/fgetc-tests (Depends-on): Likewise.
31466         * modules/fputc-tests (Depends-on): Likewise.
31467         * modules/fread-tests (Depends-on): Likewise.
31468         * modules/freopen-tests (Depends-on): Likewise.
31469         * modules/fseeko-tests (Depends-on): Likewise.
31470         * modules/ftello-tests (Depends-on): Likewise.
31471         * modules/fwrite-tests  (Depends-on): Likewise.
31472         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
31474 2011-09-24  Bruno Haible  <bruno@clisp.org>
31476         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
31477         * modules/fgetc-tests (Depends-on): Add unistd.
31478         * modules/fputc-tests (Depends-on): Likewise.
31479         * modules/fread-tests (Depends-on): Likewise.
31480         * modules/fwrite-tests (Depends-on): Likewise.
31482 2011-09-24  Bruno Haible  <bruno@clisp.org>
31484         dup: Simplify autoconf test.
31485         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
31486         on gl_MSVC_INVAL's result.
31488 2011-09-24  Bruno Haible  <bruno@clisp.org>
31490         Tests for function fwrite().
31491         * modules/fwrite-tests: New file.
31492         * tests/test-fwrite.c: New file.
31493         * modules/stdio-tests (Depends-on): Add fwrite-tests.
31495         Tests for function fread().
31496         * modules/fread-tests: New file.
31497         * tests/test-fread.c: New file.
31498         * modules/stdio-tests (Depends-on): Add fread-tests.
31500         Activate fputc tests.
31501         * modules/stdio-tests (Depends-on): Add fputc-tests.
31503         Enhance fgetc, fputc tests.
31504         * tests/test-fgetc.c (main): Also test the stream's error indicator.
31505         * tests/test-fputc.c (main): Likewise.
31507 2011-09-24  Bruno Haible  <bruno@clisp.org>
31509         write: Support for MSVC 9.
31510         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
31511         is not 1.
31512         * lib/write.c (write_nothrow): New function.
31513         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
31514         not 1. Use write_nothrow.
31515         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
31516         invalid parameter handler.
31517         (gl_PREREQ_WRITE): New macro.
31518         * modules/write (Depends-on): Add msvc-inval.
31519         (configure.ac): Invoke gl_PREREQ_WRITE.
31520         * doc/posix-functions/write.texi: Mention the problem on MSVC.
31522 2011-09-24  Bruno Haible  <bruno@clisp.org>
31524         read: Fix last commit.
31525         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
31527 2011-09-24  Bruno Haible  <bruno@clisp.org>
31529         dup2: Fix last commit.
31530         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
31531         (rpl_dup2): Disable fcntl workaround on native Windows.
31533         sigprocmask: Make code safer.
31534         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
31535         section that changes macro definitions for this compilation unit.
31537 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
31539         dup2: clarify by coalescing Windows-specific material
31540         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
31541         "msvc-nothrow.h"' to the Windows-specific section, so that the
31542         Emacs source need not contain these include files.
31543         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
31544         Windows-specific fixes into this function rather than just the
31545         nothrow fix, as this shortens and clarifies the code.  Always
31546         define as a function, as that's a bit cleaner than having it be
31547         sometimes a function and sometimes a macro.
31548         (rpl_dup2): Move the Windows-specific stuff out of here and into
31549         ms_windows_dup2.  Don't protect the Haiku-related fix with
31550         "#if !defined __linux__", as the same code also works around
31551         a Linux kernel bug, and it doesn't add any system calls on any
31552         platform.  Add comment about FreeBSD 6.1.
31554         sigprocmask: move #include directive
31555         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
31556         Windows-specific section, so that the Emacs source need not
31557         contain msvc-inval.h.
31559 2011-09-23  Bruno Haible  <bruno@clisp.org>
31561         read: Support for MSVC 9.
31562         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
31563         is not 1.
31564         * lib/read.c (read_nothrow): New function.
31565         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
31566         read_nothrow.
31567         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
31568         invalid parameter handler.
31569         (gl_PREREQ_READ): New macro.
31570         * modules/read (Depends-on): Add msvc-inval.
31571         (configure.ac): Invoke gl_PREREQ_READ.
31572         * doc/posix-functions/read.texi: Mention the problem on MSVC.
31574 2011-09-23  Bruno Haible  <bruno@clisp.org>
31576         close: Support for MSVC 9.
31577         * lib/close.c: Include <errno.h>, msvc-inval.h.
31578         (close_nothrow): New function.
31579         (rpl_close): Use it.
31580         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
31581         invalid parameter handler.
31582         * modules/close (Depends-on): Add msvc-inval.
31583         * modules/dup2-tests (Depends-on): Add close.
31584         * modules/dup3-tests (Depends-on): Likewise.
31585         * modules/fcntl-tests (Depends-on): Likewise.
31586         * modules/spawn-pipe-tests (Depends-on): Likewise.
31587         * modules/unistd-safer-tests (Depends-on): Likewise.
31588         * doc/posix-functions/close.texi: Mention the problem on MSVC.
31590 2011-09-23  Bruno Haible  <bruno@clisp.org>
31592         New module 'dup'.
31593         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
31594         Allow replacement.
31595         * lib/dup.c: New file.
31596         * lib/fchdir.c (rpl_dup): Remove function.
31597         * m4/dup.m4: New file.
31598         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
31599         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
31600         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
31601         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
31602         * modules/dup: New file.
31603         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
31604         'dup' module is in use.
31605         * modules/fdopendir (Depends-on): Add dup.
31606         * modules/fdutimensat-tests (Depends-on): Likewise.
31607         * modules/fts (Depends-on): Likewise.
31608         * modules/futimens-tests (Depends-on): Likewise.
31609         * modules/posix_spawnp-tests (Depends-on): Likewise.
31610         * modules/unistd-safer-tests (Depends-on): Likewise.
31611         * modules/utimens-tests (Depends-on): Likewise.
31612         * doc/posix-functions/dup.texi: Mention the new module and the problem
31613         on MSVC.
31615 2011-09-23  Bruno Haible  <bruno@clisp.org>
31617         getdtablesize: Support for MSVC 9.
31618         * lib/getdtablesize.c: Include msvc-inval.h.
31619         (_setmaxstdio_nothrow): New function.
31620         (_setmaxstdio): Redefine it.
31621         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
31622         * modules/getdtablesize (Depends-on): Add msvc-inval.
31623         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
31625 2011-09-23  Bruno Haible  <bruno@clisp.org>
31627         signal-h: Rename from signal.
31628         * modules/signal-h: Renamed from modules/signal.
31629         * modules/pthread_sigmask (Depends-on): Update.
31630         * modules/raise (Depends-on): Likewise.
31631         * modules/sigaction (Depends-on): Likewise.
31632         * modules/sigpipe (Depends-on): Likewise.
31633         * modules/sigprocmask (Depends-on): Likewise.
31634         * modules/sys_select (Depends-on): Likewise.
31635         * modules/signal-h-tests: Renamed from modules/signal-tests.
31636         (Files, Depends-on, Makefile.am): Update.
31637         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
31638         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
31639         (Files, Makefile.am): Update.
31640         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
31641         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
31642         * modules/signal: New placeholder file.
31643         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
31644         * doc/posix-headers/signal.texi: Update.
31645         * NEWS: Mention the change.
31647 2011-09-23  Bruno Haible  <bruno@clisp.org>
31649         sigprocmask: Avoid crashes through signal() on MSVC 9.
31650         * lib/sigprocmask.c: Include msvc-inval.h.
31651         (signal_nothrow): New function.
31652         (signal): Redefine it.
31653         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
31654         * modules/sigprocmask (Depends-on): Add msvc-inval.
31655         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
31657 2011-09-23  Bruno Haible  <bruno@clisp.org>
31659         Tests for module 'raise'.
31660         * modules/raise-tests: New file.
31661         * tests/test-raise.c: New file.
31663         raise: Support for MSVC.
31664         * lib/signal.in.h (raise): New declaration.
31665         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
31666         for native Windows platforms.
31667         * m4/raise.m4: New file.
31668         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
31669         HAVE_RAISE, REPLACE_RAISE.
31670         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
31671         REPLACE_RAISE.
31672         * modules/raise (Status, Notice): Remove fields.
31673         (Files): Add m4/raise.m4.
31674         (Depends-on): Add signal, msvc-inval.
31675         (configure.ac): Use the common idioms.
31676         (Maintainer): Add me.
31677         * tests/test-signal-c++.cc: Check the signature of raise.
31678         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
31680 2011-09-23  Bruno Haible  <bruno@clisp.org>
31682         pipe2: Fix compilation on pre-C99 compilers.
31683         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
31685 2011-09-23  Bruno Haible  <bruno@clisp.org>
31687         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
31688         * lib/msvc-nothrow.h: New file.
31689         * lib/msvc-nothrow.c: New file.
31690         * m4/msvc-nothrow.m4: New file.
31691         * modules/msvc-nothrow: New file.
31692         * lib/dup2.c: Include msvc-nothrow.h.
31693         (rpl_dup2): No need to protect _get_osfhandle call here.
31694         * lib/accept4.c: Include msvc-nothrow.h.
31695         * lib/error.c: Likewise.
31696         * lib/fcntl.c: Likewise.
31697         * lib/lseek.c: Likewise.
31698         * lib/nonblocking.c: Likewise.
31699         * lib/poll.c: Likewise.
31700         * lib/read.c: Likewise.
31701         * lib/select.c: Likewise.
31702         * lib/sockets.h: Likewise.
31703         * lib/sockets.c: Likewise.
31704         * lib/stdio-read.c: Likewise.
31705         * lib/stdio-write.c: Likewise.
31706         * lib/write.c: Likewise.
31707         * lib/w32sock.h: Likewise.
31708         * lib/w32spawn.h: Likewise.
31709         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
31710         * lib/fsync.c: Likewise.
31711         * lib/isapipe.c: Likewise.
31712         * modules/dup2 (Depends-on): Add msvc-nothrow.
31713         * modules/accept4 (Depends-on): Likewise.
31714         * modules/error (Depends-on): Likewise.
31715         * modules/fcntl (Depends-on): Likewise.
31716         * modules/lseek (Depends-on): Likewise.
31717         * modules/nonblocking (Depends-on): Likewise.
31718         * modules/poll (Depends-on): Likewise.
31719         * modules/read (Depends-on): Likewise.
31720         * modules/select (Depends-on): Likewise.
31721         * modules/sockets (Depends-on): Likewise.
31722         * modules/sigpipe (Depends-on): Likewise.
31723         * modules/write (Depends-on): Likewise.
31724         * modules/accept (Depends-on): Likewise.
31725         * modules/bind (Depends-on): Likewise.
31726         * modules/connect (Depends-on): Likewise.
31727         * modules/gethostname (Depends-on): Likewise.
31728         * modules/getpeername (Depends-on): Likewise.
31729         * modules/getsockname (Depends-on): Likewise.
31730         * modules/getsockopt (Depends-on): Likewise.
31731         * modules/ioctl (Depends-on): Likewise.
31732         * modules/listen (Depends-on): Likewise.
31733         * modules/recv (Depends-on): Likewise.
31734         * modules/recvfrom (Depends-on): Likewise.
31735         * modules/send (Depends-on): Likewise.
31736         * modules/sendto (Depends-on): Likewise.
31737         * modules/setsockopt (Depends-on): Likewise.
31738         * modules/shutdown (Depends-on): Likewise.
31739         * modules/socket (Depends-on): Likewise.
31740         * modules/execute (Depends-on): Likewise.
31741         * modules/spawn-pipe (Depends-on): Likewise.
31742         * modules/flock (Depends-on): Likewise.
31743         * modules/fsync (Depends-on): Likewise.
31744         * modules/isapipe (Depends-on): Likewise.
31745         * tests/test-cloexec.c: Include msvc-nothrow.h.
31746         * tests/test-dup-safer.c: Likewise.
31747         * tests/test-dup2.c: Likewise.
31748         * tests/test-dup3.c: Likewise.
31749         * tests/test-fcntl.c: Likewise.
31750         * tests/test-pipe.c: Likewise.
31751         * tests/test-pipe2.c: Likewise.
31752         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
31753         * modules/unistd-safer-tests (Depends-on): Likewise.
31754         * modules/dup2-tests (Depends-on): Likewise.
31755         * modules/dup3-tests (Depends-on): Likewise.
31756         * modules/fcntl-tests (Depends-on): Likewise.
31757         * modules/pipe-posix-tests (Depends-on): Likewise.
31758         * modules/pipe2-tests (Depends-on): Likewise.
31760 2011-09-23  Bruno Haible  <bruno@clisp.org>
31762         dup2: Make code more maintainable.
31763         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
31764         (rpl_dup2): Use it.
31765         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
31766         * modules/dup2 (configure.ac): Invoke it.
31767         Reported by Paul Eggert.
31769 2011-09-23  Bruno Haible  <bruno@clisp.org>
31771         msvc-inval: Fix compilation error.
31772         * lib/msvc-inval.h: Include <excpt.h>.
31774 2011-09-23  Bruno Haible  <bruno@clisp.org>
31776         mkdir: Tweak for MSVC 9.
31777         * lib/sys_stat.in.h: Update comments.
31778         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
31780         Tests for module 'chdir'.
31781         * modules/chdir-tests: New file.
31782         * tests/test-chdir.c: New file.
31784         New module 'chdir'.
31785         * modules/chdir: New file.
31786         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
31787         (chdir): New declaration.
31788         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
31789         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
31790         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
31791         * tests/test-unistd-c++.cc: Check signature of chdir.
31792         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
31793         * modules/chdir-long (Depends-on): Add chdir.
31794         * modules/fchdir (Depends-on): Likewise.
31795         * modules/rename (Depends-on): Likewise.
31796         * modules/savewd (Depends-on): Likewise.
31798         rmdir: Support for mingw, MSVC 9.
31799         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
31800         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
31802         getcwd: Tweak for MSVC 9.
31803         * lib/unistd.in.h: Update comments.
31804         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
31806 2011-09-22  Bruno Haible  <bruno@clisp.org>
31808         strerror_r-posix: Avoid a link error on MSVC.
31809         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
31810         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
31812 2011-09-22  Bruno Haible  <bruno@clisp.org>
31814         select: Avoid link errors on MSVC.
31815         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
31816         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
31817         * modules/pselect (Link): Likewise.
31818         * NEWS: Mention the change.
31819         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
31820         test-select-stdin against $(LIB_SELECT).
31821         * modules/pselect-tests (Makefile.am): Link test-pselect against
31822         $(LIB_SELECT).
31824 2011-09-22  Bruno Haible  <bruno@clisp.org>
31826         select: Avoid compilation error on MSVC.
31827         * lib/select.c: Don't include <stdbool.h>.
31829 2011-09-21  Bruno Haible  <bruno@clisp.org>
31831         Consolidate all uses of PATH_MAX in *.m4 files.
31832         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
31833         macros.
31834         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
31835         and gl_PATHMAX_SNIPPET.
31836         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
31837         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
31838         * modules/chdir-long (Files): Add m4/pathmax.m4.
31839         * modules/getcwd (Files): Likewise.
31841 2011-09-21  Bruno Haible  <bruno@clisp.org>
31843         ftruncate: Un-deprecate, concentrate on Win32 support.
31844         * modules/ftruncate (Status, Notice): Remove sections.
31845         (Depends-on): Add largefile.
31846         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
31847         non-mingw platforms.
31848         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
31849         include <io.h>.
31850         * modules/perror-tests (Depends-on): Add ftruncate.
31851         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
31852         'ftruncate' module.
31854 2011-09-21  Bruno Haible  <bruno@clisp.org>
31856         Add dependencies to new dirent related modules.
31857         * modules/opendir (Depends-on): Add closedir.
31858         * modules/getcwd (Depends-on): Add opendir, closedir.
31859         * modules/dirent-safer-tests (Depends-on): Likewise.
31860         * modules/fdopendir-tests (Depends-on): Likewise.
31861         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
31862         * modules/renameat-tests (Depends-on): Likewise.
31864 2011-09-21  Bruno Haible  <bruno@clisp.org>
31866         opendir: Avoid compilation error on mingw.
31867         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
31868         * modules/opendir (Depends-on): Add unistd.
31870 2011-09-21  Bruno Haible  <bruno@clisp.org>
31872         ftruncate tests: Avoid a test failure on mingw.
31873         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
31875 2011-09-21  Bruno Haible  <bruno@clisp.org>
31877         select tests: Avoid test failures on OSF/1 5.1 and mingw.
31878         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
31879         native Windows.
31881 2011-09-21  Bruno Haible  <bruno@clisp.org>
31883         New module 'fdopen'.
31884         * lib/stdio.in.h (fdopen): New declaration.
31885         * lib/fdopen.c: New file.
31886         * m4/fdopen.m4: New file.
31887         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
31888         REPLACE_FDOPEN.
31889         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
31890         REPLACE_FDOPEN.
31891         * modules/fdopen: New file.
31892         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
31893         * tests/test-stdio-c++.cc: Check signature of fdopen.
31894         * doc/posix-functions/fdopen.texi: Mention the new module.
31896 2011-09-21  Bruno Haible  <bruno@clisp.org>
31898         unlockpt tests: Avoid test failure on NetBSD 5.1.
31899         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
31900         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
31902 2011-09-21  Bruno Haible  <bruno@clisp.org>
31904         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
31905         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
31906         * tests/test-getlogin_r.c (main): Likewise.
31908 2011-09-20  Bruno Haible  <bruno@clisp.org>
31910         time tests: Don't require pid_t.
31911         * doc/posix-headers/time.texi: Revert last change.
31912         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
31913         * tests/test-time.c: Comment out the check for pid_t.
31915 2011-09-20  Bruno Haible  <bruno@clisp.org>
31917         fsync tests: Avoid a test failure on mingw.
31918         * tests/test-fsync.c (main): Allow a failure with EIO.
31920 2011-09-20  Bruno Haible  <bruno@clisp.org>
31922         euidaccess: Update comments.
31923         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
31925 2011-09-20  Bruno Haible  <bruno@clisp.org>
31927         Ensure EBADF returns for socket functions on mingw.
31928         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
31929         descriptor is invalid.
31930         * lib/bind.c (rpl_bind): Likewise.
31931         * lib/connect.c (rpl_connect): Likewise.
31932         * lib/getpeername.c (rpl_getpeername): Likewise.
31933         * lib/getsockname.c (rpl_getsockname): Likewise.
31934         * lib/getsockopt.c (rpl_getsockopt): Likewise.
31935         * lib/listen.c (rpl_listen): Likewise.
31936         * lib/recv.c (rpl_recv): Likewise.
31937         * lib/recvfrom.c (rpl_recvfrom): Likewise.
31938         * lib/send.c (rpl_send): Likewise.
31939         * lib/sendto.c (rpl_sendto): Likewise.
31940         * lib/setsockopt.c (rpl_setsockopt): Likewise.
31941         * lib/shutdown.c (rpl_shutdown): Likewise.
31943 2011-09-20  Bruno Haible  <bruno@clisp.org>
31945         select tests: EBADF tests.
31946         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
31947         test_bad_fd): New functions.
31948         (test_function): Invoke also test_bad_fd.
31950 2011-09-20  Bruno Haible  <bruno@clisp.org>
31952         Tests for module 'posix_spawn_file_actions_addopen.
31953         * modules/posix_spawn_file_actions_addopen-tests: New file.
31954         * tests/test-posix_spawn_file_actions_addopen.c: New file.
31956         Tests for module 'posix_spawn_file_actions_adddup2'.
31957         * modules/posix_spawn_file_actions_adddup2-tests: New file.
31958         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
31960         Tests for module 'posix_spawn_file_actions_addclose'.
31961         * modules/posix_spawn_file_actions_addclose-tests: New file.
31962         * tests/test-posix_spawn_file_actions_addclose.c: New file.
31964 2011-09-20  Bruno Haible  <bruno@clisp.org>
31966         Tests for module 'unlockpt'.
31967         * modules/unlockpt-tests: New file.
31968         * tests/test-unlockpt.c: New file.
31969         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
31971         Tests for module 'grantpt'.
31972         * modules/grantpt-tests: New file.
31973         * tests/test-grantpt.c: New file.
31974         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
31976 2011-09-20  Bruno Haible  <bruno@clisp.org>
31978         freopen tests: EBADF tests.
31979         * tests/test-freopen.c: Include errno.h, unistd.h.
31980         (main): Add tests for EBADF, commented out for the moment.
31982         fclose tests: EBADF tests.
31983         * tests/test-fclose.c (main): Add tests for EBADF.
31985         fflush tests: EBADF tests.
31986         * tests/test-fflush.c: Include errno.h, macros.h.
31987         (main): Add tests for EBADF.
31989         ftello tests: EBADF tests.
31990         * tests/test-ftello4.sh: New file.
31991         * tests/test-ftello4.c: New file.
31992         * modules/ftello-tests (Files): Add them.
31993         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
31995         fseeko tests: EBADF tests.
31996         * tests/test-fseeko4.sh: New file.
31997         * tests/test-fseeko4.c: New file.
31998         * modules/fseeko-tests (Files): Add them.
31999         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
32001         Tests for function fputc().
32002         * modules/fputc-tests: New file.
32003         * tests/test-fputc.c: New file.
32004         * modules/stdio-tests (Depends-on): Add fputc-tests.
32006         Tests for function fgetc().
32007         * modules/fgetc-tests: New file.
32008         * tests/test-fgetc.c: New file.
32009         * modules/stdio-tests (Depends-on): Add fgetc-tests.
32011         Tests for function fdopen().
32012         * modules/fdopen-tests: New file.
32013         * tests/test-fdopen.c: New file.
32014         * modules/stdio-tests (Depends-on): Add fdopen-tests.
32016         Tests for module 'vdprintf'.
32017         * modules/vdprintf-tests: New file.
32018         * tests/test-vdprintf.c: New file.
32020         Tests for module 'dprintf'.
32021         * modules/dprintf-tests: New file.
32022         * tests/test-dprintf.c: New file.
32024 2011-09-20  Bruno Haible  <bruno@clisp.org>
32026         Tests for module 'ioctl'.
32027         * modules/ioctl-tests: New file.
32028         * tests/test-ioctl.c: New file.
32030 2011-09-20  Bruno Haible  <bruno@clisp.org>
32032         fcntl tests: EBADF tests.
32033         * tests/test-fcntl.c (main): Add more tests for EBADF.
32035 2011-09-20  Bruno Haible  <bruno@clisp.org>
32037         utimensat tests: EBADF tests.
32038         * tests/test-utimensat.c (main): Add tests for EBADF.
32040         renameat tests: EBADF tests.
32041         * tests/test-renameat.c (main): Add tests for EBADF.
32043         mkfifoat tests: EBADF tests.
32044         * tests/test-mkfifoat.c (main): Add tests for EBADF.
32046         readlinkat tests: EBADF tests.
32047         * tests/test-readlinkat.c (main): Add tests for EBADF.
32049         symlinkat tests: EBADF tests.
32050         * tests/test-symlinkat.c (main): Add tests for EBADF.
32052         linkat tests: EBADF tests.
32053         * tests/test-linkat.c (main): Add tests for EBADF.
32055         Tests for module 'faccessat'.
32056         * modules/faccessat-tests: New file.
32057         * tests/test-faccessat.c: New file.
32059         fdopendir tests: EBADF tests.
32060         * tests/test-fdopendir.c (main): Add more tests for EBADF.
32062         openat tests: EBADF tests.
32063         * tests/test-fchownat.c (main): Add tests for EBADF.
32064         * tests/test-fstatat.c (main): Likewise.
32065         * tests/test-mkdirat.c (main): Likewise.
32066         * tests/test-openat.c (main): Likewise.
32067         * tests/test-unlinkat.c (main): Likewise.
32068         * tests/test-fchmodat.c: New file.
32069         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
32070         (Makefile.am): Also run 'test-fchmodat'.
32072 2011-09-20  Bruno Haible  <bruno@clisp.org>
32074         utimens, futimens, fdutimensat tests: EBADF tests.
32075         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
32077         Tests for function fstat().
32078         * modules/fstat-tests: New file.
32079         * tests/test-fstat.c: New file.
32080         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
32082 2011-09-20  Bruno Haible  <bruno@clisp.org>
32084         test-ttyname_r tests: EBADF tests.
32085         * tests/test-ttyname_r.c (main): Add tests for EBADF.
32087         Tests for module 'isatty'.
32088         * modules/isatty-tests: New file.
32089         * tests/test-isatty.c: New file.
32091         Tests for module 'write'.
32092         * modules/write-tests: New file.
32093         * tests/test-write.c: New file.
32095         Tests for module 'read'.
32096         * modules/read-tests: New file.
32097         * tests/test-read.c: New file.
32099         pwrite tests: EBADF tests.
32100         * tests/test-pwrite.c (main): Add tests for EBADF.
32102         pread tests: EBADF tests.
32103         * tests/test-pread.c (main): Add tests for EBADF.
32105         lseek tests: EBADF tests.
32106         * tests/test-lseek.c (main): Add more tests for EBADF.
32108         Tests for module 'ftruncate'.
32109         * modules/ftruncate-tests: New file.
32110         * tests/test-ftruncate.sh: New file.
32111         * tests/test-ftruncate.c: New file.
32113         fsync tests: EBADF tests.
32114         * tests/test-fsync.c (main): Add more tests for EBADF.
32116         fdatasync tests: EBADF tests.
32117         * tests/test-fdatasync.c (main): Add more tests for EBADF.
32119         Tests for module 'fchown'.
32120         * modules/fchown-tests: New file.
32121         * tests/test-fchown.c: New file.
32123         Tests for module 'fchmod'.
32124         * modules/fchmod-tests: New file.
32125         * tests/test-fchmod.c: New file.
32127         fchdir tests: EBADF tests.
32128         * tests/test-fchdir.c (main): Add more tests for EBADF.
32130         dup2 tests: EBADF tests.
32131         * tests/test-dup2.c (main): Add more tests for EBADF.
32133         Tests for module 'dup'.
32134         * modules/dup-tests: New file.
32135         * tests/test-dup.c: New file.
32137         Tests for module 'close'.
32138         * modules/close-tests: New file.
32139         * tests/test-close.c: New file.
32141 2011-09-20  Bruno Haible  <bruno@clisp.org>
32143         Tests for module 'shutdown'.
32144         * modules/shutdown-tests: New file.
32145         * tests/test-shutdown.c: New file.
32147         Tests for module 'setsockopt'.
32148         * modules/setsockopt-tests: New file.
32149         * tests/test-setsockopt.c: New file.
32151         Tests for module 'sendto'.
32152         * modules/sendto-tests: New file.
32153         * tests/test-sendto.c: New file.
32155         Tests for module 'send'.
32156         * modules/send-tests: New file.
32157         * tests/test-send.c: New file.
32159         Tests for module 'recvfrom'.
32160         * modules/recvfrom-tests: New file.
32161         * tests/test-recvfrom.c: New file.
32163         Tests for module 'recv'.
32164         * modules/recv-tests: New file.
32165         * tests/test-recv.c: New file.
32167         Tests for module 'listen'.
32168         * modules/listen-tests: New file.
32169         * tests/test-listen.c: New file.
32171         Tests for module 'getsockopt'.
32172         * modules/getsockopt-tests: New file.
32173         * tests/test-getsockopt.c: New file.
32175         Tests for module 'getsockname'.
32176         * modules/getsockname-tests: New file.
32177         * tests/test-getsockname.c: New file.
32179         Tests for module 'getpeername'.
32180         * modules/getpeername-tests: New file.
32181         * tests/test-getpeername.c: New file.
32183         Tests for module 'connect'.
32184         * modules/connect-tests: New file.
32185         * tests/test-connect.c: New file.
32187         Tests for module 'bind'.
32188         * modules/bind-tests: New file.
32189         * tests/test-bind.c: New file.
32191         accept4 tests: Fix for native Windows.
32192         * tests/test-accept4.c: Include sockets.h.
32193         (main): Invoke gl_sockets_startup.
32194         * modules/accept4-tests (Depends-on): Add sockets.
32196         accept tests: Fix for native Windows.
32197         * tests/test-accept.c: Include sockets.h.
32198         (main): Invoke gl_sockets_startup.
32199         * modules/accept-tests (Depends-on): Add sockets.
32201 2011-09-19  Bruno Haible  <bruno@clisp.org>
32203         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
32204         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
32205         do...while(0).
32206         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
32207         Suggested by Paul Eggert.
32209 2011-09-19  Bruno Haible  <bruno@clisp.org>
32211         sched: Ensure pid_t is defined.
32212         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
32213         not define pid_t.
32214         * lib/sched.in.h: Include <sys/types.h>.
32215         * doc/posix-headers/sched.texi: Mention the pid_t problem.
32216         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32218 2011-09-19  Bruno Haible  <bruno@clisp.org>
32220         msvc-inval: Ensure the entire expansion is a single statement.
32221         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
32222         of braces.
32224 2011-09-19  Jim Meyering  <meyering@redhat.com>
32226         tests: use printf, not echo in init.sh's warn_ function
32227         * tests/init.sh (warn_): Use printf, not echo.  The latter would
32228         misbehave when given strings containing a backslash or starting
32229         with e.g., -n.  James Youngman suggested setting IFS.
32231 2011-09-19  Eric Blake  <eblake@redhat.com>
32233         futimens: enhance test
32234         * tests/test-futimens.h (test_futimens): Also check for EBADF on
32235         closed non-negative fd.
32237         date: accept 'hence' as opposite of 'ago'
32238         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
32239         * tests/test-parse-datetime.c (main): Enhance test.
32240         Suggested by Jesse Wilson.
32242 2011-09-19  Jim Meyering  <meyering@redhat.com>
32244         getcwd: don't fail in a deep directory on a system without openat
32245         Before this change, getcwd would fail when called from a directory
32246         of depth PATH_MAX / 3 or greater.  That was due to the fact that
32247         the non-openat implementation used "..", "../..", "../../..", etc.
32248         to access ancestor directories.  With too many, that string would
32249         be longer than PATH_MAX.
32250         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
32251         using gnulib's openat replacement.
32252         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
32253         we're using the replacement function.
32255 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
32257         maint.mk: avoid warnings from perl about missing files
32258         * top/maint.mk (def_sym_regex): Ignore files listed in
32259         $(gl_other_headers_) that do not exist, say because a project
32260         does not use a corresponding module.
32262 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
32264         stat: use pathmax.h only if needed
32265         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
32266         This is better for Emacs, which does not have a mingw port and
32267         therefore can avoid the pathmax module.
32269         utimens: remove dependency on dup2
32270         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
32271         to work around the Linux kernel bug.
32272         * modules/utimens (Depends-on): Remove dup2.
32274 2011-09-18  Bruno Haible  <bruno@clisp.org>
32276         inet_ntop, inet_pton: Look for it also in libresolv.
32277         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
32278         libnsl, search for it in libresolv.
32279         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
32280         Needed on Solaris 7.
32282 2011-09-18  Bruno Haible  <bruno@clisp.org>
32284         accept, accept4 tests: Avoid link error on Solaris.
32285         * modules/accept-tests (Makefile.am): Link test-accept against
32286         $(LIBSOCKET).
32287         * modules/accept4-tests (Makefile.am): Link test-accept4 against
32288         $(LIBSOCKET).
32290         accept4: Avoid link error on Solaris.
32291         * modules/accept4 (Link): New section.
32293         socket functions: Avoid link errors on Solaris.
32294         * modules/accept (Depends-on): Add socketlib.
32295         (Link): New section.
32296         * modules/bind (Depends-on): Add socketlib.
32297         (Link): New section.
32298         * modules/connect (Depends-on): Add socketlib.
32299         (Link): New section.
32300         * modules/getpeername (Depends-on): Add socketlib.
32301         (Link): New section.
32302         * modules/getsockname (Depends-on): Add socketlib.
32303         (Link): New section.
32304         * modules/getsockopt (Depends-on): Add socketlib.
32305         (Link): New section.
32306         * modules/listen (Depends-on): Add socketlib.
32307         (Link): New section.
32308         * modules/recv (Depends-on): Add socketlib.
32309         (Link): New section.
32310         * modules/recvfrom (Depends-on): Add socketlib.
32311         (Link): New section.
32312         * modules/send (Depends-on): Add socketlib.
32313         (Link): New section.
32314         * modules/sendto (Depends-on): Add socketlib.
32315         (Link): New section.
32316         * modules/setsockopt (Depends-on): Add socketlib.
32317         (Link): New section.
32318         * modules/shutdown (Depends-on): Add socketlib.
32319         (Link): New section.
32320         * modules/socket (Depends-on): Add socketlib.
32321         (Link): New section.
32323 2011-09-18  Bruno Haible  <bruno@clisp.org>
32325         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
32326         * tests/test-ptsname.c (main): Terminate the test if it takes longer
32327         than 5 seconds.
32328         * modules/ptsname-tests (configure.ac): Test for alarm.
32330 2011-09-18  Bruno Haible  <bruno@clisp.org>
32332         posix_spawn_file_actions_add*: Fix module dependencies.
32333         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
32334         posix_spawn_file_actions_init.
32335         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
32336         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
32338 2011-09-18  Bruno Haible  <bruno@clisp.org>
32340         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
32341         * tests/test-rename.h (test_rename): Allow error code EEXIST.
32342         * tests/test-renameat.c (main): Likewise.
32344 2011-09-18  Bruno Haible  <bruno@clisp.org>
32346         Tests for module 'accept4'.
32347         * modules/accept4-tests: New file.
32348         * tests/test-accept4.c: New file.
32350 2011-09-18  Bruno Haible  <bruno@clisp.org>
32352         Tests for module 'accept'.
32353         * modules/accept-tests: New file.
32354         * tests/test-accept.c: New file.
32356 2011-09-18  Bruno Haible  <bruno@clisp.org>
32358         dup2: Support for MSVC.
32359         * lib/dup2.c: Include msvc-inval.h.
32360         (rpl_dup2): Handle invalid parameter notifications during dup2 and
32361         _get_osfhandle calls.
32362         * modules/dup2 (Depends-on): Add msvc-inval.
32363         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
32365         New module 'msvc-inval'.
32366         * lib/msvc-inval.h: New file.
32367         * lib/msvc-inval.c: New file.
32368         * m4/msvc-inval.m4: New file.
32369         * modules/msvc-inval: New file.
32371 2011-09-17  Bruno Haible  <bruno@clisp.org>
32373         Tests for module 'pclose'.
32374         * modules/pclose-tests: New file.
32376         New module 'pclose'.
32377         * lib/stdio.in.h (pclose): New declaration.
32378         * lib/pclose.c: New file.
32379         * m4/pclose.m4: New file.
32380         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
32381         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
32382         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
32383         * modules/pclose: New file.
32384         * modules/popen-tests (Depends-on): Add pclose.
32385         * modules/popen-safer-tests (Depends-on): Likewise.
32386         * doc/posix-functions/pclose.texi: Mention the new module.
32388 2011-09-17  Bruno Haible  <bruno@clisp.org>
32390         popen: Support for MSVC.
32391         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
32392         * lib/popen.c (popen): Provide alternate definition for native Windows.
32393         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
32394         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
32395         * modules/popen (Depends-on, configure.ac): Update condition.
32396         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
32397         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
32398         fixed.
32400 2011-09-17  Bruno Haible  <bruno@clisp.org>
32402         isnanl, isnand, isnanf: Work around MSVC bug.
32403         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
32405 2011-09-17  Bruno Haible  <bruno@clisp.org>
32407         sys_socket tests: Fix recent mistake.
32408         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
32410 2011-09-17  Bruno Haible  <bruno@clisp.org>
32412         putenv: Support for MSVC.
32413         * modules/putenv (Depends-on): Add environ.
32414         * lib/putenv.c (environ): Disable declaration.
32415         * lib/unistd.in.h: Update comment.
32417 2011-09-17  Bruno Haible  <bruno@clisp.org>
32419         math: Avoid macro redefinition warnings on MSVC.
32420         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
32421         Undefine before redefining.
32423 2011-09-17  Bruno Haible  <bruno@clisp.org>
32425         doc: Mention functions which are declared as macros.
32426         * doc/posix-functions/*[fl].texi: Mention that some functions are
32427         defined as macros with arguments only.
32429 2011-09-17  Bruno Haible  <bruno@clisp.org>
32431         Add dependencies to new dirent related modules.
32432         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
32433         * modules/fts (Depends-on): Likewise.
32434         * modules/glob (Depends-on): Likewise.
32435         * modules/savedir (Depends-on): Likewise.
32436         * modules/scandir (Depends-on): Likewise.
32437         * modules/dirent-safer (Depends-on): Add opendir, closedir.
32438         * modules/fdopendir (Depends-on): Add opendir.
32440 2011-09-17  Bruno Haible  <bruno@clisp.org>
32442         inet_pton: Support for MSVC on Windows Vista or newer.
32443         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
32444         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
32445         HAVE_DECL_INET_PTON is defined.
32446         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
32447         On platforms with <winsock2.h>, test whether inet_pton is declared in
32448         <ws2tcpip.h>. If so, arrange to replace it.
32449         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
32450         REPLACE_INET_PTON.
32451         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
32452         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
32453         (Depends-on, configure.ac): Update condition.
32454         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
32456 2011-09-17  Bruno Haible  <bruno@clisp.org>
32458         inet_ntop: Support for MSVC on Windows Vista or newer.
32459         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
32460         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
32461         HAVE_DECL_INET_NTOP is defined.
32462         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
32463         On platforms with <winsock2.h>, test whether inet_ntop is declared in
32464         <ws2tcpip.h>. If so, arrange to replace it.
32465         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
32466         REPLACE_INET_NTOP.
32467         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
32468         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
32469         (Depends-on, configure.ac): Update condition.
32470         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
32472 2011-09-16  Eric Blake  <eblake@redhat.com>
32474         test-fsync: yet another enhancement
32475         * tests/test-fsync.c (main): Also test behavior on read-only text
32476         file.
32478 2011-09-16  Bruno Haible  <bruno@clisp.org>
32480         Enhance fsync, fdatasync tests.
32481         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
32482         * tests/test-fdatasync.c (main): Likewise.
32484 2011-09-16  Bruno Haible  <bruno@clisp.org>
32486         Support for MSVC compiler: Ensure mode_t gets defined.
32487         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
32488         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
32489         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
32490         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
32491         * tests/test-fcntl-h.c: Check that mode_t is defined.
32492         * tests/test-sys_stat.c: Likewise.
32493         * tests/test-sys_types.c: Likewise.
32494         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
32495         * doc/posix-headers/sys_stat.texi: Likewise.
32496         * doc/posix-headers/sys_types.texi: Likewise.
32498 2011-09-16  Bruno Haible  <bruno@clisp.org>
32500         sys_stat: Support for MSVC.
32501         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
32502         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
32503         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
32504         MSVC.
32506 2011-09-16  Bruno Haible  <bruno@clisp.org>
32508         Support for MSVC compiler: Ensure off_t gets defined.
32509         * lib/unistd.in.h: Include <sys/types.h>.
32510         * tests/test-fcntl-h.c: Check that off_t is defined.
32511         * tests/test-sys_stat.c: Likewise.
32512         * tests/test-sys_types.c: Likewise.
32514 2011-09-16  Eric Blake  <eblake@redhat.com>
32516         fdatasync: port to Solaris
32517         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
32518         * modules/fdatasync (Link): Document it.
32519         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
32521         fdatasync: port to MacOS X 10.7
32522         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
32523         declared.
32524         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
32525         * modules/unistd (Makefile.am): Substitute it.
32526         * lib/unistd.in.h (fdatasync): Declare on MacOS.
32527         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
32529         fdatasync: minor improvements
32530         * modules/fdatasync (Depends-on): Add condition for fsync.
32531         * lib/fdatasync.c (fdatasync): Add comment.
32532         * tests/test-unistd-c++.cc: Test fdatasync.
32534         unistd: update refs to newer POSIX
32535         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
32536         Suggested by Bruno Haible.
32538         fdatasync: new module
32539         * modules/fsync (Description): Document difference to fdatasync.
32540         * modules/fdatasync: New module.
32541         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
32542         * lib/fdatasync.c (fdatasync): Likewise.
32543         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
32544         defaults.
32545         * modules/unistd (Makefile.am): Set witnesses.
32546         * lib/unistd.in.h (fdatasync): Declare.
32547         * MODULES.html.sh: Document it.
32548         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
32549         * modules/fdatasync-tests: New test.
32550         * tests/test-fdatasync.c: Likewise.
32552 2011-09-16  Eric Blake  <eblake@redhat.com>
32554         test-fsync: enhance tests
32555         * modules/fsync-tests (Depends-on): Add errno, for mingw.
32556         * tests/test-fsync.c (main): Enhance test.
32558 2011-09-15  Bruno Haible  <bruno@clisp.org>
32560         Support for MSVC compiler: Ensure ssize_t gets defined.
32561         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
32562         * doc/posix-headers/stdio.texi: Likewise.
32563         * modules/stdio (Depends-on): Add ssize_t.
32564         * modules/sys_socket (Depends-on): Likewise.
32565         * modules/sys_types (Depends-on): Likewise.
32566         * modules/sys_uio (Depends-on): Likewise.
32567         * modules/unistd (Depends-on): Likewise.
32568         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
32569         * tests/test-sys_types.c: Check that ssize_t is defined.
32571 2011-09-14  Bruno Haible  <bruno@clisp.org>
32573         Avoid using #, the m4 comment starter character, near brackets.
32574         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
32575         delimiter character in sed expressions.
32576         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
32577         Suggested by Eric Blake.
32579         Properly quote AC_CHECK_DECLS' 4th argument.
32580         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
32581         argument.
32582         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
32583         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
32584         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
32585         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
32586         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
32587         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
32588         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
32589         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
32590         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
32591         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
32592         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
32593         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
32594         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
32595         * m4/isinf.m4 (gl_ISINF): Likewise.
32596         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
32597         * m4/readutmp.m4 (gl_READUTMP): Likewise.
32598         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
32599         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
32600         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
32601         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
32602         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
32603         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
32604         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
32605         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
32606         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
32607         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
32608         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
32609         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
32610         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
32611         Reported by Eric Blake.
32613         Properly quote AC_CHECK_DECL's 4th argument.
32614         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
32615         argument.
32616         * m4/argp.m4 (gl_ARGP): Likewise.
32617         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
32618         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
32619         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
32620         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
32621         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
32622         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
32623         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
32624         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
32625         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
32626         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
32627         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
32628         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
32629         Reported by Eric Blake.
32631 2011-09-14  Eric Blake  <eblake@redhat.com>
32633         opendir: avoid compile warning
32634         * lib/opendir.c (includes): Always include errno.h.
32635         Reported by Tatsuro MATSUOKA.
32637 2011-09-14  Jim Meyering  <meyering@redhat.com>
32639         maint.mk: sc_tight_scope: propagate failure from sub-make
32640         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
32641         Reported by Martin von Gagern.
32643 2011-09-13  Bruno Haible  <bruno@clisp.org>
32645         tempname: Support for MSVC.
32646         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
32647         MSVC.
32648         * modules/tempname (Depends-on): Add fcntl-h.
32650 2011-09-13  Bruno Haible  <bruno@clisp.org>
32652         sys_time: Support for MSVC.
32653         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
32654         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
32655         include <winsock2.h>.
32656         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
32657         function declarations that collide with POSIX.
32658         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
32659         (Makefile.am): Substitute HAVE_WINSOCK2_H.
32661 2011-09-13  Bruno Haible  <bruno@clisp.org>
32663         stat: Support for MSVC.
32664         * lib/stat.c: Include pathmax.h.
32665         * modules/stat (Depends-on): Add pathmax.
32667         pathmax: Support for native Windows.
32668         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
32670 2011-09-12  Bruno Haible  <bruno@clisp.org>
32672         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
32673         * lib/dirent.in.h (struct dirent): New type.
32674         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
32675         DT_WHT): New macros.
32676         (DIR): New type.
32677         (opendir, closedir): Declare only if the module 'opendir' is enabled.
32678         (readdir, rewinddir): New declarations.
32679         * lib/dirent-private.h: New file.
32680         * lib/opendir.c: New file.
32681         * lib/readdir.c: New file.
32682         * lib/rewinddir.c: New file.
32683         * lib/closedir.c: New file.
32684         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
32685         * m4/opendir.m4: New file.
32686         * m4/readdir.m4: New file.
32687         * m4/rewinddir.m4: New file.
32688         * m4/closedir.m4: New file.
32689         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
32690         REPLACE_CLOSEDIR here.
32691         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
32692         readdir, rewinddir are declared.
32693         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
32694         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
32695         HAVE_REWINDDIR, HAVE_CLOSEDIR.
32696         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
32697         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
32698         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
32699         * modules/opendir: New file.
32700         * modules/readdir: New file.
32701         * modules/rewinddir: New file.
32702         * modules/closedir: New file.
32703         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
32704         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
32705         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
32706         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
32707         * NEWS: Mention the 'fchdir' change.
32709 2011-09-11  Bruno Haible  <bruno@clisp.org>
32711         asm-underscore.m4: Support for MSVC.
32712         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
32713         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
32715 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
32717         Doc about crypt functions.
32718         * doc/posix-functions/crypt.texi: Expand range of glibc versions
32719         needing for _GNU_SOURCE to get crypt.
32720         * doc/posix-functions/encrypt.texi: Likewise.
32721         * doc/posix-functions/setkey.texi: Likewise.
32723 2011-09-11  Bruno Haible  <bruno@clisp.org>
32725         doc: Update regarding MSVC 9.
32726         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
32727         tested".
32728         * doc/posix-functions/*.texi: Update with info about MSVC 9.
32729         * doc/posix-headers/*.texi: Likewise.
32730         * doc/pastposix-functions/*.texi: Likewise.
32731         * doc/glibc-functions/*.texi: Likewise.
32732         * doc/glibc-headers/*.texi: Likewise.
32734 2011-09-11  Bruno Haible  <bruno@clisp.org>
32736         unistd et al.: Don't assume <unistd.h> exists.
32737         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
32738         does not exist.
32739         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
32740         exist. But include <stdlib.h>.
32741         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
32742         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
32743         symlink() does not exist.
32744         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
32745         include <io.h> instead.
32746         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
32747         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
32748         include <direct.h> instead.
32749         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
32750         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
32751         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
32752         <io.h> instead.
32753         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
32754         correctly if the system does not have hard links.
32755         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
32756         <direct.h> instead.
32757         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
32758         it when looking for function declarations.
32759         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
32760         <direct.h> and <io.h> instead.
32761         * doc/posix-headers/unistd.texi: More details about MSVC problem.
32763 2011-09-11  Bruno Haible  <bruno@clisp.org>
32765         strcase: Support for MSVC.
32766         * modules/strcase (Status, Notice): Remove obsoletion mark.
32767         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
32768         * doc/posix-functions/strncasecmp.texi: Likewise.
32770         strings: Don't assume <strings.h> exists.
32771         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
32772         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
32773         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
32774         * doc/posix-headers/strings.texi: Mention the MSVC problem.
32776 2011-09-11  Bruno Haible  <bruno@clisp.org>
32778         dirent: Don't assume <dirent.h> exists.
32779         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
32780         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
32781         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
32782         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
32784 2011-09-11  Bruno Haible  <bruno@clisp.org>
32786         Fix wint_t on MSVC.
32787         * lib/wchar.in.h (wint_t): On MSVC, override it.
32788         * lib/wctype.in.h (wint_t): Likewise.
32789         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
32790         MSVC.
32791         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
32792         * doc/posix-headers/wctype.texi: Likewise.
32794 2011-09-11  Bruno Haible  <bruno@clisp.org>
32796         sys_types: Fix typo.
32797         * lib/sys_types.in.h: Fix typo in comment.
32798         Reported by Paul Eggert.
32800         Support for MSVC compiler: Ensure size_t gets defined.
32801         * modules/strings (Depends-on): Add 'sys_types'.
32802         * modules/sys_uio (Depends-on): Likewise.
32803         * lib/sys_uio.in.h: Update comment.
32805         C++ tests for module 'sys_types'.
32806         * modules/sys_types-c++-tests: New file.
32807         * tests/test-sys_types-c++.cc: New file.
32809         Tests for module 'sys_types'.
32810         * modules/sys_types-tests: New file.
32811         * tests/test-sys_types.c: New file.
32813         New module 'sys_types'.
32814         * lib/sys_types.in.h: New file.
32815         * m4/sys_types_h.m4: New file.
32816         * modules/sys_types: New file.
32817         * doc/posix-headers/sys_types.texi: Mention the new module and the
32818         size_t problem on MSVC 9.
32820 2011-09-11  Bruno Haible  <bruno@clisp.org>
32822         Support for MSVC compiler: Avoid division by a literal 0.
32823         * lib/math.in.h (NAN): Define through a function call also on MSVC.
32824         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
32825         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
32826         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
32827         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
32828         * tests/infinity.h: New file.
32829         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
32830         on MSVC.
32831         * tests/test-ceilf1.c: Include infinity.h.
32832         (main): Use Infinityf.
32833         * tests/test-ceil1.c: Include infinity.h.
32834         (main): Use Infinityd.
32835         * tests/test-ceill.c: Include infinity.h.
32836         (main): Use Infinityl.
32837         * tests/test-dprintf-posix.c: Include infinity.h.
32838         (test_function): Use Infinityd.
32839         * tests/test-floorf1.c: Include infinity.h.
32840         (main): Use Infinityf.
32841         * tests/test-floor1.c: Include infinity.h.
32842         (main): Use Infinityd.
32843         * tests/test-floorl.c: Include infinity.h.
32844         (main): Use Infinityl.
32845         * tests/test-fprintf-posix.c: Include infinity.h.
32846         (test_function): Use Infinityd.
32847         * tests/test-frexp.c: Include infinity.h.
32848         (main): Use Infinityd.
32849         * tests/test-frexpl.c: Include infinity.h.
32850         (main): Use Infinityl.
32851         * tests/test-isfinite.c: Include infinity.h.
32852         (test_isfinitef): Use Infinityf.
32853         (test_isfinited): Use Infinityd.
32854         (test_isfinitel): Use Infinityl.
32855         * tests/test-isinf.c: Include infinity.h.
32856         (test_isinff): Use Infinityf.
32857         (test_isinfd): Use Infinityd.
32858         (test_isinfl): Use Infinityl.
32859         * tests/test-isnan.c: Include infinity.h.
32860         (test_float): Use Infinityf.
32861         (test_double): Use Infinityd.
32862         (test_long_double): Use Infinityl.
32863         * tests/test-isnanf.h: Include infinity.h.
32864         (main): Use Infinityf.
32865         * tests/test-isnand.h: Include infinity.h.
32866         (main): Use Infinityd.
32867         * tests/test-isnanl.h: Include infinity.h.
32868         (main): Use Infinityl.
32869         * tests/test-ldexpl.c: Include infinity.h.
32870         (main): Use Infinityl.
32871         * tests/test-printf-posix.h: Include infinity.h.
32872         (test_function): Use Infinityd.
32873         * tests/test-roundf1.c: Include infinity.h.
32874         (main): Use Infinityf.
32875         * tests/test-round1.c: Include infinity.h.
32876         (main): Use Infinityd.
32877         * tests/test-roundl.c: Include infinity.h.
32878         (main): Use Infinityl.
32879         * tests/test-signbit.c: Include infinity.h.
32880         (test_signbitf): Use Infinityf.
32881         (test_signbitd): Use Infinityd.
32882         (test_signbitl): Use Infinityl.
32883         * tests/test-snprintf-posix.h: Include infinity.h.
32884         (test_function): Use Infinityd, Infinityl.
32885         * tests/test-sprintf-posix.h: Include infinity.h.
32886         (test_function): Use Infinityd, Infinityl.
32887         * tests/test-truncf1.c: Include infinity.h.
32888         (main): Use Infinityf.
32889         * tests/test-trunc1.c: Include infinity.h.
32890         (main): Use Infinityd.
32891         * tests/test-truncl.c: Include infinity.h.
32892         (main): Use Infinityl.
32893         * tests/test-vasnprintf-posix.c: Include infinity.h.
32894         (test_function): Use Infinityd, Infinityl.
32895         * tests/test-vasprintf-posix.c: Include infinity.h.
32896         (test_function): Use Infinityd, Infinityl.
32897         * modules/ceilf-tests (Files): Add tests/infinity.h.
32898         * modules/ceil-tests (Files): Likewise.
32899         * modules/ceill-tests (Files): Likewise.
32900         * modules/dprintf-posix-tests (Files): Likewise.
32901         * modules/floorf-tests (Files): Likewise.
32902         * modules/floor-tests (Files): Likewise.
32903         * modules/floorl-tests (Files): Likewise.
32904         * modules/fprintf-posix-tests (Files): Likewise.
32905         * modules/frexp-tests (Files): Likewise.
32906         * modules/frexp-nolibm-tests (Files): Likewise.
32907         * modules/frexpl-tests (Files): Likewise.
32908         * modules/frexpl-nolibm-tests (Files): Likewise.
32909         * modules/isfinite-tests (Files): Likewise.
32910         * modules/isinf-tests (Files): Likewise.
32911         * modules/isnan-tests (Files): Likewise.
32912         * modules/isnanf-tests (Files): Likewise.
32913         * modules/isnanf-nolibm-tests (Files): Likewise.
32914         * modules/isnand-tests (Files): Likewise.
32915         * modules/isnand-nolibm-tests (Files): Likewise.
32916         * modules/isnanl-tests (Files): Likewise.
32917         * modules/isnanl-nolibm-tests (Files): Likewise.
32918         * modules/ldexpl-tests (Files): Likewise.
32919         * modules/printf-posix-tests (Files): Likewise.
32920         * modules/roundf-tests (Files): Likewise.
32921         * modules/round-tests (Files): Likewise.
32922         * modules/roundl-tests (Files): Likewise.
32923         * modules/signbit-tests (Files): Likewise.
32924         * modules/snprintf-posix-tests (Files): Likewise.
32925         * modules/sprintf-posix-tests (Files): Likewise.
32926         * modules/truncf-tests (Files): Likewise.
32927         * modules/trunc-tests (Files): Likewise.
32928         * modules/truncl-tests (Files): Likewise.
32929         * modules/vasnprintf-posix-tests (Files): Likewise.
32930         * modules/vasprintf-posix-tests (Files): Likewise.
32931         * modules/vdprintf-posix-tests (Files): Likewise.
32932         * modules/vfprintf-posix-tests (Files): Likewise.
32933         * modules/vprintf-posix-tests (Files): Likewise.
32934         * modules/vsnprintf-posix-tests (Files): Likewise.
32935         * modules/vsprintf-posix-tests (Files): Likewise.
32936         * modules/xprintf-posix-tests (Files): Likewise.
32938 2011-09-11  Bruno Haible  <bruno@clisp.org>
32940         Ensure pid_t gets defined.
32941         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
32942         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
32943         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
32944         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
32945         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
32946         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
32947         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
32948         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
32949         * tests/test-fcntl-h.c: Check that pid_t is defined.
32950         * tests/test-sched.c: Likewise.
32951         * tests/test-termios.c: Likewise.
32952         * tests/test-time.c: Likewise.
32953         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
32954         * doc/posix-headers/signal.texi: Likewise.
32955         * doc/posix-headers/sys_types.texi: Likewise.
32956         * doc/posix-headers/time.texi: Likewise.
32958 2011-09-11  Bruno Haible  <bruno@clisp.org>
32960         acl: Fix compilation on Solaris 10 (older version).
32961         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
32962         of ACE_EVERYONE.
32963         * lib/set-mode-acl.c (qset_acl): Likewise.
32964         Reported by Christian Jullien <eligis@orange.fr>.
32966 2011-09-10  Bruno Haible  <bruno@clisp.org>
32968         iconv, unsetenv: Add support for MSVC compiler.
32969         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
32970         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
32972 2011-09-10  Bruno Haible  <bruno@clisp.org>
32974         *printf: Add support for MSVC compiler.
32975         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
32976         handles the exception caused by the %n directive. When cross-compiling,
32977         guess no on native Windows.
32978         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
32979         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
32980         emulate it through vsnprintf.
32981         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
32982         * doc/posix-functions/dprintf.texi: Update documentation regarding
32983         MSVC 9.
32984         * doc/posix-functions/fprintf.texi: Likewise.
32985         * doc/posix-functions/printf.texi: Likewise.
32986         * doc/posix-functions/snprintf.texi: Likewise.
32987         * doc/posix-functions/sprintf.texi: Likewise.
32988         * doc/posix-functions/swprintf.texi: Likewise.
32989         * doc/posix-functions/vdprintf.texi: Likewise.
32990         * doc/posix-functions/vfprintf.texi: Likewise.
32991         * doc/posix-functions/vprintf.texi: Likewise.
32992         * doc/posix-functions/vsnprintf.texi: Likewise.
32993         * doc/posix-functions/vsprintf.texi: Likewise.
32994         * doc/glibc-functions/asprintf.texi: Likewise.
32995         * doc/glibc-functions/obstack_printf.texi: Likewise.
32996         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
32997         * doc/glibc-functions/vasprintf.texi: Likewise.
32999 2011-09-10  Bruno Haible  <bruno@clisp.org>
33001         nocrash: Add support for native Windows.
33002         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
33004 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
33005             Bruno Haible  <bruno@clisp.org>
33007         absolute-header, include-next: Add support for MSVC compiler.
33008         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
33009         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
33010         directory separator in #line directives.
33011         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
33012         recognize also backslash as directory separator in #line directives.
33014 2011-09-08  Jim Meyering  <meyering@redhat.com>
33016         maint.mk: mark the post-release commit log with "maint: " prefix
33017         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
33018         one-line commit-log summary.
33020 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
33021             Bruno Haible  <bruno@clisp.org>
33023         Doc about crypt functions.
33024         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
33025         systems.
33026         * doc/posix-functions/encrypt.texi: Likewise.
33027         * doc/posix-functions/setkey.texi: Likewise.
33029 2011-09-08  Simon Josefsson  <simon@josefsson.org>
33031         * lib/gc.h: Fix copyright header.
33033 2011-09-07  Bruno Haible  <bruno@clisp.org>
33035         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
33036         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
33037         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
33039 2011-09-07  Bruno Haible  <bruno@clisp.org>
33041         openat: Work around compilation error with OSF/1 5.1 DTK cc.
33042         * lib/fopen.c: Use different syntax for include of <stdio.h>.
33043         * lib/freopen.c: Likewise.
33044         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
33045         * lib/lstat.c: Likewise.
33046         * lib/stat.c: Likewise.
33047         * lib/open.c: Use different syntax for include of <fcntl.h>.
33048         * lib/openat.c: Include fcntl.h again, explicitly.
33050 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
33052         parse-datetime: document the newly accepted format
33053         * doc/parse-datetime.texi (Combined date and time of day items):
33054         New section.
33056 2011-09-06  Bruno Haible  <bruno@clisp.org>
33058         acl: Fix a test failure on newer Solaris 10 with ZFS.
33059         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
33060         ENOSYS as no ACL.
33061         Reported by Jim Meyering.
33063 2011-09-06  Bruno Haible  <bruno@clisp.org>
33065         acl: Update for AIX >= 5.3 with NFS.
33066         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
33067         ENOSYS as no ACL.
33069         acl: Fix a test failure on AIX >= 5.3 with NFS.
33070         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
33071         as no ACL.
33073 2011-09-06  Bruno Haible  <bruno@clisp.org>
33075         acl: Fix a test failure on IRIX 6.5 with NFS.
33076         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
33077         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
33078         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
33079         * lib/copy-acl.c (qcopy_acl): Likewise.
33081 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
33083         openat: port to AIX 7.1 with large files
33084         AIX 7.1 does a "#define openat open64at" if large files are in use,
33085         so we can't simply #undef openat.  Use the orig_openat trick (similar
33086         to orig_open in lib/open.c) to work around the problem.  Problem
33087         reported by Kevin Brott for GNU tar, in the thread containing
33088         <http://lists.gnu.org/r/bug-tar/2011-09/msg00032.html>.
33089         * lib/openat.c (__need_system_fcntl_h): Define first.
33090         Include <fcntl.h> and <sys/types.h> before undefining.
33091         (orig_openat) [HAVE_OPENAT]: New inline function.
33092         (openat) [HAVE_OPENAT]: Do not undef.
33093         (rpl_openat): Use orig_openat, not openat.
33095 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
33096             Bruno Haible  <bruno@clisp.org>
33098         acl: Avoid errors on NonStop Kernel.
33099         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
33100         ENOTSUP errors.
33102 2011-09-05  Bruno Haible  <bruno@clisp.org>
33104         acl: Clean up Solaris code.
33105         * lib/acl-internal.h: Remove no-op #if.
33106         * lib/file-has-acl.c: Likewise.
33107         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
33108         * lib/copy-acl.c (qcopy_acl): Likewise.
33110 2011-09-05  Bruno Haible  <bruno@clisp.org>
33112         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
33113         binaries built on the original Solaris 10.
33114         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
33115         trivial.
33117 2011-09-05  Bruno Haible  <bruno@clisp.org>
33119         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
33120         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
33121         10.
33122         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
33123         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
33124         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
33125         instead of acl_get, facl_get, acl_set, facl_set.
33127 2011-09-05  Bruno Haible  <bruno@clisp.org>
33129         copy-file: Try unit tests on more file systems.
33130         * tests/test-copy-file-1.sh: New file.
33131         * tests/test-copy-file-2.sh: New file.
33132         * modules/copy-file-tests (Files): Add them.
33133         (Makefile.am): Add them to TESTS.
33135         acl: Try unit tests on more file systems.
33136         * tests/test-file-has-acl-1.sh: New file.
33137         * tests/test-file-has-acl-2.sh: New file.
33138         * tests/test-set-mode-acl-1.sh: New file.
33139         * tests/test-set-mode-acl-2.sh: New file.
33140         * tests/test-copy-acl-1.sh: New file.
33141         * tests/test-copy-acl-2.sh: New file.
33142         * modules/acl-tests (Files): Add them.
33143         (Makefile.am): Add them to TESTS.
33145 2011-09-04  Bruno Haible  <bruno@clisp.org>
33147         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
33148         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
33149         10.
33150         (OLD_ALLOW, OLD_DENY): New macros.
33151         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
33152         ACE_ACCESS_ALLOWED_ACE_TYPE.
33153         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
33154         ACE_ACCESS_DENIED_ACE_TYPE.
33155         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
33156         (NEW_ACE_EXECUTE): Fix value.
33157         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
33158         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
33159         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
33160         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
33161         NEW_ACE_SYNCHRONIZE): New macros.
33162         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
33163         instead of acl_fromtext, acl_set, facl_set.
33164         Fixes a coreutils/tests/cp/perm failure.
33166 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
33168         openat: test for fstatat (..., 0) bug
33169         Further testing with tar suggests that fstatat (..., 0)
33170         does not work in general, on AIX 7.1; see
33171         <http://lists.gnu.org/r/bug-tar/2011-09/msg00023.html>.
33172         So, give up entirely on AIX 7.1's fstatat, and fall back on our
33173         replacement fstatat (which is what older AIX releases were using
33174         anyway).
33175         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
33176         use is now changed to orig_fstatat.  This was probably the right
33177         thing to do anyway.
33178         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
33179         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
33180         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
33181         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
33182         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
33183         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
33184         if the bug is found.
33186         openat: test for fstatat (AT_FDCWD, ..., 0) bug
33187         This tests for another fstatat bug on AIX 7.1:
33188         fstatat (AT_FDCWD, ..., 0) does not work.  See
33189         <http://lists.gnu.org/r/bug-tar/2011-09/msg00015.html>.
33190         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
33191         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
33192         (rpl_fstatat): Adjust so that it works around either (or both)
33193         bugs if present.
33194         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
33196 2011-09-03  Karl Berry  <karl@gnu.org>
33198         * doc/regex.texi (Character Class Operators): Avoid literal ":"
33199         in index entries.
33201 2011-09-02  Bruno Haible  <bruno@clisp.org>
33203         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
33204         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
33205         values of AR, ARFLAGS, RANLIB.
33206         Reported by John W. Eaton <jwe@gnu.org> for Octave.
33208 2011-09-02  Bruno Haible  <bruno@clisp.org>
33210         Find 'ar' program that fits with --host argument.
33211         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
33213 2011-09-02  Bruno Haible  <bruno@clisp.org>
33215         tests: init.sh: Support any non-GNU diff.
33216         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
33217         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
33218         Solaris 8.
33220 2011-09-02  Bruno Haible  <bruno@clisp.org>
33222         tests: init.sh: work also with any non-GNU diff that supports -u
33223         * tests/init.sh: Relax check for diff -u support.
33224         Rather than checking for GNU diff via --version, simply check
33225         for support for -u itself.  Useful at least on OpenBSD 4.9,
33226         AIX 7.1, IRIX 6.5, and Solaris 10.
33228 2011-09-01  Bruno Haible  <bruno@clisp.org>
33230         strtoimax, strtoumax: Document problem on HP-UX 11.
33231         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
33232         * doc/posix-functions/strtoumax.texi: Likewise.
33234 2011-09-01  Bruno Haible  <bruno@clisp.org>
33236         strtoumax: Avoid link error on OSF/1 with DTK cc.
33237         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
33238         defined as a function.
33239         * modules/strtoumax (Depends-on, configure.ac): Test only whether
33240         strtoumax is defined, not whether it is declared.
33242 2011-09-01  Bruno Haible  <bruno@clisp.org>
33244         strtoimax: Avoid link error on OSF/1 with DTK cc.
33245         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
33246         defined as a function.
33247         * modules/strtoimax (Depends-on, configure.ac): Test only whether
33248         strtoimax is defined, not whether it is declared.
33250 2011-09-01  Bruno Haible  <bruno@clisp.org>
33252         imaxdiv: Avoid link error on OSF/1 with DTK cc.
33253         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
33254         as a function.
33255         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
33256         whether it is declared.
33258 2011-09-01  Bruno Haible  <bruno@clisp.org>
33260         imaxabs: Avoid link error on OSF/1 with DTK cc.
33261         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
33262         as a function.
33263         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
33264         whether it is declared.
33266 2011-09-01  Bruno Haible  <bruno@clisp.org>
33268         Tests for module 'strtoumax'.
33269         * modules/strtoumax-tests: New file.
33270         * tests/test-strtoumax.c: New file.
33272         Tests for module 'strtoimax'.
33273         * modules/strtoimax-tests: New file.
33274         * tests/test-strtoimax.c: New file.
33276         Tests for module 'imaxdiv'.
33277         * modules/imaxdiv-tests: New file.
33278         * tests/test-imaxdiv.c: New file.
33280         Tests for module 'imaxabs'.
33281         * modules/imaxabs-tests: New file.
33282         * tests/test-imaxabs.c: New file.
33284 2011-09-01  Bruno Haible  <bruno@clisp.org>
33286         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
33287         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
33288         pthread_create.
33290 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
33292         openat: work around AIX 7.1 fstatat issue
33293         This should fix the problem that was not properly fixed
33294         in the previous change, dated 2011-08-30.
33295         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
33296         __need_system_stat_h defined.
33297         (orig_fstatat) [HAVE_FSTATAT]: New function.
33298         (rpl_fstatat): Go back to the old way of doing things,
33299         except call orig_fstatat instead of fstatat.
33300         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
33301         Remove unnecessary check whether fstatat fills in st_size etc.
33303 2011-09-01  Bruno Haible  <bruno@clisp.org>
33305         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
33306         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
33307         just include the system's header.
33309 2011-08-31  Jim Meyering  <meyering@redhat.com>
33311         tests: avoid spurious assertion failure in test-float.c on ppc64
33312         * tests/test-float.c (test_long_double): Comment out an assertion,
33313         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
33314         with gcc-4.4.4.
33316         maint: indent with spaces, not TABs
33317         I need to get in the habit of running gnulib's "make check".
33318         Both of these would have been caught.
33319         * m4/largefile.m4: Indent with spaces, not TABs.
33320         * lib/parse-datetime.y (iso_8601_time): Likewise.
33321         Spotted by Pádraig Brady.
33323         test-parse-datetime.c: accommodate a relatively strict gcc warning
33324         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
33325         to avoid a warning from gcc's -Werror=missing-declarations.
33326         Insert a few spaces-before-funcall-parenthesis.
33328 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
33330         parse-datetime: accept ISO 8601 date and time rep with "T" separator
33331         The parser now accepts ISO 8601 date-time strings with "T" as the
33332         separator.  It has long parsed dates like "2004-02-29 16:21:42"
33333         with a space between the date and time strings.  Now it also parses
33334         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
33335         variants like "2004-02-29T16:21:42.333-07:00"
33336         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
33337         of day representation using the 'T' separator character.
33338         * doc/parse-datetime.texi (General date syntax): replace use of
33339         deprecated --iso-8601 option with --rfc-3339 in example of date
33340         command output formats that can be parsed.
33341         * tests/test-parse-datetime.c (tm_diff): New function, taken from
33342         lib/parse-datetime.y.
33343         (gmt_offset): New function.
33344         (main): Add additional test cases to validate ISO8601 extended
33345         date and time of day parsing.
33347 2011-08-31  Bruno Haible  <bruno@clisp.org>
33349         freopen: Documentation.
33350         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
33351         name.
33352         Reported by Claudio Bley <claudio.bley@gmail.com>.
33354 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
33356         freopen: Don't crash if the filename argument is NULL.
33357         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
33358         NULL.
33360 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
33362         openat: work around AIX 7.1 fstatat bug
33363         Problem reported by Kevin Brott for GNU tar, in the thread containing
33364         <http://lists.gnu.org/r/bug-tar/2011-08/msg00015.html>.
33365         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
33366         FSTATAT_ST_SIZE_ETC_BROKEN.
33367         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
33368         rpl_fstatat.
33369         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
33370         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
33371         AC_CHECK_FUNCS_ONCE for fstatat.
33372         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
33373         fchmodat, mkdirat, openat and unlinkat.
33375 2011-08-30  Bruno Haible  <bruno@clisp.org>
33377         Avoid endless recursions if config.h includes some header files.
33378         * lib/fopen.c (__need_FILE): Define already before including config.h.
33379         * lib/freopen.c (__need_FILE): Likewise.
33380         * lib/open.c (__need_system_fcntl_h): Likewise.
33381         * lib/stat.c (__need_system_sys_stat_h): Likewise.
33382         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
33383         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
33385 2011-08-25  Karl Berry  <karl@gnu.org>
33387         * config/srclist.txt (ylwrap): new try.
33388         * build-aux/ylwrap: new file.
33390 2011-08-23  Bruno Haible  <bruno@clisp.org>
33392         tmpdir: Use a good default directory on native Windows.
33393         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
33394         (P_tmpdir): Default to _P_tmpdir on native Windows.
33395         (path_search): On native Windows, try the value returned by GetTempPath
33396         before trying P_tmpdir.
33397         * modules/tmpdir (Depends-on): Add pathmax.
33398         Suggested by John Darrington <john@darrington.wattle.id.au>.
33400 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
33402         doc: fix typo in README-release
33403         * top/README-release: Capitalize first word of a sentence.
33405 2011-08-19  Jim Meyering  <meyering@redhat.com>
33407         fts: do not exhaust memory when processing million-entry directories
33408         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
33409         directory would require about 256*N bytes of memory.  Thus, it was
33410         easy to construct a directory too large to be processed by any of
33411         those tools.  With this change, fts' maximum memory utilization is
33412         now limited to around 30MB.
33413         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
33414         (fts_read): When we've processed the final entry (i.e., when
33415         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
33416         using the parent entry to read any remaining entries.  Dispatch
33417         depending on what fts_build returns:
33418         - NULL+stop, aka failure: stop
33419         - NULL otherwise: move up in the dir hierarchy
33420         - non-NULL: handle this new entry
33421         (fts_build): Declare and use new local, continue_readdir.
33422         Prepare to be called from fts_read, when the entries
33423         from a partially-read directory have just been exhausted.
33424         In that case, we'll skip the opendir and instead use the parent's
33425         fts_dirp and derive dir_fd from that.
33426         Finally, in the readdir loop, if we read max_entries entries,
33427         exit the loop ensuring *not* to call closedir.  This is required
33428         so that fts_dirp can be reused on a subsequent call.
33429         Prompted by Ben England's report of memory exhaustion in find
33430         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
33432         maint: fts: move decl of `dp' down into while loop; split a long line
33433         * lib/fts.c (fts_build): No semantic change.
33435         fts: add/use new struct member, fts_dirp
33436         We are about to use this to manage any directory with
33437         too many entries to read all of them into memory at once.
33438         To do that, we'll need to save the DIR* pointer in each
33439         affected FTSENT struct.
33440         * lib/fts_.h: Include <dirent.h>.
33441         (struct FTSENT) [fts_dirp]: New member.
33442         * lib/fts.c (closedir_and_clear): Define.
33443         Use it in place of closedir so that we are sure to
33444         clear the new fts_dirp member when done with it.
33445         (fts_alloc): Initialize the new member.
33446         (fts_lfree): Free, if needed.
33448         maint: fts: give __opendir2 a new parameter and rename
33449         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
33450         than surreptitiously using sole caller's "dir_fd".
33451         (fts_opendir): Rename from __opendir2.
33453         maint: fts.c: remove __opendir2's now-unused parameter, oflag
33454         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
33456         maint: fts.c: correct off-by-one indentation
33457         * lib/fts.c (fts_build): Correct indentation, change style
33458         of a couple of block comments, and bracing style.
33460         maint: fts.c: move __opendir2 #define "up" out of function body
33461         * lib/fts.c (__opendir2): Move "up".  No semantic change.
33463         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
33464         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
33465         out for a long time and besides was useful only on BSD systems.
33467 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
33469         regex: port to Stratus OpenVOS
33470         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
33471         define to empty, rather than attempting nonportable optimizations.
33472         Problem reported by Paul Green in:
33473         http://lists.gnu.org/r/bug-diffutils/2011-08/msg00047.html
33474         and fix suggested by Eric Blake in:
33475         http://lists.gnu.org/r/bug-gnulib/2011-08/msg00143.html
33477 2011-08-17  Eric Blake  <eblake@redhat.com>
33479         getcwd: fix test failures on mingw
33480         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
33481         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
33482         test if long directory cannot be created, and allow mingw errno.
33484         getcwd-lgpl: fix m4 to match relaxed test for BSD
33485         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
33486         (gl_FUNC_GETCWD_SIGNATURE): New macro.
33487         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
33488         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
33489         signature problem.
33491         getcwd: fix compilation on mingw64
33492         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
33493         getcwd.
33494         Reported by Marc-André Lureau.
33496         pipe2: silence compiler warning
33497         * lib/pipe2.c (pipe2): Hide label if it is not used.
33499 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
33501         relocatable-prog: fix link error
33502         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
33503         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
33504         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
33505         into modules/relocatable-lib without noticing that
33506         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
33507         also needs to build relocatable.c.
33509 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
33511         getaddrinfo: fix sh typo in gai_strerrorA decl checking
33512         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
33513         shell code: it contained a 'break' that was not in a loop.
33514         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
33515         via a shell-language loop; this may have been true in old Autoconf
33516         versions, but it's not true in Autoconf 2.68.  I found this bug
33517         when testing coreutils git on Solaris 8, whose shell complains
33518         about the syntax error.
33520 2011-08-12  Simon Josefsson  <simon@josefsson.org>
33522         * lib/base64.c: Fix comment to reference RFC 4648.
33523         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
33524         <gvtulder@gmail.com>.
33526 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
33528         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
33530         po/Makefile.in.in: fix make -q problem
33531         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
33532         rule, since there's no file named 'check-macro-version' and its
33533         use as a file breaks make -q.
33534         (all): Don't depend on check-macro-version.
33535         (CHECK_MACRO_VERSION): New macro.
33536         (stamp-po): Use it.
33538         configmake: fix make -q problem
33539         * modules/configmake (configmake.h): Update configmake.h's time stamp
33540         even if the file does not change.  Otherwise, 'make -q' fails.
33541         Problem reported by Simon Josefsson in
33542         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00088.html>.
33544 2011-08-11  Jim Meyering  <meyering@redhat.com>
33546         git-version-gen: correct the advice in a comment
33547         * build-aux/git-version-gen: Correct comment.
33548         Don't recommend to list .tarball-version in .gitignore.
33550 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
33552         base64: fix off-by-one buffer size bug
33553         Problem and (trivial) fix reported by Gijs van Tulder in
33554         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00083.html>.
33555         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
33556         * tests/test-base64.c (main): Catch the bug.
33558 2011-08-10  Eric Blake  <eblake@redhat.com>
33560         closein: correct comments
33561         * lib/closein.c (close_stdin): Improve comments.
33563 2011-08-09  Bruno Haible  <bruno@clisp.org>
33565         More tests for 'fseeko'.
33566         * tests/test-fseeko3.c: New file, from Eric Blake.
33567         * tests/test-fseeko3.sh: New file.
33568         * modules/fseeko-tests (Files): Add them.
33569         (TESTS): Add test-fseeko3.sh.
33570         (check_PROGRAMS): Add test-fseeko3.
33572 2011-08-09  Eric Blake  <eblake@redhat.com>
33574         fseeko: remove unneeded hack
33575         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
33577         fseeko: fix bug on glibc
33578         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
33579         Reported by John W. Eaton.
33581 2011-08-08  Bruno Haible  <bruno@clisp.org>
33583         unictype/base: Fix interoperability with preinstalled libunistring.
33584         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
33585         Reported by Simon Josefsson.
33587 2011-08-08  Bruno Haible  <bruno@clisp.org>
33589         iswblank: Detect declaration correctly.
33590         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
33591         AC_CHECK_DECLS invocation.
33593 2011-08-08  Bruno Haible  <bruno@clisp.org>
33595         tcgetsid: Detect declaration correctly.
33596         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
33597         AC_CHECK_DECLS invocation.
33598         Reported by Simon Josefsson.
33600 2011-08-08  Eric Blake  <eblake@redhat.com>
33602         largefile: fix typo that regressed large file support
33603         * modules/largefile (configure.ac-early): Fix section name.
33605 2011-08-06  Karl Berry  <karl@gnu.org>
33607         * MODULES.html.sh (func_all_files): _Noreturn is no longer
33608         a separate module.
33610 2011-08-05  Simon Josefsson  <simon@josefsson.org>
33612         openat: Fix warnings and commens when building unlinkat.c on Hurd.
33613         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
33614         get prototype for free.
33616 2011-08-04  Bruno Haible  <bruno@clisp.org>
33618         Tests for module 'pathmax'.
33619         * modules/pathmax-tests: New file.
33620         * tests/test-pathmax.c: New file.
33622         canonicalize-lgpl: Support larger filenames on the Hurd.
33623         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
33624         Reported by Paul Eggert.
33626         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
33627         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
33628         * lib/chdir-long.h: Include pathmax.h.
33629         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
33630         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
33631         (PATH_MAX): Remove code that is done by pathmax.h.
33632         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
33633         * lib/tmpfile.c: Add a comment.
33634         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
33635         * modules/chdir-long (Depends-on): Add pathmax.
33636         * modules/getcwd (Depends-on): Add pathmax.
33637         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
33638         is not defined.
33639         * doc/posix-headers/limits.texi: Mention the pathmax module.
33640         * NEWS: Mention the change.
33642 2011-08-02  Bruno Haible  <bruno@clisp.org>
33644         pthread_sigmask: Actually use results of gl_THREADLIB.
33645         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
33646         gl_THREADLIB, not gl_[]THREADLIB.
33647         Reported by Eric Blake.
33649 2011-08-02  Jim Meyering  <meyering@redhat.com>
33651         maint.mk: relax the default _gl_TS_function_match regexp
33652         * top/maint.mk (_gl_TS_function_match): Don't require at least one
33653         space between function name and "(" in an "extern" declaration.
33654         That would fail to match a decl with no space there: extern void foo();
33656 2011-07-31  Iain Nicol  <iain@thenicols.net>
33658         git-version-gen: document that EXTRA_DIST must include .version
33659         * build-aux/git-version-gen: In the how-to-use comment, document
33660         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
33661         will fail when run from an unpacked distribution tarball.
33663 2011-08-01  Bruno Haible  <bruno@clisp.org>
33665         wctype-h: Fix last change.
33666         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
33667         REPLACE_TOWLOWER to 0.
33668         Reported by Sam Steingold <sds@gnu.org>.
33670 2011-07-31  Bruno Haible  <bruno@clisp.org>
33672         frexpl: Update autoconf test.
33673         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
33674         according to changes of 2011-06-20.
33676 2011-07-31  Bruno Haible  <bruno@clisp.org>
33678         sys_utsname: Add support for Minix.
33679         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
33680         <sys/utsname.h>.
33681         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
33682         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
33684 2011-07-31  Bruno Haible  <bruno@clisp.org>
33686         strings: Add support for Minix.
33687         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
33688         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
33689         * doc/posix-headers/strings.texi: Document the Minix problem.
33691 2011-07-31  Bruno Haible  <bruno@clisp.org>
33693         wctype-h: Add support for Minix.
33694         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
33695         REPLACE_TOWLOWER.
33696         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
33697         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
33698         REPLACE_ISWCNTRL.
33700 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
33702         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
33703         This is a performance improvement for 64-bit hosts: it causes the
33704         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
33706 2011-07-31  Bruno Haible  <bruno@clisp.org>
33708         stdioext: Add support for Minix.
33709         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
33710         * lib/fpurge.c (fpurge): Likewise.
33711         * lib/freadahead.c (freadahead): Likewise.
33712         * lib/freadable.c (freadable): Likewise.
33713         * lib/freading.c (freading): Likewise.
33714         * lib/freadptr.c (freadptr): Likewise.
33715         * lib/freadseek.c (freadptrinc): Likewise.
33716         * lib/fseeko.c (rpl_fseeko): Likewise.
33717         * lib/fseterr.c (fseterr): Likewise.
33718         * lib/fwritable.c (fwritable): Likewise.
33719         * lib/fwriting.c (fwriting): Likewise.
33720         * lib/fflush.c (clear_ungetc_buffer): Update comment.
33721         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
33723 2011-07-31  Bruno Haible  <bruno@clisp.org>
33725         errno: Port to Minix.
33726         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
33727         ECONNABORTED are defined.
33728         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
33729         GNULIB_defined_ECONNABORTED): New macros.
33730         * lib/strerror-override.h (strerror_override): Test also
33731         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
33732         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
33733         ECONNABORTED.
33734         * doc/posix-headers/errno.texi: Mention the Minix problem.
33736 2011-07-31  Bruno Haible  <bruno@clisp.org>
33738         Work around declaration collisions on Minix.
33739         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
33740         defined, set REPLACE_MBSINIT.
33741         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
33742         defined, set REPLACE_MBRTOWC.
33743         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
33744         set REPLACE_MBRLEN.
33745         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
33746         defined, set REPLACE_MBSRTOWCS.
33747         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
33748         defined, set REPLACE_WCRTOMB.
33749         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
33750         defined, set REPLACE_WCSRTOMBS.
33752 2011-07-31  Bruno Haible  <bruno@clisp.org>
33754         Add support for Minix with ACK compiler.
33755         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
33756         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
33757         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
33759 2011-07-31  Bruno Haible  <bruno@clisp.org>
33761         Documentation about Minix.
33762         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
33763         * doc/glibc-headers/*.texi: Likewise.
33764         * doc/posix-functions/*.texi: Likewise.
33765         * doc/glibc-functions/*.texi: Likewise.
33767 2011-07-31  Bruno Haible  <bruno@clisp.org>
33769         snippet/warn-on-use: Fix indentation.
33770         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
33772 2011-07-25  Jim Meyering  <meyering@redhat.com>
33774         tests: test-update-copyright.sh: remove unnecessary "rm" commands
33775         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
33776         commands.
33778 2011-07-27  Jim Meyering  <meyering@redhat.com>
33780         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
33781         * top/maint.mk (gl_extract_significant_defines_): Now that
33782         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
33783         gnulib/lib/signal.in.h, and now that we recommend to
33784         define-if-undefined those two symbols in application code,
33785         we must filter them out of the "significant" list.
33786         This avoids a "make syntax-check" failure in coreutils.
33788 2011-07-26  Eric Blake  <eblake@redhat.com>
33790         warnings: add comments about previous patch
33791         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
33792         * m4/include_next.m4: Likewise.
33793         * m4/warn-on-use.m4: Likewise.
33794         * m4/warnings.m4: Likewise, and simplify use.
33795         Suggested by Stefano Lattarini.
33797         include-next, warnings: support older autoconf
33798         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
33799         AS_VAR_PUSHDEF in a way that works with older autoconf.
33800         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
33801         Reported by Daniel P. Berrange.
33803 2011-07-25  Bruno Haible  <bruno@clisp.org>
33805         fseek, ftell: Fix doc.
33806         * doc/posix-functions/fseek.texi: Reword statement about
33807         AC_SYS_LARGEFILE.
33808         * doc/posix-functions/ftell.texi: Likewise.
33810 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
33811             Bruno Haible  <bruno@clisp.org>
33813         Add dependencies to the 'largefile' module.
33814         * modules/fopen (Depends-on): Add 'largefile'.
33815         * modules/freopen (Depends-on): Likewise.
33816         * modules/fseeko (Depends-on): Likewise.
33817         * modules/ftello (Depends-on): Likewise.
33818         * modules/glob (Depends-on): Likewise.
33819         * modules/lseek (Depends-on): Likewise.
33820         * modules/lstat (Depends-on): Likewise.
33821         * modules/mkostemp (Depends-on): Likewise.
33822         * modules/mkostemps (Depends-on): Likewise.
33823         * modules/mkstemp (Depends-on): Likewise.
33824         * modules/mkstemps (Depends-on): Likewise.
33825         * modules/open (Depends-on): Likewise.
33826         * modules/openat (Depends-on): Likewise.
33827         * modules/pread (Depends-on): Likewise.
33828         * modules/pwrite (Depends-on): Likewise.
33829         * modules/scandir (Depends-on): Likewise.
33830         * modules/stat (Depends-on): Likewise.
33831         * modules/tmpfile (Depends-on): Likewise.
33832         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
33833         since the containing module now depends on the largefile module.
33834         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
33835         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
33836         off_t is fixed by gnulib.
33837         * doc/posix-functions/freopen.texi: Likewise.
33838         * doc/posix-functions/fseeko.texi: Likewise.
33839         * doc/posix-functions/fstatat.texi: Likewise.
33840         * doc/posix-functions/ftello.texi: Likewise.
33841         * doc/posix-functions/glob.texi: Likewise.
33842         * doc/posix-functions/lseek.texi: Likewise.
33843         * doc/posix-functions/lstat.texi: Likewise.
33844         * doc/posix-functions/mkstemp.texi: Likewise.
33845         * doc/posix-functions/open.texi: Likewise.
33846         * doc/posix-functions/openat.texi: Likewise.
33847         * doc/posix-functions/pread.texi: Likewise.
33848         * doc/posix-functions/pwrite.texi: Likewise.
33849         * doc/posix-functions/scandir.texi: Likewise.
33850         * doc/posix-functions/stat.texi: Likewise.
33851         * doc/posix-functions/tmpfile.texi: Likewise.
33852         * doc/glibc-functions/mkostemp.texi: Likewise.
33853         * doc/glibc-functions/mkostemps.texi: Likewise.
33854         * doc/glibc-functions/mkstemps.texi: Likewise.
33856 2011-07-25  Bruno Haible  <bruno@clisp.org>
33858         fcntl: Move AC_LIBOBJ invocation to module description.
33859         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
33860         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
33862         fcntl: Remove call-in from fchdir.m4.
33863         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
33864         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
33866         dup3: Remove potential call-in from fchdir.m4.
33867         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
33868         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
33870         dup2: Move AC_LIBOBJ invocation to module description.
33871         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
33872         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
33873         Don't invoke AC_LIBOBJ.
33874         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
33876         dup2: Remove call-in from fchdir.m4.
33877         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
33878         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
33880         fclose: Move AC_LIBOBJ invocation to module description.
33881         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
33882         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
33883         to 1.
33884         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
33886         fclose: Remove call-in from close.m4.
33887         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
33888         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
33890         close: Move AC_LIBOBJ invocation to module description.
33891         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
33892         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
33893         1.
33894         * modules/close (configure.ac): Invoke AC_LIBOBJ.
33896         close: Remove call-in from fchdir.m4.
33897         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
33898         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
33900         open: Move AC_LIBOBJ invocation to module description.
33901         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
33902         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
33903         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
33905         open: Remove call-in from fchdir.m4.
33906         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
33907         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
33909         fchdir: Start to remove gl_REPLACE_* idiom.
33910         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
33911         (gl_FUNC_FCHDIR): Invoke it.
33913 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
33915         * lib/ftell.c (ftell): Comment out cast.
33917         close: use gl_REPLACE_FCLOSE only if defined
33918         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
33919         is defined.  The close module doesn't depend on the fclose module
33920         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
33921         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00392.html>.
33922         I reproduced the problem with "./gnulib-tool --test close sys_socket".
33924 2011-07-24  Jim Meyering  <meyering@redhat.com>
33926         test-select.h: avoid warning when using gcc's -Wmissing-declarations
33927         * tests/test-select.h (test_function): Declare as "static".
33929 2011-07-24  Bruno Haible  <bruno@clisp.org>
33931         doc: Mention the effects of AC_SYS_LARGEFILE.
33932         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
33933         on this function.
33934         * doc/posix-functions/aio_error.texi: Likewise.
33935         * doc/posix-functions/aio_fsync.texi: Likewise.
33936         * doc/posix-functions/aio_read.texi: Likewise.
33937         * doc/posix-functions/aio_return.texi: Likewise.
33938         * doc/posix-functions/aio_suspend.texi: Likewise.
33939         * doc/posix-functions/aio_write.texi: Likewise.
33940         * doc/posix-functions/fgetpos.texi: Likewise.
33941         * doc/posix-functions/fopen.texi: Likewise.
33942         * doc/posix-functions/freopen.texi: Likewise.
33943         * doc/posix-functions/fsetpos.texi: Likewise.
33944         * doc/posix-functions/fstatvfs.texi: Likewise.
33945         * doc/posix-functions/ftruncate.texi: Likewise.
33946         * doc/posix-functions/ftw.texi: Likewise.
33947         * doc/posix-functions/getrlimit.texi: Likewise.
33948         * doc/posix-functions/glob.texi: Likewise.
33949         * doc/posix-functions/lio_listio.texi: Likewise.
33950         * doc/posix-functions/lockf.texi: Likewise.
33951         * doc/posix-functions/mkstemp.texi: Likewise.
33952         * doc/posix-functions/mmap.texi: Likewise.
33953         * doc/posix-functions/nftw.texi: Likewise.
33954         * doc/posix-functions/openat.texi: Likewise.
33955         * doc/posix-functions/opendir.texi: Likewise.
33956         * doc/posix-functions/posix_fadvise.texi: Likewise.
33957         * doc/posix-functions/posix_fallocate.texi: Likewise.
33958         * doc/posix-functions/pread.texi: Likewise.
33959         * doc/posix-functions/pwrite.texi: Likewise.
33960         * doc/posix-functions/readdir.texi: Likewise.
33961         * doc/posix-functions/readdir_r.texi: Likewise.
33962         * doc/posix-functions/rewinddir.texi: Likewise.
33963         * doc/posix-functions/scandir.texi: Likewise.
33964         * doc/posix-functions/seekdir.texi: Likewise.
33965         * doc/posix-functions/setrlimit.texi: Likewise.
33966         * doc/posix-functions/statvfs.texi: Likewise.
33967         * doc/posix-functions/telldir.texi: Likewise.
33968         * doc/posix-functions/tmpfile.texi: Likewise.
33969         * doc/posix-functions/truncate.texi: Likewise.
33970         * doc/glibc-functions/fallocate.texi: Likewise.
33971         * doc/glibc-functions/fstatfs.texi: Likewise.
33972         * doc/glibc-functions/fts_children.texi: Likewise.
33973         * doc/glibc-functions/fts_read.texi: Likewise.
33974         * doc/glibc-functions/getdirentries.texi: Likewise.
33975         * doc/glibc-functions/mkostemp.texi: Likewise.
33976         * doc/glibc-functions/mkostemps.texi: Likewise.
33977         * doc/glibc-functions/mkstemps.texi: Likewise.
33978         * doc/glibc-functions/preadv.texi: Likewise.
33979         * doc/glibc-functions/pwritev.texi: Likewise.
33980         * doc/glibc-functions/sendfile.texi: Likewise.
33981         * doc/glibc-functions/statfs.texi: Likewise.
33983 2011-07-24  Bruno Haible  <bruno@clisp.org>
33985         doc: Fix typo.
33986         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
33988 2011-07-24  Bruno Haible  <bruno@clisp.org>
33990         doc: Mention fsusage.
33991         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
33993 2011-07-24  Bruno Haible  <bruno@clisp.org>
33995         doc: Mention new glibc headers and functions.
33996         * doc/glibc-headers/gshadow.texi: New file.
33997         * doc/glibc-functions/endsgent.texi: New file.
33998         * doc/glibc-functions/fgetsgent.texi: New file.
33999         * doc/glibc-functions/fgetsgent_r.texi: New file.
34000         * doc/glibc-functions/getsgent.texi: New file.
34001         * doc/glibc-functions/getsgent_r.texi: New file.
34002         * doc/glibc-functions/getsgnam.texi: New file.
34003         * doc/glibc-functions/getsgnam_r.texi: New file.
34004         * doc/glibc-functions/putsgent.texi: New file.
34005         * doc/glibc-functions/setsgent.texi: New file.
34006         * doc/glibc-functions/sgetsgent.texi: New file.
34007         * doc/glibc-functions/sgetsgent_r.texi: New file.
34008         * doc/glibc-functions/malloc_info.texi: New file.
34009         * doc/glibc-functions/preadv.texi: New file.
34010         * doc/glibc-functions/pwritev.texi: New file.
34011         * doc/glibc-functions/register_printf_modifier.texi: New file.
34012         * doc/glibc-functions/register_printf_specifier.texi: New file.
34013         * doc/glibc-functions/register_printf_type.texi: New file.
34014         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
34015         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
34016         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
34017         * doc/glibc-functions/pthread_getname_np.texi: New file.
34018         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
34019         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
34020         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
34021         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
34022         * doc/glibc-functions/pthread_setname_np.texi: New file.
34023         * doc/glibc-functions/pthread_sigqueue.texi: New file.
34024         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
34025         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
34026         * doc/glibc-functions/qsort_r.texi: New file.
34027         * doc/glibc-functions/quick_exit.texi: New file.
34028         * doc/glibc-functions/syncfs.texi: New file.
34029         * doc/gnulib.texi: Include them.
34030         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
34031         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
34032         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
34033         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
34034         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
34035         * doc/glibc-functions/execvpe.texi: Likewise.
34037 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
34039         ftell: don't include <unistd.h>
34040         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
34041         guaranteed to define off_t, and the ftell module depends on the
34042         stdio module.
34044         ftell: do not assume wraparound signed arithmetic
34045         * lib/ftell.c: Include <limits.h>.
34046         (ftell): Don't assume wraparound signed arithmetic.
34048 2011-07-24  Bruno Haible  <bruno@clisp.org>
34050         close: No longer depend on module 'fclose'.
34051         * modules/close (Depends-on): Remove fclose.
34052         * NEWS: Mention the change.
34053         Suggested by Sam Steingold <sds@gnu.org>.
34055 2011-07-24  Bruno Haible  <bruno@clisp.org>
34057         fsusage: Enable large volume support on AIX >= 5.2.
34058         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
34059         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
34060         instead of STAT_STATVFS.
34061         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
34063         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
34064         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
34065         f_blocks field only on MacOS X.
34067         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
34068         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
34069         * modules/fsusage (Depends-on): Add largefile.
34071 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
34073         * README: Modernize discussion of signed integers.
34074         Assuming overflow wraparound is no longer safe.
34075         Mention ones' complement and signed magnitude.
34077 2011-07-22  Bruno Haible  <bruno@clisp.org>
34079         select tests, pselect tests: Refactor.
34080         * tests/test-select.h: New file, extracted from tests/test-select.c.
34081         (select_fn): New type.
34082         (test, do_select, do_select_nowait, do_select_wait, test_tty,
34083         test_connect_first, test_accept_first, test_pair, test_socket_pair,
34084         test_pipe): Add my_select argument.
34085         (test_function): Renamed from main. Add my_select argument.
34086         * tests/test-select.c: Move most code to tests/test-select.h. Include
34087         test-select.h.
34088         * modules/select-tests (Files): Add tests/test-select.h.
34089         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
34090         (my_select, main): New functions.
34091         * modules/pselect-tests (Files): Add tests/test-select.h,
34092         tests/macros.h, tests/signature.h.
34093         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
34094         (configure.ac): Check for <sys/wait.h>.
34096 2011-07-22  Bruno Haible  <bruno@clisp.org>
34098         sys_select tests: Check the signature of FD_*.
34099         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
34100         signature tests from here...
34101         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
34102         here.
34103         * modules/sys_select-tests (Files): Add tests/signature.h.
34105 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
34107         largefile: new module, replacing large-inode
34108         Pádraig Brady suggested this in <http://debbugs.gnu.org/9140#20>.
34109         * MODULES.html.sh: Add largefile, remove large-inode.
34110         * modules/largefile, m4/largefile.m4: New files.
34111         * modules/large-inode, m4/large-inode.m4: Remove.
34113         fsusage: port to MacOS X 10.7 with 4 TiB file systems
34114         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
34115         implementations that use only 32 bits to count blocks.
34116         On typical hosts with 1024-byte blocks, this fails with file
34117         systems as small as 4 TiB.  Problem reported by Herb Wartens
34118         <http://debbugs.gnu.org/9140> and this should also fix a similar
34119         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
34121         large-inode: New module
34122         * MODULES.html.sh: Add it.
34123         * modules/large-inode, m4/large-inode.m4: New files.
34125         extensions: Enable extensions on MacOS X 10.5 and later.
34126         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
34128 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
34130         file-has-acl: use acl_extended_file_nofollow if available
34131         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
34132         (acl_extended_file): New macro.
34133         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
34134         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
34136 2011-07-21  Bruno Haible  <bruno@clisp.org>
34138         Declare system functions in a way that works with C++.
34139         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
34140         declare fdopendir as extern "C".
34141         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
34142         declare frexpl as extern "C".
34143         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
34144         declare gai_strerror as extern "C".
34145         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
34146         programs, declare gai_strerror as extern "C".
34147         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
34148         declare getlogin_r as extern "C".
34149         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
34150         as extern "C".
34151         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
34152         declare ldexpl as extern "C".
34153         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
34154         as extern "C".
34155         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
34156         program, declare getmntinfo as extern "C".
34157         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
34158         stpncpy as extern "C".
34159         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
34160         program, declare __xpg_strerror_r as extern "C".
34161         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
34162         strndup as extern "C".
34163         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
34164         declare memset and bzero as extern "C".
34165         Reported by Sam Steingold <sds@gnu.org>.
34167 2011-07-12  Jim Meyering  <meyering@redhat.com>
34169         maint.mk: prohibit inclusion of "verify.h" without use
34170         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
34172 2011-07-19  Pádraig Brady  <P@draigBrady.com>
34174         timer-time: A new module to check for timer_settime()
34175         * m4/timer_time.m4: Check for the posix function.
34176         * modules/timer-time: Add the new module.
34177         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
34178         Mention it.
34180 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
34181             Bruno Haible  <bruno@clisp.org>
34183         pthread_sigmask: assume POSIX threads if --avoid=threadlib
34184         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
34185         not defined, assume POSIX threads and look for pthread_sigmask in
34186         $LIBS, without changing $CPPFLAGS.
34188 2011-07-19  Bruno Haible  <bruno@clisp.org>
34190         strstr: Update cross-compilation guess.
34191         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
34192         CPUs, guess no, in view of glibc
34193         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
34194         Suggested by Eric Blake. Reported by Reuben Thomas.
34196 2011-07-19  Pádraig Brady  <P@draigBrady.com>
34198         getopt-gnu: suppress core dumps from detection code
34199         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
34200         to suppress core dumps that may well occur on glibc systems.
34201         * modules/getopt-gnu: Depend on nocrash.
34203 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
34205         pthread_sigmask: ensure usleep is declared
34206         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
34207         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
34209 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
34211         doc: Document NonStop portability issues.
34212         * doc/posix-functions/sigaction.texi (sigaction):
34213         * doc/posix-headers/signal.texi (signal.h):
34214         Document NonStop.  See Joachim Schmitz in
34215         http://lists.gnu.org/r/bug-coreutils/2011-07/msg00062.html
34217 2011-07-15  Bruno Haible  <bruno@clisp.org>
34219         ffsl, ffsll: Avoid unportable behaviour.
34220         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
34222 2011-07-15  Bruno Haible  <bruno@clisp.org>
34224         ffs: More tests.
34225         * tests/test-ffs.c (NBITS): New macro.
34226         (main): Add more tests.
34227         * tests/test-ffsl.c (NBITS): New macro.
34228         (main): Add more tests.
34229         * tests/test-ffsll.c (NBITS): New macro.
34230         (main): Add more tests.
34232 2011-07-15  Eric Blake  <eblake@redhat.com>
34234         ffsl, ffsll: new modules
34235         * modules/ffsl: New file.
34236         * modules/ffsll: Likewise.
34237         * m4/ffsl.m4: Likewise.
34238         * m4/ffsll.m4: Likewise.
34239         * lib/ffsl.c: Likewise.
34240         * lib/ffsl.h: Likewise.
34241         * lib/ffsll.c: Likewise.
34242         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
34243         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
34244         * modules/string (Makefile.am): Substitute witnesses.
34245         * lib/strings.in.h (ffsl, ffsll): Declare.
34246         * modules/ffsl-tests: New test file.
34247         * modules/ffsll-tests: Likewise.
34248         * tests/test-ffsl.c: Likewise.
34249         * tests/test-ffsll.c: Likewise.
34250         * MODULES.html.sh (Integer arithmetic functions): Mention it.
34251         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
34252         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
34254         ffs: fix m4 prerequisite
34255         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
34257         ffs: avoid undefined behavior
34258         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
34259         * tests/test-ffs.c (naive, main): Avoid signed shifts.
34260         Reported by Bruno Haible.
34262 2011-07-12  Bruno Haible  <bruno@clisp.org>
34264         pthread_sigmask: Rely on module 'threadlib'.
34265         * modules/pthread_sigmask (Depends-on): Add threadlib.
34266         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
34267         is defined.
34269 2011-07-12  Bruno Haible  <bruno@clisp.org>
34271         regex: Depend on module 'strcase'.
34272         * modules/regex (Depends-on): Add strcase, for strcasecmp().
34274 2011-07-12  Jim Meyering  <meyering@redhat.com>
34276         warn-on-use: fix typo in file name
34277         * modules/snippet/warn-on-use (Files): Correct file name:
34278         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
34280 2011-07-12  Bruno Haible  <bruno@clisp.org>
34282         strings: Document module.
34283         * doc/posix-headers/strings.texi: Mention module 'strings'.
34285 2011-07-12  Bruno Haible  <bruno@clisp.org>
34287         Rename module '_Noreturn' to 'snippet/_Noreturn'.
34288         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
34289         (Files, Makefile.am): Update.
34290         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
34291         * modules/stdlib (Depends-on): Update.
34293 2011-07-12  Bruno Haible  <bruno@clisp.org>
34295         * NEWS: Mention the changes.
34297         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
34298         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
34299         (Files, Makefile.am): Update.
34300         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
34301         * modules/arpa_inet (Depends-on): Update.
34302         * modules/ctype (Depends-on): Update.
34303         * modules/dirent (Depends-on): Update.
34304         * modules/fcntl-h (Depends-on): Update.
34305         * modules/glob (Depends-on): Update.
34306         * modules/iconv-h (Depends-on): Update.
34307         * modules/inttypes-incomplete (Depends-on): Update.
34308         * modules/langinfo (Depends-on): Update.
34309         * modules/locale (Depends-on): Update.
34310         * modules/math (Depends-on): Update.
34311         * modules/netdb (Depends-on): Update.
34312         * modules/poll-h (Depends-on): Update.
34313         * modules/pty (Depends-on): Update.
34314         * modules/search (Depends-on): Update.
34315         * modules/signal (Depends-on): Update.
34316         * modules/spawn (Depends-on): Update.
34317         * modules/stdio (Depends-on): Update.
34318         * modules/stdlib (Depends-on): Update.
34319         * modules/string (Depends-on): Update.
34320         * modules/strings (Depends-on): Update.
34321         * modules/sys_file (Depends-on): Update.
34322         * modules/sys_ioctl (Depends-on): Update.
34323         * modules/sys_select (Depends-on): Update.
34324         * modules/sys_socket (Depends-on): Update.
34325         * modules/sys_stat (Depends-on): Update.
34326         * modules/sys_time (Depends-on): Update.
34327         * modules/sys_times (Depends-on): Update.
34328         * modules/sys_utsname (Depends-on): Update.
34329         * modules/sys_wait (Depends-on): Update.
34330         * modules/termios (Depends-on): Update.
34331         * modules/time (Depends-on): Update.
34332         * modules/unistd (Depends-on): Update.
34333         * modules/wchar (Depends-on): Update.
34334         * modules/wctype-h (Depends-on): Update.
34335         * MODULES.html.sh (Support for building libraries and executables):
34336         Update.
34338         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
34339         * modules/snippet/unused-parameter: Renamed from
34340         modules/unused-parameter.
34341         (Files, Makefile.am): Update.
34342         * build-aux/snippet/unused-parameter.h: Renamed from
34343         build-aux/unused-parameter.h.
34344         * modules/selinux-h (Depends-on): Update.
34345         * modules/unistr/base (Depends-on): Update.
34346         * MODULES.html.sh (Core language properties): Update.
34348         Rename module 'link-warning' to 'snippet/link-warning'.
34349         * modules/snippet/link-warning: Renamed from modules/link-warning.
34350         (Files, Makefile.am): Update.
34351         * build-aux/snippet/link-warning.h: Renamed from
34352         build-aux/link-warning.h.
34353         * MODULES.html.sh (Support for building libraries and executables):
34354         Update.
34356         Rename module 'c++defs' to 'snippet/c++defs'.
34357         * modules/snippet/c++defs: Renamed from modules/c++defs.
34358         (Files, Makefile.am): Update.
34359         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
34360         * modules/arpa_inet (Depends-on): Update.
34361         * modules/ctype (Depends-on): Update.
34362         * modules/dirent (Depends-on): Update.
34363         * modules/fcntl-h (Depends-on): Update.
34364         * modules/glob (Depends-on): Update.
34365         * modules/iconv-h (Depends-on): Update.
34366         * modules/langinfo (Depends-on): Update.
34367         * modules/locale (Depends-on): Update.
34368         * modules/math (Depends-on): Update.
34369         * modules/netdb (Depends-on): Update.
34370         * modules/poll-h (Depends-on): Update.
34371         * modules/pty (Depends-on): Update.
34372         * modules/search (Depends-on): Update.
34373         * modules/signal (Depends-on): Update.
34374         * modules/spawn (Depends-on): Update.
34375         * modules/stdio (Depends-on): Update.
34376         * modules/stdlib (Depends-on): Update.
34377         * modules/string (Depends-on): Update.
34378         * modules/strings (Depends-on): Update.
34379         * modules/sys_ioctl (Depends-on): Update.
34380         * modules/sys_select (Depends-on): Update.
34381         * modules/sys_socket (Depends-on): Update.
34382         * modules/sys_stat (Depends-on): Update.
34383         * modules/sys_time (Depends-on): Update.
34384         * modules/sys_wait (Depends-on): Update.
34385         * modules/termios (Depends-on): Update.
34386         * modules/time (Depends-on): Update.
34387         * modules/unistd (Depends-on): Update.
34388         * modules/wchar (Depends-on): Update.
34389         * modules/wctype-h (Depends-on): Update.
34391         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
34392         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
34393         (Files, Makefile.am): Update.
34394         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
34395         * modules/argv-iter (Depends-on): Update.
34396         * modules/arpa_inet (Depends-on): Update.
34397         * modules/dirent (Depends-on): Update.
34398         * modules/fcntl-h (Depends-on): Update.
34399         * modules/fnmatch (Depends-on): Update.
34400         * modules/getopt-posix (Depends-on): Update.
34401         * modules/glob (Depends-on): Update.
34402         * modules/iconv-h (Depends-on): Update.
34403         * modules/inttypes-incomplete (Depends-on): Update.
34404         * modules/locale (Depends-on): Update.
34405         * modules/math (Depends-on): Update.
34406         * modules/netdb (Depends-on): Update.
34407         * modules/search (Depends-on): Update.
34408         * modules/signal (Depends-on): Update.
34409         * modules/spawn (Depends-on): Update.
34410         * modules/stdio (Depends-on): Update.
34411         * modules/stdlib (Depends-on): Update.
34412         * modules/string (Depends-on): Update.
34413         * modules/strings (Depends-on): Update.
34414         * modules/sys_socket (Depends-on): Update.
34415         * modules/sys_stat (Depends-on): Update.
34416         * modules/sys_time (Depends-on): Update.
34417         * modules/sys_times (Depends-on): Update.
34418         * modules/sys_utsname (Depends-on): Update.
34419         * modules/time (Depends-on): Update.
34420         * modules/unistd (Depends-on): Update.
34421         * modules/wchar (Depends-on): Update.
34422         * MODULES.html.sh (Support for building libraries and executables):
34423         Update.
34425 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
34427         Improvements on _Noreturn and related modules.
34429         modules/_Exit-tests: test _Noreturn too
34430         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
34431         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
34432         (main): Use them.
34434         stdnoreturn, stdnoreturn-tests: remove modules
34435         They're not needed here and a bit premature for use elsewhere.  See
34436         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00209.html>.
34437         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
34438         * tests/test-stdnoreturn.c: Remove files.
34439         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
34440         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
34441         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
34442         and using noreturn.
34443         * modules/openat, modules/sigpipe-die, modules/xalloc:
34444         * modules/xmemdup0, modules/xstrtol:
34445         Remove dependency on stdnoreturn.
34447         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
34448         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
34449         Reparenthesize to avoid GCC warning.
34450         Support Microsoft's syntax.
34451         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
34453         _Noreturn-tests: remove module
34454         * modules/_Noreturn-tests: Remove.
34455         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
34456         * tests/test-_Noreturn.c: Remove.
34457         * tests/test-stdnoreturn.c: Merge from the old
34458         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
34460 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
34462         _Noreturn, stdnoreturn, and related modules.
34464         * top/maint.mk: Adjust to new noreturn support.
34465         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
34466         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
34468         xalloc: use stdnoreturn.h
34469         * lib/xalloc.h: Include <stdnoreturn.h>.
34470         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
34471         * modules/xalloc (Depends-on): Add stdnoreturn.
34473         xstrtol: use stdnoreturn.h
34474         * lib/xstrtol.h: Include <stdnoreturn.h>.
34475         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
34476         * modules/xstrtol (Depends-on): Add stdnoreturn.
34478         xmemdup0: use stdnoreturn.h
34479         * lib/xmemdup0.h: Include <stdnoreturn.h>.
34480         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
34481         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
34483         sigpipe-die: use stdnoreturn.h
34484         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
34485         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
34486         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
34488         openat: use stdnoreturn.h
34489         * lib/openat.h: Include <stdnoreturn.h>.
34490         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
34491         * modules/openat (Depends-on): Add stdnoreturn.
34493         * lib/openat-die.c (openat_save_fail): Modernize comment.
34495         * lib/xalloc-die.c (xalloc_die): Modernize comment.
34497         * lib/glthread/thread.h: Modernize comment.
34499         obstack: use _Noreturn
34500         * lib/obstack.c (__attribute__): Remove macro.
34501         (print_and_abort): Use _Noreturn.
34503         c-stack: use _Noreturn
34504         * lib/c-stack.c (die, overflow_handler, segv_handler):
34505         Use _Noreturn rather than __attribute__((noreturn)).
34507         argmatch-tests, exclude_tests: use _Noreturn
34508         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
34509         Remove.
34510         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
34512         stdlib: use _Noreturn
34513         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
34514         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
34515         * modules/stdlib (Depends-on): Add _Noreturn.
34516         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
34518         stdnoreturn-tests: new module
34519         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
34521         stdnoreturn: new module
34522         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
34523         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
34525         _Noreturn-tests: new module
34526         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
34528         _Noreturn: new module
34529         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
34530         New section, mentioning it.
34531         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
34533         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
34535 2011-07-11  Eric Blake  <eblake@redhat.com>
34537         ffs: new module
34538         * modules/ffs: New file.
34539         * m4/ffs.m4: Likewise.
34540         * lib/ffs.c: Likewise.
34541         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
34542         * modules/strings (Makefile.am): Substitute witness.
34543         (Depends-on): Add c++defs.
34544         * lib/strings.in.h (ffs): Declare.
34545         * modules/ffs-tests: New test file.
34546         * tests/test-ffs.c: Test new module.
34547         * MODULES.html.sh (Integer arithmetic functions): Mention it.
34548         * doc/posix-functions/ffs.texi (ffs): Likewise.
34550         regex: avoid compiler warning
34551         * lib/regex.c (includes): Include <strings.h>, for use of
34552         strcasecmp in regcomp.c.
34553         Reported by Joachim Schmitz.
34555 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
34557         stdint: respect system's intmax_t if INTMAX_MAX
34558         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
34559         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
34560         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
34561         long but int64_t is long long, and where we will clash with the
34562         system intmax_t if we override it.  See
34563         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00160.html>.
34564         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
34565         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
34566         similarly for UINTMAX_C.
34568 2011-07-08  Bruno Haible  <bruno@clisp.org>
34570         pthread_sigmask tests: Avoid a compiler warning.
34571         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
34572         non-zero.
34574         sigprocmask tests: A better way to avoid a compiler warning.
34575         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
34576         (main): Complain if system() returns non-zero.
34577         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
34579 2011-07-08  Bruno Haible  <bruno@clisp.org>
34581         pthread_sigmask: Work around IRIX bug.
34582         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
34583         bug.
34584         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
34585         there may be unblocked pending signals.
34586         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
34588 2011-07-08  Bruno Haible  <bruno@clisp.org>
34590         pthread_sigmask: Work around Cygwin bug.
34591         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
34592         bug.
34593         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
34594         the system's pthread_sigmask function.
34595         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
34597 2011-07-08  Bruno Haible  <bruno@clisp.org>
34599         pthread_sigmask: Work around bug in single-threaded implementation.
34600         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
34601         FreeBSD, HP-UX, Solaris bug.
34602         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
34603         * lib/pthread_sigmask.c: Include <stddef.h>.
34604         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
34605         the system's pthread_sigmask function.
34606         * modules/pthread_sigmask (configure.ac): Invoke
34607         gl_PREREQ_PTHREAD_SIGMASK.
34608         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
34609         HP-UX, Solaris.
34611 2011-07-08  Eric Blake  <eblake@redhat.com>
34613         test-sigprocmask: avoid compiler warning
34614         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
34615         * tests/test-sigprocmask.c (main): Use it to silence warning.
34616         Reported by Jim Meyering.
34618         test-snprintf: avoid compiler warning
34619         * tests/test-snprintf.c (main): Avoid shadowed declaration.
34620         * tests/test-vsnprintf.c (main): Likewise.
34621         Reported by Jim Meyering.
34623 2011-07-08  Bruno Haible  <bruno@clisp.org>
34625         Tests for module 'pthread_sigmask'.
34626         * modules/pthread_sigmask-tests: New file.
34627         * tests/test-pthread_sigmask1.c: New file, based on
34628         tests/test-sigprocmask.c.
34629         * tests/test-pthread_sigmask2.c: New file.
34631 2011-07-08  Jim Meyering  <meyering@redhat.com>
34633         test-getopt.h: avoid warning about an unused variable
34634         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
34636 2011-07-07  Jim Meyering  <meyering@redhat.com>
34638         maint: reduce list of files exempt from sc_prohibit_leading_TABs
34639         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
34640         now that it no longer contains leading TABs.
34641         Remove unused "url=FIXME" statement.
34643 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
34645         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
34646         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
34647         When gl_THREADLIB is not in use, assume that the POSIX sematics
34648         are desired.  This is better for Emacs, which uses POSIX semantics
34649         on GNUish and/or POSIXish platforms, and does not use threads at
34650         all otherwise.
34652         pthread_sigmask: fix typo when testing for libraries
34653         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
34654         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
34656 2011-07-08  Eric Blake  <eblake@redhat.com>
34658         fts: introduce FTS_NOATIME
34659         * lib/fts_.h (FTS_NOATIME): New bit flag.
34660         (FTS_OPTIONMASK): Adjust.
34661         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
34662         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
34664 2011-07-08  Bruno Haible  <bruno@clisp.org>
34666         Tests for module 'thread'.
34667         * modules/thread-tests: New file.
34668         * tests/test-thread_self.c: New file.
34669         * tests/test-thread_create.cc: New file.
34671 2011-07-08  Bruno Haible  <bruno@clisp.org>
34673         thread: Avoid gcc warnings when using gl_thread_self().
34674         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
34675         'void *'.
34676         (gl_thread_self_pointer): Update.
34678 2011-07-07  Bruno Haible  <bruno@clisp.org>
34680         signal-c++-tests: Check declaration of pthread_sigmask.
34681         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
34682         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
34683         $(LIB_PTHREAD_SIGMASK).
34685 2011-07-07  Bruno Haible  <bruno@clisp.org>
34687         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
34688         * lib/signal.in.h (pthread_sigmask): Override if
34689         REPLACE_PTHREAD_SIGMASK is 1.
34690         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
34691         REPLACE_PTHREAD_SIGMASK.
34692         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
34693         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
34694         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
34695         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
34696         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
34698 2011-07-07  Bruno Haible  <bruno@clisp.org>
34700         pthread_sigmask: Ensure declaration in <signal.h>.
34701         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
34702         include <pthread.h>.
34703         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
34704         problem.
34706 2011-07-07  Bruno Haible  <bruno@clisp.org>
34708         pthread_sigmask: Document the module.
34709         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
34711 2011-07-07  Bruno Haible  <bruno@clisp.org>
34713         pthread_sigmask: Follow gnulib conventions.
34714         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
34715         gl_PTHREAD_SIGMASK.
34716         * modules/pthread_sigmask (configure.ac): Update.
34718 2011-07-07  Bruno Haible  <bruno@clisp.org>
34720         pthread_sigmask: Make declaration C++ safe.
34721         * lib/signal.in.h: In two special conditions, just do an #include_next.
34722         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
34723         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
34724         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
34725         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
34726         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
34727         not REPLACE_PTHREAD_MASK.
34728         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
34729         not REPLACE_PTHREAD_MASK.
34730         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
34732 2011-07-07  Bruno Haible  <bruno@clisp.org>
34734         pthread_sigmask: Fix return value.
34735         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
34736         * lib/pthread_sigmask.c: New file.
34737         * modules/pthread_sigmask (Files): Add it.
34738         (configure.ac): Invoke AC_LIBOBJ.
34740 2011-07-07  Eric Blake  <eblake@redhat.com>
34742         getopt: more portable argv creation
34743         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
34744         const, use char arrays rather than strings.
34745         Suggested by Paul Eggert.
34747 2011-07-07  Bruno Haible  <bruno@clisp.org>
34749         Tests for module 'sigprocmask'.
34750         * modules/sigprocmask-tests: New file.
34751         * tests/test-sigprocmask.c: New file.
34753 2011-07-07  Bruno Haible  <bruno@clisp.org>
34755         float tests: Tweak.
34756         * tests/test-float.c (main): Tweak skip message.
34758 2011-07-07  Eric Blake  <eblake@redhat.com>
34760         getopt: avoid compiler warning during configure
34761         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
34762         assigning string literals to non-const pointer.
34764         getopt-gnu: avoid crash in glibc getopt
34765         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
34766         * tests/test-getopt.h (test_getopt): Enhance test.
34767         * tests/test-getopt_long.h (test_getopt_long): Likewise.
34768         * doc/posix-functions/getopt.texi (getopt): Document it.
34769         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
34770         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
34771         Likewise.
34773 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
34775         getopt: handle W; without long options in getopt [BZ #12922]
34776         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
34777         but no long options are defined, just return 'W'.
34779 2011-07-07  Bruno Haible  <bruno@clisp.org>
34781         Avoid literal tabs.
34782         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
34783         variable containing a tab instead of a literal tab.
34784         Reported by Jim Meyering.
34786 2011-07-07  Bruno Haible  <bruno@clisp.org>
34788         Comments.
34789         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
34791 2011-07-06  Bruno Haible  <bruno@clisp.org>
34793         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
34794         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
34795         <winsock2.h>.
34796         (rpl_fd_isset, FD_ISSET): New definitions, copied from
34797         lib/sys_socket.in.h.
34798         (close, gethostname): Hide declarations from <winsock2.h>.
34799         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
34800         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
34801         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
34802         (select): Don't override if gnulib's <sys/select.h> was already
34803         included.
34804         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
34805         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
34806         setsockopt, shutdown, select): Tweak indentation.
34808 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
34810         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
34811         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
34812         in an application that does not use the sys_select module.
34814 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
34816         poll: do not return 0 on timeout=-1
34817         * lib/poll.c: Loop with yield if no events occurred.
34819 2011-07-06  Eric Blake  <eblake@redhat.com>
34821         pthread_sigmask: always replace when not using pthread
34822         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
34823         replacement when using some threading other than pthread.  Fix
34824         logic bug.
34826 2011-07-06  Bruno Haible  <bruno@clisp.org>
34828         Comments.
34829         * m4/printf.m4: Update comments about mingw.
34831 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
34833         sys_select: define sigset_t more portably
34834         * lib/sys_select.in.h: Always include <sys/types.h>, since
34835         we now need sigset_t and mingw defines it there.
34836         Include <signal.h> before split inclusion guard, to avoid
34837         mishaps on Solaris, whose <signal.h> eventually includes us.
34838         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
34839         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
34840         which come from ...
34841         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
34842         gl_CHECK_TYPE_SIGSET_T.
34843         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
34844         does the real work.
34845         * modules/sys_select (Depends-on): Add 'signal'.
34847         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
34848         Suggested by Bruno Haible.
34850         pselect: Use pthread_sigmask, not sigprocmask.
34851         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
34852         multithreaded apps better than sigprocmask does.
34853         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
34854         sigprocmask directly.
34856 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
34858         * lib/pselect.c (pselect): Use plain name, without "rpl_".
34859         Don't #undef,  since we don't need any underlying pselect.
34860         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
34861         (Depends-on): Add select.
34862         (Link): Add $(LIBSOCKET).
34863         These changes suggested by Bruno Haible.
34865         pselect: document better
34866         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
34867         * doc/posix-functions/pselect.texi (pselect): Document new module.
34869         pthread_sigmask: new module
34870         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
34871         * doc/posix-functions/pthread_sigmask.texi: Document new module.
34872         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
34873         This is done only as a macro; I don't know how well that'll
34874         work for C++.  Move <sys/types.h> include before the include_next,
34875         to avoid mishap on Solaris.
34876         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
34877         * modules/signal (Makefile.am): Substitute the check's results.
34878         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
34880         test-pselect: new module
34881         * modules/pselect-tests, tests/test-pselect.c: New files.
34882         * tests/test-select.c, tests/test-sys_select-c++.cc:
34883         If TEST_PSELECT is defined, test pselect instead of testing select.
34885         * tests/test-sys_select.c (sigset_t): Test for it, too.
34886         Suggested by Bruno Haible.
34888 2011-07-05  Eric Blake  <eblake@redhat.com>
34890         snprintf: guarantee %1$d, for libintl
34891         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
34892         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
34893         * doc/posix-functions/snprintf.texi (snprintf): Update.
34894         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
34895         * tests/test-snprintf.c (main): Enhance test.
34896         * tests/test-vsnprintf.c (main): Likewise.
34898 2011-07-05  Jim Meyering  <meyering@redhat.com>
34900         maint: exempt stdio-read.c and stdio-write.c from the cppi check
34901         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
34902         per Bruno's request, to accommodate this idiom (no space after "#")
34903         even when the function is inside an #if block:
34904         char *
34905         gets (char *s)
34906         #undef gets
34907         {
34908           ...
34909         }
34911 2011-07-04  Jim Meyering  <meyering@redhat.com>
34913         maint: indent with spaces, not TABs, and add a rule to check this
34914         * tests/test-userspec.c: Indent with spaces, not TABs.
34915         * tests/test-argp.c: Likewise.
34916         * tests/test-c-stack2.sh: Likewise.
34917         * tests/test-parse-duration.sh: Likewise
34918         * m4/strtod.m4: Likewise.
34919         * m4/alloca.m4: Likewise.
34920         * m4/pselect.m4: Likewise.
34921         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
34923 2011-07-03  Jim Meyering  <meyering@redhat.com>
34925         maint.mk: correct omissions in prohibit_argmatch_without_use check
34926         This rule would mistakenly report that argmatch.h is included without
34927         use even when both the argmatch and invalid_arg macro were used.
34928         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
34929         of argmatch and invalid_arg.
34931 2011-07-03  Bruno Haible  <bruno@clisp.org>
34933         Comments about EINTR.
34934         * lib/safe-read.h: Explain the purpose of this module.
34935         * lib/safe-write.h: Likewise.
34936         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
34937         module.
34938         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
34939         module.
34940         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34942 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
34944         xnanosleep: Rewrite to use new dtotimespec module.
34945         It has the conversion code that used to be in xnanosleep.
34946         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
34947         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
34948         (TIME_T_MAX): Remove.
34949         (xnanosleep): Rewrite in terms of dtotimespec.
34950         * modules/xnanosleep (Depends-on): Add dtotimespec.
34951         Remove intprops, stdbool.
34953         timespec-add, timespec-sub: new modules
34954         * lib/timespec.h (timespec_add, timespec_sub): New decls.
34955         * lib/timespec-add.c, lib/timespec-sub.c:
34956         * modules/timespec-add, modules/timespec-sub: New files.
34958         dtotimespec: new module
34959         * lib/timespec.h (dtotimespec): New decl.
34960         * lib/dtotimespec.c, modules/dtotimespec: New files.
34962         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
34964         pselect: new module
34965         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
34966         (pselect): New decls.
34967         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
34968         since the standard pselect decl uses 'restrict'.
34969         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
34970         HAVE_PSELECT, REPLACE_PSELECT.
34971         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
34972         HAVE_PSELECT, REPLACE_PSELECT.
34973         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
34975         sys_select: don't depend on sys_socket
34976         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
34977         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00358.html>.
34978         This fix works on GNU and GNU-like platforms, but has not been tested
34979         on native Windows.
34980         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
34981         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
34982         gl_HEADER_SYS_SOCKET.
34983         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
34984         gl_PREREQ_SYS_H_WINSOCK2.
34986 2011-06-29  Eric Blake  <eblake@redhat.com>
34988         pipe2: fix C89 compile problem
34989         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
34990         Reported by Bruno Haible.
34992         pipe, pipe2: don't corrupt fd on error
34993         * lib/pipe.c (pipe): Leave fd unchanged on error.
34994         * lib/pipe2.c (pipe2): Likewise.
34995         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
34996         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
34998 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
35000         mmap-anon: do not use regular expressions inadvertently
35001         * m4/mmap-anon.m4: Remove trailing period from strings sought
35002         in the output.
35004 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
35006         nanosleep: fix integer overflow problem
35007         * lib/nanosleep.c (my_usleep): Don't assume signed integer
35008         arithmetic wraps around on overflow.
35010         nanosleep: simplify carrying
35011         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
35012         first call to the underyling nanosleep, not for the last one.
35013         This doesn't fix any bugs, but it simplifies the computation of
35014         the remaining delay.  Found while auditing integer overflow issues.
35016         dup2: remove test for existence of fcntl
35017         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
35018         "#if HAVE_FCNTL", in the configure-time test program.
35019         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
35020         and therefore speeds up "configure" a bit.  Found while
35021         adding the dup2 module to Emacs.
35023 2011-06-24  Eric Blake  <eblake@redhat.com>
35025         maint.mk: enhance useless header checks
35026         * top/maint.mk (_sc_header_without_use): Check both include
35027         styles.
35028         (sc_prohibit_assert_without_use)
35029         (sc_prohibit_close_stream_without_use)
35030         (sc_prohibit_getopt_without_use)
35031         (sc_prohibit_quotearg_without_use)
35032         (sc_prohibit_quote_without_use)
35033         (sc_prohibit_long_options_without_use)
35034         (sc_prohibit_inttostr_without_use)
35035         (sc_prohibit_ignore_value_without_use)
35036         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
35037         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
35038         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
35039         (sc_prohibit_hash_pjw_without_use)
35040         (sc_prohibit_safe_read_without_use)
35041         (sc_prohibit_argmatch_without_use)
35042         (sc_prohibit_canonicalize_without_use)
35043         (sc_prohibit_root_dev_ino_without_use)
35044         (sc_prohibit_openat_without_use)
35045         (sc_prohibit_c_ctype_without_use)
35046         (sc_prohibit_signal_without_use)
35047         (sc_prohibit_stdio--_without_use)
35048         (sc_prohibit_stdio-safer_without_use)
35049         (sc_prohibit_strings_without_use)
35050         (sc_prohibit_intprops_without_use)
35051         (sc_prohibit_stddef_without_use)
35052         (sc_prohibit_xfreopen_without_use): Update clients.
35054 2011-06-24  Jim Meyering  <meyering@redhat.com>
35056         syntax-check: keep one maint.mk rule in sync with its header
35057         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
35058         of the bug Eric has just fixed, with today's commit 25e4c2ec.
35059         I prefer to avoid temporary files here, so use <(...), but that
35060         is not supported by /bin/sh, so...
35061         (SHELL): Define to /bin/bash.
35063 2011-06-24  Eric Blake  <eblake@redhat.com>
35065         maint.mk: update sc_prohibit_intprops_without_use
35066         * top/maint.mk (_intprops_names): Match recent changes.
35068 2011-06-24  Bruno Haible  <bruno@clisp.org>
35070         strerror-override: No-op tweak.
35071         * lib/strerror-override.h (strerror_override): Reorder conditions,
35072         for consistency with lib/strerror-override.c.
35074 2011-06-23  Eric Blake  <eblake@redhat.com>
35076         maint.mk: test further PATH_MAX issues
35077         * top/maint.mk (sc_prohibit_path_max_array): Rename...
35078         (sc_prohibit_path_max_allocation): ...and also test alloca.
35079         Suggested by Jim Meyering.
35081 2011-06-22  Eric Blake  <eblake@redhat.com>
35083         maint.mk: add syntax-check to avoid char[PATH_MAX]
35084         * top/maint.mk (sc_prohibit_path_max_array): New rule.
35086         stat: be robust to PATH_MAX definition
35087         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
35088         * modules/stat (Depends-on): Add verify.
35090         link: work around IRIX bug
35091         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
35092         * lib/link.c (rpl_link): Work around it.
35093         * tests/test-link.h (test_link): Enhance test.
35094         * doc/posix-functions/link.texi (link): Document the bug.
35096         getopt: silence clang warning
35097         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
35098         dereference.
35099         Reported by Gustavo Martin Domato.
35101 2011-06-22  Jim Meyering  <meyering@redhat.com>
35103         bootstrap: do not insert a blank line into each .gitignore file
35104         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
35106 2011-06-21  Eric Blake  <eblake@redhat.com>
35108         perror: test for output mismatch
35109         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
35110         perror on IRIX.
35112         strerror_r: fix OpenBSD behavior on out-of-range
35113         * lib/strerror_r.c (strerror_r): Always use maximal string.
35114         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
35116         strerror_r: fix OpenBSD behavior on 0
35117         * lib/strerror-override.c (strerror_override): Also override 0
35118         when needed.
35119         * lib/strerror-override.h (strerror_override): Likewise.
35120         * lib/strerror.c (strerror): Simplify, now that 0 override is done
35121         earlier.
35122         * lib/strerror_r.c (strerror_r): Likewise.
35123         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
35124         behavior...
35125         (gl_FUNC_STRERROR_0): ...into new macro.
35126         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
35127         is overridden.
35128         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
35129         * modules/strerror-override (Files): Add strerror.m4.
35130         (configure.ac): Also provide override for 0 when needed.
35131         * doc/posix-functions/strerror.texi (strerror): Document this.
35132         * doc/posix-functions/perror.texi (perror): Likewise.
35134         perror: adjust array size
35135         * modules/perror (Depends-on): Add strerror-override.
35136         * lib/perror.c (perror): Use it to avoid magic number.
35138         strerror-override: reduce size
35139         * lib/strerror-override.c (strerror_override): Use fewer lines.
35141 2011-06-20  Bruno Haible  <bruno@clisp.org>
35143         pathmax: Ensure correct value for PATH_MAX on HP-UX.
35144         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
35146 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
35148         alloca: port to compilers that can optimize like GCC 4.6.0
35149         * lib/alloca.c (find_stack_direction): New signature, taken from
35150         Autoconf git.  This works with GCC 4.6.0.  This code should never
35151         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
35152         be used with other compilers that optimize as well as GCC 4.6.0 does.
35153         (alloca): Adjust to new signature.
35154         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
35155         New macro, which patches Autoconf in a similar way.
35157         c-stack: stop worrying about stack direction
35158         * lib/c-stack.c (find_stack_direction): Remove.
35159         (segv_handler): Don't worry about stack direction growth, as it's
35160         too much of a pain to configure this correctly, given how compilers
35161         are optimizing-away our stack-growth detection code.  Instead, assume
35162         that any access to just before or just after the stack is OK.
35163         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
35164         Don't require AC_FUNC_ALLOCA; no longer needed.
35166 2011-06-20  Eric Blake  <eblake@redhat.com>
35168         test-stat: don't allocate PATH_MAX bytes
35169         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
35170         PATH_MAX-sized buffer.
35171         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
35172         * modules/stat-tests (Depends-on): Likewise.
35173         * tests/test-fstatat.c (includes): Drop pathmax.h.
35174         * tests/test-stat.c (includes): Likewise.
35175         Reported by Bruno Haible.
35177 2011-06-20  Bruno Haible  <bruno@clisp.org>
35179         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
35180         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
35181         * lib/float.c: New file.
35182         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
35183         REPLACE_FLOAT_LDBL.
35184         * modules/float (Files): Add lib/float.c.
35185         (configure.ac): Invoke AC_LIBOBJ.
35186         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
35188 2011-06-20  Bruno Haible  <bruno@clisp.org>
35190         Tests for module 'float'.
35191         * modules/float-tests: New file.
35192         * tests/test-float.c: New file.
35194 2011-06-19  Bruno Haible  <bruno@clisp.org>
35196         isinf: Coding style.
35197         * lib/isinf.c: Use GNU coding style.
35199 2011-06-19  Bruno Haible  <bruno@clisp.org>
35201         linkat test: Avoid test failure on AIX 7.1.
35202         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
35203         * tests/test-link.h (test_link): Likewise.
35205 2011-06-19  Bruno Haible  <bruno@clisp.org>
35207         pread test: Avoid test failure on OpenBSD 4.9.
35208         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
35210 2011-06-19  Bruno Haible  <bruno@clisp.org>
35212         sprintf-posix: Fix test failure on AIX 7.1.
35213         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
35214         * doc/posix-functions/dprintf.texi: Mention limited precision problem
35215         on AIX.
35216         * doc/posix-functions/fprintf.texi: Likewise.
35217         * doc/posix-functions/printf.texi: Likewise.
35218         * doc/posix-functions/snprintf.texi: Likewise.
35219         * doc/posix-functions/sprintf.texi: Likewise.
35220         * doc/posix-functions/vdprintf.texi: Likewise.
35221         * doc/posix-functions/vfprintf.texi: Likewise.
35222         * doc/posix-functions/vprintf.texi: Likewise.
35223         * doc/posix-functions/vsnprintf.texi: Likewise.
35224         * doc/posix-functions/vsprintf.texi: Likewise.
35226 2011-06-19  Bruno Haible  <bruno@clisp.org>
35228         roundl-ieee: Fix test failure on AIX 7.1.
35229         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
35230         * doc/posix-functions/roundl.texi: Mention problem with negative
35231         arguments.
35233 2011-06-19  Bruno Haible  <bruno@clisp.org>
35235         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
35236         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
35237         * doc/posix-functions/round.texi: Mention problem with negative
35238         arguments.
35239         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
35241 2011-06-19  Bruno Haible  <bruno@clisp.org>
35243         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
35244         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
35245         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
35246         * doc/posix-functions/roundf.texi: Mention problem with negative
35247         arguments.
35248         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
35250 2011-06-19  Bruno Haible  <bruno@clisp.org>
35252         ceilf-ieee: Work around bug on MacOS X 10.5.
35253         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
35255         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
35256         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
35257         IEEE compliant, avoid compiler optimizations.
35258         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
35259         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
35260         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
35261         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
35262         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
35263         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
35264         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
35265         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
35266         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
35267         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
35269 2011-06-19  Bruno Haible  <bruno@clisp.org>
35271         ceilf-ieee: Work around bug on AIX 7.1.
35272         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
35273         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
35275 2011-06-19  Bruno Haible  <bruno@clisp.org>
35277         ceil-ieee: Work around bug on AIX 7.1.
35278         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
35279         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
35281 2011-06-18  Bruno Haible  <bruno@clisp.org>
35283         fsync test: Avoid test failure on MacOS X and AIX.
35284         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
35285         EINVAL.
35287 2011-06-18  Bruno Haible  <bruno@clisp.org>
35289         openat, fdopendir tests: Fix link errors.
35290         * modules/openat-tests (Depends-on): Add progname.
35291         * modules/fdopendir-tests (Depends-on): Likewise.
35292         * tests/test-fchownat.c: Include progname.h.
35293         (main): Call set_program_name.
35294         * tests/test-fstatat.c: Include progname.h.
35295         (main): Call set_program_name.
35296         * tests/test-mkdirat.c: Include progname.h.
35297         (main): Call set_program_name.
35298         * tests/test-openat.c: Include progname.h.
35299         (main): Call set_program_name.
35300         * tests/test-unlinkat.c: Include progname.h.
35301         (main): Call set_program_name.
35302         * tests/test-fdopendir.c: Include progname.h.
35303         (main): Call set_program_name.
35305 2011-06-18  Bruno Haible  <bruno@clisp.org>
35307         Doc update.
35308         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
35309         HP-UX.
35310         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
35312 2011-06-18  Bruno Haible  <bruno@clisp.org>
35314         getcwd tests: Avoid compilation error on HP-UX 11.31.
35315         * modules/getcwd-tests (Depends-on): Add pathmax.
35316         * tests/test-getcwd.c: Include pathmax.h.
35318 2011-06-18  Bruno Haible  <bruno@clisp.org>
35320         isfinite, isinf: Fix link error on AIX 6 and 7.
35321         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
35322         needed, also test the macro with a 'float' argument.
35323         * m4/isinf.m4 (gl_ISINF): Likewise.
35325 2011-06-18  Bruno Haible  <bruno@clisp.org>
35327         getloadavg: Don't clobber LIBS. Regression from previous commit.
35328         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
35329         AC_CHECK_LIB from here...
35330         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
35331         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
35332         gl_func_getloadavg_done.
35333         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35335 2011-06-18  Bruno Haible  <bruno@clisp.org>
35337         clean-temp: Improve documentation.
35338         * lib/clean-temp.h: Explain better how to use this module.
35339         Reported by John Darrington <john@darrington.wattle.id.au>.
35341 2011-06-17  Bruno Haible  <bruno@clisp.org>
35343         pread, pwrite: Avoid cc warning on AIX.
35344         * lib/unistd.in.h (pread): Undefine before defining as a macro.
35345         (pwrite): Likewise.
35347 2011-06-17  Bruno Haible  <bruno@clisp.org>
35349         spawn-pipe tests: Fix link error.
35350         * tests/test-spawn-pipe-child.c: Undefine fprintf.
35351         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35353 2011-06-17  Bruno Haible  <bruno@clisp.org>
35355         Tests: Remove unnecessary dependency.
35356         * modules/canonicalize-tests (Depends-on): Remove progname.
35357         * modules/chown-tests (Depends-on): Likewise.
35358         * modules/dirname-tests (Depends-on): Likewise.
35359         * modules/fdopendir-tests (Depends-on): Likewise.
35360         * modules/fdutimensat-tests (Depends-on): Likewise.
35361         * modules/hash-tests (Depends-on): Likewise.
35362         * modules/lchown-tests (Depends-on): Likewise.
35363         * modules/linkat-tests (Depends-on): Likewise.
35364         * modules/renameat-tests (Depends-on): Likewise.
35365         * modules/spawn-pipe-tests (Depends-on): Likewise.
35366         * modules/utimensat-tests (Depends-on): Likewise.
35368 2011-06-17  Bruno Haible  <bruno@clisp.org>
35370         spawn-pipe tests: Fix link error.
35371         * tests/test-spawn-pipe-child.c: Undefine fflush.
35373 2011-06-17  Bruno Haible  <bruno@clisp.org>
35375         Fix tests link errors.
35376         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
35377         * modules/chown-tests (Makefile.am): Don't link test-chown with
35378         LIBINTL.
35379         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
35380         LIBINTL.
35381         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
35382         LIBINTL.
35383         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
35384         LIBINTL.
35386 2011-06-16  Bruno Haible  <bruno@clisp.org>
35388         crypto/gc-sha1: Fix recent regression.
35389         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
35390         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
35392         crypto/gc-md5: Fix recent regression.
35393         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
35395         crypto/gc-md4: Fix recent regression.
35396         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
35397         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
35399         crypto/gc-arctwo: Fix recent regression.
35400         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
35401         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
35403         crypto/gc-rijndael: Fix recent regression.
35404         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
35405         (configure.ac): Invoke AC_LIBOBJ here.
35406         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
35407         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35409         crypto/gc-hmac-sha1: Fix recent regression.
35410         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
35411         (configure.ac): Invoke AC_LIBOBJ here.
35412         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
35413         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35415         crypto/gc-hmac-md5: Fix recent regression.
35416         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
35417         (configure.ac): Invoke AC_LIBOBJ here.
35418         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
35419         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35421         crypto/gc-des: Fix recent regression.
35422         * modules/crypto/gc-des (Files): Remove m4/des.m4.
35423         (configure.ac): Invoke AC_LIBOBJ here.
35424         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
35425         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35427         crypto/gc-arcfour: Fix recent regression.
35428         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
35429         (configure.ac): Invoke AC_LIBOBJ here.
35430         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
35431         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35433 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
35435         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
35436         After the 2011-05-21 change, this macro requires
35437         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
35438         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
35440 2011-06-16  Bruno Haible  <bruno@clisp.org>
35442         fprintftime: Move AC_LIBOBJ invocations to module description.
35443         * m4/fprintftime.m4: Remove file.
35444         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
35445         (configure.ac): Remove gl_FPRINTFTIME call.
35446         (Makefile.am): Augment lib_SOURCES.
35447         Reported by Jim Meyering.
35449 2011-06-16  Bruno Haible  <bruno@clisp.org>
35451         tmpfile-safer: Finish 2011-05-23 commit.
35452         * m4/stdio-safer.m4: Really remove file.
35453         Reported by Jim Meyering.
35455 2011-06-16  Bruno Haible  <bruno@clisp.org>
35457         syntax-check: Fix typo.
35458         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
35459         printf-posix.m4.
35460         Reported by Jim Meyering.
35462 2011-06-13  Jim Meyering  <meyering@redhat.com>
35464         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
35465         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
35467 2011-05-23  Bruno Haible  <bruno@clisp.org>
35469         yesno: Move AC_LIBOBJ invocations to module description.
35470         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
35471         * modules/yesno (Makefile.am): Augment lib_SOURCES.
35473 2011-05-23  Bruno Haible  <bruno@clisp.org>
35475         xstrtol: Move AC_LIBOBJ invocations to module description.
35476         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
35477         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
35479 2011-05-23  Bruno Haible  <bruno@clisp.org>
35481         xstrtold: Move AC_LIBOBJ invocations to module description.
35482         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
35483         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
35485 2011-05-23  Bruno Haible  <bruno@clisp.org>
35487         xstrtod: Move AC_LIBOBJ invocations to module description.
35488         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
35489         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
35491 2011-05-23  Bruno Haible  <bruno@clisp.org>
35493         xnanosleep: Move AC_LIBOBJ invocations to module description.
35494         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
35495         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
35497 2011-05-23  Bruno Haible  <bruno@clisp.org>
35499         xgetcwd: Move AC_LIBOBJ invocations to module description.
35500         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
35501         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
35503 2011-05-23  Bruno Haible  <bruno@clisp.org>
35505         xalloc: Move AC_LIBOBJ invocations to module description.
35506         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
35507         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
35509 2011-05-23  Bruno Haible  <bruno@clisp.org>
35511         write-any-file: Move AC_LIBOBJ invocations to module description.
35512         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
35513         invocation.
35514         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
35516 2011-05-23  Bruno Haible  <bruno@clisp.org>
35518         utimens: Move AC_LIBOBJ invocations to module description.
35519         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
35520         * modules/utimens (Makefile.am): Augment lib_SOURCES.
35522 2011-05-23  Bruno Haible  <bruno@clisp.org>
35524         utimecmp: Move AC_LIBOBJ invocations to module description.
35525         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
35526         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
35528 2011-05-23  Bruno Haible  <bruno@clisp.org>
35530         userspec: Move AC_LIBOBJ invocations to module description.
35531         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
35532         * modules/userspec (Makefile.am): Augment lib_SOURCES.
35534 2011-05-23  Bruno Haible  <bruno@clisp.org>
35536         unlinkdir: Move AC_LIBOBJ invocations to module description.
35537         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
35538         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
35540 2011-05-23  Bruno Haible  <bruno@clisp.org>
35542         unistd-safer: Move AC_LIBOBJ invocations to module description.
35543         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
35544         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
35546 2011-05-23  Bruno Haible  <bruno@clisp.org>
35548         tempname: Move AC_LIBOBJ invocations to module description.
35549         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
35550         * modules/tempname (Makefile.am): Augment lib_SOURCES.
35552 2011-05-23  Bruno Haible  <bruno@clisp.org>
35554         strftime: Move AC_LIBOBJ invocations to module description.
35555         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
35556         * modules/strftime (Makefile.am): Augment lib_SOURCES.
35558 2011-05-23  Bruno Haible  <bruno@clisp.org>
35560         stdlib-safer: Move AC_LIBOBJ invocations to module description.
35561         * m4/stdlib-safer.m4: Remove file.
35562         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
35563         (configure.ac): Remove gl_STDLIB_SAFER call.
35564         (Makefile.am): Augment lib_SOURCES.
35566 2011-05-23  Bruno Haible  <bruno@clisp.org>
35568         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
35569         * m4/stdio-safer.m4: Remove file.
35570         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
35571         (configure.ac): Remove gl_TMPFILE_SAFER call.
35572         (Makefile.am): Augment lib_SOURCES.
35574 2011-05-23  Bruno Haible  <bruno@clisp.org>
35576         popen-safer: Move AC_LIBOBJ invocations to module description.
35577         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
35578         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
35579         (configure.ac): Remove gl_POPEN_SAFER call.
35580         (Makefile.am): Augment lib_SOURCES.
35582 2011-05-23  Bruno Haible  <bruno@clisp.org>
35584         freopen-safer: Move AC_LIBOBJ invocations to module description.
35585         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
35586         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
35587         (configure.ac): Remove gl_FREOPEN_SAFER call.
35588         (Makefile.am): Augment lib_SOURCES.
35590 2011-05-23  Bruno Haible  <bruno@clisp.org>
35592         fopen-safer: Move AC_LIBOBJ invocations to module description.
35593         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
35594         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
35595         (configure.ac): Remove gl_FOPEN_SAFER call.
35596         (Makefile.am): Augment lib_SOURCES.
35598 2011-05-23  Bruno Haible  <bruno@clisp.org>
35600         crypto/sha512: Move AC_LIBOBJ invocations to module description.
35601         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
35602         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
35604 2011-05-23  Bruno Haible  <bruno@clisp.org>
35606         crypto/sha256: Move AC_LIBOBJ invocations to module description.
35607         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
35608         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
35610 2011-05-23  Bruno Haible  <bruno@clisp.org>
35612         crypto/sha1: Move AC_LIBOBJ invocations to module description.
35613         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
35614         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
35616 2011-05-23  Bruno Haible  <bruno@clisp.org>
35618         settime: Move AC_LIBOBJ invocations to module description.
35619         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
35620         * modules/settime (Makefile.am): Augment lib_SOURCES.
35622 2011-05-23  Bruno Haible  <bruno@clisp.org>
35624         savedir: Move AC_LIBOBJ invocations to module description.
35625         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
35626         * modules/savedir (Makefile.am): Augment lib_SOURCES.
35628 2011-05-23  Bruno Haible  <bruno@clisp.org>
35630         save-cwd: Move AC_LIBOBJ invocations to module description.
35631         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
35632         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
35634 2011-05-23  Bruno Haible  <bruno@clisp.org>
35636         same: Move AC_LIBOBJ invocations to module description.
35637         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
35638         * modules/same (Makefile.am): Augment lib_SOURCES.
35640 2011-05-23  Bruno Haible  <bruno@clisp.org>
35642         safe-write: Move AC_LIBOBJ invocations to module description.
35643         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
35644         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
35645         instead of gl_SAFE_WRITE.
35646         (Makefile.am): Augment lib_SOURCES.
35648 2011-05-23  Bruno Haible  <bruno@clisp.org>
35650         safe-read: Move AC_LIBOBJ invocations to module description.
35651         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
35652         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
35653         of gl_SAFE_READ.
35654         (Makefile.am): Augment lib_SOURCES.
35656 2011-05-23  Bruno Haible  <bruno@clisp.org>
35658         safe-alloc: Move AC_LIBOBJ invocations to module description.
35659         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
35660         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
35662 2011-05-23  Bruno Haible  <bruno@clisp.org>
35664         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
35665         * m4/rijndael.m4: Remove file.
35666         * modules/crypto/rijndael (Files): Remove it.
35667         (configure.ac): Remove gl_RIJNDAEL call.
35668         (Makefile.am): Augment lib_SOURCES.
35670 2011-05-23  Bruno Haible  <bruno@clisp.org>
35672         readtokens: Move AC_LIBOBJ invocations to module description.
35673         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
35674         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
35676 2011-05-23  Bruno Haible  <bruno@clisp.org>
35678         read-file: Move AC_LIBOBJ invocations to module description.
35679         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
35680         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
35681         of gl_FUNC_READ_FILE.
35682         (Makefile.am): Augment lib_SOURCES.
35684 2011-05-23  Bruno Haible  <bruno@clisp.org>
35686         quotearg: Move AC_LIBOBJ invocations to module description.
35687         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
35688         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
35690 2011-05-23  Bruno Haible  <bruno@clisp.org>
35692         quote: Move AC_LIBOBJ invocations to module description.
35693         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
35694         * modules/quote (Makefile.am): Augment lib_SOURCES.
35696 2011-05-23  Bruno Haible  <bruno@clisp.org>
35698         posixver: Move AC_LIBOBJ invocations to module description.
35699         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
35700         * modules/posixver (Makefile.am): Augment lib_SOURCES.
35702 2011-05-23  Bruno Haible  <bruno@clisp.org>
35704         posixtm: Move AC_LIBOBJ invocations to module description.
35705         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
35706         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
35708 2011-05-23  Bruno Haible  <bruno@clisp.org>
35710         physmem: Move AC_LIBOBJ invocations to module description.
35711         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
35712         * modules/physmem (Makefile.am): Augment lib_SOURCES.
35714 2011-05-23  Bruno Haible  <bruno@clisp.org>
35716         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
35717         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
35718         invocation.
35719         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
35721 2011-05-23  Bruno Haible  <bruno@clisp.org>
35723         mpsort: Move AC_LIBOBJ invocations to module description.
35724         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
35725         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
35727 2011-05-23  Bruno Haible  <bruno@clisp.org>
35729         modechange: Move AC_LIBOBJ invocations to module description.
35730         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
35731         * modules/modechange (Makefile.am): Augment lib_SOURCES.
35733 2011-05-23  Bruno Haible  <bruno@clisp.org>
35735         mkdir-p: Move AC_LIBOBJ invocations to module description.
35736         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
35737         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
35739 2011-05-23  Bruno Haible  <bruno@clisp.org>
35741         mkancesdirs: Move AC_LIBOBJ invocations to module description.
35742         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
35743         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
35745 2011-05-23  Bruno Haible  <bruno@clisp.org>
35747         mgetgroups: Move AC_LIBOBJ invocations to module description.
35748         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
35749         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
35751 2011-05-23  Bruno Haible  <bruno@clisp.org>
35753         memxor: Move AC_LIBOBJ invocations to module description.
35754         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
35755         * modules/memxor (Makefile.am): Augment lib_SOURCES.
35757 2011-05-23  Bruno Haible  <bruno@clisp.org>
35759         memcoll: Move AC_LIBOBJ invocations to module description.
35760         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
35761         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
35763 2011-05-23  Bruno Haible  <bruno@clisp.org>
35765         memcasecmp: Move AC_LIBOBJ invocations to module description.
35766         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
35767         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
35769 2011-05-23  Bruno Haible  <bruno@clisp.org>
35771         crypto/md5: Move AC_LIBOBJ invocations to module description.
35772         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
35773         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
35775 2011-05-23  Bruno Haible  <bruno@clisp.org>
35777         crypto/md4: Move AC_LIBOBJ invocations to module description.
35778         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
35779         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
35781 2011-05-23  Bruno Haible  <bruno@clisp.org>
35783         crypto/md2: Move AC_LIBOBJ invocations to module description.
35784         * m4/md2.m4: Remove file.
35785         * modules/crypto/md2 (Files): Remove it.
35786         (configure.ac): Remove gl_MD2 call.
35787         (Makefile.am): Augment lib_SOURCES.
35789 2011-05-23  Bruno Haible  <bruno@clisp.org>
35791         long-options: Move AC_LIBOBJ invocations to module description.
35792         * m4/long-options.m4: Remove file.
35793         * modules/long-options (Files): Remove it.
35794         (configure.ac): Remove gl_LONG_OPTIONS call.
35795         (Makefile.am): Augment lib_SOURCES.
35797 2011-05-23  Bruno Haible  <bruno@clisp.org>
35799         i-ring: Move AC_LIBOBJ invocations to module description.
35800         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
35801         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
35803 2011-05-23  Bruno Haible  <bruno@clisp.org>
35805         idcache: Move AC_LIBOBJ invocations to module description.
35806         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
35807         * modules/idcache (Makefile.am): Augment lib_SOURCES.
35809 2011-05-23  Bruno Haible  <bruno@clisp.org>
35811         human: Move AC_LIBOBJ invocations to module description.
35812         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
35813         * modules/human (Makefile.am): Augment lib_SOURCES.
35815 2011-05-23  Bruno Haible  <bruno@clisp.org>
35817         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
35818         * m4/hmac-sha1.m4: Remove file.
35819         * modules/crypto/hmac-sha1 (Files): Remove it.
35820         (configure.ac): Remove gl_HMAC_SHA1 call.
35821         (Makefile.am): Augment lib_SOURCES.
35823 2011-05-23  Bruno Haible  <bruno@clisp.org>
35825         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
35826         * m4/hmac-md5.m4: Remove file.
35827         * modules/crypto/hmac-md5 (Files): Remove it.
35828         (configure.ac): Remove gl_HMAC_MD5 call.
35829         (Makefile.am): Augment lib_SOURCES.
35831 2011-05-23  Bruno Haible  <bruno@clisp.org>
35833         hash: Move AC_LIBOBJ invocations to module description.
35834         * m4/hash.m4: Remove file.
35835         * modules/hash (Files): Remove it.
35836         (configure.ac): Remove gl_HASH call.
35837         (Makefile.am): Augment lib_SOURCES.
35839 2011-05-23  Bruno Haible  <bruno@clisp.org>
35841         hard-locale: Move AC_LIBOBJ invocations to module description.
35842         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
35843         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
35845 2011-05-23  Bruno Haible  <bruno@clisp.org>
35847         getugroups: Move AC_LIBOBJ invocations to module description.
35848         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
35849         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
35851 2011-05-23  Bruno Haible  <bruno@clisp.org>
35853         gettime: Move AC_LIBOBJ invocations to module description.
35854         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
35855         * modules/gettime (Makefile.am): Augment lib_SOURCES.
35857 2011-05-23  Bruno Haible  <bruno@clisp.org>
35859         getndelim2: Move AC_LIBOBJ invocations to module description.
35860         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
35861         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
35863 2011-05-23  Bruno Haible  <bruno@clisp.org>
35865         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
35866         * m4/gc-pbkdf2-sha1.m4: Remove file.
35867         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
35868         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
35869         (Makefile.am): Augment lib_SOURCES.
35871 2011-05-23  Bruno Haible  <bruno@clisp.org>
35873         fts: Move AC_LIBOBJ invocations to module description.
35874         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
35875         * modules/fts (configure.ac): ... to here.
35877 2011-05-23  Bruno Haible  <bruno@clisp.org>
35879         file-type: Move AC_LIBOBJ invocations to module description.
35880         * m4/file-type.m4: Remove file.
35881         * modules/file-type (Files): Remove it.
35882         (configure.ac): Remove gl_FILE_TYPE call.
35883         (Makefile.am): Augment lib_SOURCES.
35885 2011-05-23  Bruno Haible  <bruno@clisp.org>
35887         filenamecat*: Respect rules for use of AC_LIBOBJ.
35888         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
35889         Remove AC_LIBOBJ invocation.
35890         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
35891         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
35893 2011-05-23  Bruno Haible  <bruno@clisp.org>
35895         filemode: Move AC_LIBOBJ invocations to module description.
35896         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
35897         * modules/filemode (Makefile.am): Augment lib_SOURCES.
35899 2011-05-23  Bruno Haible  <bruno@clisp.org>
35901         openat-safer: Move AC_LIBOBJ invocations to module description.
35902         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
35903         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
35905 2011-05-23  Bruno Haible  <bruno@clisp.org>
35907         fcntl-safer: Move AC_LIBOBJ invocations to module description.
35908         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
35909         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
35911 2011-05-23  Bruno Haible  <bruno@clisp.org>
35913         exclude: Move AC_LIBOBJ invocations to module description.
35914         * m4/exclude.m4: Remove file.
35915         * modules/exclude (Files): Remove it.
35916         (configure.ac): Remove gl_EXCLUDE call.
35917         (Makefile.am): Augment lib_SOURCES.
35919 2011-05-23  Bruno Haible  <bruno@clisp.org>
35921         dirname*: Respect rules for use of AC_LIBOBJ.
35922         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
35923         invocations.
35924         * modules/dirname (Makefile.am): Augment lib_SOURCES.
35925         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
35927 2011-05-23  Bruno Haible  <bruno@clisp.org>
35929         dirent-safer: Move AC_LIBOBJ invocations to module description.
35930         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
35931         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
35933 2011-05-23  Bruno Haible  <bruno@clisp.org>
35935         crypto/des: Move AC_LIBOBJ invocations to module description.
35936         * m4/des.m4: Remove file.
35937         * modules/crypto/des (Files): Remove it.
35938         (configure.ac): Remove gl_DES call.
35939         (Makefile.am): Augment lib_SOURCES.
35941 2011-05-23  Bruno Haible  <bruno@clisp.org>
35943         cycle-check: Move AC_LIBOBJ invocations to module description.
35944         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
35945         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
35947 2011-05-23  Bruno Haible  <bruno@clisp.org>
35949         c-strtold: Move AC_LIBOBJ invocations to module description.
35950         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
35951         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
35953 2011-05-23  Bruno Haible  <bruno@clisp.org>
35955         c-strtod: Move AC_LIBOBJ invocations to module description.
35956         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
35957         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
35959 2011-05-23  Bruno Haible  <bruno@clisp.org>
35961         crc: Move AC_LIBOBJ invocations to module description.
35962         * m4/crc.m4: Remove file.
35963         * modules/crc (Files): Remove it.
35964         (configure.ac): Remove gl_CRC call.
35965         (Makefile.am): Augment lib_SOURCES.
35967 2011-05-23  Bruno Haible  <bruno@clisp.org>
35969         close-stream: Move AC_LIBOBJ invocations to module description.
35970         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
35971         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
35973 2011-05-23  Bruno Haible  <bruno@clisp.org>
35975         closeout: Move AC_LIBOBJ invocations to module description.
35976         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
35977         * modules/closeout (Makefile.am): Augment lib_SOURCES.
35979 2011-05-23  Bruno Haible  <bruno@clisp.org>
35981         closein: Move AC_LIBOBJ invocations to module description.
35982         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
35983         * modules/closein (Makefile.am): Augment lib_SOURCES.
35985 2011-05-23  Bruno Haible  <bruno@clisp.org>
35987         cloexec: Move AC_LIBOBJ invocations to module description.
35988         * m4/cloexec.m4: Remove file.
35989         * modules/cloexec (Files): Remove it.
35990         (configure.ac): Remove gl_CLOEXEC call.
35991         (Makefile.am): Augment lib_SOURCES.
35993 2011-05-23  Bruno Haible  <bruno@clisp.org>
35995         check-version: Move AC_LIBOBJ invocations to module description.
35996         * m4/check-version.m4: Remove file.
35997         * modules/check-version (Files): Remove it.
35998         (configure.ac): Remove gl_CHECK_VERSION call.
35999         (Makefile.am): Augment lib_SOURCES.
36001 2011-05-23  Bruno Haible  <bruno@clisp.org>
36003         chdir-safer: Move AC_LIBOBJ invocations to module description.
36004         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
36005         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
36007 2011-05-23  Bruno Haible  <bruno@clisp.org>
36009         canonicalize: Move AC_LIBOBJ invocations to module description.
36010         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
36011         AC_LIBOBJ invocation.
36012         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
36014 2011-05-23  Bruno Haible  <bruno@clisp.org>
36016         canon-host: Move AC_LIBOBJ invocations to module description.
36017         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
36018         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
36019         instead of gl_CANON_HOST.
36020         (Makefile.am): Augment lib_SOURCES.
36022 2011-05-23  Bruno Haible  <bruno@clisp.org>
36024         backupfile: Move AC_LIBOBJ invocations to module description.
36025         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
36026         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
36028 2011-05-23  Bruno Haible  <bruno@clisp.org>
36030         argmatch: Move AC_LIBOBJ invocations to module description.
36031         * m4/argmatch.m4: Remove file.
36032         * modules/argmatch (Files): Remove it.
36033         (configure.ac): Remove gl_ARGMATCH call.
36034         (Makefile.am): Augment lib_SOURCES.
36036 2011-05-23  Bruno Haible  <bruno@clisp.org>
36038         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
36039         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
36040         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
36042 2011-05-23  Bruno Haible  <bruno@clisp.org>
36044         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
36045         * m4/arcfour.m4: Remove file.
36046         * modules/crypto/arcfour (Files): Remove it.
36047         (configure.ac): Remove gl_ARCFOUR call.
36048         (Makefile.am): Augment lib_SOURCES.
36050 2011-05-22  Bruno Haible  <bruno@clisp.org>
36052         write: Move AC_LIBOBJ invocations to module description.
36053         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
36054         * modules/write (configure.ac): ... to here.
36056 2011-05-22  Bruno Haible  <bruno@clisp.org>
36058         wmemset: Move AC_LIBOBJ invocations to module description.
36059         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
36060         here...
36061         * modules/wmemset (configure.ac): ... to here.
36063 2011-05-22  Bruno Haible  <bruno@clisp.org>
36065         wmemmove: Move AC_LIBOBJ invocations to module description.
36066         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
36067         here...
36068         * modules/wmemmove (configure.ac): ... to here.
36070 2011-05-22  Bruno Haible  <bruno@clisp.org>
36072         wmemcpy: Move AC_LIBOBJ invocations to module description.
36073         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
36074         here...
36075         * modules/wmemcpy (configure.ac): ... to here.
36077 2011-05-22  Bruno Haible  <bruno@clisp.org>
36079         wmemcmp: Move AC_LIBOBJ invocations to module description.
36080         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
36081         here...
36082         * modules/wmemcmp (configure.ac): ... to here.
36084 2011-05-22  Bruno Haible  <bruno@clisp.org>
36086         wmemchr: Move AC_LIBOBJ invocations to module description.
36087         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
36088         here...
36089         * modules/wmemchr (configure.ac): ... to here.
36091 2011-05-22  Bruno Haible  <bruno@clisp.org>
36093         wcswidth: Move AC_LIBOBJ invocations to module description.
36094         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
36095         here...
36096         * modules/wcswidth (configure.ac): ... to here.
36098 2011-05-22  Bruno Haible  <bruno@clisp.org>
36100         wcwidth: Respect rules for use of AC_LIBOBJ.
36101         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
36102         invocation from here...
36103         * modules/wcwidth (configure.ac): ... to here.
36104         (Depends-on): Update conditions.
36106 2011-05-22  Bruno Haible  <bruno@clisp.org>
36108         wctype: Move AC_LIBOBJ invocations to module description.
36109         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
36110         invocation from here...
36111         * modules/wctype (configure.ac): ... to here.
36112         (Depends-on): Update conditions.
36114 2011-05-22  Bruno Haible  <bruno@clisp.org>
36116         wctrans: Move AC_LIBOBJ invocations to module description.
36117         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
36118         invocation from here...
36119         * modules/wctrans (configure.ac): ... to here.
36121 2011-05-22  Bruno Haible  <bruno@clisp.org>
36123         wctomb: Move AC_LIBOBJ invocations to module description.
36124         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
36125         invocations from here...
36126         * modules/wctomb (configure.ac): ... to here.
36128 2011-05-22  Bruno Haible  <bruno@clisp.org>
36130         wctob: Move AC_LIBOBJ invocations to module description.
36131         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
36132         gl_PREREQ_WCTOB invocations from here...
36133         * modules/wctob (configure.ac): ... to here.
36134         (Depends-on): Update conditions.
36136 2011-05-22  Bruno Haible  <bruno@clisp.org>
36138         wcsxfrm: Move AC_LIBOBJ invocations to module description.
36139         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
36140         here...
36141         * modules/wcsxfrm (configure.ac): ... to here.
36143 2011-05-22  Bruno Haible  <bruno@clisp.org>
36145         wcstok: Move AC_LIBOBJ invocations to module description.
36146         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
36147         * modules/wcstok (configure.ac): ... to here.
36149 2011-05-22  Bruno Haible  <bruno@clisp.org>
36151         wcsstr: Move AC_LIBOBJ invocations to module description.
36152         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
36153         * modules/wcsstr (configure.ac): ... to here.
36155 2011-05-22  Bruno Haible  <bruno@clisp.org>
36157         wcsspn: Move AC_LIBOBJ invocations to module description.
36158         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
36159         * modules/wcsspn (configure.ac): ... to here.
36161 2011-05-22  Bruno Haible  <bruno@clisp.org>
36163         wcsrtombs: Move AC_LIBOBJ invocations to module description.
36164         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
36165         gl_PREREQ_WCSRTOMBS invocations from here...
36166         * modules/wcsrtombs (configure.ac): ... to here.
36168 2011-05-22  Bruno Haible  <bruno@clisp.org>
36170         wcsrchr: Move AC_LIBOBJ invocations to module description.
36171         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
36172         here...
36173         * modules/wcsrchr (configure.ac): ... to here.
36175 2011-05-22  Bruno Haible  <bruno@clisp.org>
36177         wcspbrk: Move AC_LIBOBJ invocations to module description.
36178         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
36179         here...
36180         * modules/wcspbrk (configure.ac): ... to here.
36182 2011-05-22  Bruno Haible  <bruno@clisp.org>
36184         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
36185         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
36186         gl_PREREQ_WCSNRTOMBS invocations from here...
36187         * modules/wcsnrtombs (configure.ac): ... to here.
36189 2011-05-22  Bruno Haible  <bruno@clisp.org>
36191         wcsnlen: Move AC_LIBOBJ invocations to module description.
36192         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
36193         here...
36194         * modules/wcsnlen (configure.ac): ... to here.
36196 2011-05-22  Bruno Haible  <bruno@clisp.org>
36198         wcsncpy: Move AC_LIBOBJ invocations to module description.
36199         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
36200         here...
36201         * modules/wcsncpy (configure.ac): ... to here.
36203 2011-05-22  Bruno Haible  <bruno@clisp.org>
36205         wcsncmp: Move AC_LIBOBJ invocations to module description.
36206         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
36207         here...
36208         * modules/wcsncmp (configure.ac): ... to here.
36210 2011-05-22  Bruno Haible  <bruno@clisp.org>
36212         wcsncat: Move AC_LIBOBJ invocations to module description.
36213         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
36214         here...
36215         * modules/wcsncat (configure.ac): ... to here.
36217 2011-05-22  Bruno Haible  <bruno@clisp.org>
36219         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
36220         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
36221         from here...
36222         * modules/wcsncasecmp (configure.ac): ... to here.
36224 2011-05-22  Bruno Haible  <bruno@clisp.org>
36226         wcslen: Move AC_LIBOBJ invocations to module description.
36227         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
36228         * modules/wcslen (configure.ac): ... to here.
36230 2011-05-22  Bruno Haible  <bruno@clisp.org>
36232         wcsdup: Move AC_LIBOBJ invocations to module description.
36233         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
36234         * modules/wcsdup (configure.ac): ... to here.
36236 2011-05-22  Bruno Haible  <bruno@clisp.org>
36238         wcscspn: Move AC_LIBOBJ invocations to module description.
36239         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
36240         here...
36241         * modules/wcscspn (configure.ac): ... to here.
36243 2011-05-22  Bruno Haible  <bruno@clisp.org>
36245         wcscpy: Move AC_LIBOBJ invocations to module description.
36246         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
36247         * modules/wcscpy (configure.ac): ... to here.
36249 2011-05-22  Bruno Haible  <bruno@clisp.org>
36251         wcscoll: Move AC_LIBOBJ invocations to module description.
36252         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
36253         here...
36254         * modules/wcscoll (configure.ac): ... to here.
36256 2011-05-22  Bruno Haible  <bruno@clisp.org>
36258         wcscmp: Move AC_LIBOBJ invocations to module description.
36259         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
36260         * modules/wcscmp (configure.ac): ... to here.
36262 2011-05-22  Bruno Haible  <bruno@clisp.org>
36264         wcschr: Move AC_LIBOBJ invocations to module description.
36265         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
36266         * modules/wcschr (configure.ac): ... to here.
36268 2011-05-22  Bruno Haible  <bruno@clisp.org>
36270         wcscat: Move AC_LIBOBJ invocations to module description.
36271         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
36272         * modules/wcscat (configure.ac): ... to here.
36274 2011-05-22  Bruno Haible  <bruno@clisp.org>
36276         wcscasecmp: Move AC_LIBOBJ invocations to module description.
36277         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
36278         here...
36279         * modules/wcscasecmp (configure.ac): ... to here.
36281 2011-05-22  Bruno Haible  <bruno@clisp.org>
36283         wcrtomb: Move AC_LIBOBJ invocations to module description.
36284         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
36285         invocations from here...
36286         * modules/wcrtomb (configure.ac): ... to here.
36288 2011-05-22  Bruno Haible  <bruno@clisp.org>
36290         wcpncpy: Move AC_LIBOBJ invocations to module description.
36291         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
36292         here...
36293         * modules/wcpncpy (configure.ac): ... to here.
36295 2011-05-22  Bruno Haible  <bruno@clisp.org>
36297         wcpcpy: Move AC_LIBOBJ invocations to module description.
36298         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
36299         * modules/wcpcpy (configure.ac): ... to here.
36301 2011-05-22  Bruno Haible  <bruno@clisp.org>
36303         waitpid: Move AC_LIBOBJ invocations to module description.
36304         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
36305         invocation from here...
36306         * modules/waitpid (configure.ac): ... to here.
36308 2011-05-22  Bruno Haible  <bruno@clisp.org>
36310         utimensat: Move AC_LIBOBJ invocations to module description.
36311         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
36312         here...
36313         * modules/utimensat (configure.ac): ... to here.
36315 2011-05-22  Bruno Haible  <bruno@clisp.org>
36317         usleep: Move AC_LIBOBJ invocations to module description.
36318         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
36319         here...
36320         * modules/usleep (configure.ac): ... to here.
36322 2011-05-22  Bruno Haible  <bruno@clisp.org>
36324         unlockpt: Move AC_LIBOBJ invocations to module description.
36325         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
36326         gl_PREREQ_UNLOCKPT invocations from here...
36327         * modules/unlockpt (configure.ac): ... to here.
36329 2011-05-22  Bruno Haible  <bruno@clisp.org>
36331         unlink: Respect rules for use of AC_LIBOBJ.
36332         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
36333         * modules/unlink (configure.ac): ... to here.
36335 2011-05-22  Bruno Haible  <bruno@clisp.org>
36337         uname: Move AC_LIBOBJ invocations to module description.
36338         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
36339         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
36340         here...
36341         * modules/uname (configure.ac): ... to here.
36343 2011-05-22  Bruno Haible  <bruno@clisp.org>
36345         ttyname_r: Move AC_LIBOBJ invocations to module description.
36346         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
36347         gl_PREREQ_TTYNAME_R invocations from here...
36348         * modules/ttyname_r (configure.ac): ... to here.
36350 2011-05-22  Bruno Haible  <bruno@clisp.org>
36352         tsearch: Move AC_LIBOBJ invocations to module description.
36353         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
36354         invocations from here...
36355         * modules/tsearch (configure.ac): ... to here.
36357 2011-05-22  Bruno Haible  <bruno@clisp.org>
36359         towctrans: Move AC_LIBOBJ invocations to module description.
36360         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
36361         AC_LIBOBJ invocation from here...
36362         * modules/towctrans (configure.ac): ... to here.
36364 2011-05-22  Bruno Haible  <bruno@clisp.org>
36366         tmpfile: Move AC_LIBOBJ invocations to module description.
36367         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
36368         invocations from here...
36369         * modules/tmpfile (configure.ac): ... to here.
36371 2011-05-22  Bruno Haible  <bruno@clisp.org>
36373         times: Move AC_LIBOBJ invocations to module description.
36374         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
36375         * modules/times (configure.ac): ... to here.
36377 2011-05-22  Bruno Haible  <bruno@clisp.org>
36379         time_r: Move AC_LIBOBJ invocations to module description.
36380         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
36381         invocations from here...
36382         * modules/time_r (configure.ac): ... to here.
36384 2011-05-22  Bruno Haible  <bruno@clisp.org>
36386         timegm: Move AC_LIBOBJ invocations to module description.
36387         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
36388         invocations from here...
36389         * modules/timegm (configure.ac): ... to here.
36391 2011-05-22  Bruno Haible  <bruno@clisp.org>
36393         tcgetsid: Move AC_LIBOBJ invocations to module description.
36394         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
36395         and gl_PREREQ_TCGETSID invocations from here...
36396         * modules/tcgetsid (configure.ac): ... to here.
36397         (Depends-on): Update conditions.
36399 2011-05-22  Bruno Haible  <bruno@clisp.org>
36401         symlinkat: Move AC_LIBOBJ invocations to module description.
36402         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
36403         here...
36404         * modules/symlinkat (configure.ac): ... to here.
36406 2011-05-22  Bruno Haible  <bruno@clisp.org>
36408         symlink: Move AC_LIBOBJ invocations to module description.
36409         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
36410         here...
36411         * modules/symlink (configure.ac): ... to here.
36413 2011-05-22  Bruno Haible  <bruno@clisp.org>
36415         strverscmp: Move AC_LIBOBJ invocations to module description.
36416         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
36417         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
36418         from here...
36419         * modules/strverscmp (configure.ac): ... to here.
36421 2011-05-22  Bruno Haible  <bruno@clisp.org>
36423         strtok_r: Move AC_LIBOBJ invocations to module description.
36424         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
36425         and gl_PREREQ_STRTOK_R invocations from here...
36426         * modules/strtok_r (configure.ac): ... to here.
36427         (Depends-on): Update conditions.
36429 2011-05-22  Bruno Haible  <bruno@clisp.org>
36431         strtoumax: Move AC_LIBOBJ invocations to module description.
36432         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
36433         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
36434         from here...
36435         * modules/strtoumax (configure.ac): ... to here.
36437 2011-05-22  Bruno Haible  <bruno@clisp.org>
36439         strtoimax: Move AC_LIBOBJ invocations to module description.
36440         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
36441         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
36442         from here...
36443         * modules/strtoimax (configure.ac): ... to here.
36445 2011-05-22  Bruno Haible  <bruno@clisp.org>
36447         strtoull: Move AC_LIBOBJ invocations to module description.
36448         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
36449         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
36450         from here...
36451         * modules/strtoull (configure.ac): ... to here.
36453 2011-05-22  Bruno Haible  <bruno@clisp.org>
36455         strtoll: Move AC_LIBOBJ invocations to module description.
36456         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
36457         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
36458         here...
36459         * modules/strtoll (configure.ac): ... to here.
36461 2011-05-22  Bruno Haible  <bruno@clisp.org>
36463         strtoul: Move AC_LIBOBJ invocations to module description.
36464         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
36465         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
36466         * modules/strtoul (configure.ac): ... to here.
36468 2011-05-22  Bruno Haible  <bruno@clisp.org>
36470         strtol: Move AC_LIBOBJ invocations to module description.
36471         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
36472         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
36473         * modules/strtol (configure.ac): ... to here.
36475 2011-05-22  Bruno Haible  <bruno@clisp.org>
36477         strtod: Move AC_LIBOBJ invocations to module description.
36478         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
36479         invocations from here...
36480         * modules/strtod (configure.ac): ... to here.
36482 2011-05-22  Bruno Haible  <bruno@clisp.org>
36484         strstr*: Move AC_LIBOBJ invocations to module description.
36485         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
36486         invocations from here...
36487         * modules/strstr-simple (configure.ac): ... to here.
36488         * modules/strstr (configure.ac): ... and here.
36490 2011-05-22  Bruno Haible  <bruno@clisp.org>
36492         strsignal: Move AC_LIBOBJ invocations to module description.
36493         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
36494         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
36495         * modules/strsignal (configure.ac): ... to here.
36496         (Depends-on): Update conditions.
36498 2011-05-22  Bruno Haible  <bruno@clisp.org>
36500         strsep: Move AC_LIBOBJ invocations to module description.
36501         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
36502         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
36503         here...
36504         * modules/strsep (configure.ac): ... to here.
36506 2011-05-22  Bruno Haible  <bruno@clisp.org>
36508         strptime: Move AC_LIBOBJ invocations to module description.
36509         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
36510         gl_PREREQ_STRPTIME invocations from here...
36511         * modules/strptime (configure.ac): ... to here.
36513 2011-05-22  Bruno Haible  <bruno@clisp.org>
36515         strpbrk: Move AC_LIBOBJ invocations to module description.
36516         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
36517         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
36518         here...
36519         * modules/strpbrk (configure.ac): ... to here.
36521 2011-05-22  Bruno Haible  <bruno@clisp.org>
36523         strnlen: Move AC_LIBOBJ invocations to module description.
36524         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
36525         invocations from here...
36526         * modules/strnlen (configure.ac): ... to here.
36528 2011-05-22  Bruno Haible  <bruno@clisp.org>
36530         strndup: Move AC_LIBOBJ invocations to module description.
36531         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
36532         invocations from here...
36533         * modules/strndup (configure.ac): ... to here.
36534         (Depends-on): Update conditions.
36536 2011-05-22  Bruno Haible  <bruno@clisp.org>
36538         strncat: Move AC_LIBOBJ invocations to module description.
36539         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
36540         invocations from here...
36541         * modules/strncat (configure.ac): ... to here.
36543 2011-05-22  Bruno Haible  <bruno@clisp.org>
36545         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
36546         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
36547         invocations from here...
36548         * modules/strdup (configure.ac): ... to here.
36549         * modules/strdup-posix (configure.ac): ... and here.
36551 2011-05-22  Bruno Haible  <bruno@clisp.org>
36553         strcspn: Move AC_LIBOBJ invocations to module description.
36554         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
36555         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
36556         here...
36557         * modules/strcspn (configure.ac): ... to here.
36559 2011-05-22  Bruno Haible  <bruno@clisp.org>
36561         strchrnul: Move AC_LIBOBJ invocations to module description.
36562         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
36563         gl_PREREQ_STRCHRNUL invocations from here...
36564         * modules/strchrnul (configure.ac): ... to here.
36566 2011-05-22  Bruno Haible  <bruno@clisp.org>
36568         strcasestr*: Move AC_LIBOBJ invocations to module description.
36569         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
36570         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
36571         * modules/strcasestr-simple (configure.ac): ... to here.
36572         * modules/strcasestr (configure.ac): ... and here.
36574 2011-05-22  Bruno Haible  <bruno@clisp.org>
36576         strcase: Move AC_LIBOBJ invocations to module description.
36577         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
36578         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
36579         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
36580         gl_PREREQ_STRNCASECMP invocations from here...
36581         * modules/strcase (configure.ac): ... to here.
36583 2011-05-22  Bruno Haible  <bruno@clisp.org>
36585         stpncpy: Move AC_LIBOBJ invocations to module description.
36586         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
36587         here...
36588         * modules/stpncpy (configure.ac): ... to here.
36590 2011-05-22  Bruno Haible  <bruno@clisp.org>
36592         stpcpy: Move AC_LIBOBJ invocations to module description.
36593         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
36594         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
36595         here...
36596         * modules/stpcpy (configure.ac): ... to here.
36598 2011-05-21  Bruno Haible  <bruno@clisp.org>
36600         stat: Move AC_LIBOBJ invocations to module description.
36601         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
36602         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
36603         here...
36604         * modules/stat (configure.ac): ... to here.
36606 2011-05-21  Bruno Haible  <bruno@clisp.org>
36608         sleep: Move AC_LIBOBJ invocations to module description.
36609         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
36610         * modules/sleep (configure.ac): ... to here.
36612 2011-05-21  Bruno Haible  <bruno@clisp.org>
36614         signbit: Move AC_LIBOBJ invocations to module description.
36615         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
36616         * modules/signbit (configure.ac): ... to here.
36618 2011-05-21  Bruno Haible  <bruno@clisp.org>
36620         sigprocmask: Move AC_LIBOBJ invocations to module description.
36621         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
36622         gl_PREREQ_SIGPROMASK invocations from here...
36623         * modules/sigprocmask (configure.ac): ... to here.
36625 2011-05-21  Bruno Haible  <bruno@clisp.org>
36627         sigaction: Move AC_LIBOBJ invocations to module description.
36628         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
36629         gl_PREREQ_SIGACTION invocations from here...
36630         * modules/sigaction (configure.ac): ... to here.
36632 2011-05-21  Bruno Haible  <bruno@clisp.org>
36634         sig2str: Move AC_LIBOBJ invocations to module description.
36635         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
36636         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
36637         here...
36638         * modules/sig2str (configure.ac): ... to here.
36640 2011-05-21  Bruno Haible  <bruno@clisp.org>
36642         setlocale: Move AC_LIBOBJ invocations to module description.
36643         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
36644         gl_PREREQ_SETLOCALE invocations from here...
36645         * modules/setlocale (configure.ac): ... to here.
36647 2011-05-21  Bruno Haible  <bruno@clisp.org>
36649         unsetenv: Move AC_LIBOBJ invocations to module description.
36650         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
36651         and gl_PREREQ_UNSETENV invocations from here...
36652         * modules/unsetenv (configure.ac): ... to here.
36653         (Depends-on): Update.
36655 2011-05-21  Bruno Haible  <bruno@clisp.org>
36657         setenv: Move AC_LIBOBJ invocations to module description.
36658         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
36659         here...
36660         * modules/setenv (configure.ac): ... to here.
36662 2011-05-21  Bruno Haible  <bruno@clisp.org>
36664         selinux-h: Move AC_LIBOBJ invocations to module description.
36665         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
36666         AC_LIBOBJ invocation from here...
36667         * modules/selinux-h (configure.ac): ... to here.
36669 2011-05-21  Bruno Haible  <bruno@clisp.org>
36671         select: Respect rules for use of AC_LIBOBJ.
36672         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
36673         here...
36674         * modules/select (configure.ac): ... to here.
36676 2011-05-21  Bruno Haible  <bruno@clisp.org>
36678         scandir: Move AC_LIBOBJ invocations to module description.
36679         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
36680         invocations from here...
36681         * modules/scandir (configure.ac): ... to here.
36683 2011-05-21  Bruno Haible  <bruno@clisp.org>
36685         rpmatch: Move AC_LIBOBJ invocations to module description.
36686         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
36687         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
36688         here...
36689         * modules/rpmatch (configure.ac): ... to here.
36691 2011-05-21  Bruno Haible  <bruno@clisp.org>
36693         rmdir: Respect rules for use of AC_LIBOBJ.
36694         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
36695         * modules/rmdir (configure.ac): ... to here.
36697 2011-05-21  Bruno Haible  <bruno@clisp.org>
36699         renameat: Move AC_LIBOBJ invocations to module description.
36700         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
36701         here...
36702         * modules/renameat (configure.ac): ... to here.
36704 2011-05-21  Bruno Haible  <bruno@clisp.org>
36706         rename: Respect rules for use of AC_LIBOBJ.
36707         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
36708         here...
36709         * modules/rename (configure.ac): ... to here.
36711 2011-05-21  Bruno Haible  <bruno@clisp.org>
36713         remove: Move AC_LIBOBJ invocations to module description.
36714         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
36715         here...
36716         * modules/remove (configure.ac): ... to here.
36718 2011-05-21  Bruno Haible  <bruno@clisp.org>
36720         relocatable-lib: Move AC_LIBOBJ invocations to module description.
36721         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
36722         macro.
36723         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
36724         * modules/relocatable-lib (configure.ac): ... to here.
36725         * modules/relocatable-prog-wrapper (configure.ac): Invoke
36726         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
36728 2011-05-21  Bruno Haible  <bruno@clisp.org>
36730         relocatable-prog: Move AC_LIBOBJ invocations to module description.
36731         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
36732         here...
36733         * modules/relocatable-prog (configure.ac): ... to here.
36735 2011-05-21  Bruno Haible  <bruno@clisp.org>
36737         regex: Move AC_LIBOBJ invocations to module description.
36738         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
36739         invocations from here...
36740         * modules/regex (configure.ac): ... to here.
36742 2011-05-21  Bruno Haible  <bruno@clisp.org>
36744         realloc-*: Move AC_LIBOBJ invocations to module description.
36745         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
36746         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
36747         AC_LIBOBJ invocations from here...
36748         * modules/realloc-gnu (configure.ac): ... to here.
36749         * modules/realloc-posix (configure.ac): ... and here.
36751 2011-05-21  Bruno Haible  <bruno@clisp.org>
36753         readutmp: Move AC_LIBOBJ invocations to module description.
36754         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
36755         * modules/readutmp (configure.ac): ... to here.
36757 2011-05-21  Bruno Haible  <bruno@clisp.org>
36759         readlinkat: Move AC_LIBOBJ invocations to module description.
36760         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
36761         here...
36762         * modules/readlinkat (configure.ac): ... to here.
36764 2011-05-21  Bruno Haible  <bruno@clisp.org>
36766         readlink: Move AC_LIBOBJ invocations to module description.
36767         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
36768         gl_PREREQ_READLINK invocations from here...
36769         * modules/readlink (configure.ac): ... to here.
36771 2011-05-21  Bruno Haible  <bruno@clisp.org>
36773         readline: Move AC_LIBOBJ invocations to module description.
36774         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
36775         gl_PREREQ_READLINE invocations from here...
36776         * modules/readline (configure.ac): ... to here.
36778 2011-05-21  Bruno Haible  <bruno@clisp.org>
36780         read: Move AC_LIBOBJ invocations to module description.
36781         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
36782         * modules/read (configure.ac): ... to here.
36784 2011-05-21  Bruno Haible  <bruno@clisp.org>
36786         rawmemchr: Move AC_LIBOBJ invocations to module description.
36787         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
36788         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
36789         from here...
36790         * modules/rawmemchr (configure.ac): ... to here.
36792 2011-05-21  Bruno Haible  <bruno@clisp.org>
36794         random_r: Move AC_LIBOBJ invocations to module description.
36795         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
36796         gl_PREREQ_RANDOM_R invocations from here...
36797         * modules/random_r (configure.ac): ... to here.
36799 2011-05-21  Bruno Haible  <bruno@clisp.org>
36801         pwrite: Move AC_LIBOBJ invocations to module description.
36802         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
36803         * modules/pwrite (configure.ac): ... to here.
36805 2011-05-21  Bruno Haible  <bruno@clisp.org>
36807         putenv: Move AC_LIBOBJ invocations to module description.
36808         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
36809         * modules/putenv (configure.ac): ... to here.
36811 2011-05-21  Bruno Haible  <bruno@clisp.org>
36813         login_tty: Move AC_LIBOBJ invocations to module description.
36814         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
36815         * modules/login_tty (configure.ac): ... to here.
36817 2011-05-21  Bruno Haible  <bruno@clisp.org>
36819         openpty: Move AC_LIBOBJ invocations to module description.
36820         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
36821         * modules/openpty (configure.ac): ... to here.
36823 2011-05-21  Bruno Haible  <bruno@clisp.org>
36825         forkpty: Move AC_LIBOBJ invocations to module description.
36826         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
36827         * modules/forkpty (configure.ac): ... to here.
36829 2011-05-21  Bruno Haible  <bruno@clisp.org>
36831         ptsname: Move AC_LIBOBJ invocations to module description.
36832         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
36833         invocations from here...
36834         * modules/ptsname (configure.ac): ... to here.
36836 2011-05-21  Bruno Haible  <bruno@clisp.org>
36838         pread: Move AC_LIBOBJ invocations to module description.
36839         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
36840         * modules/pread (configure.ac): ... to here.
36842 2011-05-21  Bruno Haible  <bruno@clisp.org>
36844         posix_spawn*: Move AC_LIBOBJ invocations to module description.
36845         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
36846         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
36847         * modules/posix_spawn (configure.ac): ... to here.
36848         * modules/posix_spawnp (configure.ac): ... and here.
36850 2011-05-21  Bruno Haible  <bruno@clisp.org>
36852         popen: Move AC_LIBOBJ invocations to module description.
36853         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
36854         invocations from here...
36855         * modules/popen (configure.ac): ... to here.
36857 2011-05-21  Bruno Haible  <bruno@clisp.org>
36859         poll: Move AC_LIBOBJ invocations to module description.
36860         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
36861         invocations from here...
36862         * modules/poll (configure.ac): ... to here.
36864 2011-05-21  Bruno Haible  <bruno@clisp.org>
36866         pipe-posix: Move AC_LIBOBJ invocations to module description.
36867         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
36868         * modules/pipe-posix (configure.ac): ... to here.
36870 2011-05-21  Bruno Haible  <bruno@clisp.org>
36872         openat: Respect rules for use of AC_LIBOBJ.
36873         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
36874         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
36875         * modules/openat (configure.ac): ... to here.
36877 2011-05-21  Bruno Haible  <bruno@clisp.org>
36879         obstack-printf*: Move AC_LIBOBJ invocations to module description.
36880         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
36881         invocation from here...
36882         * modules/obstack-printf (configure.ac): ... to here.
36883         * modules/obstack-printf-posix (configure.ac): ... and here.
36885 2011-05-21  Bruno Haible  <bruno@clisp.org>
36887         nl_langinfo: Move AC_LIBOBJ invocations to module description.
36888         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
36889         from here...
36890         * modules/nl_langinfo (configure.ac): ... to here.
36892 2011-05-21  Bruno Haible  <bruno@clisp.org>
36894         nanosleep: Move AC_LIBOBJ invocations to module description.
36895         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
36896         gl_PREREQ_NANOSLEEP invocations from here...
36897         * modules/nanosleep (configure.ac): ... to here.
36899 2011-05-21  Bruno Haible  <bruno@clisp.org>
36901         mountlist: Move AC_LIBOBJ invocations to module description.
36902         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
36903         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
36904         * modules/mountlist (configure.ac): ... to here.
36906 2011-05-21  Bruno Haible  <bruno@clisp.org>
36908         mktime: Respect rules for use of AC_LIBOBJ.
36909         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
36910         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
36911         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
36912         (gl_FUNC_MKTIME_INTERNAL): ... and here...
36913         * modules/mktime (configure.ac): ... to here.
36914         * modules/mktime-internal (configure.ac): ... and here.
36915         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
36917 2011-05-21  Bruno Haible  <bruno@clisp.org>
36919         mkstemps: Move AC_LIBOBJ invocations to module description.
36920         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
36921         here...
36922         * modules/mkstemps (configure.ac): ... to here.
36924 2011-05-21  Bruno Haible  <bruno@clisp.org>
36926         mkstemp: Move AC_LIBOBJ invocations to module description.
36927         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
36928         gl_PREREQ_MKSTEMP invocations from here...
36929         * modules/mkstemp (configure.ac): ... to here.
36931 2011-05-21  Bruno Haible  <bruno@clisp.org>
36933         mkostemps: Move AC_LIBOBJ invocations to module description.
36934         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
36935         here...
36936         * modules/mkostemps (configure.ac): ... to here.
36938 2011-05-21  Bruno Haible  <bruno@clisp.org>
36940         mkostemp: Move AC_LIBOBJ invocations to module description.
36941         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
36942         gl_PREREQ_MKOSTEMP invocations from here...
36943         * modules/mkostemp (configure.ac): ... to here.
36945 2011-05-21  Bruno Haible  <bruno@clisp.org>
36947         mknod: Move AC_LIBOBJ invocations to module description.
36948         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
36949         * modules/mknod (configure.ac): ... to here.
36951 2011-05-21  Bruno Haible  <bruno@clisp.org>
36953         mkfifoat: Move AC_LIBOBJ invocations to module description.
36954         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
36955         here...
36956         * modules/mkfifoat (configure.ac): ... to here.
36958 2011-05-21  Bruno Haible  <bruno@clisp.org>
36960         mkfifo: Respect rules for use of AC_LIBOBJ.
36961         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
36962         here...
36963         * modules/mkfifo (configure.ac): ... to here.
36965 2011-05-21  Bruno Haible  <bruno@clisp.org>
36967         mkdtemp: Move AC_LIBOBJ invocations to module description.
36968         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
36969         invocations from here...
36970         * modules/mkdtemp (configure.ac): ... to here.
36972 2011-05-21  Bruno Haible  <bruno@clisp.org>
36974         mkdir: Move AC_LIBOBJ invocations to module description.
36975         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
36976         * modules/mkdir (configure.ac): ... to here.
36978 2011-05-21  Bruno Haible  <bruno@clisp.org>
36980         memset: Move AC_LIBOBJ invocations to module description.
36981         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
36982         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
36983         here...
36984         * modules/memset (configure.ac): ... to here.
36986 2011-05-21  Bruno Haible  <bruno@clisp.org>
36988         memrchr: Move AC_LIBOBJ invocations to module description.
36989         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
36990         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
36991         here...
36992         * modules/memrchr (configure.ac): ... to here.
36994 2011-05-21  Bruno Haible  <bruno@clisp.org>
36996         mempcpy: Move AC_LIBOBJ invocations to module description.
36997         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
36998         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
36999         here...
37000         * modules/mempcpy (configure.ac): ... to here.
37002 2011-05-21  Bruno Haible  <bruno@clisp.org>
37004         memmove: Move AC_LIBOBJ invocations to module description.
37005         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
37006         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
37007         here...
37008         * modules/memmove (configure.ac): ... to here.
37010 2011-05-21  Bruno Haible  <bruno@clisp.org>
37012         memmem*: Move AC_LIBOBJ invocations to module description.
37013         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
37014         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
37015         here...
37016         (gl_FUNC_MEMMEM): ... and here...
37017         * modules/memmem-simple (configure.ac): ... to here.
37018         * modules/memmem (configure.ac): ... and here.
37020 2011-05-21  Bruno Haible  <bruno@clisp.org>
37022         memcpy: Move AC_LIBOBJ invocations to module description.
37023         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
37024         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
37025         here...
37026         * modules/memcpy (configure.ac): ... to here.
37028 2011-05-21  Bruno Haible  <bruno@clisp.org>
37030         memcmp: Simplify autoconf macro.
37031         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
37032         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
37033         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
37035 2011-05-21  Bruno Haible  <bruno@clisp.org>
37037         memcmp: Move AC_LIBOBJ invocations to module description.
37038         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
37039         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
37040         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
37041         * modules/memcmp (configure.ac): ... to here.
37042         (Depends-on): Update conditions.
37044 2011-05-21  Bruno Haible  <bruno@clisp.org>
37046         memchr: Respect rules for use of AC_LIBOBJ.
37047         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
37048         invocations from here...
37049         * modules/memchr (configure.ac): ... to here.
37051 2011-05-21  Bruno Haible  <bruno@clisp.org>
37053         mbtowc: Move AC_LIBOBJ invocations to module description.
37054         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
37055         invocations from here...
37056         * modules/mbtowc (configure.ac): ... to here.
37058 2011-05-21  Bruno Haible  <bruno@clisp.org>
37060         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
37061         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
37062         gl_PREREQ_MBSRTOWCS invocations from here...
37063         * modules/mbsrtowcs (configure.ac): ... to here.
37065 2011-05-21  Bruno Haible  <bruno@clisp.org>
37067         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
37068         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
37069         gl_PREREQ_MBSNRTOWCS invocations from here...
37070         * modules/mbsnrtowcs (configure.ac): ... to here.
37072 2011-05-21  Bruno Haible  <bruno@clisp.org>
37074         mbsinit: Move AC_LIBOBJ invocations to module description.
37075         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
37076         invocations from here...
37077         * modules/mbsinit (configure.ac): ... to here.
37079 2011-05-21  Bruno Haible  <bruno@clisp.org>
37081         mbrlen: Move AC_LIBOBJ invocations to module description.
37082         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
37083         invocations from here...
37084         * modules/mbrlen (configure.ac): ... to here.
37086 2011-05-21  Bruno Haible  <bruno@clisp.org>
37088         mbrtowc: Respect rules for use of AC_LIBOBJ.
37089         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
37090         invocations from here...
37091         * modules/mbrtowc (configure.ac): ... to here.
37093 2011-05-21  Bruno Haible  <bruno@clisp.org>
37095         malloc-*: Move AC_LIBOBJ invocations to module description.
37096         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
37097         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
37098         AC_LIBOBJ invocations from here...
37099         * modules/malloc-gnu (configure.ac): ... to here.
37100         * modules/malloc-posix (configure.ac): ... and here.
37102 2011-05-21  Bruno Haible  <bruno@clisp.org>
37104         lstat, openat: Respect rules for use of AC_LIBOBJ.
37105         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
37106         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
37107         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
37108         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
37109         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
37110         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
37111         here.
37112         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
37114 2011-05-21  Bruno Haible  <bruno@clisp.org>
37116         lseek: Move AC_LIBOBJ invocations to module description.
37117         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
37118         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
37119         * modules/lseek (configure.ac): ... to here.
37121 2011-05-21  Bruno Haible  <bruno@clisp.org>
37123         linkat: Move AC_LIBOBJ invocations to module description.
37124         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
37125         here...
37126         * modules/linkat (configure.ac): ... to here.
37128 2011-05-21  Bruno Haible  <bruno@clisp.org>
37130         link: Respect rules for use of AC_LIBOBJ.
37131         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
37132         * modules/link (configure.ac): ... to here.
37134 2011-05-21  Bruno Haible  <bruno@clisp.org>
37136         lchown: Move AC_LIBOBJ invocations to module description.
37137         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
37138         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
37139         * modules/lchown (configure.ac): ... to here.
37141 2011-05-21  Bruno Haible  <bruno@clisp.org>
37143         iswctype: Move AC_LIBOBJ invocations to module description.
37144         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
37145         here...
37146         * modules/iswctype (configure.ac): ... to here.
37148 2011-05-21  Bruno Haible  <bruno@clisp.org>
37150         iswblank: Move AC_LIBOBJ invocations to module description.
37151         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
37152         here...
37153         * modules/iswblank (configure.ac): ... to here.
37155 2011-05-21  Bruno Haible  <bruno@clisp.org>
37157         atanl: Move AC_LIBOBJ invocations to module description.
37158         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
37159         * modules/atanl (configure.ac): ... to here.
37161 2011-05-21  Bruno Haible  <bruno@clisp.org>
37163         acosl: Move AC_LIBOBJ invocations to module description.
37164         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
37165         * modules/acosl (configure.ac): ... to here.
37167 2011-05-21  Bruno Haible  <bruno@clisp.org>
37169         asinl: Respect rules for use of AC_LIBOBJ.
37170         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
37171         * modules/asinl (configure.ac): ... to here.
37173 2011-05-21  Bruno Haible  <bruno@clisp.org>
37175         tanl: Move AC_LIBOBJ invocations to module description.
37176         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
37177         * modules/tanl (configure.ac): ... to here.
37179 2011-05-21  Bruno Haible  <bruno@clisp.org>
37181         cosl: Move AC_LIBOBJ invocations to module description.
37182         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
37183         * modules/cosl (configure.ac): ... to here.
37185 2011-05-21  Bruno Haible  <bruno@clisp.org>
37187         sinl: Move AC_LIBOBJ invocations to module description.
37188         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
37189         * modules/sinl (configure.ac): ... to here.
37191 2011-05-21  Bruno Haible  <bruno@clisp.org>
37193         logl: Move AC_LIBOBJ invocations to module description.
37194         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
37195         * modules/logl (configure.ac): ... to here.
37197 2011-05-21  Bruno Haible  <bruno@clisp.org>
37199         expl: Move AC_LIBOBJ invocations to module description.
37200         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
37201         * modules/expl (configure.ac): ... to here.
37203 2011-05-21  Bruno Haible  <bruno@clisp.org>
37205         roundl: Move AC_LIBOBJ invocations to module description.
37206         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
37207         * modules/roundl (configure.ac): ... to here.
37209 2011-05-21  Bruno Haible  <bruno@clisp.org>
37211         round: Move AC_LIBOBJ invocations to module description.
37212         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
37213         * modules/round (configure.ac): ... to here.
37215 2011-05-21  Bruno Haible  <bruno@clisp.org>
37217         roundf: Move AC_LIBOBJ invocations to module description.
37218         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
37219         * modules/roundf (configure.ac): ... to here.
37221 2011-05-21  Bruno Haible  <bruno@clisp.org>
37223         truncl: Move AC_LIBOBJ invocations to module description.
37224         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
37225         * modules/truncl (configure.ac): ... to here.
37227 2011-05-21  Bruno Haible  <bruno@clisp.org>
37229         trunc: Move AC_LIBOBJ invocations to module description.
37230         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
37231         * modules/trunc (configure.ac): ... to here.
37233 2011-05-21  Bruno Haible  <bruno@clisp.org>
37235         truncf: Move AC_LIBOBJ invocations to module description.
37236         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
37237         * modules/truncf (configure.ac): ... to here.
37239 2011-05-21  Bruno Haible  <bruno@clisp.org>
37241         ceill: Move AC_LIBOBJ invocations to module description.
37242         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
37243         * modules/ceill (configure.ac): ... to here.
37245 2011-05-21  Bruno Haible  <bruno@clisp.org>
37247         ceil: Move AC_LIBOBJ invocations to module description.
37248         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
37249         * modules/ceil (configure.ac): ... to here.
37251 2011-05-21  Bruno Haible  <bruno@clisp.org>
37253         ceilf: Move AC_LIBOBJ invocations to module description.
37254         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
37255         * modules/ceilf (configure.ac): ... to here.
37257 2011-05-21  Bruno Haible  <bruno@clisp.org>
37259         floorl: Respect rules for use of AC_LIBOBJ.
37260         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
37261         * modules/floorl (configure.ac): ... to here.
37263 2011-05-21  Bruno Haible  <bruno@clisp.org>
37265         floor: Respect rules for use of AC_LIBOBJ.
37266         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
37267         * modules/floor (configure.ac): ... to here.
37269 2011-05-21  Bruno Haible  <bruno@clisp.org>
37271         floorf: Move AC_LIBOBJ invocations to module description.
37272         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
37273         * modules/floorf (configure.ac): ... to here.
37275 2011-05-20  Bruno Haible  <bruno@clisp.org>
37277         sqrtl: Respect rules for use of AC_LIBOBJ.
37278         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
37279         * modules/sqrtl (configure.ac): ... to here.
37281 2011-05-20  Bruno Haible  <bruno@clisp.org>
37283         ldexpl: Respect rules for use of AC_LIBOBJ.
37284         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
37285         * modules/ldexpl (configure.ac): ... to here.
37287 2011-05-20  Bruno Haible  <bruno@clisp.org>
37289         frexpl*: Respect rules for use of AC_LIBOBJ.
37290         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
37291         invocation from here...
37292         * modules/frexpl (configure.ac): ... to here.
37293         * modules/frexpl-nolibm (configure.ac): ... and here.
37295 2011-05-20  Bruno Haible  <bruno@clisp.org>
37297         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
37298         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
37299         invocation from here...
37300         * modules/frexp (configure.ac): ... to here.
37301         * modules/frexp-nolibm (configure.ac): ... and here.
37303 2011-05-20  Bruno Haible  <bruno@clisp.org>
37305         isnan: Respect rules for use of AC_LIBOBJ.
37306         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
37307         invocations here.
37308         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
37309         REPLACE_ISNAN.
37310         * modules/isnand (configure.ac): Likewise.
37311         * modules/isnanl (configure.ac): Likewise.
37313 2011-05-20  Bruno Haible  <bruno@clisp.org>
37315         isnanl*: Respect rules for use of AC_LIBOBJ.
37316         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
37317         invocation from here...
37318         * modules/isnanl (configure.ac): ... to here.
37319         * modules/isnanl-nolibm (configure.ac): ... and here.
37321 2011-05-20  Bruno Haible  <bruno@clisp.org>
37323         isnand*: Move AC_LIBOBJ invocations to module description.
37324         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
37325         invocation from here...
37326         * modules/isnand (configure.ac): ... to here.
37327         * modules/isnand-nolibm (configure.ac): ... and here.
37329 2011-05-20  Bruno Haible  <bruno@clisp.org>
37331         isnanf*: Move AC_LIBOBJ invocations to module description.
37332         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
37333         invocation from here...
37334         * modules/isnanf (configure.ac): ... to here.
37335         * modules/isnanf-nolibm (configure.ac): ... and here.
37337 2011-05-20  Bruno Haible  <bruno@clisp.org>
37339         isnan*: Separate the AC_LIBOBJ invocations.
37340         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
37341         AC_LIBOBJ invocation.
37342         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
37343         here.
37344         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
37345         AC_LIBOBJ invocation.
37346         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
37347         here.
37348         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
37349         AC_LIBOBJ invocation.
37350         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
37351         here.
37352         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
37354 2011-05-08  Bruno Haible  <bruno@clisp.org>
37356         isinf: Move AC_LIBOBJ invocations to module description.
37357         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
37358         * modules/isinf (configure.ac): ... to here.
37360 2011-05-08  Bruno Haible  <bruno@clisp.org>
37362         isfinite: Move AC_LIBOBJ invocations to module description.
37363         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
37364         * modules/isfinite (configure.ac): ... to here.
37366 2011-05-08  Bruno Haible  <bruno@clisp.org>
37368         isblank: Move AC_LIBOBJ invocations to module description.
37369         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
37370         here...
37371         * modules/isblank (configure.ac): ... to here.
37373 2011-05-08  Bruno Haible  <bruno@clisp.org>
37375         isapipe: Move AC_LIBOBJ invocations to module description.
37376         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
37377         gl_PREREQ_ISAPIPE invocations from here...
37378         * modules/isapipe (configure.ac): ... to here.
37379         (Depends-on): Update condition.
37381 2011-05-08  Bruno Haible  <bruno@clisp.org>
37383         ioctl: Move AC_LIBOBJ invocations to module description.
37384         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
37385         invocations from here...
37386         * modules/ioctl (configure.ac): ... to here.
37387         (Depends-on): Update condition.
37389 2011-05-08  Bruno Haible  <bruno@clisp.org>
37391         imaxdiv: Move AC_LIBOBJ invocations to module description.
37392         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
37393         invocations from here...
37394         * modules/imaxdiv (configure.ac): ... to here.
37396 2011-05-08  Bruno Haible  <bruno@clisp.org>
37398         imaxabs: Move AC_LIBOBJ invocations to module description.
37399         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
37400         invocations from here...
37401         * modules/imaxabs (configure.ac): ... to here.
37403 2011-05-08  Bruno Haible  <bruno@clisp.org>
37405         getaddrinfo: Move AC_LIBOBJ invocations to module description.
37406         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
37407         AC_LIBOBJ invocations from here...
37408         * modules/getaddrinfo (configure.ac): ... to here.
37409         (Depends-on): Add conditions.
37411 2011-05-08  Bruno Haible  <bruno@clisp.org>
37413         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
37414         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
37415         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
37416         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
37417         (gl_PREREQ_INET_PTON): ... from here.
37418         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
37419         gl_PREREQ_INET_PTON here.
37420         (Depends-on): Update condition.
37422 2011-05-08  Bruno Haible  <bruno@clisp.org>
37424         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
37425         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
37426         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
37427         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
37428         (gl_PREREQ_INET_NTOP): ... from here.
37429         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
37430         gl_PREREQ_INET_NTOP here.
37431         (Depends-on): Update condition.
37433 2011-05-08  Bruno Haible  <bruno@clisp.org>
37435         iconv_open: Move AC_LIBOBJ invocations to module description.
37436         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
37437         AC_LIBOBJ invocations from here...
37438         * modules/iconv_open (configure.ac): ... to here.
37440 2011-05-08  Bruno Haible  <bruno@clisp.org>
37442         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
37443         If module 'iconv_open' is among the main modules and module
37444         'iconv_open-utf' is among the tests dependencies, then
37445         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
37446         return the special iconv_t values. Therefore iconv() and iconv_close()
37447         must support these special iconv_t values, already in lib, not only in
37448         tests.
37449         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
37450         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
37451         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
37452         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
37453         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
37454         (Depends-on): Add the dependencies of iconv_open-utf.
37455         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
37456         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
37457         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
37459 2011-05-08  Bruno Haible  <bruno@clisp.org>
37461         group-member: Move AC_LIBOBJ invocations to module description.
37462         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
37463         gl_PREREQ_GROUP_MEMBER invocations from here...
37464         * modules/group-member (configure.ac): ... to here.
37466 2011-05-08  Bruno Haible  <bruno@clisp.org>
37468         grantpt: Move AC_LIBOBJ invocations to module description.
37469         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
37470         invocations from here...
37471         * modules/grantpt (configure.ac): ... to here.
37473 2011-05-08  Bruno Haible  <bruno@clisp.org>
37475         glob: Move AC_LIBOBJ invocations to module description.
37476         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
37477         from here...
37478         * modules/glob (configure.ac): ... to here.
37480 2011-05-08  Bruno Haible  <bruno@clisp.org>
37482         getusershell: Move AC_LIBOBJ invocations to module description.
37483         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
37484         Move AC_LIBOBJ invocation from here...
37485         * modules/getusershell (configure.ac): ... to here.
37486         (Depends-on): Update condition.
37488 2011-05-08  Bruno Haible  <bruno@clisp.org>
37490         gettimeofday: Move AC_LIBOBJ invocations to module description.
37491         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
37492         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
37493         gl_PREREQ_GETTIMEOFDAY invocations from here...
37494         * modules/gettimeofday (configure.ac): ... to here.
37496 2011-05-08  Bruno Haible  <bruno@clisp.org>
37498         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
37499         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
37500         just gl_FUNC_TZSET.
37501         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
37502         (gl_FUNC_TZSET_CLOBBER): Remove actions.
37503         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
37504         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
37506 2011-05-08  Bruno Haible  <bruno@clisp.org>
37508         getsubopt: Move AC_LIBOBJ invocations to module description.
37509         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
37510         gl_PREREQ_GETSUBOPT invocations from here...
37511         * modules/getsubopt (configure.ac): ... to here.
37513 2011-05-08  Bruno Haible  <bruno@clisp.org>
37515         getpass-gnu: Move AC_LIBOBJ invocations to module description.
37516         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
37517         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
37518         * modules/getpass-gnu (configure.ac): ... to here.
37520 2011-05-08  Bruno Haible  <bruno@clisp.org>
37522         getpass: Move AC_LIBOBJ invocations to module description.
37523         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
37524         gl_PREREQ_GETPASS invocations from here...
37525         * modules/getpass (configure.ac): ... to here.
37527 2011-05-08  Bruno Haible  <bruno@clisp.org>
37529         getpagesize: Move AC_LIBOBJ invocations to module description.
37530         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
37531         from here...
37532         * modules/getpagesize (configure.ac): ... to here.
37534 2011-05-08  Bruno Haible  <bruno@clisp.org>
37536         getopt: Move AC_LIBOBJ invocations to module description.
37537         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
37538         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
37539         invocations from here...
37540         * modules/getopt-gnu (configure.ac): ... to here.
37541         * modules/getopt-posix (configure.ac): ... and here.
37542         (Depends-on): Update condition.
37544 2011-05-08  Bruno Haible  <bruno@clisp.org>
37546         getopt, argp: Respect rules for use of AC_LIBOBJ.
37547         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
37548         (gl_REPLACE_GETOPT_ALWAYS): New macro.
37549         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
37550         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
37552 2011-05-08  Bruno Haible  <bruno@clisp.org>
37554         getlogin_r: Move AC_LIBOBJ invocations to module description.
37555         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
37556         gl_PREREQ_GETLOGIN_R invocations from here...
37557         * modules/getlogin_r (configure.ac): ... to here.
37559 2011-05-08  Bruno Haible  <bruno@clisp.org>
37561         getlogin: Move AC_LIBOBJ invocations to module description.
37562         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
37563         here...
37564         * modules/getlogin (configure.ac): ... to here.
37566 2011-05-08  Bruno Haible  <bruno@clisp.org>
37568         getloadavg: Move AC_LIBOBJ invocations to module description.
37569         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
37570         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
37571         * modules/getloadavg (configure.ac): ... to here.
37573 2011-05-08  Bruno Haible  <bruno@clisp.org>
37575         gethrxtime: Move AC_LIBOBJ invocations to module description.
37576         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
37577         LIB_GETHRXTIME from here...
37578         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
37579         invocations from here...
37580         * modules/gethrxtime (configure.ac): ... to here.
37582 2011-05-08  Bruno Haible  <bruno@clisp.org>
37584         gethostname: Move AC_LIBOBJ invocations to module description.
37585         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
37586         gl_PREREQ_GETHOSTNAME invocations from here...
37587         * modules/gethostname (configure.ac): ... to here.
37589 2011-05-08  Bruno Haible  <bruno@clisp.org>
37591         getgroups: Move AC_LIBOBJ invocations to module description.
37592         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
37593         here...
37594         * modules/getgroups (configure.ac): ... to here.
37596 2011-05-08  Bruno Haible  <bruno@clisp.org>
37598         getdtablesize: Move AC_LIBOBJ invocations to module description.
37599         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
37600         invocation from here...
37601         * modules/getdtablesize (configure.ac): ... to here.
37603 2011-05-08  Bruno Haible  <bruno@clisp.org>
37605         getdomainname: Move AC_LIBOBJ invocations to module description.
37606         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
37607         gl_PREREQ_GETDOMAINNAME invocations from here...
37608         * modules/getdomainname (configure.ac): ... to here.
37610 2011-05-08  Bruno Haible  <bruno@clisp.org>
37612         getline: Move AC_LIBOBJ invocations to module description.
37613         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
37614         invocations from here...
37615         * modules/getline (configure.ac): ... to here.
37617 2011-05-08  Bruno Haible  <bruno@clisp.org>
37619         getline: Simplify.
37620         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
37621         It's already handled through the module dependency.
37623 2011-05-08  Bruno Haible  <bruno@clisp.org>
37625         getdelim: Move AC_LIBOBJ invocations to module description.
37626         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
37627         and gl_PREREQ_GETDELIM invocations from here...
37628         * modules/getdelim (configure.ac): ... to here.
37629         (Depends-on): Fix condition.
37631 2011-05-08  Bruno Haible  <bruno@clisp.org>
37633         getcwd: Move AC_LIBOBJ invocations to module description.
37634         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
37635         invocations from here...
37636         * modules/getcwd (configure.ac): ... to here.
37638 2011-05-08  Bruno Haible  <bruno@clisp.org>
37640         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
37641         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
37642         here...
37643         * modules/getcwd-lgpl (configure.ac): ... to here.
37645 2011-05-07  Bruno Haible  <bruno@clisp.org>
37647         crypto/gc: Move AC_LIBOBJ invocations to module description.
37648         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
37649         * modules/crypto/gc (configure.ac): ... to here.
37651 2011-05-07  Bruno Haible  <bruno@clisp.org>
37653         fwriting: Move AC_LIBOBJ invocations to module description.
37654         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
37655         here...
37656         * modules/fwriting (configure.ac): ... to here.
37658 2011-05-07  Bruno Haible  <bruno@clisp.org>
37660         fwritable: Move AC_LIBOBJ invocations to module description.
37661         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
37662         here...
37663         * modules/fwritable (configure.ac): ... to here.
37665 2011-05-07  Bruno Haible  <bruno@clisp.org>
37667         futimens: Move AC_LIBOBJ invocations to module description.
37668         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
37669         here...
37670         * modules/futimens (configure.ac): ... to here.
37672 2011-05-07  Bruno Haible  <bruno@clisp.org>
37674         ftruncate: Move AC_LIBOBJ invocations to module description.
37675         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
37676         gl_PREREQ_FTRUNCATE invocations from here...
37677         * modules/ftruncate (configure.ac): ... to here.
37679 2011-05-07  Bruno Haible  <bruno@clisp.org>
37681         fsync: Move AC_LIBOBJ invocations to module description.
37682         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
37683         invocations from here...
37684         * modules/fsync (configure.ac): ... to here.
37686 2011-05-07  Bruno Haible  <bruno@clisp.org>
37688         fsusage: Move AC_LIBOBJ invocations to module description.
37689         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
37690         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
37691         * modules/fsusage (configure.ac): ... to here.
37693 2011-05-07  Bruno Haible  <bruno@clisp.org>
37695         freopen: Move AC_LIBOBJ invocations to module description.
37696         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
37697         invocations from here...
37698         * modules/freopen (configure.ac): ... to here.
37700 2011-05-07  Bruno Haible  <bruno@clisp.org>
37702         free: Move AC_LIBOBJ invocations to module description.
37703         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
37704         invocations from here...
37705         * modules/free (configure.ac): ... to here.
37707 2011-05-07  Bruno Haible  <bruno@clisp.org>
37709         freadable: Move AC_LIBOBJ invocations to module description.
37710         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
37711         here...
37712         * modules/freadable (configure.ac): ... to here.
37714 2011-05-07  Bruno Haible  <bruno@clisp.org>
37716         fpurge: Move AC_LIBOBJ invocations to module description.
37717         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
37718         invocations from here...
37719         * modules/fpurge (configure.ac): ... to here.
37721 2011-05-07  Bruno Haible  <bruno@clisp.org>
37723         fpending: Move AC_LIBOBJ invocations to module description.
37724         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
37725         gl_FUNC_FPENDING.
37726         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
37727         invocations from here...
37728         * modules/fpending (configure.ac): ... to here.
37730 2011-05-07  Bruno Haible  <bruno@clisp.org>
37732         fopen: Move AC_LIBOBJ invocations to module description.
37733         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
37734         invocations from here...
37735         * modules/fopen (configure.ac): ... to here.
37737 2011-05-07  Bruno Haible  <bruno@clisp.org>
37739         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
37740         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
37741         gl_FUNC_FNMATCH_POSIX.
37742         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
37743         invocations from here...
37744         * modules/fnmatch (configure.ac): ... to here.
37745         * modules/fnmatch-gnu (configure.ac): ... and here.
37747 2011-05-07  Bruno Haible  <bruno@clisp.org>
37749         flock: Move AC_LIBOBJ invocations to module description.
37750         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
37751         invocations from here...
37752         * modules/flock (configure.ac): ... to here.
37754 2011-05-07  Bruno Haible  <bruno@clisp.org>
37756         fileblocks: Move AC_LIBOBJ invocations to module description.
37757         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
37758         gl_PREREQ_FILEBLOCKS invocations from here...
37759         * modules/fileblocks (configure.ac): ... to here.
37761 2011-05-06  Bruno Haible  <bruno@clisp.org>
37763         fflush: Move AC_LIBOBJ invocations to module description.
37764         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
37765         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
37766         invocations from here...
37767         * modules/fflush (configure.ac): ... to here.
37769 2011-05-06  Bruno Haible  <bruno@clisp.org>
37771         fdopendir: Move AC_LIBOBJ invocations to module description.
37772         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
37773         here...
37774         * modules/fdopendir (configure.ac): ... to here.
37775         (Depends-on): Improve conditions.
37777 2011-05-06  Bruno Haible  <bruno@clisp.org>
37779         _Exit: Move AC_LIBOBJ invocations to module description.
37780         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
37781         invocations from here...
37782         * modules/_Exit (configure.ac): ... to here.
37784 2011-05-21  Bruno Haible  <bruno@clisp.org>
37786         euidaccess: Respect rules for use of AC_LIBOBJ.
37787         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
37788         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
37789         from here...
37790         * modules/euidaccess (configure.ac): ... to here.
37792 2011-05-06  Bruno Haible  <bruno@clisp.org>
37794         error: Move AC_LIBOBJ invocations to module description.
37795         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
37796         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
37797         invocations from here...
37798         * modules/error (configure.ac): ... to here.
37800 2011-05-06  Bruno Haible  <bruno@clisp.org>
37802         duplocale: Move AC_LIBOBJ invocations to module description.
37803         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
37804         gl_PREREQ_DUPLOCALE invocations from here...
37805         * modules/duplocale (configure.ac): ... to here.
37807 2011-05-05  Bruno Haible  <bruno@clisp.org>
37809         dirfd: Move AC_LIBOBJ invocations to module description.
37810         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
37811         gl_FUNC_DIRFD.
37812         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
37813         here...
37814         * modules/dirfd (configure.ac): ... to here.
37815         (Depends-on): Fix condition.
37817 2011-05-05  Bruno Haible  <bruno@clisp.org>
37819         chown: Respect rules for use of AC_LIBOBJ.
37820         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
37821         * modules/chown (configure.ac): ... to here.
37823 2011-05-05  Bruno Haible  <bruno@clisp.org>
37825         chdir-long: Move AC_LIBOBJ invocations to module description.
37826         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
37827         gl_PREREQ_CHDIR_LONG invocations from here...
37828         * modules/chdir-long (configure.ac): ... to here.
37830 2011-05-05  Bruno Haible  <bruno@clisp.org>
37832         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
37833         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
37834         from here...
37835         * modules/canonicalize-lgpl (configure.ac): ... to here.
37837 2011-05-05  Bruno Haible  <bruno@clisp.org>
37839         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
37840         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
37841         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
37842         REPLACE_CALLOC.
37843         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
37844         * modules/calloc-gnu (configure.ac): Likewise.
37846 2011-05-05  Bruno Haible  <bruno@clisp.org>
37848         btowc: Move AC_LIBOBJ invocations to module description.
37849         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
37850         invocations from here...
37851         * modules/btowc (configure.ac): ... to here.
37853 2011-05-21  Bruno Haible  <bruno@clisp.org>
37855         atexit: Move AC_LIBOBJ invocations to module description.
37856         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
37857         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
37858         here...
37859         * modules/atexit (configure.ac): ... to here.
37861 2011-05-05  Bruno Haible  <bruno@clisp.org>
37863         atoll: Move AC_LIBOBJ invocations to module description.
37864         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
37865         invocations from here...
37866         * modules/atoll (configure.ac): ... to here.
37868 2011-05-05  Bruno Haible  <bruno@clisp.org>
37870         argz: Move AC_LIBOBJ invocations to module description.
37871         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
37872         * modules/argz (configure.ac): ... to here.
37874 2011-05-05  Bruno Haible  <bruno@clisp.org>
37876         alphasort: Move AC_LIBOBJ invocations to module description.
37877         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
37878         gl_PREREQ_ALPHASORT invocations from here...
37879         * modules/alphasort (configure.ac): ... to here.
37881 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
37883         verify: new macro verify_expr; verify_true deprecated
37884         * NEWS: Mention this.
37885         * doc/verify.texi (Compile-time Assertions): Document this.
37886         * lib/verify.h (verify_true): Deprecate.
37887         (verify_expr): New macro.
37888         * tests/test-verify.c (function): Test verify_expr.
37890 2011-06-14  Jim Meyering  <meyering@redhat.com>
37892         init.sh: give more portable redirection-related advice in a comment
37893         * tests/init.sh (stderr_fileno_): Update the advice in comments.
37894         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
37895         for lots of discussion.  Stefano Lattarini suggested the solution
37896         of putting "9>&2" after the command.  Reported by Bruno Haible.
37898 2011-06-13  Bruno Haible  <bruno@clisp.org>
37900         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
37901         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
37902         'none'.
37904 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
37906         ftoastr: use strtof only if HAVE_STRTOF
37907         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
37908         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00154.html>.
37909         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
37910         * modules/ftoastr (configure.ac): Check for strtof.
37912 2011-06-13  Bruno Haible  <bruno@clisp.org>
37914         gnulib-tool: Addendum to 2011-06-08 commit.
37915         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
37916         and --witness-c-macro have been given, augment AM_CPPFLAGS.
37918 2011-06-13  Bruno Haible  <bruno@clisp.org>
37920         fseeko: Provide a non-inline replacement of fseek().
37921         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
37922         * modules/fseeko (Depends-on): Add fseek.
37923         * modules/fseek (License): Change to LGPLv2+.
37925 2011-06-13  Bruno Haible  <bruno@clisp.org>
37927         ftello: Provide a non-inline replacement of ftell().
37928         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
37929         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
37930         not have ftello() (such as on mingw).
37931         * modules/ftello (Depends-on): Add ftell.
37932         * modules/ftell (License): Change to LGPLv2+.
37934 2011-05-07  Bruno Haible  <bruno@clisp.org>
37936         ftell: Move AC_LIBOBJ invocations to module description.
37937         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
37938         * modules/ftell (configure.ac): ... to here.
37940 2011-05-07  Bruno Haible  <bruno@clisp.org>
37942         ftello: Respect rules for use of AC_LIBOBJ.
37943         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
37944         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
37945         here...
37946         * modules/ftello (configure.ac): ... to here.
37948 2011-05-07  Bruno Haible  <bruno@clisp.org>
37950         fseeko: Simplify.
37951         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
37952         (gl_FUNC_FSEEKO): Inline it here.
37954 2011-05-07  Bruno Haible  <bruno@clisp.org>
37956         fseek: Move AC_LIBOBJ invocations to module description.
37957         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
37958         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
37959         * modules/fseek (configure.ac): ... to here.
37961 2011-05-07  Bruno Haible  <bruno@clisp.org>
37963         fseek: Respect rules for use of AC_LIBOBJ.
37964         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
37965         here...
37966         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
37968 2011-05-07  Bruno Haible  <bruno@clisp.org>
37970         fseeko: Respect rules for use of AC_LIBOBJ.
37971         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
37972         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
37973         here...
37974         * modules/fseeko (configure.ac): ... to here.
37976 2011-06-13  Bruno Haible  <bruno@clisp.org>
37978         gnulib-tool: Allow comments in the 'Depends-on' section.
37979         * doc/gnulib.texi (Module description): Mention comment syntax in the
37980         Depends-on section.
37981         * gnulib-tool (func_get_dependencies): Filter out comment lines.
37983 2011-06-13  Bruno Haible  <bruno@clisp.org>
37985         file-set.h: guard __attibute__ use, now that it's not always defined
37986         * lib/file-set.h (record_file): Use __attribute__ only with compiler
37987         versions that support it.  This fixes a coreutils build failure with
37988         the vendor cc on HP-UX 11.31.
37990 2011-06-12  Bruno Haible  <bruno@clisp.org>
37992         acl: Add support for HP-UX >= 11.11 JFS ACLs.
37993         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
37994         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
37995         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
37996         (acl, aclsort): New declarations.
37997         (aclv_nontrivial): New declaration.
37998         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
37999         (file_has_acl): Read also the second kind of HP-UX ACLs.
38000         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
38001         kind of HP-UX ACLs if the first kind fails.
38002         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
38003         second kind of HP-UX ACLs.
38004         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
38005         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
38006         agree.
38007         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
38008         hpuxjfs.
38009         Handle hpuxjfs.
38010         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
38011         hpuxjfs.
38012         Handle hpuxjfs.
38013         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
38014         (func_test_same_acls): Use both lsacl and getacl.
38015         Handle hpuxjfs.
38016         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
38017         (func_test_same_acls): Use both lsacl and getacl.
38018         Handle hpuxjfs.
38020 2011-06-12  Bruno Haible  <bruno@clisp.org>
38022         acl: Complete the 2010-08-10 fix.
38023         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
38024         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
38025         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
38026         explicitly.
38027         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
38028         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
38030 2011-06-12  Bruno Haible  <bruno@clisp.org>
38032         spawn-pipe tests: Comments.
38033         * tests/test-spawn-pipe-child.c (main): Update comment.
38034         Reported by James Youngman <jay@gnu.org>.
38036 2011-06-11  James Youngman  <jay@gnu.org>
38038         New module 'stat-size'.
38039         * modules/stat-size: New module.  Provides macros for accessing
38040         file size information in instances of struct stat.  Depends on the
38041         fileblocks module because it calls st_blocks.
38042         * lib/stat-size.h: New file, adapted from coreutils' system.h.
38043         * doc/gnulib.texi: Include stat-size.texi.
38044         * doc/stat-size.texi: Documentation for this module.
38045         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
38046         * m4/fileblocks.m4: Mention that stat-size depends on the call to
38047         AC_STRUCT_ST_BLOCKS.
38049 2011-06-09  Bruno Haible  <bruno@clisp.org>
38051         thread: Support pthreads-win32.
38052         * lib/glthread/thread.h (gl_thread_self): Define differently on
38053         pthreads-win32.
38054         (gl_null_thread): New declaration.
38055         (gl_thread_self_pointer): New macro.
38056         * lib/glthread/thread.c (gl_null_thread): New constant.
38057         * tests/test-lock.c: Use gl_thread_self_pointer instead of
38058         gl_thread_self.
38059         * tests/test-tls.c: Likewise.
38060         Suggested by Paul Eggert. Reported by Eric Blake.
38062 2011-06-09  Bruno Haible  <bruno@clisp.org>
38064         thread: Fix confusion between NULL and 0.
38065         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
38066         Reported by Paul Eggert.
38068 2011-06-09  Bruno Haible  <bruno@clisp.org>
38070         spawn-pipe tests: Avoid test failure on HP-UX 11.
38071         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
38072         is closed.
38074 2011-06-09  Bruno Haible  <bruno@clisp.org>
38076         acl tests: Fix compilation error on HP-UX 11.
38077         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
38079 2011-06-09  Bruno Haible  <bruno@clisp.org>
38081         rmdir: Avoid test failure on HP-UX 10.20.
38082         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
38083         EEXIST.
38085 2011-06-08  Eric Blake  <eblake@redhat.com>
38087         perror: fix test on mingw
38088         * modules/perror-tests (Depends-on): Add dup2.
38090         strerror_r-posix: fix on MacOS
38091         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
38092         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
38093         logic bug.
38094         * lib/strerror_r.c (strerror_r): Fix the bug.
38095         * lib/strerror.c (strerror): Likewise.
38096         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
38097         problem.
38098         * doc/posix-functions/strerror.texi (strerror): Likewise.
38099         * doc/posix-functions/perror.texi (perror): Likewise.
38100         * tests/test-strerror.c (main): Enhance test.
38101         * tests/test-strerror_r.c (main): Likewise.
38103 2011-06-08  Bruno Haible  <bruno@clisp.org>
38105         gnulib-tool: Better isolation between different gnulib-tool invocations.
38106         * gnulib-tool: New option --witness-c-macro.
38107         (witness_c_macro): New variable.
38108         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
38109         AM_CPPFLAGS define it as a C macro.
38110         (func_emit_tests_Makefile_am): Likewise.
38111         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
38112         read it from there.
38113         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
38114         m4_define, not AC_DEFUN.
38115         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
38116         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
38117         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
38118         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
38119         s|...|...|, to substitute the values of the GNULIB_* module indicator
38120         variables.
38121         * modules/dirent (Makefile.am): Likewise.
38122         * modules/fcntl-h (Makefile.am): Likewise.
38123         * modules/iconv-h (Makefile.am): Likewise.
38124         * modules/langinfo (Makefile.am): Likewise.
38125         * modules/locale (Makefile.am): Likewise.
38126         * modules/math (Makefile.am): Likewise.
38127         * modules/netdb (Makefile.am): Likewise.
38128         * modules/poll-h (Makefile.am): Likewise.
38129         * modules/pty (Makefile.am): Likewise.
38130         * modules/search (Makefile.am): Likewise.
38131         * modules/signal (Makefile.am): Likewise.
38132         * modules/spawn (Makefile.am): Likewise.
38133         * modules/stdio (Makefile.am): Likewise.
38134         * modules/stdlib (Makefile.am): Likewise.
38135         * modules/string (Makefile.am): Likewise.
38136         * modules/sys_ioctl (Makefile.am): Likewise.
38137         * modules/sys_select (Makefile.am): Likewise.
38138         * modules/sys_socket (Makefile.am): Likewise.
38139         * modules/sys_stat (Makefile.am): Likewise.
38140         * modules/sys_times (Makefile.am): Likewise.
38141         * modules/sys_utsname (Makefile.am): Likewise.
38142         * modules/sys_wait (Makefile.am): Likewise.
38143         * modules/termios (Makefile.am): Likewise.
38144         * modules/time (Makefile.am): Likewise.
38145         * modules/unistd (Makefile.am): Likewise.
38146         * modules/wchar (Makefile.am): Likewise.
38148 2011-06-08  Eric Blake  <eblake@redhat.com>
38150         strerror: simplify replacement
38151         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
38152         * modules/strerror (configure.ac): No prereqs needed here...
38153         * modules/strerror-override (configure.ac): ...but this needs it.
38154         (Files): Add file for needed prereq macro.
38156 2011-06-08  Bruno Haible  <bruno@clisp.org>
38158         strerror_r-posix: Tweaks.
38159         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
38160         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
38161         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
38162         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
38163         (gl_FUNC_STRERROR_R): ... to here.
38164         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
38166 2011-06-07  Eric Blake  <eblake@redhat.com>
38168         perror: document fixed bugs
38169         * doc/posix-functions/perror.texi (perror): Document recent
38170         patches.
38172 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
38174         stat-time: get_stat_birthtime failure is better-defined
38175         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
38176         return a timestamp whose tv_sec and tv_nsec values are both -1.
38177         Previously, the spec said only that the tv_nsec value was negative.
38178         This upward-compatible change simplifies GNU tar a bit.
38180 2011-06-07  Eric Blake  <eblake@redhat.com>
38182         strerror_r-posix: work around cygwin 1.7.9
38183         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
38184         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
38185         bug without replacing strerror_r.
38186         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
38187         strerror_r is buggy, but without requiring strerror_r compilation.
38188         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
38190         test-perror: relax test to ignore cygwin bug
38191         * tests/test-perror2.c (main): Relax test on requiring detection
38192         of stream errors, and use unbuffered stream.
38193         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
38194         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
38195         * doc/posix-functions/fputc.texi (fputc): Likewise.
38196         * doc/posix-functions/fputs.texi (fputs): Likewise.
38197         * doc/posix-functions/fputws.texi (fputws): Likewise.
38198         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
38199         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
38200         * doc/posix-functions/getopt.texi (getopt): Likewise.
38201         * doc/posix-functions/perror.texi (perror): Likewise.
38202         * doc/posix-functions/printf.texi (printf): Likewise.
38203         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
38204         * doc/posix-functions/psignal.texi (psignal): Likewise.
38205         * doc/posix-functions/putc.texi (putc): Likewise.
38206         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
38207         Likewise.
38208         * doc/posix-functions/putchar.texi (putchar): Likewise.
38209         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
38210         Likewise.
38211         * doc/posix-functions/puts.texi (puts): Likewise.
38212         * doc/posix-functions/putwc.texi (putwc): Likewise.
38213         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
38214         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
38215         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
38216         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
38217         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
38218         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
38219         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
38220         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
38222 2011-05-22  Bruno Haible  <bruno@clisp.org>
38224         strerror: Move AC_LIBOBJ invocations to module description.
38225         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
38226         gl_PREREQ_STRERROR invocations from here...
38227         * modules/strerror (configure.ac): ... to here.
38229 2011-05-21  Bruno Haible  <bruno@clisp.org>
38231         perror: Use common idiom.
38232         * modules/perror (configure.ac): Reorder statements.
38234 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
38236         tests: fix usage message in 'mktempd_'
38237         * tests/init.sh (mktempd_): In the usage message, use literal
38238         'mktempd_', not '$ME' (which is even undefined), as the name of
38239         the subroutine.
38241 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
38243         tests init: new function 'fatal_', for hard errors
38244         Before this patch, the only way offered by tests/init.sh to
38245         properly signal a hard error was the `framework_failure_'
38246         function.  But the error message issued by that function,
38247         as its name would suggest, refers to a set-up failure in the
38248         testsuite, while hard errors can obviously also be due to
38249         other reasons.  The best way to fix this inconsistency is to
38250         introduce a new function with a more general error message.
38251         * tests/init.sh (fatal_): New function.
38253 2011-06-06  Eric Blake  <eblake@redhat.com>
38255         canonicalize-lgpl: use common idiom
38256         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
38257         over newer POSIX -Rf.
38258         Reported by Bruno Haible.
38260         canonicalize-lgpl: work around AIX realpath bug
38261         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
38262         * doc/posix-functions/realpath.texi (realpath): Document it.
38263         Reported by Bruno Haible.
38265         strerror: work around FreeBSD bug
38266         * lib/strerror.c (strerror): Special case 0.
38267         Reported by Bruno Haible.
38269         strerror-override: avoid bloating errno module
38270         * modules/errno (Files, configure.ac): Move replacement strings...
38271         * modules/strerror-override: ...to new module.
38272         * modules/strerror (Depends-on): Add strerror-override.
38273         * modules/strerror_r-posix (Depends-on): Likewise.
38274         * MODULES.html.sh: Document new module.
38275         Reported by Bruno Haible.
38277 2011-06-06  Bruno Haible  <bruno@clisp.org>
38279         spawn-pipe tests: Rename program.
38280         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
38281         * tests/test-spawn-pipe-child.c: Update comment.
38282         * tests/test-spawn-pipe.sh: Update.
38283         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
38285         spawn-pipe tests: Link the child program only against libc.
38286         * tests/test-spawn-pipe-child.c: New file, extracted from
38287         tests/test-spawn-pipe.c.
38288         (main): Expect only one argument.
38289         (is_open): New function, copied from tests/test-pipe.c.
38290         * tests/test-spawn-pipe.c: Don't include <errno.h>.
38291         (child_main): Remove function.
38292         (test_pipe): Pass only one argument to the child program.
38293         (main): Remove child process code. Expect the child program's name as
38294         first argument.
38295         * tests/test-spawn-pipe.sh: Pass the child program's name as first
38296         argument.
38297         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
38298         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
38299         test-spawn-pipe-child against no libraries.
38301 2011-06-06  Bruno Haible  <bruno@clisp.org>
38303         careadlinkat: Avoid mismatch between ssize_t and int.
38304         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
38305         * lib/careadlinkat.c (careadlinkatcwd): Define always.
38307 2011-06-06  Jim Meyering  <meyering@redhat.com>
38309         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
38310         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
38311         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
38313 2011-06-05  Bruno Haible  <bruno@clisp.org>
38315         ansi-c++-opt: Interoperability with libtool.
38316         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
38317         set the variable to "no", not to ":".
38318         * NEWS: Mention the change.
38320 2011-06-05  Bruno Haible  <bruno@clisp.org>
38322         acl: Fix test failure on AIX 7.
38323         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
38324         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
38326 2011-06-05  Bruno Haible  <bruno@clisp.org>
38328         pipe-filter-ii: Fix test failure on AIX and IRIX.
38329         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
38330         with EAGAIN, retry with a smaller buffer size.
38332 2011-06-05  Bruno Haible  <bruno@clisp.org>
38334         localename: Fix link dependencies.
38335         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
38336         * modules/localename-tests (Makefile.am): Link test-localename with
38337         $(LIBTHREAD).
38339 2011-06-05  Bruno Haible  <bruno@clisp.org>
38341         error: Avoid gcc warning.
38342         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
38344 2011-06-05  Bruno Haible  <bruno@clisp.org>
38346         unsetenv: Avoid gcc warning.
38347         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
38349 2011-06-05  Bruno Haible  <bruno@clisp.org>
38351         setenv: Avoid gcc warning.
38352         * lib/setenv.c (setenv): Provide declaration if system lacks it.
38354 2011-06-05  Bruno Haible  <bruno@clisp.org>
38356         sys_select: Ensure memset is declared also on AIX 7.
38357         * lib/sys_select.in.h: Include <string.h> also on AIX.
38358         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
38359         self-contained also on AIX 7.1.
38361 2011-06-04  Jim Meyering  <meyering@redhat.com>
38363         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
38364         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
38365         function name, "error".
38366         (_gl_translatable_diag_func_re): New configurable variable.
38368 2011-06-04  Bruno Haible  <bruno@clisp.org>
38370         getopt: Avoid gcc warning.
38371         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
38373 2011-06-04  Bruno Haible  <bruno@clisp.org>
38375         strerror_r: Fix comments.
38376         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
38377         commit.
38379 2011-06-04  Bruno Haible  <bruno@clisp.org>
38381         perror: Fix compilation error.
38382         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
38383         Undefine fprintf, not sprintf.
38384         * modules/perror (Depends-on): Remove intprops, verify.
38386 2011-06-04  Bruno Haible  <bruno@clisp.org>
38388         setlocale: Enable replacement on Cygwin 1.5.
38389         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
38390         Cygwin 1.5.x.
38391         * doc/posix-functions/setlocale.texi: Mention that the problem with the
38392         LC_CTYPE category also exists on Cygwin 1.5.x.
38394 2011-06-04  Bruno Haible  <bruno@clisp.org>
38396         strerror-override: Don't disable symbol renamings.
38397         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
38398         * lib/strerror-override.c: Include config.h.
38399         (strerror_override): Don't undefine.
38401 2011-06-03  Bruno Haible  <bruno@clisp.org>
38403         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
38404         * lib/localename.h: Update copyright header.
38405         * lib/localename.c: Likewise.
38406         * lib/relocatable.h: Likewise.
38407         * lib/relocatable.c: Likewise.
38409 2011-06-02  Bruno Haible  <bruno@clisp.org>
38411         doc: Fix a module name.
38412         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
38414 2011-06-02  Bruno Haible  <bruno@clisp.org>
38416         pipe2: Remove dependency on 'nonblocking' module.
38417         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
38418         O_NONBLOCK is defined by gnulib.
38419         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
38420         is zero.
38421         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
38422         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
38423         defined by gnulib.
38424         (get_nonblocking_flag): New function.
38425         (main): Test O_NONBLOCK flag only if it is nonzero.
38426         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
38428 2011-06-03  Jim Meyering  <meyering@redhat.com>
38430         maint: three new prohibit-header-without-use rules
38431         Prohibit use of cloexec.h, posixver.h, same.h without use.
38432         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
38433         (sc_prohibit_posixver_without_use): Likewise.
38434         (sc_prohibit_same_without_use): Likewise.
38436 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
38438         allocator: 'die' routine is now given requested size
38439         * lib/allocator.h (struct allocator.die): New size arg.
38440         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
38441         If the actual problem is an ssize_t limitation, not a size_t or
38442         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
38444 2011-06-01  Eric Blake  <eblake@redhat.com>
38446         strerror: drop strerror_r dependency
38447         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
38448         * lib/strerror-override.c (strerror_override): ...to new file.
38449         * lib/strerror-override.h: Add prototype.
38450         * lib/strerror-impl.h: Delete.
38451         * lib/strerror.c (strerror): New implementation.
38452         * modules/errno (Files): Add new files.
38453         (configure.ac): Compile new file as appropriate.
38454         * modules/strerror (Files): Drop unused file.
38455         (Depends-on): Drop strerror_r-posix.
38456         * MODULES.html.sh: Document strerror_r-posix.
38457         Requested by Sam Steingold.
38459         perror: call strerror_r directly
38460         * modules/perror (Files): Drop strerror-impl.h.
38461         * lib/perror.c (perror): Use our own stack buffer, rather than
38462         calling a wrapper that uses static storage.
38463         * doc/posix-functions/perror.texi (perror): Document a limitation
38464         of our replacement.
38466         strerror_r: fix includes for FreeBSD
38467         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
38468         since we use abort on some platforms.
38469         Reported by Matthias Bolte.
38471 2011-05-31  Bruno Haible  <bruno@clisp.org>
38473         Fix link errors in tests: openat-die uses gettext-h.
38474         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
38475         against $(LIBINTL).
38476         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
38477         against $(LIBINTL).
38478         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
38479         $(LIBINTL).
38480         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
38481         against $(LIBINTL).
38482         * modules/linkat-tests (Makefile.am): Link test-linkat against
38483         $(LIBINTL).
38484         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
38485         $(LIBINTL).
38486         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
38487         against $(LIBINTL).
38488         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
38489         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
38490         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
38491         $(LIBINTL).
38492         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
38493         $(LIBINTL).
38494         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
38495         $(LIBINTL).
38496         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38498 2011-05-31  Bruno Haible  <bruno@clisp.org>
38500         Fix link errors in tests: wait-process uses gettext-h.
38501         * modules/nonblocking-pipe-tests (Makefile.am): Set
38502         test_nonblocking_pipe_main_LDADD.
38503         * modules/nonblocking-socket-tests (Makefile.am): Link
38504         test-nonblocking-socket-main against $(LIBINTL).
38505         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38507 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
38509         assert-h: work around 'verify' incompatibility
38510         * lib/verify.h: Use @...@ directives, not ifdef.
38511         * modules/assert-h (assert.h): Implement the directives.
38512         (assert.h): Substitute the symbol-prefix more consistently.
38514 2011-05-29  Jim Meyering  <meyering@redhat.com>
38516         trim: remove three superfluous assignments
38517         * lib/trim.c (trim2): Remove three superfluous assignments
38518         and correct brace positioning.
38520 2011-05-29  Bruno Haible  <bruno@clisp.org>
38522         wctype-h: Avoid namespace pollution on Solaris 2.6.
38523         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
38524         identifiers.
38525         * doc/posix-headers/wctype.texi: Mention the problem.
38526         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38528 2011-05-28  Jim Meyering  <meyering@redhat.com>
38530         parse-datetime.y: accommodate -Wstrict-overflow
38531         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
38532         placate -Wstrict-overflow.
38534         trim: avoid a warning from -O2 -Wstrict-overflow
38535         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
38537 2011-05-29  Bruno Haible  <bruno@clisp.org>
38539         gnulib-tool: Fix bug in yesterday's commit.
38540         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
38541         twice.
38543 2011-05-29  Bruno Haible  <bruno@clisp.org>
38545         Allow multiple gnulib generated include files to be combined.
38546         * gnulib-tool (func_compute_include_guard_prefix): New function.
38547         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
38548         ${gl_include_guard_prefix} references.
38549         (func_import, func_create_testdir): Invoke
38550         func_compute_include_guard_prefix.
38551         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
38552         * lib/ctype.in.h: Likewise.
38553         * lib/dirent.in.h: Likewise.
38554         * lib/errno.in.h: Likewise.
38555         * lib/fcntl.in.h: Likewise.
38556         * lib/float.in.h: Likewise.
38557         * lib/getopt.in.h: Likewise.
38558         * lib/iconv.in.h: Likewise.
38559         * lib/langinfo.in.h: Likewise.
38560         * lib/locale.in.h: Likewise.
38561         * lib/math.in.h: Likewise.
38562         * lib/netdb.in.h: Likewise.
38563         * lib/netinet_in.in.h: Likewise.
38564         * lib/poll.in.h: Likewise.
38565         * lib/pthread.in.h: Likewise.
38566         * lib/pty.in.h: Likewise.
38567         * lib/sched.in.h: Likewise.
38568         * lib/se-selinux.in.h: Likewise.
38569         * lib/search.in.h: Likewise.
38570         * lib/signal.in.h: Likewise.
38571         * lib/spawn.in.h: Likewise.
38572         * lib/stdarg.in.h: Likewise.
38573         * lib/stddef.in.h: Likewise.
38574         * lib/stdint.in.h: Likewise.
38575         * lib/stdio.in.h: Likewise.
38576         * lib/stdlib.in.h: Likewise.
38577         * lib/string.in.h: Likewise.
38578         * lib/strings.in.h: Likewise.
38579         * lib/sys_file.in.h: Likewise.
38580         * lib/sys_ioctl.in.h: Likewise.
38581         * lib/sys_select.in.h: Likewise.
38582         * lib/sys_socket.in.h: Likewise.
38583         * lib/sys_stat.in.h: Likewise.
38584         * lib/sys_time.in.h: Likewise.
38585         * lib/sys_times.in.h: Likewise.
38586         * lib/sys_uio.in.h: Likewise.
38587         * lib/sys_utsname.in.h: Likewise.
38588         * lib/sys_wait.in.h: Likewise.
38589         * lib/sysexits.in.h: Likewise.
38590         * lib/termios.in.h: Likewise.
38591         * lib/time.in.h: Likewise.
38592         * lib/unistd.in.h: Likewise.
38593         * lib/wchar.in.h: Likewise.
38594         * lib/wctype.in.h: Likewise.
38595         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
38596         * modules/ctype (Makefile.am): Likewise.
38597         * modules/dirent (Makefile.am): Likewise.
38598         * modules/errno (Makefile.am): Likewise.
38599         * modules/fcntl-h (Makefile.am): Likewise.
38600         * modules/float (Makefile.am): Likewise.
38601         * modules/getopt-posix (Makefile.am): Likewise.
38602         * modules/iconv-h (Makefile.am): Likewise.
38603         * modules/langinfo (Makefile.am): Likewise.
38604         * modules/locale (Makefile.am): Likewise.
38605         * modules/math (Makefile.am): Likewise.
38606         * modules/netdb (Makefile.am): Likewise.
38607         * modules/netinet_in (Makefile.am): Likewise.
38608         * modules/poll-h (Makefile.am): Likewise.
38609         * modules/pthread (Makefile.am): Likewise.
38610         * modules/pty (Makefile.am): Likewise.
38611         * modules/sched (Makefile.am): Likewise.
38612         * modules/search (Makefile.am): Likewise.
38613         * modules/selinux-h (Makefile.am): Likewise.
38614         * modules/signal (Makefile.am): Likewise.
38615         * modules/spawn (Makefile.am): Likewise.
38616         * modules/stdarg (Makefile.am): Likewise.
38617         * modules/stddef (Makefile.am): Likewise.
38618         * modules/stdint (Makefile.am): Likewise.
38619         * modules/stdio (Makefile.am): Likewise.
38620         * modules/stdlib (Makefile.am): Likewise.
38621         * modules/string (Makefile.am): Likewise.
38622         * modules/strings (Makefile.am): Likewise.
38623         * modules/sys_file (Makefile.am): Likewise.
38624         * modules/sys_ioctl (Makefile.am): Likewise.
38625         * modules/sys_select (Makefile.am): Likewise.
38626         * modules/sys_socket (Makefile.am): Likewise.
38627         * modules/sys_stat (Makefile.am): Likewise.
38628         * modules/sys_time (Makefile.am): Likewise.
38629         * modules/sys_times (Makefile.am): Likewise.
38630         * modules/sys_uio (Makefile.am): Likewise.
38631         * modules/sys_utsname (Makefile.am): Likewise.
38632         * modules/sys_wait (Makefile.am): Likewise.
38633         * modules/sysexits (Makefile.am): Likewise.
38634         * modules/termios (Makefile.am): Likewise.
38635         * modules/time (Makefile.am): Likewise.
38636         * modules/unistd (Makefile.am): Likewise.
38637         * modules/wchar (Makefile.am): Likewise.
38638         * modules/wctype-h (Makefile.am): Likewise.
38639         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
38641 2011-05-29  Bruno Haible  <bruno@clisp.org>
38643         assert-h: Allow multiple gnulib generated replacements to coexist.
38644         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
38646 2011-05-29  Bruno Haible  <bruno@clisp.org>
38648         argp: Allow coexistence with strerror_r-posix module.
38649         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
38650         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
38651         by gnulib's <string.h> replacement), assume it has the POSIX signature,
38652         not the glibc signature.
38654 2011-05-28  Bruno Haible  <bruno@clisp.org>
38656         gnulib-tool: Alternative structure of testdirs, similar to --import.
38657         * gnulib-tool: New option --single-configure.
38658         (func_usage): Document it.
38659         (single_configure): New variable.
38660         (func_modules_transitive_closure_separately,
38661         func_modules_transitive_closure_separately,
38662         func_determine_use_libtests, func_modules_add_dummy_separately,
38663         func_modules_to_filelist_separately): New functions, extracted from
38664         func_import.
38665         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
38666         (func_import): Use the new functions.
38667         (func_create_testdir): Set final_modules. Handle $single_configure =
38668         true case.
38670 2011-05-28  Bruno Haible  <bruno@clisp.org>
38672         getloadavg: Remove an unreliable safety check.
38673         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
38674         getloadavg.c is in place.
38675         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
38676         Reported by Sam Steingold <sds@gnu.org>.
38678 2011-05-28  Bruno Haible  <bruno@clisp.org>
38680         doc: Cleanup yet another file produced by texinfo.tex.
38681         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
38683 2011-05-28  Bruno Haible  <bruno@clisp.org>
38685         Finish the conditional dependencies mechanism.
38686         * gnulib-tool: New option --no-conditional-dependencies.
38687         (func_usage): Document it. Don't mark --conditional-dependencies as
38688         experimental.
38689         (cond_dependencies): The possible values can now be true, false, empty.
38690         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
38691         (func_import): Store setting in gnulib-cache.m4 and read it from there.
38692         * doc/gnulib-tool.texi (Conditional dependencies): New section.
38694 2011-05-28  Bruno Haible  <bruno@clisp.org>
38696         doc: Use a recent texinfo.tex.
38697         * doc/Makefile (tex_opts): New variable.
38698         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
38700 2011-05-28  Jim Meyering  <meyering@redhat.com>
38702         intprops.h: adjust comment to match code change
38703         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
38704         only once, it *may* have side effects.  Also fix an unrelated typo.
38705         (_GL_INT_SIGNED): Likewise.
38707 2011-05-26  Simon Josefsson  <simon@josefsson.org>
38709         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
38711 2011-05-26  Bruno Haible  <bruno@clisp.org>
38713         mbsrchr: Avoid collision with system function on Interix.
38714         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
38715         Reported by Markus Duft <mduft@gentoo.org>.
38717 2011-05-15  James Youngman  <jay@gnu.org>
38719         getopt: for ambiguous options, enumerate the possibilities.
38720         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
38721         the ambiguous options when an ambiguous prefix is given. This was
38722         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
38723         glibc change was
38724         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
38726 2011-05-25  Eric Blake  <eblake@redhat.com>
38728         getcwd: work around mingw bug
38729         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
38730         * doc/posix-functions/getcwd.texi (getcwd): Document it.
38731         Reported by Matthias Bolte.
38733 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
38735         test-intprops: disable -Wtype-limits diagnostics
38736         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
38737         diagnostics.  Otherwise, the integer overflow macros generate many
38738         diagnostics.  Reported by Jim Meyering in
38739         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
38741         intprops: shorten, to pacify gcc -Woverlength-strings
38742         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
38743         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
38744         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
38745         likely to run afoul of C compiler limits for string constant lengths.
38746         See <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
38748 2011-05-24  Eric Blake  <eblake@redhat.com>
38750         docs: document recently fixed glibc printf bug
38751         * doc/posix-functions/fprintf.texi (fprintf): Document it.
38752         * doc/posix-functions/printf.texi (printf): Likewise.
38753         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
38754         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
38756         closein-tests: convert to init.sh
38757         * modules/closein-tests (Files): Add init.sh
38758         * tests/test-closein.sh Use it.
38760         yesno-tests: convert to init.sh
38761         * modules/yesno-tests (Files): Add init.sh.
38762         * tests/test-yesno.sh: Use it.
38764         atexit-tests: ensure reliable exit status
38765         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
38766         Reported by Bruno Haible.
38768 2011-05-24  Bruno Haible  <bruno@clisp.org>
38770         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
38771         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
38772         gl_PREREQ_STRERROR_R invocations from here...
38773         * modules/strerror_r-posix (configure.ac): ... to here.
38775 2011-05-24  Eric Blake  <eblake@redhat.com>
38777         strerror_r: fix missing header
38778         * lib/strerror_r.c: Avoid compiler warning about snprintf.
38780         strerror_r: fix AIX test failures
38781         * lib/strerror_r.c (strerror_r): Convert silent truncation to
38782         ERANGE failure.
38784         strerror_r: fix Solaris test failures
38785         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
38786         failures.
38787         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
38789         strerror_r: enforce POSIX recommendations
38790         * lib/strerror_r.c (safe_copy): New helper method.
38791         (strerror_r): Guarantee a non-empty string.
38792         * tests/test-strerror_r.c (main): Enhance tests to incorporate
38793         recent POSIX rulings and to match our strerror guarantees.
38794         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
38796 2011-05-24  Jim Meyering  <meyering@redhat.com>
38798         test-perror2.c: avoid warning about unused variable
38799         * tests/test-perror2.c (main): Remove declaration of unused "fp".
38801 2011-05-24  Eric Blake  <eblake@redhat.com>
38803         perror: avoid spurious test failure on HP-UX
38804         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
38806         tests: fix logic bug in init.sh
38807         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
38808         shell.
38810 2011-05-24  Jim Meyering  <meyering@redhat.com>
38812         utimensat: do not reference an out-of-scope buffer
38813         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
38814         declared in an inner scope, yet "times" would be dereferenced outside
38815         the scope in which "ts" was valid.
38816         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
38817         of ts[2] "out/up", so that the use of aliased "times" (via
38818         "times = ts;") does not end up referencing an out-of-scope "ts"
38820         opendir-safer.c: don't clobber errno; don't close negative FD
38821         * lib/opendir-safer.c (opendir_safer):
38822         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
38823         file descriptor, and more importantly, don't clobber the
38824         offending errno value with EINVAL.  Before, upon failure
38825         of dup_safer, we would pass the negative file descriptor to
38826         fdopendir, which would clobber errno.
38828 2011-05-23  Bruno Haible  <bruno@clisp.org>
38830         idcache: Fix module description.
38831         * modules/idcache (Include): Set to "idcache.h".
38833 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
38835         gnulib-tool: fix portability problem with MacOS sed
38836         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
38837         before the "}".  Problem reported by Leo in
38838         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00717.html>.
38839         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
38840         sed_extract_condition1, sed_extract_condition2.
38842 2011-05-23  Bruno Haible  <bruno@clisp.org>
38844         hash: Simplify autoconf macro.
38845         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
38847 2011-05-23  Bruno Haible  <bruno@clisp.org>
38849         getugroups: Fix module description.
38850         * modules/getugroups (Include): Set to "getugroups.h".
38852 2011-05-23  Bruno Haible  <bruno@clisp.org>
38854         linkat: Simplify autoconf macro.
38855         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
38857 2011-05-23  Bruno Haible  <bruno@clisp.org>
38858             Eric Blake  <eblake@redhat.com>
38860         linkat, renameat: Update dependencies.
38861         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
38862         * modules/linkat (Depends-on): Likewise. Remove also readlink,
38863         symlinkat.
38865 2011-05-23  Jim Meyering  <meyering@redhat.com>
38867         maint.mk: more tight_scope improvements
38868         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
38869         (_gl_TS_headers): Define only in if-0'd block.
38870         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
38871         sometimes we must *not* use it.  Adjust uses accordingly.
38872         (sc_tight_scope): Use much simpler grep-based test to determine
38873         whether we skip this rule.
38875         maint.mk: generalize/improve the tight-scope rule
38876         * top/maint.mk: Emit a warning when the test is skipped.
38877         (_gl_TS_dir): Add $(srcdir)/ prefix.
38878         (_gl_TS_function_match): Simplify, rather than trying
38879         to enumerate common types.  Otherwise, it would fail to match an
38880         "extern unsigned char const *" declaration in idutils.
38881         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
38882         a way to support use of that type of macro.
38883         (_gl_TS_var_match): Simplify regexp.
38884         (_gl_TS_obj_files): New configurable variable.
38885         (_gl_TS_headers): Likewise.
38887 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
38889         verify: fix bug when gnulib <assert.h> is also included
38890         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
38891         is defined, not if _GL_STATIC_ASSERT_H is not defined.
38892         Perhaps there's a better way, but this fixes the immediate problem.
38893         Problem reported by Bruno Haible in
38894         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00478.html>.
38896 2011-05-22  Bruno Haible  <bruno@clisp.org>
38898         xgetcwd: Simplify autoconf macro.
38899         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
38901 2011-05-22  Bruno Haible  <bruno@clisp.org>
38903         New module 'mktime-internal'.
38904         * modules/mktime-internal: New file.
38905         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
38906         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
38907         mktime_internal as a C macro if libc has __mktime_internal.
38908         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
38909         conditions.
38910         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
38912 2011-05-22  Bruno Haible  <bruno@clisp.org>
38914         timegm: Correct mktime replacement statements.
38915         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
38916         defining mktime as a C macro. This completes a 2009-07-28 commit.
38918 2011-05-22  Bruno Haible  <bruno@clisp.org>
38920         timegm: Simplify autoconf macro.
38921         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
38923 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
38925         clock-time: change to LGPLv2+.
38926         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
38927         BSD-like but we have no mark for that; this is good enough for now.
38929 2011-05-21  Bruno Haible  <bruno@clisp.org>
38931         strerror_r: Fix comments.
38932         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
38934 2011-05-21  Bruno Haible  <bruno@clisp.org>
38936         relocatable-prog-wrapper: Fix possible link error.
38937         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
38938         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
38939         (gl_FUNC_SETENV): ... to here.
38940         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
38941         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
38943 2011-05-21  Bruno Haible  <bruno@clisp.org>
38945         relocatable-prog-wrapper: Assume strerror() exists.
38946         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
38947         m4/strerror.m4.
38948         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
38949         * lib/relocwrapper.c: Remove mention of strerror module.
38950         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
38951         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
38952         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
38953         C macro.
38955 2011-05-21  Bruno Haible  <bruno@clisp.org>
38957         select: Simplify replacement idiom.
38958         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
38959         Win32 platforms.
38960         * lib/sys_select.in.h (select): Simplify accordingly.
38961         * modules/select (Depends-on): Likewise.
38963 2011-05-21  Bruno Haible  <bruno@clisp.org>
38965         mkdir-p: Simplify autoconf macro.
38966         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
38967         gl_FUNC_LCHOWN.
38969 2011-05-21  Eric Blake  <eblake@redhat.com>
38971         strerror_r: avoid clobbering strerror on cygwin
38972         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
38973         fall back instead to sys_errlist.
38974         * modules/strerror (configure.ac): Add witness.
38975         * tests/test-strerror_r.c (main): Enhance test.
38976         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
38977         * tests/test-perror2.c (main): Free memory before exit.
38979 2011-05-21  Bruno Haible  <bruno@clisp.org>
38981         mkdtemp: Use gnulib naming conventions.
38982         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
38983         * modules/mkdtemp (configure.ac): Update.
38985 2011-05-20  Eric Blake  <eblake@redhat.com>
38987         strerror_r: avoid corrupting errno on Solaris
38988         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
38989         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
38991         strerror_r: avoid compiler warning
38992         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
38994         strerror_r: simplify AIX code
38995         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
38997         test-perror: avoid spurious failure on FreeBSD
38998         * modules/perror-tests (Depends-on): Add strerror, now that
38999         strerror_r no longer pulls it in.
39001 2011-05-20  Bruno Haible  <bruno@clisp.org>
39003         strerror_r-posix: Remove unused dependencies.
39004         * modules/strerror_r-posix (Depends-on): Remove strerror.
39005         Reported by Eric Blake.
39007 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
39009         intprops: remove assumption about A|B representation
39010         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
39011         is a valid integer if both A and B are.  Although this is true for
39012         all known practical hosts, the C standard doesn't guarantee it,
39013         and the code need not assume it.  Also, this change may work around
39014         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
39015         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00426.html>.
39017 2011-05-20  Eric Blake  <eblake@redhat.com>
39019         perror: work around FreeBSD bug
39020         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
39021         is broken.  Move AC_LIBOBJ...
39022         * modules/perror (configure.ac): Here.
39023         * doc/posix-functions/perror.texi (perror): Document this.
39024         * tests/test-perror2.c (main): Enhance test.
39026         test-perror: check for strerror interactions
39027         * tests/macros.h (STREQ): Add macro.
39028         * modules/perror-tests (Files): Add second test.
39029         * tests/test-perror2.c (main): New file.
39030         * doc/posix-functions/perror.texi (perror): Document glibc bug.
39032         test-perror: rewrite to use init script
39033         * modules/perror-tests (Files): Add init.sh.
39034         * tests/test-perror.sh: Use temporary directory.
39036 2011-05-20  Jim Meyering  <meyering@redhat.com>
39038         maint: replace misused "a" with "an"
39039         * doc/intprops.texi: "a integer"
39040         * doc/regex.texi: "a explanation"
39041         * lib/alignof.h: "a object"
39042         * lib/argmatch.h: "a explanation"
39043         * lib/argp-help.c: "a option" and "a OPTION_DOC"
39044         * lib/stdint.in.h: "a integer"
39045         * lib/userspec.c: "a owner"
39046         * doc/gnulib.texi: Fix "a idea", and reword.
39048 2011-05-19  Jim Meyering  <meyering@redhat.com>
39050         maint: correct misuse of "a" and "an"
39051         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
39052         * lib/argp-help.c: "an docum...": s/an/a/
39053         * lib/argp-parse.c: "An vector": s/An/A/
39054         * lib/execute.c: "an native": s/an/a/
39055         * lib/spawn-pipe.c: Likewise.
39056         * lib/gc.h: "an Gc_rc": s/an/a/
39057         * lib/unigbrk.in.h: "an grapheme": s/an/a/
39058         * lib/fts.c: "an stat.st_dev": s/an/a/
39060 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
39062         intprops-tests: work around HP-UX 11.23 cc bug with constants
39063         * tests/test-intprops.c (VERIFY): New macro.
39064         (main): Use it, instead of verify, to work around the compiler bug; see
39065         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
39067         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
39068         See http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html
39069         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
39070         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
39071         (_GL_REMAINDER_OVERFLOW): Use it.
39073         intprops-tests: revert unsigned part of previous change
39074         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
39075         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
39076         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
39077         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html>.
39079 2011-05-19  Bruno Haible  <bruno@clisp.org>
39081         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
39082         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
39083         strerror_r() returned without filling the buffer.
39084         Reported by Eric Blake.
39086 2011-05-19  Eric Blake  <eblake@redhat.com>
39088         strerror_r: guarantee unchanged errno
39089         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
39090         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
39091         failure.
39092         * tests/test-strerror_r.c (main): Enhance test.
39094 2011-05-19  Bruno Haible  <bruno@clisp.org>
39096         strerror_r: Reorder #if blocks.
39097         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
39098         for consistency with the previous commit.
39100 2011-05-19  Bruno Haible  <bruno@clisp.org>
39102         perror: Avoid clobbering the strerror buffer when possible.
39103         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
39104         * lib/strerror.c: Include it.
39105         * modules/strerror (Files): Add lib/strerror-impl.h.
39106         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
39107         (my_strerror): New function, defined through lib/strerror-impl.h.
39108         (perror): Use it instead of strerror.
39109         * modules/perror (Files): Add lib/strerror-impl.h.
39110         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
39112 2011-05-19  Eric Blake  <eblake@redhat.com>
39114         strerror_r: fix on newer cygwin
39115         * lib/strerror_r.c (strerror_r): Cygwin now has
39116         __xpg_strerror_r, use it.
39118 2011-05-19  Bruno Haible  <bruno@clisp.org>
39120         strerror_r: Avoid clobbering the strerror buffer when possible.
39121         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
39122         (sys_nerr, sys_errlist): New declarations.
39123         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
39124         HP-UX, native Win32, IRIX, and 32-bit Solaris.
39125         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
39127 2011-05-19  Bruno Haible  <bruno@clisp.org>
39129         strerror_r: Fix test failure on mingw.
39130         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
39131         EXTEND_STRERROR_R.
39132         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
39133         macros from errno.in.h instead.
39135 2011-05-19  Eric Blake  <eblake@redhat.com>
39137         strerror: relax test for Solaris
39138         * tests/test-strerror.c (main): Permit Solaris behavior.
39139         * tests/test-strerror_r.c (main): Likewise.
39141         strerror: enforce POSIX ruling on strerror(0)
39142         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
39143         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
39144         * lib/strerror_r.c (rpl_strerror_r): Work around it.
39145         * doc/posix-functions/strerror.texi (strerror): Document it.
39146         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
39147         * tests/test-strerror.c (main): Strengthen test.
39148         * tests/test-strerror_r.c (main): Likewise.
39150 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
39152         intprop-tests: port to older and more-pedantic compilers
39153         * modules/intprops-tests (Files): Add tests/macros.h.
39154         * tests/test-intprops.c: Include macros.h.
39155         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
39156         it's no longer documented to expand to an integer constant expression.
39157         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
39158         argument is floating point, as it's no longer documented to expand
39159         to an integer constant expression in that case.
39160         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
39161         compiler bugs reported by Bruno Haible.  See
39162         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
39163         (U0, U1): New constants, to work around the same bugs.  Also,
39164         in tests, use e.g., "(unsigned int) 39" rather than "39u".
39166         intprops: work around C compiler bugs
39167         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
39168         bug in Sun C 5.11 2010/08/13 and other compilers; see
39169         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
39171         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
39172         * doc/intprops.texi (Integer Type Determination): Fix
39173         documentation for TYPE_IS_INTEGER: it returns an constant
39174         expression, not an integer constant expression.  Fix doc for
39175         TYPE_SIGNED: it returns an integer constant expression only if its
39176         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
39177         hardly worth documented that way....)
39179 2011-05-18  Bruno Haible  <bruno@clisp.org>
39181         strerror_r: Avoid clobbering the strerror buffer when possible.
39182         * lib/strerror_r.c (strerror_r): Merge the three implementations.
39183         Handle gnulib defined errno values here. When strerror() returns NULL
39184         or an empty string, return EINVAL.
39185         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
39186         gnulib defined errno values here.
39187         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
39189 2011-05-18  Eric Blake  <eblake@redhat.com>
39191         fnmatch: avoid compiler warning
39192         * lib/fnmatch_loop.c (FCT): Use correct type.
39193         Reported by Matthias Bolte.
39195 2011-05-13  Jim Meyering  <meyering@redhat.com>
39197         maint.mk: three new prohibit_<HDR>_without_use rules
39198         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
39199         (sc_prohibit_stdio-safer_without_use): Likewise.
39200         (sc_prohibit_xfreopen_without_use): Likewise.
39202 2011-05-17  Jim Meyering  <meyering@redhat.com>
39204         announce-gen: fail if the NEWS delta is empty
39205         If there's nothing noteworthy in NEWS, then either you forgot
39206         or you shouldn't be releasing.
39207         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
39209 2011-05-17  Pádraig Brady  <P@draigBrady.com>
39211         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
39212         reserved symbols starting with double underscore from the check.
39214 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
39216         intprops: add doc
39217         * doc/intprops.texi: New file, documenting intprops.
39218         * doc/gnulib.texi (Particular Modules): Include it.
39220         verify: add doc to gnulib manual and fix example
39221         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
39222         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
39223         (Compile-time Assertions): Fix example so it can't overflow.
39225 2011-05-17  Jim Meyering  <meyering@redhat.com>
39227         warnings.m4: don't usurp save_CPPFLAGS variable name
39228         * m4/warnings.m4: Prefix local temporary variable name with gl_.
39230         doc: fix typo
39231         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
39233 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
39234             Bruno Haible  <bruno@clisp.org>
39236         doc: Tweak recent change.
39237         * README (Portability guidelines): Tweak new text.
39238         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
39239         Interix 6.1.
39241 2011-05-16  Eric Blake  <eblake@redhat.com>
39243         inttypes: avoid autoconf warning
39244         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
39245         * m4/stdint.m4 (gl_STDINT_H): Likewise.
39247 2011-05-16  Sam Steingold  <sds@gnu.org>
39248         and Eric Blake  <eblake@redhat.com>
39250         vc-list-files: accept multiple directory operands
39251         * build-aux/vc-list-files: Iterate over all remaining operands.
39253 2011-05-16  Bruno Haible  <bruno@clisp.org>
39255         Fix confusion regarding deprecated modules.
39256         * modules/calloc (Status, Notice): Mark module as deprecated, not
39257         obsolete.
39258         * modules/fnmatch-posix (Status, Notice): Likewise.
39259         * modules/getdate (Status, Notice): Likewise.
39260         * modules/getopt (Status, Notice): Likewise.
39261         * modules/malloc (Status, Notice): Likewise.
39262         * modules/pipe (Status, Notice): Likewise.
39263         * modules/realloc (Status, Notice): Likewise.
39264         * modules/rename-dest-slash (Status, Notice): Likewise.
39265         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
39266         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
39267         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
39268         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
39269         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
39271 2011-05-16  Bruno Haible  <bruno@clisp.org>
39273         doc: List the target platforms.
39274         * doc/gnulib-intro.texi (Target Platforms): New section.
39275         * doc/gnulib.texi (Introduction): Update menu.
39276         * README (Portability guidelines): Refer to the new section. Update
39277         statement about oldest supported environment. Remove rationale why
39278         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
39279         unportable C89 function.
39280         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
39281         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
39283 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
39285         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
39287 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
39289         intprops-tests: new module
39290         * modules/intprops-tests, tests/test-intprops.c: New files.
39292         intprops: add safe, portable integer overflow checking
39293         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
39294         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
39295         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
39296         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
39297         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
39298         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
39299         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
39300         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
39301         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
39302         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
39303         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
39305 2011-05-12  James Youngman  <jay@gnu.org>
39307         Add a test for glibc's Bugzilla bug #12378.
39308         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
39309         doesn't allow the literal matching of a lone "[" (which is
39310         required by POSIX).
39311         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
39313 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
39315         Sync glibc change fixing Bugzilla bug #12378.
39316         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
39317         beginning and fall back to matching as normal character if the
39318         string ends before the matching ']' is found.  This is what POSIX
39319         requires.
39321 2011-05-13  Eric Blake  <eblake@redhat.com>
39323         getcwd-lgpl: relax test for FreeBSD
39324         * doc/posix-functions/getcwd.texi (getcwd): Document portability
39325         issue.
39326         * tests/test-getcwd-lgpl.c (main): Relax test.
39327         Reported by Matthias Bolte.
39329 2011-05-11  Eric Blake  <eblake@redhat.com>
39331         test-fflush: silence compiler warning
39332         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
39334 2011-05-11  Bruno Haible  <bruno@clisp.org>
39336         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
39337         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
39338         * modules/canonicalize (Depends-on): Add 'nocrash'.
39339         * modules/canonicalize-lgpl (Depends-on): Likewise.
39340         * doc/posix-functions/realpath.texi: Update platforms list.
39341         Reported by Ryan Schmidt <ryandesign@macports.org>.
39343 2011-05-11  Bruno Haible  <bruno@clisp.org>
39345         group-member: Declare function in <unistd.h>.
39346         * lib/unistd.in.h (group_member): New declaration.
39347         * lib/group-member.h: Remove file.
39348         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
39349         * tests/test-unistd-c++.cc: Check signature of group_member.
39350         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
39351         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
39352         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
39353         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
39354         HAVE_GROUP_MEMBER.
39355         * modules/group-member (Files): Remove lib/group-member.h.
39356         (Depends-on): Add unistd. Specify conditions.
39357         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
39358         (Include): Change to <unistd.h>.
39359         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
39360         HAVE_GROUP_MEMBER.
39361         * NEWS: Mention the change.
39362         * lib/euidaccess.c: Don't include group-member.h.
39364 2011-05-11  Bruno Haible  <bruno@clisp.org>
39366         group-member: Document module.
39367         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
39368         module.
39370 2011-05-11  Bruno Haible  <bruno@clisp.org>
39372         fclose: Fix mistake earlier today.
39373         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
39375 2011-05-11  Eric Blake  <eblake@redhat.com>
39377         fclose: preserve fflush errors
39378         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
39379         Reported by Jim Meyering.
39381         bootstrap: support a prereq of 'rpcgen -' on RHEL5
39382         * build-aux/bootstrap (check_versions): When no specific version
39383         is required, merely check that the app produces an exit status
39384         that indicates its existence.
39386         maint.mk: drop redundant check
39387         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
39388         the same but better.
39390 2011-05-11  Bruno Haible  <bruno@clisp.org>
39392         fclose: Fix possible link error.
39393         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
39394         unregister_shadow_fd. Improve comments.
39395         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
39396         Eric Blake.
39398 2011-05-11  Jim Meyering  <meyering@redhat.com>
39400         maint.mk: improve "can not" detection and generalize rule name
39401         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
39402         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
39403         Use the same technique as in sc_prohibit_doubled_word, so that
39404         we recognize "can not" also when the words are separated by a newline.
39405         Suggested by Eric Blake.
39406         (perl_filename_lineno_text_): Define.  Factored out of...
39407         (prohibit_doubled_word_): ...here.  Use the new definition.
39408         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
39409         (prohibit_undesirable_word_seq_RE_): New overridable variable.
39410         (ignore_undesirable_word_sequence_RE_): New overridable variable.
39412 2011-05-10  Eric Blake  <eblake@redhat.com>
39414         fclose: avoid double close race when possible
39415         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
39416         all but WINDOWS_SOCKETS.
39418 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
39420         openat: correct new comment
39421         * lib/openat-proc.c (openat_proc_name): Correct the comment.
39423 2011-05-10  Jim Meyering  <meyering@redhat.com>
39425         openat: add comments
39426         * lib/openat-proc.c (openat_proc_name): Add comments,
39427         mostly from Eric Blake.
39429 2011-05-09  Eric Blake  <eblake@redhat.com>
39431         openat: reduce syscalls in first probe of /proc
39432         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
39433         be a directory.  Simplify the probe for .. bugs.
39434         * modules/openat (Depends-on): Drop same-inode.
39435         Reported by Bastien ROUCARIES.
39437 2011-05-09  Jim Meyering  <meyering@redhat.com>
39439         maint.mk: change semantics/name of tight_scope variables
39440         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
39441         Rename variables to align with semantics that make them more useful.
39443         maint.mk: tweak new rule's name not to impinge
39444         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
39445         (sc_tight_scope): Use new rule name rather than $@-0.
39447         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
39448         * top/maint.mk (sc_tight_scope): New rule.
39449         (sc_tight_scope-0): New rule, ifdef'd out.
39450         (_gl_TS_dir): Default.
39451         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
39452         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
39454 2011-05-09  Simon Josefsson  <simon@josefsson.org>
39456         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
39457         Haible <bruno@clisp.org>.
39459 2011-05-08  Bruno Haible  <bruno@clisp.org>
39461         Comments.
39462         * m4/isnanf.m4: Add comment.
39463         * m4/isnanl.m4: Likewise.
39465 2011-05-08  Bruno Haible  <bruno@clisp.org>
39467         glob: Remove obsolete macro.
39468         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
39470 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
39472         intprops: Sun C 5.11 supports __typeof__
39473         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
39474         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
39475         which is new.
39476         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
39478         intprops: switch to usual gnulib indenting and naming
39479         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
39480         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
39482         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
39484 2011-05-08  Jim Meyering  <meyering@redhat.com>
39486         maint.mk: suppress "Entering/Leaving directory" diag in announcement
39487         * top/maint.mk (release-prep): Use make's --no-print-directory
39488         option when generating the announcement.  This eliminates the
39489         pesky "make[2]: Entering/Leaving directory" diagnostics in the
39490         generated announcement template.
39492 2011-05-08  Bruno Haible  <bruno@clisp.org>
39494         tzset: Fix gettimeofday wrapper on Solaris 2.6.
39495         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
39496         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
39498 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
39500         ignore-value, verify: Omit include files from lib_SOURCES.
39501         * modules/ignore-value, modules/verify (Makefile.am):
39502         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
39503         that leads Automake to duplicate use of am__objects_... variables
39504         in Makefile.in.  See
39505         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00257.html>.
39507 2011-05-07  Bruno Haible  <bruno@clisp.org>
39509         fclose: Simplify autoconf macro.
39510         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
39511         defined.
39513 2011-05-07  Bruno Haible  <bruno@clisp.org>
39515         canonicalize-lgpl: Fix autoconf macro ordering bug.
39516         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
39517         gl_STDLIB_H_DEFAULTS.
39519 2011-05-06  Eric Blake  <eblake@redhat.com>
39521         maintainer-makefile: make sc_po_check easier to tune
39522         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
39523         to probe for strings, such as an alternate location for gnulib.
39525         fclose: guarantee behavior on seekable stdin
39526         * modules/fclose (Depends-on): Add fflush.
39527         * doc/posix-functions/fclose.texi (fclose): Document this.
39528         * tests/test-fclose.c (main): Make test for this unconditional.
39530 2011-05-06  Bruno Haible  <bruno@clisp.org>
39532         fflush, fpurge: Relicense under LGPLv2+.
39533         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
39534         * modules/fpurge (License): Likewise.
39535         With permission from Eric Blake and Jim Meyering.
39536         Suggested by Eric Blake.
39538 2011-05-06  Karl Berry  <karl@gnu.org>
39540         * MODULES.html.sh (func_all_modules): remove exit.
39542 2011-05-06  Jim Meyering  <meyering@redhat.com>
39544         maint.mk: use info-gnu@ as the default only for a stable release
39545         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
39546         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
39547         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
39548         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
39550 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
39552         assert-h: new module, which supports C1X-style static_assert
39553         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
39554         * lib/verify.h: Revamp so that this can be copied into assert.h,
39555         while retaining the ability to use it standalone as before.
39556         Rename private identifiers so as not to encroach on the
39557         standard C namespace, since this is now used by assert.h.
39558         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
39559         the old verify_true.
39560         (_GL_VERIFY_TRUE): New macro, with much of the contents of
39561         the old verify_true.  Use _GL_VERIFY_TYPE.
39562         (_GL_VERIFY): New macro, with much of the contents of the old verify.
39563         (static_assert): New macro, if _GL_STATIC_ASSERT_H
39564         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
39565         defined when this file is copied into the replacement assert.h.
39566         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
39567         and _Static_assert is not built in.
39568         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
39569         defined, and use the new macros mentioned above.
39570         * doc/posix-headers/assert.texi: Document this.
39572 2011-05-05  Bruno Haible  <bruno@clisp.org>
39574         fclose, fflush: Respect rules for use of AC_LIBOBJ.
39575         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
39576         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
39577         gl_REPLACE_FCLOSE here.
39578         * modules/fflush (Depends-on): Remove fclose.
39579         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
39580         combination with module 'fclose'.
39582 2011-05-05  Bruno Haible  <bruno@clisp.org>
39584         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
39585         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
39586         gl_FUNC_FFLUSH.
39587         (gl_FUNC_FFLUSH): Use it.
39588         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
39589         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
39590         gl_REPLACE_FSEEKO here.
39592 2011-05-05  Bruno Haible  <bruno@clisp.org>
39594         tzset: Relicense under LGPL.
39595         * modules/tzset (License): Change to LGPL.
39596         No agreement needed; it's a no-op.
39598         strtoimax, strtoumax: Relicense under LGPL.
39599         * modules/strtoimax (License): Change to LGPL.
39600         * modules/strtoumax (License): Likewise.
39601         With permission from Jim Meyering, Paul Eggert:
39602         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00124.html>
39603         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00109.html>
39605         getgroups: Relicense under LGPL.
39606         * modules/getgroups (License): Change to LGPL.
39607         With permission from Jim Meyering, Paul Eggert, Eric Blake:
39608         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
39609         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
39610         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
39612         nanosleep: Relicense under LGPL.
39613         * modules/nanosleep (License): Change to LGPL.
39614         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
39615         Haible:
39616         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
39617         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
39618         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
39619         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
39621         futimens: Relicense under LGPL.
39622         * modules/futimens (License): Change to LGPL.
39623         With permission from Eric Blake:
39624         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
39626         fflush: Relicense under LGPL.
39627         * modules/fflush (License): Change to LGPL.
39628         With permission from Eric Blake, Bruno Haible, Jim Meyering:
39629         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
39630         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
39631         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00133.html>
39633         tmpfile: Relicense under LGPL.
39634         * modules/tmpfile (License): Change to LGPL.
39635         With permission from Ben Pfaff:
39636         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
39638         isfinite: Relicense under LGPL.
39639         * modules/isfinite (License): Change to LGPL.
39640         With permission from Ben Pfaff, Bruno Haible:
39641         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
39642         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00130.html>
39644         acosl..tanl: Relicense under LGPL.
39645         * modules/acosl (License): Change to LGPL.
39646         * modules/asinl (License): Likewise.
39647         * modules/atanl (License): Likewise.
39648         * modules/cosl (License): Likewise.
39649         * modules/expl (License): Likewise.
39650         * modules/logl (License): Likewise.
39651         * modules/sinl (License): Likewise.
39652         * modules/sqrtl (License): Likewise.
39653         * modules/tanl (License): Likewise.
39654         Source code originally from glibc and Paolo Bonzini. Agreements:
39655         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00137.html>
39656         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00128.html>
39658 2011-05-05  Bruno Haible  <bruno@clisp.org>
39660         signal: Define sighandler_t.
39661         * lib/signal.in.h (sighandler_t): New type.
39662         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
39663         whether sighandler_t is defined.
39664         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
39665         * modules/signal (Depends-on): Add extensions.
39666         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
39667         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
39668         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
39670 2011-05-05  Eric Blake  <eblake@redhat.com>
39672         maint: remove useless REPLACE_*_H macros
39673         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
39674         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
39675         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
39676         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
39677         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
39678         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
39679         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
39680         * m4/btowc.m4: Update callers.
39681         * m4/dirfd.m4: Likewise.
39682         * m4/duplocale.m4: Likewise.
39683         * m4/fchdir.m4: Likewise.
39684         * m4/fdopendir.m4: Likewise.
39685         * m4/inet_ntop.m4: Likewise.
39686         * m4/inet_pton.m4: Likewise.
39687         * m4/ioctl.m4: Likewise.
39688         * m4/mbrlen.m4: Likewise.
39689         * m4/mbrtowc.m4: Likewise.
39690         * m4/mbsinit.m4: Likewise.
39691         * m4/mbsnrtowcs.m4: Likewise.
39692         * m4/mbsrtowcs.m4: Likewise.
39693         * m4/poll.m4: Likewise.
39694         * m4/setlocale.m4: Likewise.
39695         * m4/wcrtomb.m4: Likewise.
39696         * m4/wcsnrtombs.m4: Likewise.
39697         * m4/wcsrtombs.m4: Likewise.
39698         * m4/wctob.m4: Likewise.
39699         * m4/wcwidth.m4: Likewise.
39700         * modules/posix_spawn: Likewise.
39701         * modules/posix_spawn_file_actions_addclose: Likewise.
39702         * modules/posix_spawn_file_actions_adddup2: Likewise.
39703         * modules/posix_spawn_file_actions_addopen: Likewise.
39704         * modules/posix_spawn_file_actions_destroy: Likewise.
39705         * modules/posix_spawn_file_actions_init: Likewise.
39706         * modules/posix_spawnattr_destroy: Likewise.
39707         * modules/posix_spawnattr_getflags: Likewise.
39708         * modules/posix_spawnattr_getpgroup: Likewise.
39709         * modules/posix_spawnattr_getschedparam: Likewise.
39710         * modules/posix_spawnattr_getschedpolicy: Likewise.
39711         * modules/posix_spawnattr_getsigdefault: Likewise.
39712         * modules/posix_spawnattr_getsigmask: Likewise.
39713         * modules/posix_spawnattr_init: Likewise.
39714         * modules/posix_spawnattr_setflags: Likewise.
39715         * modules/posix_spawnattr_setpgroup: Likewise.
39716         * modules/posix_spawnattr_setschedparam: Likewise.
39717         * modules/posix_spawnattr_setschedpolicy: Likewise.
39718         * modules/posix_spawnattr_setsigdefault: Likewise.
39719         * modules/posix_spawnattr_setsigmask: Likewise.
39720         * modules/posix_spawnp: Likewise.
39722 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
39724         Add option to do-release-commit-and-tag to specify branch.
39725         * build-aux/do-release-commit-and-tag: Add --branch.
39727 2011-05-03  Bruno Haible  <bruno@clisp.org>
39729         Avoid unnecessary compilation units, through conditional dependencies.
39730         * modules/accept (Depends-on): Add conditions to the dependencies.
39731         * modules/acosl (Depends-on): Likewise.
39732         * modules/argz (Depends-on): Likewise.
39733         * modules/asinl (Depends-on): Likewise.
39734         * modules/atanl (Depends-on): Likewise.
39735         * modules/atoll (Depends-on): Likewise.
39736         * modules/bind (Depends-on): Likewise.
39737         * modules/btowc (Depends-on): Likewise.
39738         * modules/canonicalize-lgpl (Depends-on): Likewise.
39739         * modules/ceil (Depends-on): Likewise.
39740         * modules/ceilf (Depends-on): Likewise.
39741         * modules/ceill (Depends-on): Likewise.
39742         * modules/chdir-long (Depends-on): Likewise.
39743         * modules/chown (Depends-on): Likewise.
39744         * modules/close (Depends-on): Likewise.
39745         * modules/connect (Depends-on): Likewise.
39746         * modules/cosl (Depends-on): Likewise.
39747         * modules/dirfd (Depends-on): Likewise.
39748         * modules/dprintf (Depends-on): Likewise.
39749         * modules/dprintf-posix (Depends-on): Likewise.
39750         * modules/error (Depends-on): Likewise.
39751         * modules/euidaccess (Depends-on): Likewise.
39752         * modules/expl (Depends-on): Likewise.
39753         * modules/faccessat (Depends-on): Likewise.
39754         * modules/fchdir (Depends-on): Likewise.
39755         * modules/fclose (Depends-on): Likewise.
39756         * modules/fcntl (Depends-on): Likewise.
39757         * modules/fdopendir (Depends-on): Likewise.
39758         * modules/fflush (Depends-on): Likewise.
39759         * modules/floor (Depends-on): Likewise.
39760         * modules/floorf (Depends-on): Likewise.
39761         * modules/floorl (Depends-on): Likewise.
39762         * modules/fnmatch (Depends-on): Likewise.
39763         * modules/fopen (Depends-on): Likewise.
39764         * modules/fprintf-posix (Depends-on): Likewise.
39765         * modules/frexp (Depends-on): Likewise.
39766         * modules/frexp-nolibm (Depends-on): Likewise.
39767         * modules/frexpl (Depends-on): Likewise.
39768         * modules/frexpl-nolibm (Depends-on): Likewise.
39769         * modules/fseek (Depends-on): Likewise.
39770         * modules/fsusage (Depends-on): Likewise.
39771         * modules/ftell (Depends-on): Likewise.
39772         * modules/ftello (Depends-on): Likewise.
39773         * modules/futimens (Depends-on): Likewise.
39774         * modules/getcwd (Depends-on): Likewise.
39775         * modules/getcwd-lgpl (Depends-on): Likewise.
39776         * modules/getdelim (Depends-on): Likewise.
39777         * modules/getdomainname (Depends-on): Likewise.
39778         * modules/getgroups (Depends-on): Likewise.
39779         * modules/gethostname (Depends-on): Likewise.
39780         * modules/getline (Depends-on): Likewise.
39781         * modules/getlogin_r (Depends-on): Likewise.
39782         * modules/getopt-posix (Depends-on): Likewise.
39783         * modules/getpeername (Depends-on): Likewise.
39784         * modules/getsockname (Depends-on): Likewise.
39785         * modules/getsockopt (Depends-on): Likewise.
39786         * modules/getsubopt (Depends-on): Likewise.
39787         * modules/getusershell (Depends-on): Likewise.
39788         * modules/glob (Depends-on): Likewise.
39789         * modules/grantpt (Depends-on): Likewise.
39790         * modules/iconv_open (Depends-on): Likewise.
39791         * modules/iconv_open-utf (Depends-on): Likewise.
39792         * modules/inet_ntop (Depends-on): Likewise.
39793         * modules/inet_pton (Depends-on): Likewise.
39794         * modules/ioctl (Depends-on): Likewise.
39795         * modules/isapipe (Depends-on): Likewise.
39796         * modules/isfinite (Depends-on): Likewise.
39797         * modules/isinf (Depends-on): Likewise.
39798         * modules/lchown (Depends-on): Likewise.
39799         * modules/ldexpl (Depends-on): Likewise.
39800         * modules/link (Depends-on): Likewise.
39801         * modules/linkat (Depends-on): Likewise.
39802         * modules/listen (Depends-on): Likewise.
39803         * modules/logl (Depends-on): Likewise.
39804         * modules/lstat (Depends-on): Likewise.
39805         * modules/mbrlen (Depends-on): Likewise.
39806         * modules/mbrtowc (Depends-on): Likewise.
39807         * modules/mbsinit (Depends-on): Likewise.
39808         * modules/mbsnrtowcs (Depends-on): Likewise.
39809         * modules/mbsrtowcs (Depends-on): Likewise.
39810         * modules/mbtowc (Depends-on): Likewise.
39811         * modules/memcmp (Depends-on): Likewise.
39812         * modules/mkdir (Depends-on): Likewise.
39813         * modules/mkdtemp (Depends-on): Likewise.
39814         * modules/mkfifo (Depends-on): Likewise.
39815         * modules/mkfifoat (Depends-on): Likewise.
39816         * modules/mknod (Depends-on): Likewise.
39817         * modules/mkostemp (Depends-on): Likewise.
39818         * modules/mkostemps (Depends-on): Likewise.
39819         * modules/mkstemp (Depends-on): Likewise.
39820         * modules/mkstemps (Depends-on): Likewise.
39821         * modules/mktime (Depends-on): Likewise.
39822         * modules/nanosleep (Depends-on): Likewise.
39823         * modules/open (Depends-on): Likewise.
39824         * modules/openat (Depends-on): Likewise.
39825         * modules/perror (Depends-on): Likewise.
39826         * modules/poll (Depends-on): Likewise.
39827         * modules/popen (Depends-on): Likewise.
39828         * modules/posix_spawn (Depends-on): Likewise.
39829         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
39830         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
39831         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
39832         * modules/posix_spawnp (Depends-on): Likewise.
39833         * modules/pread (Depends-on): Likewise.
39834         * modules/printf-posix (Depends-on): Likewise.
39835         * modules/ptsname (Depends-on): Likewise.
39836         * modules/putenv (Depends-on): Likewise.
39837         * modules/pwrite (Depends-on): Likewise.
39838         * modules/readline (Depends-on): Likewise.
39839         * modules/readlink (Depends-on): Likewise.
39840         * modules/readlinkat (Depends-on): Likewise.
39841         * modules/recv (Depends-on): Likewise.
39842         * modules/recvfrom (Depends-on): Likewise.
39843         * modules/regex (Depends-on): Likewise.
39844         * modules/remove (Depends-on): Likewise.
39845         * modules/rename (Depends-on): Likewise.
39846         * modules/renameat (Depends-on): Likewise.
39847         * modules/rmdir (Depends-on): Likewise.
39848         * modules/round (Depends-on): Likewise.
39849         * modules/roundf (Depends-on): Likewise.
39850         * modules/roundl (Depends-on): Likewise.
39851         * modules/rpmatch (Depends-on): Likewise.
39852         * modules/select (Depends-on): Likewise.
39853         * modules/send (Depends-on): Likewise.
39854         * modules/sendto (Depends-on): Likewise.
39855         * modules/setenv (Depends-on): Likewise.
39856         * modules/setlocale (Depends-on): Likewise.
39857         * modules/setsockopt (Depends-on): Likewise.
39858         * modules/shutdown (Depends-on): Likewise.
39859         * modules/sigaction (Depends-on): Likewise.
39860         * modules/signbit (Depends-on): Likewise.
39861         * modules/sigprocmask (Depends-on): Likewise.
39862         * modules/sinl (Depends-on): Likewise.
39863         * modules/sleep (Depends-on): Likewise.
39864         * modules/snprintf (Depends-on): Likewise.
39865         * modules/snprintf-posix (Depends-on): Likewise.
39866         * modules/socket (Depends-on): Likewise.
39867         * modules/sprintf-posix (Depends-on): Likewise.
39868         * modules/sqrtl (Depends-on): Likewise.
39869         * modules/stat (Depends-on): Likewise.
39870         * modules/strchrnul (Depends-on): Likewise.
39871         * modules/strdup-posix (Depends-on): Likewise.
39872         * modules/strerror (Depends-on): Likewise.
39873         * modules/strerror_r-posix (Depends-on): Likewise.
39874         * modules/strndup (Depends-on): Likewise.
39875         * modules/strnlen (Depends-on): Likewise.
39876         * modules/strptime (Depends-on): Likewise.
39877         * modules/strsep (Depends-on): Likewise.
39878         * modules/strsignal (Depends-on): Likewise.
39879         * modules/strstr-simple (Depends-on): Likewise.
39880         * modules/strtod (Depends-on): Likewise.
39881         * modules/strtoimax (Depends-on): Likewise.
39882         * modules/strtok_r (Depends-on): Likewise.
39883         * modules/strtoumax (Depends-on): Likewise.
39884         * modules/symlink (Depends-on): Likewise.
39885         * modules/symlinkat (Depends-on): Likewise.
39886         * modules/tanl (Depends-on): Likewise.
39887         * modules/tcgetsid (Depends-on): Likewise.
39888         * modules/tmpfile (Depends-on): Likewise.
39889         * modules/trunc (Depends-on): Likewise.
39890         * modules/truncf (Depends-on): Likewise.
39891         * modules/truncl (Depends-on): Likewise.
39892         * modules/uname (Depends-on): Likewise.
39893         * modules/unlink (Depends-on): Likewise.
39894         * modules/unlockpt (Depends-on): Likewise.
39895         * modules/unsetenv (Depends-on): Likewise.
39896         * modules/usleep (Depends-on): Likewise.
39897         * modules/utimensat (Depends-on): Likewise.
39898         * modules/vasprintf (Depends-on): Likewise.
39899         * modules/vdprintf (Depends-on): Likewise.
39900         * modules/vdprintf-posix (Depends-on): Likewise.
39901         * modules/vfprintf-posix (Depends-on): Likewise.
39902         * modules/vprintf-posix (Depends-on): Likewise.
39903         * modules/vsnprintf (Depends-on): Likewise.
39904         * modules/vsnprintf-posix (Depends-on): Likewise.
39905         * modules/vsprintf-posix (Depends-on): Likewise.
39906         * modules/wcrtomb (Depends-on): Likewise.
39907         * modules/wcscasecmp (Depends-on): Likewise.
39908         * modules/wcscspn (Depends-on): Likewise.
39909         * modules/wcsdup (Depends-on): Likewise.
39910         * modules/wcsncasecmp (Depends-on): Likewise.
39911         * modules/wcsnrtombs (Depends-on): Likewise.
39912         * modules/wcspbrk (Depends-on): Likewise.
39913         * modules/wcsrtombs (Depends-on): Likewise.
39914         * modules/wcsspn (Depends-on): Likewise.
39915         * modules/wcsstr (Depends-on): Likewise.
39916         * modules/wcstok (Depends-on): Likewise.
39917         * modules/wcswidth (Depends-on): Likewise.
39918         * modules/wctob (Depends-on): Likewise.
39919         * modules/wctomb (Depends-on): Likewise.
39920         * modules/wctype (Depends-on): Likewise.
39921         * modules/wcwidth (Depends-on): Likewise.
39922         * modules/write (Depends-on): Likewise.
39924 2011-05-03  Bruno Haible  <bruno@clisp.org>
39926         Support for conditional dependencies.
39927         * doc/gnulib.texi (Module description): Document the syntax of
39928         conditional dependencies.
39929         * gnulib-tool: New option --conditional-dependencies.
39930         (func_usage): Document it.
39931         (cond_dependencies): New variable.
39932         (func_get_automake_snippet_conditional,
39933         func_get_automake_snippet_unconditional): New functions, extracted from
39934         func_get_automake_snippet.
39935         (func_get_automake_snippet): Use them.
39936         (sed_first_32_chars): New variable.
39937         (func_module_shellfunc_name): New function.
39938         (func_module_shellvar_name): New function.
39939         (func_module_conditional_name): New function.
39940         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
39941         func_cond_module_condition): New functions.
39942         (func_modules_transitive_closure): Add support for conditional
39943         dependencies.
39944         (func_emit_lib_Makefile_am): For a conditional module, enclose the
39945         conditional automake snippet in an automake conditional.
39946         (func_emit_autoconf_snippets): Emit shell functions that contain the
39947         code for conditional modules.
39948         (func_import, func_create_testdir): Update specification.
39950 2011-05-03  Eric Blake  <eblake@redhat.com>
39952         test-getaddrinfo: report error information
39953         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
39955 2011-05-03  Jim Meyering  <meyering@redhat.com>
39957         bootstrap: avoid build failure when $GZIP is set
39958         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
39959         program name.  If defined at all, it is supposed to list gzip options.
39960         Reported by Alan Curry in http://debbugs.gnu.org/8609
39962 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
39964         readme-release: new module with release instructions
39965         * modules/readme-release: New module.
39966         * top/README-release: New file, from coreutils, grep, diffutils.
39967         * MODULES.html.sh (Support for maintaining and releasing): Add it.
39969 2011-05-02  Eric Blake  <eblake@redhat.com>
39971         fflush: also replace fclose when fixing fflush
39972         * modules/fflush (Depends-on): Add fclose.
39973         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
39974         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
39975         memstreams with no backing fd.
39976         * doc/posix-functions/fclose.texi (fclose): Document the use of
39977         fflush module to fix the bug.
39978         * tests/test-fclose.c (main): Relax test when fclose is used in
39979         isolation.
39981         fclose: add some tests
39982         * modules/fclose-tests: New test module.
39983         * tests/test-fclose.c: New file.
39984         * doc/posix-functions/fclose.texi (fclose): Document the bug.
39986         fclose: reduced dependencies
39987         * modules/fclose (Depends-on): Switch from fflush/fseeko to
39988         simpler lseek.
39989         * lib/fclose.c (rpl_fclose): Likewise.
39990         Reported by Simon Josefsson.
39992         exit: drop remaining clients
39993         * modules/argmatch (Depends-on): Replace exit with stdlib.
39994         * modules/copy-file (Depends-on): Likewise.
39995         * modules/execute (Depends-on): Likewise.
39996         * modules/exitfail (Depends-on): Likewise.
39997         * modules/obstack (Depends-on): Likewise.
39998         * modules/pagealign_alloc (Depends-on): Likewise.
39999         * modules/pipe-filter-gi (Depends-on): Likewise.
40000         * modules/pipe-filter-ii (Depends-on): Likewise.
40001         * modules/savewd (Depends-on): Likewise.
40002         * modules/spawn-pipe (Depends-on): Likewise.
40003         * modules/wait-process (Depends-on): Likewise.
40004         * modules/xsetenv (Depends-on): Likewise.
40005         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
40006         * modules/git-merge-changelog (Depends-on): Likewise.
40007         * modules/long-options (Depends-on): Likewise.
40008         * modules/pt_chown (Depends-on): Likewise.
40009         * modules/sysexits (Depends-on): Likewise.
40011         freading: relax license from LGPLv3+ to LGPLv2+
40012         * modules/freading (License): Relax LGPL version.
40014 2011-05-02  Bruno Haible  <bruno@clisp.org>
40016         fchdir: Remove unused dependencies.
40017         * modules/fchdir (Depends-on): Remove include_next.
40019 2011-05-02  Bruno Haible  <bruno@clisp.org>
40021         gnulib-tool: Refactor.
40022         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
40023         from func_emit_autoconf_snippets.
40024         (func_emit_autoconf_snippets): Use it.
40026 2011-05-02  Simon Josefsson  <simon@josefsson.org>
40028         * NEWS: Document removal of 'exit'.
40029         * modules/exit: Remove file.
40031 2011-05-01  Bruno Haible  <bruno@clisp.org>
40033         Update DEPENDENCIES.
40034         * DEPENDENCIES (gettext): Recommend the newest release.
40035         Reported by Simon Josefsson.
40037 2011-05-01  Bruno Haible  <bruno@clisp.org>
40039         gnulib-tool: Reduce code duplication.
40040         * gnulib-tool (func_emit_autoconf_snippets): New function.
40041         (func_import, func_create_testdir): Use it.
40043 2011-04-30  Eric Blake  <eblake@redhat.com>
40045         fclose: don't fail on non-seekable input stream
40046         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
40047         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
40048         since fflush is allowed to fail in that case.
40050 2011-04-30  Bruno Haible  <bruno@clisp.org>
40052         dup3: cleanup
40053         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
40055 2011-04-30  Bruno Haible  <bruno@clisp.org>
40057         netdb: Make it work in C++ mode.
40058         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
40059         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
40060         module.
40061         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
40062         gl_MODULE_INDICATOR_FOR_TESTS.
40063         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
40064         * modules/netdb-c++-tests: New file.
40065         * tests/test-netdb-c++.cc: New file.
40067 2011-04-30  Bruno Haible  <bruno@clisp.org>
40069         New modules 'vfscanf', 'vscanf'.
40070         * modules/vfscanf: New file.
40071         * modules/vscanf: New file.
40072         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
40073         here.
40074         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
40075         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
40077 2011-04-30  Bruno Haible  <bruno@clisp.org>
40079         passfd: Add comments.
40080         * lib/passfd.c: Add comments about platforms.
40082 2011-04-30  Bruno Haible  <bruno@clisp.org>
40084         sys_uio: Make <sys/uio.h> self-contained.
40085         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
40086         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
40088 2011-04-30  Bruno Haible  <bruno@clisp.org>
40090         sys_socket: Ensure 'struct iovec' definition.
40091         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
40092         <sys/socket.h>.
40093         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
40095 2011-04-30  Bruno Haible  <bruno@clisp.org>
40097         sys_uio: Protect definition of 'struct iovec'.
40098         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
40099         it as a C struct.
40101 2011-04-30  Bruno Haible  <bruno@clisp.org>
40103         manywarnings: fix indentation
40104         * m4/manywarnings.m4: Indent by 2 spaces consistently.
40106 2011-04-30  Pádraig Brady  <P@draigBrady.com>
40108         manywarnings: add -Wno-missing-field-initializers if needed.
40109         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
40110         option if it's needed to allow initialization with { 0, }
40112 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
40114         announce-gen: cosmetic improvement
40115         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
40117 2011-04-29  Jim Meyering  <meyering@redhat.com>
40119         vc-list-files: indent with spaces, not TABs
40120         * build-aux/vc-list-files: Convert leading TABs to spaces,
40121         to match the style of most other files in gnulib.
40123         announce-gen: indent with spaces, not TABs
40124         * build-aux/announce-gen: Convert all TABs to spaces, to match
40125         the style of most other files in gnulib.
40127 2011-04-29  Eric Blake  <eblake@redhat.com>
40129         quotearg: avoid uninitialized variable use
40130         * lib/quotearg.c (quoting_options_from_style): Initialize
40131         remaining fields, and ensure that custom styles are only used via
40132         quoting_options rather than quoting_style.
40134 2011-04-29  Jim Meyering  <meyering@redhat.com>
40136         maint.mk: remove unused VC-tag variable
40137         * top/maint.mk (VC-tag): Remove unused variable.
40139 2011-04-29  Bruno Haible  <bruno@clisp.org>
40141         netdb: fix gai_strerror replacements
40142         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
40143         * modules/netdb: Substitute it.
40145 2011-04-29  Jim Meyering  <meyering@redhat.com>
40147         test-getcwd.c: avoid new set-but-not-used warning
40148         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
40149         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
40150         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
40151         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
40153         test-hash.c: avoid a new shadowing warning
40154         * tests/test-hash.c (main): Don't shadow "dup".
40156 2011-04-28  Eric Blake  <eblake@redhat.com>
40158         getaddrinfo: fix gai_strerror signature
40159         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
40160         and work around mingw with UNICODE defined.
40161         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
40162         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
40163         * modules/netdb (Makefile.am): Substitute it.
40164         * lib/netdb.in.h (gai_strerror): Declare replacement.
40165         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
40166         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
40167         the fix.
40169         getsockopt: avoid compiler warning
40170         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
40171         Reported by Matthias Bolte.
40173         tests: drop unused link dependency
40174         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
40175         * modules/dirent-safer-tests (Makefile.am): Likewise.
40176         * modules/fdopendir-tests (Makefile.am): Likewise.
40177         * modules/mkfifoat-tests (Makefile.am): Likewise.
40178         * modules/openat-safer-tests (Makefile.am): Likewise.
40179         * modules/openat-tests (Makefile.am): Likewise.
40180         * modules/readlinkat-tests (Makefile.am): Likewise.
40181         * modules/symlinkat-tests (Makefile.am): Likewise.
40182         * modules/linkat-tests (Makefile.am): Likewise.
40183         (Depends-on): Switch to filenamecat-lgpl.
40184         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
40185         LIBINTL.
40186         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
40187         * tests/test-linkat.c (main): Don't require xalloc.
40189         hash, mgetgroups: drop xalloc dependency
40190         * lib/hash.c (includes): Adjust includes.
40191         * lib/mgetgroups.c (includes): Likewise.
40192         (xgetgroups): Move...
40193         * lib/xgetgroups.c: ...to new file.
40194         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
40195         * modules/xgetgroups: New file, split from...
40196         * modules/mgetgroups: ...here.
40197         (Depends-on): Add xalloc-oversized.
40198         * modules/hash (Depends-on): Likewise.
40199         * modules/hash-tests (Depends-on): Drop xalloc.
40200         (test_hash_LDADD): Drop unused library.
40201         * tests/test-hash.c (main): Break xalloc dependency.
40202         (includes): Drop unused include.
40204         xalloc-oversized: new module
40205         * modules/xalloc-oversized: New module.
40206         * modules/xalloc (Depends-on): Add it.
40207         * lib/xalloc.h (xalloc_oversized): Move...
40208         * lib/xalloc-oversized.h: ...into new file.
40210         utimecmp: drop dependency on xmalloc
40211         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
40212         due to memory pressure.
40213         * modules/utimecmp (Depends-on): Drop xalloc.
40215 2011-04-27  Eric Blake  <eblake@redhat.com>
40217         getcwd: fix mingw bugs
40218         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
40219         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
40220         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
40222 2011-04-27  Bruno Haible  <bruno@clisp.org>
40224         mkstemps: Ensure declaration on MacOS X 10.5.
40225         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
40226         * doc/glibc-functions/mkstemps.texi: Document header file problem on
40227         MacOS X.
40229 2011-04-27  Bruno Haible  <bruno@clisp.org>
40231         mkstemp: More documentation.
40232         * doc/posix-functions/mkstemp.texi: Document header file problem on
40233         MacOS X.
40235 2011-04-27  Bruno Haible  <bruno@clisp.org>
40237         mkstemp: Tweak configure message when cross-compiling.
40238         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
40239         result as a guess.
40241 2011-04-27  Bruno Haible  <bruno@clisp.org>
40243         clean-temp: Clarify what it does.
40244         * lib/clean-temp.h: Add more comments.
40245         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
40246         module.
40247         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
40248         * doc/glibc-functions/mkstemps.texi: Likewise.
40249         * doc/glibc-functions/mkostemps.texi: Likewise.
40251 2011-04-27  Eric Blake  <eblake@redhat.com>
40253         fchdir: avoid extra chdir and fix test
40254         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
40255         getcwd-lgpl.
40256         * lib/fchdir.c (get_name): Any absolute name will do; it does not
40257         have to be canonical.
40258         (canonicalize_file_name): Drop unused macro.
40259         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
40261         filenamecat-lgpl: fix licence
40262         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
40263         when it was first created.
40265         linkat, renameat: add missing dependency
40266         * modules/linkat (Depends-on): Require getcwd-lgpl.
40267         * modules/renameat (Depends-on): Likewise.
40269         tests: reduce dependencies
40270         * tests/test-linkat.c (main): Use lighter-weight getcwd.
40271         * tests/test-renameat.c (main): Likewise.
40272         * modules/linkat-tests (Depends-on): Relax dependency.
40273         * modules/renameat-tests (Depends-on): Likewise.
40274         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
40275         dependency explicit.
40277         save-cwd: reduce default dependency
40278         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
40279         * lib/save-cwd.c: Update comments.
40280         * NEWS: Document the semantic change.
40282         getcwd: enhance tests
40283         * tests/test-getcwd-lgpl.c: New file, taken from...
40284         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
40285         repeat long path stress tests from m4 probe.
40286         * modules/getcwd-lgpl-tests: New module.
40287         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
40288         * m4/getcwd-abort-bug.m4: Update comment.
40289         * m4/getcwd-path-max.m4: Likewise.
40291         getcwd-lgpl: new module
40292         * modules/getcwd-lgpl: New module.
40293         * lib/getcwd-lgpl.c: New file.
40294         * doc/posix-functions/getcwd.texi (getcwd): Document it.
40295         * MODULES.html.sh (lacking POSIX:2008): Likewise.
40296         * modules/getcwd (configure.ac): Set C witness.
40297         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
40299         getcwd: tweak comments
40300         * m4/getcwd-abort-bug.m4: Fix comments.
40301         * m4/getcwd-path-max.m4: Likewise.
40302         * m4/getcwd.m4: Likewise.
40304 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
40305         and Eric Blake  <eblake@redhat.com>
40307         mkstemp: replace if system version uses wrong permissions
40308         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
40309         read/write mode bits set in file created by mkstemp.
40310         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
40312 2011-04-27  Eric Blake  <eblake@redhat.com>
40314         passfd: avoid compiler warning
40315         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
40316         Reported by Laine Stump.
40318 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
40320         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
40321         required by the NetBSD (and perhaps other 4.4BSD derived) join.
40323 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
40324         and Eric Blake  <eblake@redhat.com>
40326         mkstemp: mention clean-temp module
40327         * lib/mkstemp.c: Add comment.
40328         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
40330 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
40332         inttypes: also provide default values for 32-bit tests
40333         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
40334         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
40336 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
40338         strtoumax: remove dependency on strtoimax
40339         This is like the strtoull change of yesterday.
40340         * modules/strtoumax (Files): Add lib/strtoimax.c.
40341         (Depends-on): Remove strtoimax and add verify.
40343         inttypes-incomplete: new module
40344         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
40345         all but the PRI* and SCN* parts of gl_INTTYPES_H.
40346         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
40347         of gl_INTTYPES_H.
40348         (gl_INTTYPES_H): Rewrite in terms of these new macros.
40349         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
40350         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
40351         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
40352         * modules/strtoumax, modules/xstrtol (Depends-on):
40353         Depend on inttypes-incomplete, not inttypes.
40354         * modules/inttypes-incomplete: New module, containing the contents
40355         of the old modules/inttypes module, except that the Files: section
40356         omits m4/inttypes-pri.m4, and the configure.ac section invokes
40357         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
40358         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
40359         (Depends-on): Depend only on inttypes-incomplete.
40360         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
40362         inttypes: omit now-redundant strtoimax and strtoumax work
40363         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
40364         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
40366         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
40367         This supports apps that need pointers to strtoimax and strtoumax,
40368         and ports to HP-UX 11.00 64.bit, which has macros that expand to
40369         nonexistent functions.  See
40370         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00241.html>
40371         et seq.
40372         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
40373         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
40374         a macro.
40375         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
40377 2011-04-25  Simon Josefsson  <simon@josefsson.org>
40379         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
40381 2011-04-25  Bruno Haible  <bruno@clisp.org>
40383         strtol, strtoul: Mark modules as obsolete.
40384         * modules/strtol (Status, Notice): New sections.
40385         * modules/strtoul (Status, Notice): New sections.
40387 2011-04-25  Bruno Haible  <bruno@clisp.org>
40389         strtod: Remove check for strtod, unless supporting old platforms.
40390         * modules/strtod-obsolete: New file.
40391         * m4/strtod-obsolete.m4: New file.
40392         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
40393         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
40394         * modules/strtod (Depends-on): Add strtod-obsolete.
40395         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
40397 2011-04-25  Bruno Haible  <bruno@clisp.org>
40399         strcase: Make module obsolete.
40400         * modules/strcase (Status, Notice): New sections.
40402 2011-04-25  Bruno Haible  <bruno@clisp.org>
40404         dup2: Remove check for dup2, unless supporting old obsolete platforms.
40405         * modules/dup2-obsolete: New file.
40406         * m4/dup2-obsolete.m4: New file.
40407         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
40408         gl_FUNC_DUP2_OBSOLETE is not also defined.
40409         * modules/dup2 (Depends-on): Add dup2-obsolete.
40410         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
40412 2011-04-25  Bruno Haible  <bruno@clisp.org>
40414         strnlen: Avoid memchr related link error on old obsolete platforms.
40415         * modules/memchr-obsolete: New file.
40416         * m4/memchr-obsolete.m4: New file.
40417         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
40418         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
40419         * modules/memchr (Depends-on): Add memchr-obsolete.
40420         * modules/strnlen (Depends-on): Likewise.
40421         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
40423 2011-04-25  Jim Meyering  <meyering@redhat.com>
40425         maint.mk: makefile_at_at_check extend and clean up
40426         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
40427         in addition to */Makefile.am.
40428         Exempt legitimate uses of @VAR@ notation, e.g.,
40429         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
40430         Remove obsolete coreutils-specific comment.
40431         Prompted by discussion here:
40432         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
40434 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
40436         strtoul: remove dependency on strtol
40437         This is so that 'configure' need not check for strtol merely because
40438         the application needs strtoul.
40439         * modules/strtoul (Files): Add lib/strtol.c.
40440         (Depends-on): Remove strtol.
40442         strtoull: remove dependency on strtoul
40443         This is like the strtoll change.
40444         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
40445         (Depends-on): Remove strtoul.
40447         strtoll: remove dependency on strtol
40448         This is so that 'configure' need not check for strtol merely because
40449         the application needs strtoll.
40450         * modules/strtoll (Files): Add lib/strtol.c.
40451         (Depends-on): Remove strtol.
40453 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
40455         inttypes: Move some configure check to module 'imaxdiv'.
40456         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
40457         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
40458         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
40460 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
40462         inttypes: Move some configure check to module 'imaxabs'.
40463         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
40464         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
40465         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
40467 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
40469         inttypes: Remove configure tests that are not needed since 2009-12-31.
40470         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
40471         gl_cv_header_working_inttypes_h.
40473 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
40475         * modules/strnlen (Depends-on): Remove memchr.
40476         The strnlen implementation doesn't need the memchr module's fixes; see
40477         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00237.html>.
40479         strtol: remove dependency on wchar
40480         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
40481         * modules/strtol (Depends-on): Remove wchar.
40483 2011-04-21  Eric Blake  <eblake@redhat.com>
40485         passfd: fix test regression on Linux
40486         * modules/passfd-tests (configure.ac): Correct socketpair check.
40488         passfd: speed up configure and drop unused code
40489         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
40490         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
40491         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
40492         Instead of probing at configure for unix_scm_rights_bsd44_way,
40493         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
40494         check to a struct member probe.
40495         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
40496         (sendfd, recvfd): Update preprocessor checks.
40497         * modules/passfd (Files): Reflect rename, and drop unused file.
40498         (Depends-on): Drop unused dependency.
40500         passfd: allow compilation on mingw
40501         * modules/sys_socket (Depends-on): Add sys_uio.
40502         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
40503         iovec and a minimal struct msghdr.
40504         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
40505         * tests/test-sys_socket.c (main): Enhance test.
40506         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
40507         guaranteed to provide what we need.
40508         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
40509         * modules/passfd-tests (Depends-on): Add sys_wait.
40510         * tests/test-passfd.c (main): Skip test on mingw, for now.
40511         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
40512         partial 'struct msghdr' implementation.
40514         sys_uio: new module
40515         * modules/sys_uio: New module.
40516         * modules/sys_uio-tests: Likewise.
40517         * lib/sys_uio.in.h: New file.
40518         * m4/sys_uio_h.m4: Likewise.
40519         * tests/test-sys_uio.c: Likewise.
40520         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
40521         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
40523 2011-04-20  Jim Meyering  <meyering@redhat.com>
40525         useless-if-before-free: avoid false-positive
40526         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
40527         disjunct so that it too requires a terminating ";".  Without that,
40528         this script would identify as useless one statement from gcc that
40529         was not:
40530           if (aligned_ptr)
40531             free (((void **) aligned_ptr) [-1]);
40533 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
40535         doc: update users.txt.
40536         * users.txt: Add barcode.
40538 2011-04-19  Bruno Haible  <bruno@clisp.org>
40540         ioctl: Remove link dependency on native Windows.
40541         * lib/fd-hook.h: Renamed from lib/close-hook.h.
40542         (gl_close_fn, gl_ioctl_fn): New types.
40543         (struct fd_hook): Renamed from struct close_hook. Change type of
40544         private_close_fn field. Add private_ioctl_fn field.
40545         (close_hook_fn): Add parameter for primary close method.
40546         (execute_close_hooks, execute_all_close_hooks): Likewise.
40547         (ioctl_hook_fn): New type.
40548         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
40549         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
40550         argument.
40551         (unregister_fd_hook): Renamed from unregister_close_hook.
40552         * lib/fd-hook.c: Renamed from lib/close-hook.c.
40553         Don't include <unistd.h>.
40554         (close): Remove undef.
40555         (anchor): Update.
40556         (execute_close_hooks): Add argument for primary close method.
40557         (execute_all_close_hooks): Likewise.
40558         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
40559         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
40560         argument. Allow each argument to be NULL.
40561         (unregister_fd_hook): Renamed from unregister_close_hook.
40562         * lib/close.c (rpl_close): Pass 'close' function pointer to
40563         execute_all_close_hooks.
40564         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
40565         (primary_ioctl): New function.
40566         (ioctl): Don't call ioctlsocket here. Instead, call
40567         execute_all_ioctl_hooks.
40568         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
40569         close method.
40570         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
40571         (fd_sockets_hook): Renamed from close_sockets_hook.
40572         (gl_sockets_startup, gl_sockets_cleanup): Update.
40573         * modules/fd-hook: Renamed from modules/close-hook. Update.
40574         * modules/close (Depends-on): Add fd-hook, remove close-hook.
40575         * modules/sockets (Depends-on): Likewise.
40576         * modules/ioctl (Depends-on): Add fd-hook.
40577         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
40578         GNULIB_SOCKET.
40580 2011-04-19  Bruno Haible  <bruno@clisp.org>
40582         Move the support of O_NONBLOCK in open() to the 'open' module.
40583         * modules/nonblocking (Depends-on): Remove 'open'.
40584         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
40585         gl_cv_have_open_O_NONBLOCK.
40586         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
40587         O_NONBLOCK support.
40588         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
40590 2011-04-17  Bruno Haible  <bruno@clisp.org>
40592         pipe2: Simplify code.
40593         * lib/pipe2.c (pipe2): Reduce code duplication.
40595 2011-04-17  Bruno Haible  <bruno@clisp.org>
40597         nonblocking: Add comment.
40598         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
40600 2011-04-17  Bruno Haible  <bruno@clisp.org>
40602         nonblocking: Add tests for sockets.
40603         * tests/test-nonblocking-socket.sh: New file.
40604         * tests/test-nonblocking-socket-main.c: New file.
40605         * tests/test-nonblocking-socket-child.c: New file.
40606         * tests/test-nonblocking-socket.h: New file.
40607         * tests/socket-server.h: New file.
40608         * tests/socket-client.h: New file.
40609         * modules/nonblocking-socket-tests: New file.
40610         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
40612 2011-04-17  Bruno Haible  <bruno@clisp.org>
40614         nonblocking: Add tests for pipes.
40615         * tests/test-nonblocking-pipe.sh: New file.
40616         * tests/test-nonblocking-pipe-main.c: New file.
40617         * tests/test-nonblocking-pipe-child.c: New file.
40618         * tests/test-nonblocking-pipe.h: New file.
40619         * tests/test-nonblocking-writer.h: New file.
40620         * tests/test-nonblocking-reader.h: New file.
40621         * tests/test-nonblocking-misc.h: New file.
40622         * modules/nonblocking-pipe-tests: New file.
40623         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
40625 2011-04-16  Bruno Haible  <bruno@clisp.org>
40627         gettext: Clarify the needed programmer actions.
40628         * modules/gettext (Notice): New field.
40629         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
40631 2011-04-16  Bruno Haible  <bruno@clisp.org>
40633         strchrnul: Tweak last commit.
40634         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
40635         bug.
40636         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
40637         as in _GL_FUNCDECL_SYS.
40638         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
40639         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
40641 2011-04-15  Eric Blake  <eblake@redhat.com>
40643         strchrnul: work around cygwin bug
40644         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
40645         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
40646         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
40647         * modules/string (Makefile.am): Substitute it.
40648         * lib/string.in.h (strchrnul): Use it.
40650 2011-04-15  Bruno Haible  <bruno@clisp.org>
40652         Don't require lib/stdio-write.c when only module 'stdio' is used.
40653         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
40654         invocation.
40655         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
40657 2011-04-14  Bruno Haible  <bruno@clisp.org>
40659         Support non-blocking pipe I/O in read() on native Windows.
40660         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
40661         (read): New declaration.
40662         * lib/read.c: New file.
40663         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
40664         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
40665         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
40666         vscanf): New declarations.
40667         * lib/stdio-read.c: New file.
40668         * m4/read.m4: New file.
40669         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
40670         REPLACE_READ.
40671         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
40672         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
40673         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
40674         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
40675         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
40676         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
40677         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
40678         * modules/read: New file.
40679         * modules/nonblocking (Files): Add lib/stdio-read.c.
40680         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
40681         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
40682         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
40683         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
40684         * modules/pread (Depends-on): Add read.
40685         * modules/safe-read (Depends-on): Likewise.
40686         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
40687         gets, scanf, vfscanf, vscanf): Verify signatures.
40688         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
40689         problem with non-blocking pipes.
40690         * doc/posix-functions/fgetc.texi: Likewise.
40691         * doc/posix-functions/fgets.texi: Likewise.
40692         * doc/posix-functions/fread.texi: Likewise.
40693         * doc/posix-functions/fscanf.texi: Likewise.
40694         * doc/posix-functions/getc.texi: Likewise.
40695         * doc/posix-functions/getchar.texi: Likewise.
40696         * doc/posix-functions/gets.texi: Likewise.
40697         * doc/posix-functions/scanf.texi: Likewise.
40698         * doc/posix-functions/vfscanf.texi: Likewise.
40699         * doc/posix-functions/vscanf.texi: Likewise.
40701 2011-04-14  Bruno Haible  <bruno@clisp.org>
40703         Support non-blocking pipe I/O in write() on native Windows.
40704         * lib/write.c (rpl_write): Split a write request that failed merely
40705         because the byte count was larger than the pipe buffer's size.
40706         * doc/posix-functions/write.texi: Mention the problem with large byte
40707         counts.
40709 2011-04-14  Bruno Haible  <bruno@clisp.org>
40711         wchar: Ensure that wchar_t gets defined on uClibc.
40712         * lib/wchar.in.h: On uClibc, include <stddef.h>.
40713         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
40715 2011-04-13  Bruno Haible  <bruno@clisp.org>
40717         safe-write, full-read: Avoid unnecessary compilation units.
40718         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
40719         (Depends-on): Remove safe-read. Add ssize_t.
40720         * modules/full-read (Files): Add lib/full-write.c.
40721         (Depends-on): Add full-write.
40723 2011-04-13  Bruno Haible  <bruno@clisp.org>
40725         Support non-blocking pipe I/O and SIGPIPE in pwrite().
40726         * modules/pwrite (Depends-on): Add 'write'.
40728 2011-04-13  Bruno Haible  <bruno@clisp.org>
40730         Support non-blocking pipe I/O in write() on native Windows.
40731         * lib/unistd.in.h (write): Enable replacement also if
40732         GNULIB_UNISTD_H_NONBLOCKING is 1.
40733         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
40734         (rpl_write): When failing to write on a non-blocking pipe, change
40735         errno from ENOSPC to EAGAIN.
40736         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
40737         putchar, puts, vfprintf, vprintf): Enable replacement also if
40738         GNULIB_STDIO_H_NONBLOCKING is 1.
40739         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
40740         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
40741         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
40742         CALL_WITH_SIGPIPE_EMULATION.
40743         (CALL_WITH_SIGPIPE_EMULATION): Use them.
40744         * m4/nonblocking.m4: New file.
40745         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
40746         for non-blocking I/O support.
40747         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
40748         GNULIB_UNISTD_H_NONBLOCKING.
40749         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
40750         required for non-blocking I/O support.
40751         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
40752         * modules/nonblocking (Files): Add m4/nonblocking.m4,
40753         lib/stdio-write.c, m4/asm-underscore.m4.
40754         (Depends-on): Add stdio, unistd.
40755         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
40756         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
40757         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
40758         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
40759         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
40760         problem with non-blocking pipes.
40761         * doc/posix-functions/fputc.texi: Likewise.
40762         * doc/posix-functions/fputs.texi: Likewise.
40763         * doc/posix-functions/fwrite.texi: Likewise.
40764         * doc/posix-functions/printf.texi: Likewise.
40765         * doc/posix-functions/putc.texi: Likewise.
40766         * doc/posix-functions/putchar.texi: Likewise.
40767         * doc/posix-functions/puts.texi: Likewise.
40768         * doc/posix-functions/vfprintf.texi: Likewise.
40769         * doc/posix-functions/vprintf.texi: Likewise.
40770         * doc/posix-functions/write.texi: Likewise.
40772 2011-04-10  Jim Meyering  <meyering@redhat.com>
40774         maint.mk: prohibit doubled words
40775         Detect them also when they're separated by a newline.
40776         There are 3 ways to customize it:
40777           - disable the test on a per file basis, as usual with rules using
40778             $(VC_LIST_EXCEPT)
40779           - replace the default doubled-word-selecting regexp (affects all files)
40780           - ignore a particular file-vs-doubled-word match
40781         I nearly used that last one to ignore the "is is" match in
40782         coreutils' NEWS file, since the text was "ls -is is ..."
40783         To do that, I would have added this line to cfg.mk:
40784           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
40785         but it would have ignored any "is is" match in NEWS.
40786         Low probability, but still...
40787         Instead, I changed the text, slightly:
40788           -  ls -is is now consistent with ls -lis in ignoring values returned
40789           +  "ls -is" is now consistent with ls -lis in ignoring values returned
40790         * top/maint.mk (prohibit_double_word_RE_): Provide default.
40791         (prohibit_doubled_word_): Define.
40792         (sc_prohibit_doubled_word): New rule.
40793         (sc_prohibit_the_the): Remove.  Subsumed by the above.
40795 2011-04-10  Jim Meyering  <meyering@redhat.com>
40797         maint: fix doubled-word typo in comment
40798         * m4/gethostname.m4: s/is is/it is/
40799         * m4/getdomainname.m4: Likewise.
40801 2011-04-10  Jim Meyering  <meyering@redhat.com>
40803         maint: remove doubled word: s/it it/it/
40804         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
40806 2011-04-10  Jim Meyering  <meyering@redhat.com>
40808         maint.mk: remove useless semicolon and backslash
40809         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
40810         semicolon and backslash.
40812 2011-04-10  Bruno Haible  <bruno@clisp.org>
40814         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
40815         * modules/stdint-tests (Depends-on): Add wchar.
40817 2011-04-10  Jim Meyering  <meyering@redhat.com>
40819         maint: remove doubled words in comments, e.g., s/a a/a/
40820         * lib/strptime.c (day_of_the_week): s/the the/the/
40821         * tests/test-chown.h (test_chown): s/a a/a/
40823         test-chown.h: correct a cast
40824         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
40825         when the destination is a stat.st_gid.
40827 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
40829         getaddrinfo: Fix test for sa_len member.
40830         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
40831         include <sys/types.h> before <sys/socket.h>.
40833 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
40835         maint: change "can not" to "cannot"
40836         * doc/posix-functions/iconv.texi (iconv): This one crossed line
40837         boundaries.
40839 2011-04-09  Jim Meyering  <meyering@redhat.com>
40841         maint: change "a a" to "a"
40842         * tests/test-lchown.h (test_lchown): s/a a/a/
40844         maint.mk: prohibit \<the the\>
40845         * top/maint.mk (sc_prohibit_the_the): New rule.
40847         maint: fix "the the" in comment
40848         * lib/count-one-bits.h: s/the the/the/
40850         maint: change "can not" to "cannot"
40851         But do not change the occurrences in maintain.texi or in
40852         build-aux/po/Makefile.in.in, which I presume comes from gettext.
40853         * doc/gnulib-tool.texi: s/can not/cannot/
40854         * doc/posix-functions/accept.texi (accept): Likewise.
40855         * doc/posix-functions/socket.texi (socket): Likewise.
40856         * lib/mbrtowc.c: Likewise.
40858         maint.mk: prohibit use of "can not"
40859         * top/maint.mk (sc_prohibit_can_not): New rule.
40860         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
40862 2011-04-09  Bruno Haible  <bruno@clisp.org>
40864         careadlinkat: Guard against misuse of careadlinkatcwd.
40865         * lib/careadlinkat.c: Include <stdlib.h>.
40866         (careadlinkatcwd): Check that the fd argument is as expected.
40868 2011-04-09  Bruno Haible  <bruno@clisp.org>
40870         careadlinkat: Use common coding style.
40871         * lib/careadlinkat.c: Move gnulib includes after system includes.
40873 2011-04-09  Bruno Haible  <bruno@clisp.org>
40875         careadlinkat: Clarify specification.
40876         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
40877         (careadlinkatcwd): Add comment.
40878         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
40880 2011-04-09  Bruno Haible  <bruno@clisp.org>
40882         areadlinkat: Avoid link error on many platforms.
40883         * modules/areadlinkat (Depends-on): Add areadlink.
40885 2011-04-09  Bruno Haible  <bruno@clisp.org>
40887         allocator, careadlinkat: Fix double-inclusion guard.
40888         * lib/allocator.h: Fix double-inclusion guard.
40889         * lib/careadlinkat.h: Likewise.
40891 2011-04-09  Bruno Haible  <bruno@clisp.org>
40893         relocatable-prog-wrapper: Update after module 'areadlink' changed.
40894         * lib/relocwrapper.c: Update dependencies hierarchy.
40895         * build-aux/install-reloc: Update list of files to be compiled.
40896         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
40897         lib/allocator.[hc].
40899 2011-04-08  Eric Blake  <eblake@redhat.com>
40901         strftime: silence gnulib-tool warning
40902         * modules/strftime-tests (Depends-on): Drop automatic dependency.
40904 2011-04-08  Bruno Haible  <bruno@clisp.org>
40906         verify: Fix syntax error with GCC 4.6 in C++ mode.
40907         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
40908         (HAVE_STATIC_ASSERT): New macro.
40909         (verify_true, verify): Use 'static_assert' if it is supported and
40910         '_Static_assert' is not supported.
40912 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
40914         allocator: New module.
40915         * modules/allocator, lib/allocator.c: New files.
40916         * lib/allocator.h (stdlib_allocator): New decl.
40917         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
40918         Remove.  Do not include <stdlib.h>.
40919         (careadlinkat): Use stdlib_allocator instead of rolling our own.
40920         * modules/careadlinkat (Files): Remove lib/allocator.h.
40921         (Depends-on): Add allocator.
40923         stdlib: let modules use system malloc, realloc
40924         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
40925         if !_GL_USE_STDLIB_ALLOC.
40926         (malloc, realloc): Limit this change to a smaller scope.
40928         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
40929         (malloc, realloc): Don't #undef; no longer needed.
40930         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
40931         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
40932         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
40933         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
40934         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
40935         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
40936         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
40937         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
40939         careadlinkat: rename members to avoid problem
40940         * lib/allocator.h (struct allocator): Rename members from
40941         malloc/realloc to allocate/reallocate, to avoid problems if malloc
40942         and realloc are #define'd.  Reported by Eric Blake in
40943         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00091.html>.
40944         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
40946 2011-04-08  Eric Blake  <eblake@redhat.com>
40948         nonblocking: reduce dependency
40949         * tests/test-nonblocking.c: Only test sockets when in use.
40950         * modules/nonblocking-tests (Depends-on): Drop socket.
40951         (Makefile.am): Link even if sockets are not present.
40952         * modules/pipe2-tests (Makefile.am): Likewise.
40953         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
40955         pipe2: fix O_NONBLOCK support on mingw
40956         * modules/pipe2 (Depends-on): Add nonblocking.
40957         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
40958         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
40959         * tests/test-nonblocking.c (main): Likewise.
40960         * modules/pipe2-tests (Makefile.am): Avoid link failure.
40962         fcntl-h: fix O_ACCMODE on cygwin
40963         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
40964         * lib/fcntl.in.h (O_ACCMODE): Fix it.
40966         pipe-filter: drop O_NONBLOCK workarounds
40967         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
40968         * modules/pipe-filter-ii (Depends-on): Likewise.
40969         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
40971         nonblocking: provide O_NONBLOCK for mingw
40972         * modules/nonblocking (Depends-on): Add open.
40973         (configure.ac): Set new witness macro.
40974         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
40975         * modules/fcntl-h (Makefile.am): Substitute it.
40976         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
40977         nonblocking module is in use.
40978         * lib/nonblocking.c: Adjust portability test.
40979         * lib/open.c (open): Don't let native open see gnulib flag.
40980         * tests/test-fcntl-h.c (main): Enhance test.
40981         * tests/test-open.h (test_open): Likewise.
40982         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
40984         careadlinkat: fix compilation error on mingw
40985         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
40986         within struct allocator.
40988 2011-04-06  Eric Blake  <eblake@redhat.com>
40990         binary-io: relicense under LGPLv2+
40991         * modules/binary-io (License): Relax to LGPLv2+.
40992         Requested for libvirt, and required by pipe2.
40994 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
40996         verify: use _Static_assert if available
40997         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
40998         (verify_true, verify): Use it if available.  This generates better
40999         diagnostics with GCC 4.6.0 and later.
41001 2011-04-05  Bruno Haible  <bruno@clisp.org>
41003         Remove leftover generated .h files after config.status changed.
41005         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
41006         GL_GENERATE_ALLOCA_H.
41007         * modules/alloca-opt (Makefile.am): Remove alloca.h if
41008         GL_GENERATE_ALLOCA_H evaluates to false.
41010         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
41011         GL_GENERATE_ARGZ_H.
41012         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
41013         evaluates to false.
41015         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
41016         GL_GENERATE_BYTESWAP_H.
41017         * modules/byteswap (Makefile.am): Remove byteswap.h if
41018         GL_GENERATE_BYTESWAP_H evaluates to false.
41020         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
41021         GL_GENERATE_ERRNO_H.
41022         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
41023         evaluates to false.
41025         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
41026         GL_GENERATE_FLOAT_H.
41027         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
41028         evaluates to false.
41030         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
41031         GL_GENERATE_FNMATCH_H.
41032         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
41033         GL_GENERATE_FNMATCH_H evaluates to false.
41035         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
41036         GL_GENERATE_GLOB_H.
41037         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
41038         evaluates to false.
41040         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
41041         automake conditional GL_GENERATE_ICONV_H.
41042         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
41043         evaluates to false.
41045         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
41046         GL_GENERATE_NETINET_IN_H.
41047         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
41048         GL_GENERATE_NETINET_IN_H evaluates to false.
41050         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
41051         conditional GL_GENERATE_PTHREAD_H.
41052         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
41053         * modules/pthread (Makefile.am): Remove pthread.h if
41054         GL_GENERATE_PTHREAD_H evaluates to false.
41056         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
41057         GL_GENERATE_SCHED_H.
41058         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
41059         evaluates to false.
41061         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
41062         conditional GL_GENERATE_SELINUX_CONTEXT_H.
41063         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
41064         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
41066         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
41067         GL_GENERATE_STDARG_H.
41068         * modules/stdarg (Makefile.am): Remove stdarg.h if
41069         GL_GENERATE_STDARG_H evaluates to false.
41071         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
41072         GL_GENERATE_STDBOOL_H.
41073         * modules/stdbool (Makefile.am): Remove stdbool.h if
41074         GL_GENERATE_STDBOOL_H evaluates to false.
41076         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
41077         conditional GL_GENERATE_STDDEF_H.
41078         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
41079         * modules/stddef (Makefile.am): Remove stddef.h if
41080         GL_GENERATE_STDDEF_H evaluates to false.
41082         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
41083         GL_GENERATE_STDINT_H.
41084         * modules/stdint (Makefile.am): Remove stdint.h if
41085         GL_GENERATE_STDINT_H evaluates to false.
41087         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
41088         GL_GENERATE_SYSEXITS_H.
41089         * modules/sysexits (Makefile.am): Remove sysexits.h if
41090         GL_GENERATE_SYSEXITS_H evaluates to false.
41092         Reported by Karl Berry and Ralf Wildenhues.
41094 2011-04-05  Bruno Haible  <bruno@clisp.org>
41096         Ensure to rebuild generated .h files when config.status has changed.
41097         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
41098         config.status.
41099         * modules/ctype (Makefile.am): Likewise.
41100         * modules/dirent (Makefile.am): Likewise.
41101         * modules/errno (Makefile.am): Likewise.
41102         * modules/fcntl-h (Makefile.am): Likewise.
41103         * modules/float (Makefile.am): Likewise.
41104         * modules/getopt-posix (Makefile.am): Likewise.
41105         * modules/glob (Makefile.am): Likewise.
41106         * modules/iconv-h (Makefile.am): Likewise.
41107         * modules/inttypes (Makefile.am): Likewise.
41108         * modules/langinfo (Makefile.am): Likewise.
41109         * modules/locale (Makefile.am): Likewise.
41110         * modules/math (Makefile.am): Likewise.
41111         * modules/netdb (Makefile.am): Likewise.
41112         * modules/netinet_in (Makefile.am): Likewise.
41113         * modules/poll-h (Makefile.am): Likewise.
41114         * modules/pthread (Makefile.am): Likewise.
41115         * modules/pty (Makefile.am): Likewise.
41116         * modules/sched (Makefile.am): Likewise.
41117         * modules/search (Makefile.am): Likewise.
41118         * modules/selinux-h (Makefile.am): Likewise.
41119         * modules/signal (Makefile.am): Likewise.
41120         * modules/spawn (Makefile.am): Likewise.
41121         * modules/stdarg (Makefile.am): Likewise.
41122         * modules/stdbool (Makefile.am): Likewise.
41123         * modules/stddef (Makefile.am): Likewise.
41124         * modules/stdint (Makefile.am): Likewise.
41125         * modules/stdio (Makefile.am): Likewise.
41126         * modules/stdlib (Makefile.am): Likewise.
41127         * modules/string (Makefile.am): Likewise.
41128         * modules/strings (Makefile.am): Likewise.
41129         * modules/sys_file (Makefile.am): Likewise.
41130         * modules/sys_ioctl (Makefile.am): Likewise.
41131         * modules/sys_select (Makefile.am): Likewise.
41132         * modules/sys_socket (Makefile.am): Likewise.
41133         * modules/sys_stat (Makefile.am): Likewise.
41134         * modules/sys_time (Makefile.am): Likewise.
41135         * modules/sys_times (Makefile.am): Likewise.
41136         * modules/sys_utsname (Makefile.am): Likewise.
41137         * modules/sys_wait (Makefile.am): Likewise.
41138         * modules/sysexits (Makefile.am): Likewise.
41139         * modules/termios (Makefile.am): Likewise.
41140         * modules/time (Makefile.am): Likewise.
41141         * modules/unistd (Makefile.am): Likewise.
41142         * modules/wchar (Makefile.am): Likewise.
41143         * modules/wctype-h (Makefile.am): Likewise.
41144         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
41146 2011-04-05  Bruno Haible  <bruno@clisp.org>
41148         pipe2: Relicense under LGPLv2+.
41149         * modules/pipe2 (License): Change to LGPLv2+.
41150         Requested by Eric Blake, for libvirt.
41152 2011-04-05  Bruce Korb  <bkorb@gnu.org>
41154         bootstrap: compute gnulib_extra_files after updating build_aux
41155         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
41156         change build_aux or also supply gnulib_extra_files.  Handle correctly.
41158 2011-04-05  Eric Blake  <eblake@redhat.com>
41160         bootstrap: preserve git whitelist item sorting
41161         * build-aux/bootstrap (sort_patterns): New function.
41162         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
41164 2011-04-05  Simon Josefsson  <simon@josefsson.org>
41166         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
41167         sc_space_tab check.
41169 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
41171         areadlink, areadlinkat: rewrite in terms of careadlinkat
41172         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
41173         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
41174         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
41175         (malloc, realloc): Remove #undefs.
41176         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
41177         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
41178         readlink, ssize_t, stdint, unistd.
41179         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
41180         areadlink, stdint.
41182         careadlinkat: new module
41183         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
41184         * modules/careadlinkat: New files, written by me with
41185         a review and feedback from Ben Pfaff in
41186         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00008.html>.
41188 2011-04-01  Bruno Haible  <bruno@clisp.org>
41190         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
41191         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
41192         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
41193         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
41194         Reported by Bruce Korb <bruce.korb@gmail.com>.
41196 2011-04-01  Bruno Haible  <bruno@clisp.org>
41198         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
41199         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
41200         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
41201         * modules/wcpcpy (Depends-on): Add extensions.
41202         * modules/wcpncpy (Depends-on): Likewise.
41203         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
41204         systems.
41205         * doc/posix-functions/wcpncpy.texi: Likewise.
41206         * doc/posix-functions/wcwidth.texi: Likewise.
41208 2011-03-31  Eric Blake  <eblake@redhat.com>
41210         nonblocking: fix mingw test failures
41211         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
41212         non-blocking flag on regular file.
41213         (get_nonblocking_flag): Set errno on invalid fd.
41214         * tests/test-nonblocking.c (main): Avoid test failure on
41215         directories if fchdir is not active.
41216         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
41218 2011-03-31  Bruno Haible  <bruno@clisp.org>
41220         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
41221         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
41222         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
41223         Reported by Simon Josefsson <simon@josefsson.org>.
41225 2011-03-31  Bruno Haible  <bruno@clisp.org>
41226         and Eric Blake  <eblake@redhat.com>
41228         nonblocking: new module
41229         * modules/nonblocking: New module.
41230         * modules/nonblocking-tests: Likewise.
41231         * lib/nonblocking.h: New file.
41232         * lib/nonblocking.c: Likewise.
41233         * tests/test-nonblocking.c: New test.
41234         * lib/ioctl.c (ioctl) [mingw]: Update comment.
41236 2011-03-30  Bruno Haible  <bruno@clisp.org>
41238         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
41239         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
41240         instead of 'printf' format for GCC >= 4.4.
41241         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
41242         (fprintf, printf, vfprintf, vprintf): Declare with
41243         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
41244         the system's vfprintf() function.
41245         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
41247 2011-03-30  Eric Blake  <eblake@redhat.com>
41249         passfd: fix scoping bug
41250         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
41251         before sendmsg/recvmsg.
41253         passfd: standardize coding conventions
41254         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
41255         can be learned at compile time.
41256         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
41257         ifdefs.
41258         (sendfd, recvfd): Follow gnulib code conventions.
41260         passfd: fix incorrect sendmsg arguments
41261         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
41262         incorrect msg_controllen value.
41263         * modules/passfd-tests (Depends-on): Check for alarm.
41264         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
41265         Reported by Bastien ROUCARIES.
41267 2011-03-30  Bruno Haible  <bruno@clisp.org>
41269         c-strcasestr: Relicense under LGPLv2+.
41270         * modules/c-strcasestr (License): Change to LGPLv2+.
41271         Requested by Eric Blake, for libvirt.
41273 2011-03-30  Simon Josefsson  <simon@josefsson.org>
41275         * users.txt: Add libidn2.  Fix libtasn1 link.
41277 2011-03-30  Jim Meyering  <meyering@redhat.com>
41279         tests: readlink* ("",... fails with EINVAL on newer kernels
41280         readlink and readlinkat have typically failed with ENOENT for
41281         the invalid, empty file name,  "".  However, with the advent
41282         of linux-2.6.39, they fail with EINVAL.
41283         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
41284         when operating on the empty file name.
41285         * tests/test-readlink.h (test_readlink): Likewise.
41287 2011-03-29  Bruno Haible  <bruno@clisp.org>
41289         Relicense some modules under LGPLv2+, for libidn2.
41290         * modules/array-mergesort (License): Change to LGPLv2+.
41291         * modules/c-strcaseeq (License): Likewise.
41292         * modules/striconveh (License): Likewise.
41293         * modules/striconveha (License): Likewise.
41294         * modules/uniconv/base (License): Likewise.
41295         * modules/uniconv/u8-conv-from-enc (License): Likewise.
41296         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
41297         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
41298         * modules/unictype/base (License): Likewise.
41299         * modules/unictype/bidiclass-of (License): Likewise.
41300         * modules/unictype/category-M (License): Likewise.
41301         * modules/unictype/category-none (License): Likewise.
41302         * modules/unictype/category-of (License): Likewise.
41303         * modules/unictype/category-test (License): Likewise.
41304         * modules/unictype/category-test-withtable (License): Likewise.
41305         * modules/unictype/combining-class (License): Likewise.
41306         * modules/unictype/joiningtype-of (License): Likewise.
41307         * modules/unictype/scripts (License): Likewise.
41308         * modules/uninorm/base (License): Likewise.
41309         * modules/uninorm/canonical-decomposition (License): Likewise.
41310         * modules/uninorm/composition (License): Likewise.
41311         * modules/uninorm/decompose-internal (License): Likewise.
41312         * modules/uninorm/decomposition-table (License): Likewise.
41313         * modules/uninorm/nfc (License): Likewise.
41314         * modules/uninorm/nfd (License): Likewise.
41315         * modules/uninorm/u32-normalize (License): Likewise.
41316         * modules/unistr/base (License): Likewise.
41317         * modules/unistr/u32-cpy (License): Likewise.
41318         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
41319         * modules/unistr/u32-to-u8 (License): Likewise.
41320         * modules/unistr/u32-uctomb (License): Likewise.
41321         * modules/unistr/u8-check (License): Likewise.
41322         * modules/unistr/u8-mblen (License): Likewise.
41323         * modules/unistr/u8-mbtouc (License): Likewise.
41324         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
41325         * modules/unistr/u8-mbtoucr (License): Likewise.
41326         * modules/unistr/u8-prev (License): Likewise.
41327         * modules/unistr/u8-strlen (License): Likewise.
41328         * modules/unistr/u8-to-u32 (License): Likewise.
41329         * modules/unistr/u8-uctomb (License): Likewise.
41330         * modules/unitypes (License): Likewise.
41331         Requested by Simon Josefsson.
41333 2011-03-29  Simon Josefsson  <simon@josefsson.org>
41335         lib-symbol-visibility: Add a notice.
41336         * modules/lib-symbol-visibility (Notice): New field.
41338 2011-03-29  Bruno Haible  <bruno@clisp.org>
41340         getaddrinfo: Doc fix.
41341         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
41342         section "fixed in Gnulib".
41344 2011-03-28  Simon Josefsson  <simon@josefsson.org>
41346         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
41347         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
41349 2011-03-26  Bruno Haible  <bruno@clisp.org>
41351         unictype/property-byname: Reduce the number of load-time relocations.
41352         * lib/unictype/pr_byname.c: Include <stdlib.h>.
41353         (UC_PROPERTY_INDEX_*): New enumeration values.
41354         (uc_property_byname): Convert an index from the lookup table to an
41355         uc_property_t.
41356         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
41357         values.
41359 2011-03-26  Bruno Haible  <bruno@clisp.org>
41361         unictype/property-byname: Allow omitted word separators and aliases.
41362         * lib/unictype/pr_byname.gperf: Add property names without word
41363         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
41364         for 'space'.
41366 2011-03-26  Bruno Haible  <bruno@clisp.org>
41368         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
41369         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
41370         also hyphens to space.
41371         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
41372         without spaces.
41373         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
41375 2011-03-26  Bruno Haible  <bruno@clisp.org>
41377         unictype/joiningtype-byname: Recognize long names as well.
41378         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
41379         a long name.
41380         * lib/unictype/joiningtype_byname.c: Include <string.h>,
41381         unictype/joiningtype_byname.h.
41382         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
41383         * lib/unictype/joiningtype_byname.gperf: New file.
41384         * modules/unictype/joiningtype-byname (Files): Add
41385         lib/unictype/joiningtype_byname.gperf.
41386         (Depends-on): Add gperf.
41387         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
41388         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
41389         long names.
41391         Tests for module 'unictype/joiningtype-longname'.
41392         * modules/unictype/joiningtype-longname-tests: New file.
41393         * tests/unictype/test-joiningtype_longname.c: New file.
41395         New module 'unictype/joiningtype-longname'.
41396         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
41397         * lib/unictype/joiningtype_longname.c: New file.
41398         * modules/unictype/joiningtype-longname: New file.
41399         * modules/unictype/joiningtype-all (Depends-on): Add
41400         unictype/joiningtype-longname.
41402 2011-03-26  Bruno Haible  <bruno@clisp.org>
41404         unictype/bidiclass-byname: Recognize long names as well.
41405         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
41406         name.
41407         * lib/unictype/bidi_byname.c: Include <string.h>,
41408         unictype/bidi_byname.h.
41409         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
41410         * lib/unictype/bidi_byname.gperf: New file.
41411         * modules/unictype/bidiclass-byname (Files): Add
41412         lib/unictype/bidi_byname.gperf.
41413         (Depends-on): Add gperf.
41414         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
41415         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
41416         long names.
41418         Tests for module 'unictype/bidiclass-longname'.
41419         * modules/unictype/bidiclass-longname-tests: New file.
41420         * tests/unictype/test-bidi_longname.c: New file.
41422         New module 'unictype/bidiclass-longname'.
41423         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
41424         * lib/unictype/bidi_longname.c: New file.
41425         * modules/unictype/bidiclass-longname: New file.
41426         * modules/unictype/bidiclass-all (Depends-on): Add
41427         unictype/bidiclass-longname.
41429 2011-03-26  Bruno Haible  <bruno@clisp.org>
41431         unictype/bidi*: Rename modules.
41432         * modules/unictype/bidiclass-all: Renamed from
41433         modules/unictype/bidicategory-all.
41434         * modules/unictype/bidiclass-name: Renamed from
41435         modules/unictype/bidiclass-name.
41436         (Description): Update.
41437         * modules/unictype/bidiclass-name-tests: Renamed from
41438         modules/unictype/bidicategory-name-tests.
41439         * modules/unictype/bidiclass-byname: Renamed from
41440         modules/unictype/bidicategory-byname.
41441         (Description): Update.
41442         * modules/unictype/bidiclass-byname-tests: Renamed from
41443         modules/unictype/bidicategory-byname-tests.
41444         * modules/unictype/bidiclass-of: Renamed from
41445         modules/unictype/bidicategory-of.
41446         (Description): Update.
41447         * modules/unictype/bidiclass-of-tests: Renamed from
41448         modules/unictype/bidicategory-of-tests.
41449         * modules/unictype/bidiclass-test: Renamed from
41450         modules/unictype/bidicategory-test.
41451         (Description): Update.
41452         * modules/unictype/bidiclass-test-tests: Renamed from
41453         modules/unictype/bidicategory-test-tests.
41454         * modules/unictype/bidicategory-all: New file, a simple redirection.
41455         * modules/unictype/bidicategory-name: Likewise.
41456         * modules/unictype/bidicategory-byname: Likewise.
41457         * modules/unictype/bidicategory-of: Likewise.
41458         * modules/unictype/bidicategory-test: Likewise.
41459         * modules/unictype/property-bidi-* (Dependencies): Update.
41460         * lib/unictype/bidi_*.c: Update comment.
41462 2011-03-26  Bruno Haible  <bruno@clisp.org>
41464         unictype/bidi*: Rename functions, part 2.
41465         * modules/unictype/bidicategory-name (configure.ac): Update required
41466         libunistring version.
41467         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
41469 2011-03-25  Bruno Haible  <bruno@clisp.org>
41471         New module 'unictype/combining-class-all'.
41472         * modules/unictype/combining-class-all: New file.
41474         Tests for module 'unictype/combining-class-byname'.
41475         * modules/unictype/combining-class-byname-tests: New file.
41476         * tests/unictype/test-combiningclass_byname.c: New file.
41478         New module 'unictype/combining-class-byname'.
41479         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
41480         * lib/unictype/combiningclass_byname.c: New file.
41481         * lib/unictype/combiningclass_byname.gperf: New file.
41482         * modules/unictype/combining-class-byname: New file.
41484         Tests for module 'unictype/combining-class-longname'.
41485         * modules/unictype/combining-class-longname-tests: New file.
41486         * tests/unictype/test-combiningclass_longname.c: New file.
41488         New module 'unictype/combining-class-longname'.
41489         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
41490         * lib/unictype/combiningclass_longname.c: New file.
41491         * modules/unictype/combining-class-longname: New file.
41493         Tests for module 'unictype/combining-class-name'.
41494         * modules/unictype/combining-class-name-tests: New file.
41495         * tests/unictype/test-combiningclass_name.c: New file.
41497         New module 'unictype/combining-class-name'.
41498         * lib/unictype.in.h (uc_combining_class_name): New declaration.
41499         * lib/unictype/combiningclass_name.c: New file.
41500         * modules/unictype/combining-class-name: New file.
41502 2011-03-25  Bruno Haible  <bruno@clisp.org>
41504         unictype/combining-class: Rename source files.
41505         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
41506         of unictype/combining.h.
41507         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
41508         Update.
41509         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
41510         * modules/unictype/combining-class (Description): Fix.
41511         (Files, Makefile.am): Update.
41512         * tests/unictype/test-combiningclass.c: Renamed from
41513         tests/unictype/test-combining.c.
41514         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
41516 2011-03-25  Bruno Haible  <bruno@clisp.org>
41518         unictype: Update list of canonical combining classes.
41519         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
41521 2011-03-25  Bruno Haible  <bruno@clisp.org>
41523         unictype/category-byname: Recognize long names as well.
41524         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
41525         a long name.
41526         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
41527         unictype/categ_byname.h.
41528         (UC_CATEGORY_INDEX_*): New enumeration values.
41529         (uc_general_category_byname): Use uc_general_category_lookup and
41530         convert from index to value.
41531         * lib/unictype/categ_byname.gperf: New file.
41532         * modules/unictype/category-byname (Files): Add
41533         lib/unictype/categ_byname.gperf.
41534         (Depends-on): Add gperf.
41535         (Makefile.am): Add rule for generating unictype/categ_byname.h.
41536         * tests/unictype/test-categ_byname.c (main): Test the recognition of
41537         long names.
41539         Tests for module 'unictype/category-longname'.
41540         * modules/unictype/category-longname-tests: New file.
41541         * tests/unictype/test-categ_longname.c: New file.
41543         New module 'unictype/category-longname'.
41544         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
41545         * lib/unictype/categ_longname.c: New file.
41546         * modules/unictype/category-longname: New file.
41547         * modules/unictype/category-all (Depends-on): Add it.
41549 2011-03-25  Bruno Haible  <bruno@clisp.org>
41551         Tests for module 'unictype/category-LC'.
41552         * modules/unictype/category-LC-tests: New file.
41553         * tests/unictype/test-categ_LC.c: New file, automatically generated.
41555         New module 'unictype/category-LC'.
41556         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
41557         (UC_CATEGORY_LC): New declaration.
41558         (UC_CASED_LETTER): New macro.
41559         * lib/gen-uni-tables.c (is_category_LC): New function.
41560         (output_categories): Also handle category LC.
41561         (UC_CATEGORY_MASK_LC): New enumeration value.
41562         (general_category_byname): Also handle category LC.
41563         * lib/unictype/categ_LC.c: New file.
41564         * lib/unictype/categ_LC.h: New file, automatically generated.
41565         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
41566         category LC.
41567         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
41568         * modules/unictype/category-LC: New file.
41569         * modules/unictype/category-byname (Depends-on): Add
41570         unictype/category-LC.
41571         * modules/unictype/category-all (Depends-on): Likewise.
41573 2011-03-25  Eric Blake  <eblake@redhat.com>
41575         xmalloc: revert yesterday's regression
41576         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
41577         realloc's underlying behavior (allowing allocation of zero-size
41578         objects, especially if malloc-gnu is also in use).
41580 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
41582         maint.mk: add missing version to VC-tag
41583         * top/maint.mk: git tag was missing actual tag name; add it.
41585         valgrind: do leak checking, and exit with code 1 on error (not 0)
41586         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
41587         to VALGRIND.
41589 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
41591         posix-modules: say what it does.
41592         * posix-modules: Add a line to the --help output saying what it does.
41594 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
41596         xmalloc: Do not leak if underlying realloc is C99 compatible.
41597         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
41598         This avoids a leak on C99-based systems.  See
41599         <http://lists.gnu.org/r/bug-gnulib/2011-03/msg00243.html>.
41601 2011-03-24  Eric Blake  <eblake@redhat.com>
41603         realloc: document portability problem
41604         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
41605         passing 0 size to realloc.
41607 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
41609         doc: update users.txt
41610         * users.txt: Add cvsps, tmpwatch
41612 2011-03-23  Matt Rice  <ratmice@gmail.com>
41614         doc: update users.txt
41615         * users.txt: Add gdb.
41617 2011-03-23  Jim Meyering  <meyering@redhat.com>
41619         doc: update users.txt
41620         Looking through matches up to the following URL (there are still
41621         several more pages), I found several projects that use gnulib:
41622         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
41623         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
41624         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
41626 2011-03-22  Bruno Haible  <bruno@clisp.org>
41628         unictype/bidi*: Rename functions.
41629         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
41630         uc_bidi_class, uc_is_bidi_class): New declarations.
41631         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
41632         uc_bidi_category_byname.
41633         (uc_bidi_category_byname): New function.
41634         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
41635         u_bidi_category_name.
41636         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
41637         (uc_bidi_category_name): New function.
41638         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
41639         uc_bidi_category.
41640         (uc_bidi_category): New function.
41641         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
41642         uc_is_bidi_category. Invoke uc_bidi_class.
41643         (uc_is_bidi_category): New function.
41644         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
41645         instead of uc_bidi_category_byname.
41646         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
41647         instead of uc_bidi_category_name.
41648         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
41649         uc_bidi_category.
41650         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
41651         instead of uc_is_bidi_category.
41653 2011-03-21  Bruno Haible  <bruno@clisp.org>
41655         New module 'unictype/joininggroup-all'.
41656         * modules/unictype/joininggroup-all: New file.
41658         Tests for module 'unictype/joininggroup-of'.
41659         * modules/unictype/joininggroup-of-tests: New file.
41660         * tests/unictype/test-joininggroup_of.c: New file.
41661         * tests/unictype/test-joininggroup_of.h: New file, automatically
41662         generated by gen-uni-tables.
41664         New module 'unictype/joininggroup-of'.
41665         * modules/unictype/joininggroup-of: New file.
41666         * lib/unictype/joininggroup_of.c: New file.
41667         * lib/unictype/joininggroup_of.h: New file, automatically generated by
41668         gen-uni-tables.
41670         Tests for module 'unictype/joininggroup-byname'.
41671         * modules/unictype/joininggroup-byname-tests: New file.
41672         * tests/unictype/test-joininggroup_byname.c: New file.
41674         New module 'unictype/joininggroup-byname'.
41675         * modules/unictype/joininggroup-byname: New file.
41676         * lib/unictype/joininggroup_byname.c: New file.
41677         * lib/unictype/joininggroup_byname.gperf: New file.
41679         Tests for module 'unictype/joininggroup-name'.
41680         * modules/unictype/joininggroup-name-tests: New file.
41681         * tests/unictype/test-joininggroup_name.c: New file.
41683         New module 'unictype/joininggroup-name'.
41684         * modules/unictype/joininggroup-name: New file.
41685         * lib/unictype/joininggroup_name.c: New file.
41686         * lib/unictype/joininggroup_name.h: New file.
41688         New module 'unictype/joiningtype-all'.
41689         * modules/unictype/joiningtype-all: New file.
41691         Tests for module 'unictype/joiningtype-of'.
41692         * modules/unictype/joiningtype-of-tests: New file.
41693         * tests/unictype/test-joiningtype_of.c: New file.
41694         * tests/unictype/test-joiningtype_of.h: New file, automatically
41695         generated by gen-uni-tables.
41697         New module 'unictype/joiningtype-of'.
41698         * modules/unictype/joiningtype-of: New file.
41699         * lib/unictype/joiningtype_of.c: New file.
41700         * lib/unictype/joiningtype_of.h: New file, automatically generated by
41701         gen-uni-tables.
41703         Tests for module 'unictype/joiningtype-byname'.
41704         * modules/unictype/joiningtype-byname-tests: New file.
41705         * tests/unictype/test-joiningtype_byname.c: New file.
41707         New module 'unictype/joiningtype-byname'.
41708         * modules/unictype/joiningtype-byname: New file.
41709         * lib/unictype/joiningtype_byname.c: New file.
41711         Tests for module 'unictype/joiningtype-name'.
41712         * modules/unictype/joiningtype-name-tests: New file.
41713         * tests/unictype/test-joiningtype_name.c: New file.
41715         New module 'unictype/joiningtype-name'.
41716         * modules/unictype/joiningtype-name: New file.
41717         * lib/unictype/joiningtype_name.c: New file.
41719         unictype: Add support for Arabic shaping properties.
41720         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
41721         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
41722         declarations.
41723         (UC_JOINING_GROUP_*): New enumeration values.
41724         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
41725         declarations.
41726         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
41727         (unicode_joining_type): New variable.
41728         (UC_JOINING_GROUP_*): New enumeration values.
41729         (unicode_joining_group): New variable.
41730         (fill_arabicshaping, joining_type_as_c_identifier,
41731         output_joining_type_test, output_joining_type,
41732         joining_group_as_c_identifier, output_joining_group_test,
41733         output_joining_group): New functions.
41734         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
41735         fill_arabicshaping and output_joining_type_test, output_joining_type,
41736         output_joining_group_test, output_joining_group.
41737         Reported by Simon Josefsson.
41739 2011-03-21  Jim Meyering  <meyering@redhat.com>
41741         strftime: fix a bug in yesterday's change
41742         * lib/strftime.c (add): Accommodate width's initial value of -1.
41743         Otherwise, nstrftime would copy uninitialized data into
41744         the result buffer.
41746 2011-03-21  Jim Meyering  <meyering@redhat.com>
41748         tests: add strftime-tests module
41749         * tests/test-strftime.c: New file.
41750         * modules/strftime-tests: New module.
41752 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
41754         strftime: don't assume a byte count fits in 'int'
41755         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
41756         found this problem by static analysis, using gcc -Wstrict-overflow
41757         (GCC 4.5.2, x86-64).  This reported an optimization that depended
41758         on an integer overflow having undefined behavior, but it turns out
41759         that the argument is a size, which might not fit in 'int' anyway,
41761 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
41763         stdio: don't require ignore_value around fwrite
41765         This patch works around libc bug 11959
41766         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
41767         Without this patch, applications must often write
41768         ignore_value (fwrite (...)) even though the ignore_value is
41769         not helpful here.  It's common to write many objects, using
41770         fwrite/printf/etc., and then use ferror to detect output error.
41772         I considered making this patch optional, but decided against it,
41773         because libc is obviously being inconsistent here: there is no
41774         reason libc should insist that user code must inspect fwrite
41775         return's value without also insisting that it inspect printf's,
41776         putchar's, etc.  If user code wants to have a strict style where
41777         all these functions' values are checked (so that ferror need not
41778         be checked), we could add support for that style in a new gnulib
41779         module, but in the meantime it's better to be consistent and to
41780         support common usage.
41782         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
41783         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
41784         that we are compiling in checking mode, and if not C++, and
41785         if not already wrapping fwrite for some other reason.
41786         (fwrite): #define to rpl_fwrite if the latter is defined.
41788 2011-03-20  Bruno Haible  <bruno@clisp.org>
41790         verror: Fix compilation error introduced on 2011-02-13.
41791         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
41792         instead of __attribute__.
41793         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41795 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
41796             Bruno Haible  <bruno@clisp.org>
41798         socklen: do not depend on sys_socket
41799         While trying to modify Emacs to use gnulib's socklen module,
41800         I discovered a circular dependency: socklen depends on sys_socket
41801         and vice versa.  Emacs can use socklen, but it does not need
41802         sys_socket because it has its own substitute for sys/socket.h.
41803         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
41804         gl_TYPE_SOCKLEN_T.
41805         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
41806         gl_PREREQ_SYS_H_SOCKET.
41807         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
41808         gl_PREREQ_SYS_H_SOCKET.
41809         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
41810         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
41811         * modules/socklen (Depends-on): Do not depend on sys_socket.
41812         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
41814 2011-03-20  Jim Meyering  <meyering@redhat.com>
41816         maint.mk: sort file names *after* new transformation
41817         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
41818         prefix would have led to an unwarranted failure in GNU parted.
41819         Sort after that transformation.
41821 2011-03-19  Jim Meyering  <meyering@redhat.com>
41823         maint.mk: fix po-file syntax-check rule
41824         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
41825         Patch by Bruno Haible.
41827 2011-03-19  Bruno Haible  <bruno@clisp.org>
41829         socklen: Update comment.
41830         * m4/socklen.m4: Update comment about platforms.
41832 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
41833             Bruno Haible  <bruno@clisp.org>
41835         inet_ntop, inet_pton: Simplify.
41836         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
41837         documented to provide socklen_t and we already depend on sys_socket.
41838         * modules/inet_pton (Depends-on): Likewise.
41839         * lib/arpa_inet.in.h: Adjust comment.
41841 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
41842             Bruno Haible  <bruno@clisp.org>
41844         netdb: Simplify.
41845         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
41846         documented to provide socklen_t and we already depend on sys_socket.
41847         * lib/netdb.in.h: Adjust comment.
41849 2011-03-19  Bruno Haible  <bruno@clisp.org>
41851         sys_socket, netdb: Document problem with socklen_t.
41852         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
41853         platforms.
41854         * doc/posix-headers/netdb.texi: Likewise.
41856 2011-03-18  Eric Blake  <eblake@redhat.com>
41858         maint.mk: let po check work in VPATH build
41859         * top/maint.mk (po_file): Allow cfg.mk override.
41860         (sc_po_check): Allow VPATH use.
41861         Reported by Jiri Denemark.
41863 2011-03-16  Jim Meyering  <meyering@redhat.com>
41865         maint.mk: allow fine-grained syntax-check exclusion via Make variables
41866         Before, you would have had to create one .x-sc_ file per rule in order
41867         to exempt offending files.  Now, you may instead use a Make variable --
41868         usually defined in cfg.mk -- whose name identifies the affected rule.
41869         * top/maint.mk (_sc_excl): Define.
41870         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
41871         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
41873 2011-03-13  Bruno Haible  <bruno@clisp.org>
41875         ignore-value tests: Avoid warnings.
41876         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
41877         empty for gcc < 3.4.
41879 2011-03-13  Bruno Haible  <bruno@clisp.org>
41881         passfd: Fix link error on Solaris.
41882         * modules/passfd (Description): Correct.
41883         (Depends-on): Add socketlib.
41884         (Link): New section.
41885         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
41887 2011-03-13  Bruno Haible  <bruno@clisp.org>
41889         passfd: Fix link error on AIX 5.2.
41890         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
41892 2011-03-13  Bruno Haible  <bruno@clisp.org>
41894         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
41895         * lib/sys_socket.in.h: Include <stddef.h>.
41896         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
41897         CMSG_FIRSTHDR. Remove unused variable.
41899 2011-03-13  Bruno Haible  <bruno@clisp.org>
41901         passfd: Fix compilation error on OpenBSD.
41902         * lib/passfd.c: Include <sys/uio.h>.
41904 2011-03-13  Bruno Haible  <bruno@clisp.org>
41906         passfd test: Fix warnings.
41907         * tests/test-passfd.c: Include <sys/wait.h>.
41908         (main): Fix typo.
41910 2011-03-13  Bruno Haible  <bruno@clisp.org>
41912         passfd module, part 4, tweaks.
41913         * tests/test-passfd.c: Reorder includes.
41914         (main): Fix perror and printf calls.
41916 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
41918         passfd module, part 4.
41919         * modules/passfd-tests: New file.
41920         * tests/test-passfd.c: New file.
41922 2011-03-13  Jim Meyering  <meyering@redhat.com>
41924         Makefile: rely on GNU make; derive syntax-check rule names
41925         Rather than requiring that each sc_ rule be listed as a dependent
41926         of "check", use features of GNU make to derive the list.
41927         * Makefile (syntax-check-rules): Define.
41928         (check): Depend on the new variable, not the hard-coded list.
41930 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
41931             Bruno Haible  <bruno@clisp.org>
41933         passfd module, part 3.
41934         * lib/passfd.h (recvfd): Add a flags argument.
41935         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
41936         (recvfd): Add a flags argument.
41937         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
41938         exists.
41939         * modules/passfd (Depends-on): Add cloexec.
41940         Suggested by Eric Blake.
41942 2011-03-13  Bruno Haible  <bruno@clisp.org>
41944         passfd module, part 2, tweaks.
41945         * modules/passfd (Files): Reorder.
41946         (Depends-on): Remove errno.
41947         (Include): Remove <sys/socket.h>, <sys/un.h>.
41948         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
41949         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
41950         specification header. Include <sys/socket.h> always. Don't include
41951         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
41952         (sendfd): Clarify that it sets errno when it fails.
41953         (recvfd): Fix specification.
41955 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
41957         passfd module, part 2.
41958         * modules/passfd: New file.
41959         * lib/passfd.h: New file.
41960         * lib/passfd.c: New file.
41962 2011-03-12  Bruno Haible  <bruno@clisp.org>
41964         wcswidth, mbswidth: Avoid integer overflow.
41965         * lib/wcswidth.c: Include <limits.h>.
41966         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
41967         * lib/mbswidth.c: Include <limits.h>.
41968         (mbsnwidth): Avoid 'int' overflow.
41969         Reported by Jim Meyering.
41971 2011-03-12  Bruno Haible  <bruno@clisp.org>
41973         futimens, utimensat: Avoid endless recursion on Solaris 10.
41974         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
41975         Solaris.
41976         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
41977         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
41979 2011-03-11  Jim Meyering  <meyering@redhat.com>
41981         maint.mk: relax a regexp to accommodate other formatting styles
41982         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
41983         between "ngettext" and the following "(".
41985 2011-03-11  Pádraig Brady  <P@draigBrady.com>
41987         maint.mk: suppress a false positive warning
41988         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
41989         diagnostics are marked with ngettext.
41991 2011-03-10  Eric Blake  <eblake@redhat.com>
41993         wchar: add explicit dependencies, for Tru64
41994         * modules/mbmemcasecoll (Depends-on): Add wchar.
41995         * modules/mbtowc (Depends-on): Likewise.
41996         * modules/vasnprintf (Depends-on): Likewise.
41997         * modules/unistdio/u-printf-args (Depends-on): Likewise.
41998         * modules/wctomb (Depends-on): Likewise.
41999         Reported by Peter O'Gorman.
42001 2011-03-08  Bruno Haible  <bruno@clisp.org>
42003         passfd module, part 1, tweaks.
42004         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
42005         Improve indentation. Improve AC_MSG_CHECKING messages.
42006         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
42007         gl_SOCKET_FAMILIES.
42009 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
42011         passfd module, part 1.
42012         * m4/afunix.m4: New file.
42013         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
42014         sockets.
42016 2011-03-08  Bruno Haible  <bruno@clisp.org>
42018         regex-quote: New API.
42019         * lib/regex-quote.h: Include <stdbool.h>.
42020         (struct regex_quote_spec): New type.
42021         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
42022         New declarations.
42023         (regex_quote_length, regex_quote_copy, regex_quote): Take a
42024         'const struct regex_quote_spec *' argument.
42025         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
42026         (pcre_special): New constant.
42027         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
42028         New functions.
42029         (regex_quote_length, regex_quote_copy, regex_quote): Take a
42030         'const struct regex_quote_spec *' argument.
42031         * modules/regex-quote (Depends-on): Add stdbool.
42032         * tests/test-regex-quote.c (check): Update for new API. Add test for
42033         anchored results.
42034         * NEWS: Mention the API change.
42035         Reported by Reuben Thomas and Eric Blake.
42037 2011-03-06  Bruno Haible  <bruno@clisp.org>
42039         regex-quote: Fix creation of POSIX extended regular expressions.
42040         * lib/regex-quote.c (ere_special): Add grouping and alternation
42041         operators.
42043 2011-03-05  Bruno Haible  <bruno@clisp.org>
42045         doc: Improve doc regarding autopoint vs. gnulib.
42046         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
42047         disable autopoint while running autoreconf.
42048         Suggested by Ralf Wildenhues.
42050 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42052         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
42053         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
42055 2011-03-03  Bruce Korb  <bkorb@gnu.org>
42057         parse-duration: remove xalloc.h dependency
42058         * lib/parse-duration.c (parse_period): handle NULL return from
42059         strdup instead of calling xstrdup().
42060         * modules/parse-duration: remove "xalloc" dependency
42062 2011-03-03  Matthew Booth  <mbooth@redhat.com>
42064         bootstrap: honor m4_base when running aclocal
42065         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
42067 2011-03-02  Jim Meyering  <meyering@redhat.com>
42069         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
42070         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
42071         on request from Matt Booth.
42073 2011-03-01  Eric Blake  <eblake@redhat.com>
42075         test-link: work on Hurd
42076         * tests/test-link.h (test_link): Hurd rejects linking directories
42077         with EISDIR instead of the POSIX-mandated EPERM.
42079 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
42081         stdio: simplify by moving files to printf-posix, sigpipe
42082         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
42083         since this symbol is needed only if printf is replaced.
42084         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
42085         Require gl_ASM_SYMBOL_PREFIX.
42086         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
42087         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
42088         (Depends-on): Add 'raise'.
42089         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
42090         * modules/stdio (Files): Remove lib/stdio-write.c,
42091         m4/asm-underscore.m4.
42092         (Depends-on): Remove 'raise'.
42094         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
42095         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
42096         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
42097         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
42099 2011-02-28  Bruno Haible  <bruno@clisp.org>
42101         localcharset: Assume ANSI C behaviour of free().
42102         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
42103         calling free().
42104         Suggested by Simon Josefsson <simon@josefsson.org>.
42106 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
42107             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
42108             Bruno Haible  <bruno@clisp.org>  (tiny change)
42110         On Cygwin, use /proc file system instead of win32 API.
42111         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
42112         Win32 file names.
42113         (DllMain): Simplify by removing Cygwin specific code.
42114         (find_shared_library_fullname): Use Linux specific implementation also
42115         for Cygwin.
42116         (get_shared_library_fullname): Update accordingly.
42117         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
42118         Win32 file names.
42119         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
42120         Cygwin specific code.
42122 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
42123             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
42125         Fix OpenMP flag detection for various Fortran compilers.
42126         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
42127         OpenMP-conditional compilation construct, to force compile
42128         failure with missing OpenMP flag.
42129         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
42131 2011-02-25  Eric Blake  <eblake@redhat.com>
42133         strstr: expand test coverage
42134         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
42135         compilation.
42136         * tests/test-memmem.c (main): Duplicate tests.
42137         * tests/test-strcasestr.c (main): Likewise.
42138         * tests/test-c-strcasestr.c (main): Likewise.
42140 2011-02-25  Jim Meyering  <meyering@redhat.com>
42142         maint.mk: detect missing-NL-at-EOF, too
42143         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
42144         it also detects when a file lacks a newline at EOF.
42145         (require_exactly_one_NL_at_EOF_): Renamed from
42146         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
42147         since people may well have .x-sc_... file names tied to the
42148         existing name.  Suggested by Eric Blake.
42150 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
42152         dirname: move m4/dos.m4 functionality into lib/dosname.h
42154         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
42155         extracts symbols from it, puts them into config.h; but it's much
42156         easier to use the symbols directly.  filename.h already does this,
42157         but it disagrees with dos.m4 in some respects.  This patch
42158         introduces a different include file dosname.h that packages up
42159         dos.m4, and then later we can work on merging filename.h and
42160         dosname.h.  Applications that need only the easy-to-configure
42161         symbols should consider including dosname.h rather than dirname.h.
42162         * NEWS: Mention incompatible changes.
42163         * m4/dos.m4: Remove.
42164         * lib/dosname.h, modules/dosname: New files.
42165         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
42166         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
42167         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
42168         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
42169         Include dosname.h, not dirname.h.
42170         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
42171         Include dosname.h, for definitions of symbols like ISSLASH
42172         that used to be in config.h.
42173         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
42174         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
42175         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
42176         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
42177         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
42178         * modules/rmdir (Files): Likewise.
42179         * modules/stat (Files): Likewise.
42180         * modules/unlink (Files): Likewise.
42181         * modules/dirname-lgpl (Depends-on): Add dosname.
42182         * modules/lstat (Depends-on): Likewise.
42183         * modules/openat (Depends-on): Likewise.
42184         * modules/rmdir (Depends-on): Likewise.
42185         * modules/savewd (Depends-on): Likewise.
42186         * modules/stat (Depends-on): Likewise.
42187         * modules/unlink (Depends-on): Likewise.
42188         * modules/openat (Depends-on): Remove dirname-lgpl.
42189         * modules/savewd (Depends-on): Likewise.
42190         * tests/test-dirname.c: Do not use removed symbols like
42191         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
42192         the remaining symbols, e.g., ISSLASH ('\\').
42194 2011-02-25  Eric Blake  <eblake@redhat.com>
42196         strstr: revert patches that introduced bug and pessimization
42197         * lib/str-two-way.h: Add another reference.
42198         (two_way_short_needle, two_way_long_needle): Revert changes from
42199         2011-02-24; they pessimize search speed.
42200         (critical_factorization): Partially revert changes from
42201         2010-06-22; they violate the requirement that the left half of the
42202         needle be smaller than the period of the needle.
42204 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
42206         filenamecat: remove unnecessary dependency on dirname-lgpl
42207         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
42208         is no direct dependency, just an indirect one via filenamecat-lgpl.
42210         remove: remove unnecessary use of m4/dos.m4
42211         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
42212         * modules/remove (FILES): Remove m4/dos.m4.
42214         * lib/openat-proc.c: Don't include dirname.h; not needed.
42216         backupfile: remove unnecessary use of m4/dos.m4
42217         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
42218         of its symbols are used by the backupfile code.  backupfile.c does
42219         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
42220         for the rare case of programs that want all their backup file
42221         names to live within 8+3 limits, and dos.m4 doesn't address that.
42222         * modules/backupfile (Files): Remove m4/dos.m4.
42224 2011-02-24  Jim Meyering  <meyering@redhat.com>
42226         strstr: fix a bug whereby strstr would mistakenly return NULL
42227         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
42228         in period calculation.
42229         (two_way_long_needle): Likewise.
42230         The original problem was reported by Mike Stump in
42231         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
42232         Ralf Wildenhues provided the short needle and haystack.
42233         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
42234         Add a more involved test to trigger the bug in two_way_long_needle.
42236 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
42238         gnulib-tool: remove use of bold display in help screen
42239         * gnulib-tool (func_usage): Do not use bold display anymore in the
42240         help screen.  That was just meant to be a temporary emphasis for a
42241         backward-incompatible change.
42243 2011-02-23  Bruno Haible  <bruno@clisp.org>
42245         Fix misindentation of preprocessor directives.
42246         * lib/argp-namefrob.h: Reindent preprocessor directives.
42247         * lib/getopt_int.h (struct _getopt_data): Likewise.
42248         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
42249         * lib/vasnprintf.c (decode_long_double): Likewise.
42250         * tests/test-argmatch.c: Insert blank lines, for clarity.
42251         * tests/test-exclude.c: Likewise.
42253 2011-02-22  Bruno Haible  <bruno@clisp.org>
42255         ioctl: Fix for MacOS X in 64-bit mode.
42256         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
42257         value.
42258         Suggested by Eric Blake.
42259         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
42261 2011-02-22  Jim Meyering  <meyering@redhat.com>
42263         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
42264         * Makefile (sc_cpp_indent_check): Don't limit the check to files
42265         in lib/.
42267 2011-02-22  Eric Blake  <eblake@redhat.com>
42269         maint: avoid any CDPATH issue
42270         * Makefile (sc_cpp_indent_check): Anchor cd argument.
42272         maint: adjust cpp indentation for my modules, as well
42273         * Makefile (sc_cpp_indent_check): Add my name.
42274         * lib/fbufmode.c: Filter through cppi.
42275         * lib/fpurge.c: Likewise.
42276         * lib/freadable.c: Likewise.
42277         * lib/freading.c: Likewise.
42278         * lib/fwritable.c: Likewise.
42279         * lib/fwriting.c: Likewise.
42280         * lib/sigaction.c: Likewise.
42282 2011-02-22  Jim Meyering  <meyering@redhat.com>
42284         maint: adjust cpp indentation to reflect nesting depth
42285         I.e., in a block of code that begins with an unnested "#if",
42286         put one space between the "#" in column 1 and following token.
42287         For example,
42288         -#include <sys/vfs.h>
42289         +# include <sys/vfs.h>
42290         Do this only in .c files that are part of a module I maintain.
42291         * lib/linkat.c: Filter through cppi.
42292         * lib/nanosleep.c: Likewise.
42293         * lib/openat.c: Likewise.
42294         * lib/openat-die.c: Likewise.
42295         * lib/dup3.c: Likewise.
42296         * lib/fchownat.c: Likewise.
42297         * lib/flock.c: Likewise.
42298         * lib/fsync.c: Likewise.
42299         * lib/fts.c: Likewise.
42300         * lib/getpass.c: Likewise.
42301         * lib/gettimeofday.c: Likewise.
42302         * lib/userspec.c: Likewise.
42303         * Makefile (sc_cpp_indent_check): New rule, to check this.
42305 2011-02-22  Bruno Haible  <bruno@clisp.org>
42307         New module 'wctomb'.
42308         * lib/stdlib.in.h (wctomb): New declaration.
42309         * lib/wctomb.c: New file.
42310         * lib/wctomb-impl.h: New file.
42311         * m4/wctomb.m4: New file.
42312         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
42313         REPLACE_WCTOMB.
42314         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
42315         REPLACE_WCTOMB.
42316         * modules/wctomb: New file.
42317         * tests/test-stdlib-c++.cc: Test signature of wctomb.
42318         * doc/posix-functions/wctomb.texi: Mention the new module.
42319         * modules/wctob (Depends-on): Add wctomb.
42321 2011-02-22  Bruno Haible  <bruno@clisp.org>
42323         New module 'mbtowc'.
42324         * lib/stdlib.in.h (mbtowc): New declaration.
42325         * lib/mbtowc.c: New file.
42326         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
42327         * m4/mbtowc.m4: New file.
42328         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
42329         REPLACE_MBTOWC.
42330         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
42331         REPLACE_MBTOWC.
42332         * modules/mbtowc: New file.
42333         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
42334         * doc/posix-functions/mbtowc.texi: Mention the new module.
42335         * modules/btowc (Depends-on): Add mbtowc.
42337 2011-02-22  Bruno Haible  <bruno@clisp.org>
42339         wcrtomb: Add more tests for native Windows platforms.
42340         * tests/test-wcrtomb-w32-1.sh: New file.
42341         * tests/test-wcrtomb-w32-2.sh: New file.
42342         * tests/test-wcrtomb-w32-3.sh: New file.
42343         * tests/test-wcrtomb-w32-4.sh: New file.
42344         * tests/test-wcrtomb-w32-5.sh: New file.
42345         * tests/test-wcrtomb-w32.c: New file.
42346         * modules/wcrtomb-tests (Files): Add them.
42347         (Makefile.am): Arrange to run these tests.
42348         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
42349         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
42351 2011-02-20  Bruno Haible  <bruno@clisp.org>
42353         wcrtomb: Enhance test.
42354         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
42356 2011-02-20  Bruno Haible  <bruno@clisp.org>
42358         mbrtowc: Tiny optimization.
42359         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
42361 2011-02-20  Jim Meyering  <meyering@redhat.com>
42363         test-exclude.c: remove unmatched #endif
42364         * tests/test-exclude.c: Remove stray #endif, left over from
42365         the change of a week ago.
42367 2011-02-19  Jim Meyering  <meyering@redhat.com>
42369         git-version-gen: skip "-dirty" check when appropriate
42370         * build-aux/git-version-gen: Don't run any git commands when the
42371         version string comes from .tarball-version.  Prior to this, we
42372         would run git update-index --refresh even from a just-unpacked
42373         tarball directory, and that could affect a .git/ directory in a
42374         parent of the build directory.  Reported by Mike Frysinger.
42376 2011-02-19  Bruno Haible  <bruno@clisp.org>
42378         unictype/property-byname: Reduce the size of the 'data' segment.
42379         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
42381 2011-02-19  Bruno Haible  <bruno@clisp.org>
42383         unictype/scripts: Reduce the size of the 'data' segment.
42384         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
42385         '%pic'.
42386         * lib/unictype/scripts_byname.gperf: Regenerated.
42388 2011-02-19  Bruno Haible  <bruno@clisp.org>
42390         stdint: Update documentation.
42391         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
42393 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
42395         stdint: omit redundant check for wchar.h
42396         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
42397         always tests whether wchar.h exists, so remove the now-redundant test.
42399 2011-02-18  Bruno Haible  <bruno@clisp.org>
42401         stdint: Cut dependency to module 'wchar'.
42402         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
42403         include the necessary prerequisites.
42404         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
42405         * modules/stdint (Depends-on): Remove wchar.
42406         (Makefile.am): Substitute HAVE_WCHAR_H.
42407         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
42409 2011-02-18  Eric Blake  <eblake@redhat.com>
42411         longlong: skip, rather than fail, on cross-compilation
42412         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
42413         when cross-compiling; regression from 2011-02-16.
42415 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
42417         * NEWS: Mention 2011-02-08 change to stdlib.
42419 2011-02-17  Bruno Haible  <bruno@clisp.org>
42421         getloadavg: Add comments about platforms.
42422         * m4/getloadavg.m4: Add comment.
42423         * lib/getloadavg.c: Likewise.
42425 2011-02-17  Bruno Haible  <bruno@clisp.org>
42427         getloadavg: Fix link error on Solaris 2.6.
42428         * modules/getloadavg (Link): New section.
42429         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
42430         linking test-getloadavg.
42431         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
42432         getloadavg.
42434 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
42436         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
42437         It was 'int', but this doesn't match the IRIX 6.5 manual.
42438         Suggested by Bruno Haible in
42439         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00207.html>.
42441 2011-02-17  Bruno Haible  <bruno@clisp.org>
42443         havelib: Fix comments.
42444         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
42445         change.
42447 2011-02-17  Bruno Haible  <bruno@clisp.org>
42449         havelib: Update config.rpath.
42450         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
42452 2011-02-17  Bruno Haible  <bruno@clisp.org>
42454         getloadavg test: Add some plausibility checks.
42455         * tests/test-getloadavg.c (check_avg): Print a warning when the value
42456         is improbable.
42458 2011-02-16  Eric Blake  <eblake@redhat.com>
42460         maintainer-makefile: make syntax-check a no-op from tarballs
42461         * top/maint.mk (no-vc-detected): New rule.
42462         (local-checks-available): Use it to avoid hanging if someone tries
42463         'make syntax-check' from a tarball.  Also append to any non-syntax
42464         checks already defined in cfg.mk.
42466 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
42468         longlong: tune, particularly for common case of c99
42470         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
42471         or running anything if c99, or if unsigned long long int does not
42472         work.  In either case, we know the answer without further tests.
42473         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
42474         it at most once, and use its results for both long long int and
42475         unsigned long long int.  This is more likely to be efficient in
42476         the common case where the program wants to check for both long
42477         long int and unsigned long long int.
42478         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
42479         since the answer is already known.
42481 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
42483         getloadavg: set errno
42484         * lib/getloadavg.c: Set errno when returning -1.  If no other
42485         error number looks appropriate, set it to ENOSYS if the getloadavg
42486         looks like it can't possibly ever work, ENOTSUP otherwise.
42487         Suggested by Bruno Haible in
42488         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00187.html>.
42490         getloadavg: trim unused parts and speed up 'configure'
42491         * NEWS: Document this.
42492         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
42493         always compiled if getloadavg is absent.
42494         Move test code to ...
42495         * tests/test-getloadavg.c: New file, containing previous
42496         contents of test from lib/getloadavg.c.  It also contains
42497         suggestions by Bruno Haible in
42498         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00186.html>.
42499         * modules/getloadavg-tests: New file.
42500         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
42501         Do tests in the same order as they're needed for getloadavg.c.
42502         Omit setgid-related tests that generate symbols KMEM_GROUP,
42503         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
42504         Do only the tests that are needed to see whether the system has
42505         getloadavg, moving the other tests into ...
42506         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
42507         NLIST_NAME_UNION; nobody should be using it.  Do not define
42508         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
42509         relevant, as the user of this module shouldn't care how getloadavg
42510         is implemented.
42512         getloadavg: omit unused var
42513         * lib/getloadavg.c (getloadavg): Omit unused local variable.
42515 2011-02-15  Jim Meyering  <meyering@redhat.com>
42517         doc: update users.txt
42518         * users.txt: Update iwhd's URL.
42520 2011-02-13  Bruno Haible  <bruno@clisp.org>
42522         Consistent macro naming for macros that use GCC __attribute__.
42523         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
42524         _ATTRIBUTE_NONNULL_.
42525         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
42526         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
42527         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
42528         ATTRIBUTE_DEPRECATED.
42529         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
42530         ATTRIBUTE_NORETURN.
42531         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
42532         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
42533         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
42534         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
42535         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
42536         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
42537         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
42538         ATTRIBUTE_SENTINEL.
42539         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
42540         ATTRIBUTE_RETURN_CHECK.
42541         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
42542         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
42543         ATTRIBUTE_NORETURN.
42544         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
42545         Reported by Paul Eggert.
42547 2011-02-13  Bruno Haible  <bruno@clisp.org>
42549         Don't interfere with a program's definition of __attribute__.
42550         * lib/argp.h (__attribute__): Remove definition.
42551         (_GL_ATTRIBUTE_FORMAT): New macro.
42552         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
42553         * lib/argp-fmtstream.h (__attribute__): Remove definition.
42554         (_GL_ATTRIBUTE_FORMAT): New macro.
42555         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
42556         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
42557         GCC 3 or newer.
42558         * lib/error.h (__attribute__): Remove definition.
42559         (_GL_ATTRIBUTE_FORMAT): New macro.
42560         (error, error_at_line): Use it.
42561         * lib/hash.h (__attribute__): Remove definition.
42562         (ATTRIBUTE_WUR): Update definition. Define always.
42563         * lib/openat.h (__attribute__): Remove definition.
42564         (ATTRIBUTE_NORETURN): Update definition. Define always.
42565         * lib/sigpipe-die.h (__attribute__): Remove definition.
42566         (ATTRIBUTE_NORETURN): Update definition. Define always.
42567         * lib/vasnprintf.h (__attribute__): Remove definition.
42568         (_GL_ATTRIBUTE_FORMAT): New macro.
42569         (asnprintf, vasnprintf): Use it.
42570         * lib/xalloc.h (__attribute__): Remove definition.
42571         (ATTRIBUTE_NORETURN): Update definition. Define always.
42572         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
42573         * lib/xmemdup0.h (__attribute__): Remove definition.
42574         (ATTRIBUTE_NORETURN): Update definition. Define always.
42575         * lib/xprintf.h (__attribute__): Remove definition.
42576         (_GL_ATTRIBUTE_FORMAT): New macro.
42577         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
42578         * lib/xstrtol.h (__attribute__): Remove definition.
42579         (ATTRIBUTE_NORETURN): Update definition. Define always.
42580         * lib/xvasprintf.h (__attribute__): Remove definition.
42581         (_GL_ATTRIBUTE_FORMAT): New macro.
42582         (xasprintf, xvasprintf): Use it.
42583         * tests/test-argmatch.c (__attribute__): Remove definition.
42584         (ATTRIBUTE_NORETURN): Update definition. Define always.
42585         * tests/test-exclude.c (__attribute__): Remove definition.
42586         (ATTRIBUTE_NORETURN): Update definition. Define always.
42587         Reported by Paul Eggert.
42589 2011-02-13  Bruno Haible  <bruno@clisp.org>
42591         mbrtowc: Add more tests for native Windows platforms.
42592         * tests/test-mbrtowc-w32-1.sh: New file.
42593         * tests/test-mbrtowc-w32-2.sh: New file.
42594         * tests/test-mbrtowc-w32-3.sh: New file.
42595         * tests/test-mbrtowc-w32-4.sh: New file.
42596         * tests/test-mbrtowc-w32-5.sh: New file.
42597         * tests/test-mbrtowc-w32.c: New file.
42598         * modules/mbrtowc-tests (Files): Add them.
42599         (Makefile.am): Arrange to run these tests.
42600         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
42601         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
42603 2011-02-13  Bruno Haible  <bruno@clisp.org>
42605         mbrtowc: Work around native Windows bug.
42606         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
42607         guess when no suitable locale for testing was found.
42608         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
42610 2011-02-13  Bruno Haible  <bruno@clisp.org>
42612         mbsinit: Work around mingw bug.
42613         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
42614         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
42615         Windows.
42616         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
42618 2011-02-13  Bruno Haible  <bruno@clisp.org>
42620         mbsinit: Don't crash for a NULL argument.
42621         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
42622         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
42624 2011-02-13  Bruno Haible  <bruno@clisp.org>
42626         Don't interfere with a program's definition of __attribute__.
42627         * lib/stdio.in.h (__attribute__): Remove definition.
42628         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
42629         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
42630         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
42631         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
42632         * lib/string.in.h (__attribute__): Remove definition.
42633         Reported by Paul Eggert.
42635 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
42637         stdlib: don't get in the way of non-GCC __attribute__
42638         See thread starting at
42639         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00161.html>.
42640         Revert previous stdlib change, installing the following instead:
42641         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
42642         to get in the way of a non-GCC compiler that supports __attribute__.
42643         (_GL_ATTRIBUTE_RETURN): New macro.
42644         (_Exit): Use it instead of __attribute__.
42646 2011-02-12  Bruno Haible  <bruno@clisp.org>
42648         quotearg test: Avoid test failure on mingw.
42649         * tests/test-quotearg.sh: Convert the locale identifier from native
42650         Windows syntax to Unix syntax.
42652 2011-02-12  Bruno Haible  <bruno@clisp.org>
42654         setlocale: Prefer gnulib's override over libintl's override.
42655         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
42656         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
42657         GNULIB_defined_setlocale is set.
42659 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
42661         stdlib: support non-GCC __attribute__
42663         Fix a serious and tricky problem encountered when attempting to
42664         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
42665         5.5, but it crashed due to memory corruption on Solaris 10 with
42666         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
42667         bits that are otherwise zero.  This tagging is optional inside
42668         Emacs but is preferred and is used when __attribute__ ((__aligned
42669         (8))) works, as it does with both recent-enough GCC and with Sun C
42670         5.11.  However, Sun C 5.11 is not GCC and does not #define
42671         __GNUC__ and __GNUC_MINOR__.
42673         When I added the getloadavg module to Emacs, it brought in
42674         stdlib.in.h, which contained this fragment:
42676            #ifndef __attribute__
42677            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
42678            #  define __attribute__(Spec)   /* empty */
42679            # endif
42680            #endif
42682         When files that include <stdlib.h> were compiled with Sun C 5.11,
42683         the above code disabled __attribute__ ((__aligned (8))), which
42684         caused variables to not be properly aligned, which eventually led
42685         to the pointer corruption mentioned above.  (This was a bit hard
42686         to diagnose, unfortunately.)
42688         Several "#define __attribute__(X) /* empty */" code snippets need
42689         to be eradicated from Gnulib to work with non-GCC compilers that
42690         support __attribute__.  The Autoconf way to do this is to test for
42691         each kind of attribute that we want support for, and selectively
42692         enable that in source code.
42694         Fix this problem just for stdlib.h, by adding a test for the
42695         __noreturn__ attribute, and change stdlib.in.h to use that test
42696         when needed.  This technique can be easily generalized to the
42697         other *.in.h files and attributes, and a similar technique can be
42698         used for *.h and *.c files.  This patch is enough to solve the
42699         problem for Emacs + getloadavg, and I thought I'd publish it for
42700         feedback before undertaking further, similar fixes in other
42701         modules.
42703         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
42704         because it's not needed for stdlib.h.  It merely substitutes the
42705         value directly into stdlib.h.  We may well need to #define it, or
42706         similar symbols, for other modules, but it's nice to also have an
42707         option to not #define it for applications like Emacs that do not
42708         need it.
42710         * lib/stdlib.in.h (__attribute__): Do not #define.
42711         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
42712         be defined only if the _Exit module is also used.
42713         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
42714         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
42715         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
42716         platforms.
42717         * modules/_Exit (Files): Add m4/attribute.m4.
42718         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
42719         * m4/attribute.m4: New file.
42721 2011-02-12  Bruno Haible  <bruno@clisp.org>
42723         wcsrtombs: Work around bug on native Windows.
42724         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
42725         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
42726         instead of len.
42727         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
42729 2011-02-12  Bruno Haible  <bruno@clisp.org>
42731         mbsrtowcs: Work around bug on native Windows.
42732         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
42733         against mingw bug.
42734         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
42736 2011-02-12  Bruno Haible  <bruno@clisp.org>
42738         Avoid setlocale bugs in tests.
42739         * modules/btowc (Dependencies): Add setlocale.
42740         * modules/c-strcase (Dependencies): Likewise.
42741         * modules/mbmemcasecmp (Dependencies): Likewise.
42742         * modules/mbmemcasecoll (Dependencies): Likewise.
42743         * modules/mbrtowc (Dependencies): Likewise.
42744         * modules/mbscasecmp (Dependencies): Likewise.
42745         * modules/mbscasestr (Dependencies): Likewise.
42746         * modules/mbschr (Dependencies): Likewise.
42747         * modules/mbscspn (Dependencies): Likewise.
42748         * modules/mbsinit (Dependencies): Likewise.
42749         * modules/mbsncasecmp (Dependencies): Likewise.
42750         * modules/mbsnrtowcs (Dependencies): Likewise.
42751         * modules/mbspbrk (Dependencies): Likewise.
42752         * modules/mbspcasecmp (Dependencies): Likewise.
42753         * modules/mbsrchr (Dependencies): Likewise.
42754         * modules/mbsrtowcs (Dependencies): Likewise.
42755         * modules/mbsspn (Dependencies): Likewise.
42756         * modules/mbsstr (Dependencies): Likewise.
42757         * modules/nl_langinfo (Dependencies): Likewise.
42758         * modules/quotearg (Dependencies): Likewise.
42759         * modules/unicase/locale-language (Dependencies): Likewise.
42760         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
42761         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
42762         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
42763         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
42764         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
42765         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
42766         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
42767         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
42768         * modules/vasnprintf-posix (Dependencies): Likewise.
42769         * modules/wcrtomb (Dependencies): Likewise.
42770         * modules/wcsnrtombs (Dependencies): Likewise.
42771         * modules/wcsrtombs (Dependencies): Likewise.
42773 2011-02-12  Bruno Haible  <bruno@clisp.org>
42775         setlocale: Workaround native Windows bug.
42776         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
42777         succeeds but sets LC_CTYPE to "C", report a failure.
42778         * tests/test-setlocale2.sh: New file.
42779         * tests/test-setlocale2.c: New file.
42780         * modules/setlocale-tests (Files): Add the new files.
42781         (Makefile.am): Enable test-setlocale2.sh test.
42782         * doc/posix-functions/setlocale.texi: Mention workaround.
42784 2011-02-11  Bruno Haible  <bruno@clisp.org>
42786         Tests for module 'setlocale'.
42787         * modules/setlocale-tests: New file.
42788         * tests/test-setlocale1.sh: New file.
42789         * tests/test-setlocale1.c: New file.
42791         New module 'setlocale'.
42792         * lib/locale.in.h (setlocale): New declaration.
42793         * lib/setlocale.c: New file, based on
42794         gettext/gettext-runtime/intl/setlocale.c.
42795         * m4/setlocale.m4: New file.
42796         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
42797         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
42798         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
42799         REPLACE_SETLOCALE.
42800         * modules/setlocale: New file.
42801         * tests/test-locale-c++.cc: Test the declaration of setlocale.
42802         * doc/posix-functions/setlocale.texi: Mention the new module.
42804 2011-02-11  Bruno Haible  <bruno@clisp.org>
42806         Prepare for locale dependent tests on mingw.
42807         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
42808         because it has the wrong locale encoding.
42809         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
42810         French_France.1252 instead of "fr".
42811         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
42812         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
42813         because it has the wrong locale encoding.
42814         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
42815         native Windows, try Turkish_Turkey.65001.
42816         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
42817         Chinese_China.54936.
42819         Prepare for locale dependent tests on mingw.
42820         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
42821         differently.
42822         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
42823         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
42824         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
42825         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
42827 2011-02-11  Eric Blake  <eblake@redhat.com>
42829         strptime: avoid compiler warnings
42830         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
42831         compiler warnings about dead code.
42832         Reported by Daniel P. Berrange.
42834 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
42836         doc: update users.txt
42837         * users.txt: Add rcs.
42839 2011-02-10  John W. Eaton  <jwe@gnu.org>
42841         doc: update users.txt
42842         * users.txt: Add octave.
42844 2011-02-10  Jim Meyering  <meyering@redhat.com>
42846         doc: update users.txt
42847         * users.txt: Add iwhd.
42849 2011-02-09  Bruno Haible  <bruno@clisp.org>
42851         gnulib-tool: Make copyright notice adjustment more robust.
42852         * gnulib-tool (func_import): In sed_transform_main_lib_file,
42853         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
42854         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
42855         License".
42856         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
42858 2011-02-06  Bruno Haible  <bruno@clisp.org>
42860         New module 'towctrans'.
42861         * modules/towctrans: New file.
42862         * lib/wctype.in.h (towctrans): New declaration.
42863         * lib/towctrans.c: New file.
42864         * lib/towctrans-impl.h: New file.
42865         * m4/towctrans.m4: New file.
42866         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
42867         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
42868         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
42869         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
42870         * doc/posix-functions/towctrans.texi: Mention the new module.
42872 2011-02-06  Bruno Haible  <bruno@clisp.org>
42874         New module 'wctrans'.
42875         * modules/wctrans: New file.
42876         * lib/wctype.in.h (wctrans): New declaration.
42877         * lib/wctrans.c: New file.
42878         * lib/wctrans-impl.h: New file.
42879         * m4/wctrans.m4: New file.
42880         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
42881         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
42882         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
42883         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
42884         * doc/posix-functions/wctrans.texi: Mention the new module.
42886 2011-02-06  Bruno Haible  <bruno@clisp.org>
42888         New module 'iswctype'.
42889         * modules/iswctype: New file.
42890         * lib/wctype.in.h (iswctype): New declaration.
42891         * lib/iswctype.c: New file.
42892         * lib/iswctype-impl.h: New file.
42893         * m4/iswctype.m4: New file.
42894         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
42895         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
42896         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
42897         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
42898         * doc/posix-functions/iswctype.texi: Mention the new module and the
42899         HP-UX 11.00 problem.
42901 2011-02-06  Bruno Haible  <bruno@clisp.org>
42903         New module 'wctype'.
42904         * modules/wctype: Change to represent the wctype() substitute.
42905         * lib/wctype.in.h (wctype): New declaration.
42906         * lib/wctype.c: New file.
42907         * lib/wctype-impl.h: New file.
42908         * m4/wctype.m4: New file.
42909         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
42910         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
42911         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
42912         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
42913         * doc/posix-functions/wctype.texi: Mention the new module and the
42914         HP-UX 11.00 problem.
42916 2011-02-06  Bruno Haible  <bruno@clisp.org>
42918         wctype-h: Ensure wctype_t and wctrans_t are defined.
42919         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
42920         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
42921         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
42922         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
42923         HAVE_WCTRANS_T.
42924         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
42926 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
42928         flock: fix license typo
42930         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
42931         omitted.
42933 2011-02-08  Bruno Haible  <bruno@clisp.org>
42935         Split large sed scripts, for HP-UX sed.
42936         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
42937         to avoid HP-UX limit of 99 commands, in the near future.
42938         * modules/stdlib (Makefile.am): Likewise.
42939         * modules/unistd (Makefile.am): Likewise.
42940         * modules/wchar (Makefile.am): Likewise.
42941         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42942         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
42943         <http://lists.gnu.org/r/bug-gnulib/2010-01/msg00216.html>.
42945 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
42946             Bruno Haible  <bruno@clisp.org>
42948         stdlib: improve random_r modularization
42949         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
42950         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
42951         you also need the random_r module to get this material right.
42952         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
42953         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
42954         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
42956 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
42958         stdlib: don't depend on stdint
42959         * lib/stdlib.in.h: Don't include <stdint.h> merely because
42960         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
42961         be independent of whether stdint.h is needed.
42962         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
42963         here, instead of ...
42964         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
42965         struct random_data should be using the random_r module, not just
42966         the stdlib module (which wouldn't make sense: what package needs
42967         just struct random_data without also needing random_r?).
42968         * modules/stdlib (Depends-on): Remove stdint.
42970         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
42971         See the thread rooted at
42972         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00090.html>.
42973         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
42974         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
42975         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
42976         __VMS)); previously it was always included (via fcntl--.h).
42977         (getloadavg): Do not use c_strtod.  Instead, approximate it by
42978         hand; this is good enough for load averages.  Also, do not use
42979         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
42980         flags directly if available and don't bother otherwise.  (Packages
42981         that need the extra reliability should use the modules that define
42982         these flags on older platforms that lack them.)
42983         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
42984         fcntl-safer.
42986 2011-02-08  Jim Meyering  <meyering@redhat.com>
42988         di-set.h, ino-map.h: add multiple-inclusion guard
42989         Technically, the guard is required only for ino-map.h, due to its
42990         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
42991         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
42992         * lib/ino-map.h: Likewise.
42994 2011-02-06  Bruno Haible  <bruno@clisp.org>
42996         iswblank: Ensure declaration on glibc systems.
42997         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
42998         * modules/iswblank (Dependencies): Add 'extensions'.
42999         * doc/posix-functions/iswblank.texi: Document the glibc problem.
43001 2011-02-06  Bruno Haible  <bruno@clisp.org>
43003         New module 'iswblank'.
43004         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
43005         * modules/iswblank: New file.
43006         * modules/wctype-h (Files): Remove lib/iswblank.c.
43007         (Makefile.am): Substitute GNULIB_ISWBLANK.
43008         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
43009         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
43010         (gl_WCTYPE_H_DEFAULTS): New macro.
43011         (gl_WCTYPE_H): Require it. Remove iswblank related code.
43012         * modules/iswblank-tests: New file.
43013         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
43014         * tests/test-wctype-h.c (main): Remove iswblank tests.
43015         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
43016         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
43017         of 'wctype-h'.
43018         * NEWS: Mention the change.
43019         * modules/mbchar (Depends-on): Add iswblank.
43021 2011-02-08  Bruno Haible  <bruno@clisp.org>
43023         di-set tests: Refactor.
43024         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
43025         unnecessary includes.
43026         (ASSERT): Remove macro.
43027         (main): Make C90 compliant by avoiding variable declaration after
43028         statement.
43029         * modules/di-set-tests (Files): Add tests/macros.h.
43031 2011-02-08  Bruno Haible  <bruno@clisp.org>
43033         ino-map tests: Refactor.
43034         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
43035         unnecessary includes.
43036         (ASSERT): Remove macro.
43037         (main): Make C90 compliant by avoiding variable declaration after
43038         statement.
43039         * modules/ino-map-tests (Files): Add tests/macros.h.
43041 2011-02-08  Jim Meyering  <meyering@redhat.com>
43043         di-set: add "const" to a cast
43044         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
43045         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
43047 2011-02-06  Bruno Haible  <bruno@clisp.org>
43049         Rename module 'wctype' to 'wctype-h'.
43050         * modules/wctype-h: Renamed from modules/wctype.
43051         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
43052         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
43053         (Files, Depends-on, Makefile.am): Update.
43054         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
43055         (Files, Makefile.am): Update.
43056         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
43057         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
43058         * doc/posix-headers/wctype.texi: Update.
43059         * doc/posix-functions/iswalnum.texi: Update.
43060         * doc/posix-functions/iswalpha.texi: Update.
43061         * doc/posix-functions/iswblank.texi: Update.
43062         * doc/posix-functions/iswcntrl.texi: Update.
43063         * doc/posix-functions/iswdigit.texi: Update.
43064         * doc/posix-functions/iswgraph.texi: Update.
43065         * doc/posix-functions/iswlower.texi: Update.
43066         * doc/posix-functions/iswprint.texi: Update.
43067         * doc/posix-functions/iswpunct.texi: Update.
43068         * doc/posix-functions/iswspace.texi: Update.
43069         * doc/posix-functions/iswupper.texi: Update.
43070         * doc/posix-functions/iswxdigit.texi: Update.
43071         * doc/posix-functions/towlower.texi: Update.
43072         * doc/posix-functions/towupper.texi: Update.
43073         * NEWS: Mention the change.
43074         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
43075         * modules/mbchar (Dependencies): Likewise.
43076         * modules/mbswidth (Dependencies): Likewise.
43077         * modules/quotearg (Dependencies): Likewise.
43078         * modules/regex (Dependencies): Likewise.
43079         * modules/wcscasecmp (Dependencies): Likewise.
43080         * modules/wcsncasecmp (Dependencies): Likewise.
43081         * modules/wcwidth (Dependencies): Likewise.
43083 2011-02-06  Bruno Haible  <bruno@clisp.org>
43085         New module 'wcswidth'.
43086         * modules/wcswidth: New file.
43087         * lib/wchar.in.h (wcswidth): New declaration.
43088         * lib/wcswidth.c: New file.
43089         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
43090         * m4/wcswidth.m4: New file.
43091         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
43092         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
43093         REPLACE_WCSWIDTH.
43094         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
43095         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
43096         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
43097         * doc/posix-functions/wcswidth.texi: Mention the new module.
43099 2011-02-06  Bruno Haible  <bruno@clisp.org>
43101         New module 'wcstok'.
43102         * modules/wcstok: New file.
43103         * lib/wchar.in.h (wcstok): New declaration.
43104         * lib/wcstok.c: New file.
43105         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
43106         * m4/wcstok.m4: New file.
43107         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
43108         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
43109         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
43110         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
43111         * doc/posix-functions/wcstok.texi: Mention the new module.
43113 2011-02-06  Bruno Haible  <bruno@clisp.org>
43115         New module 'wcsstr'.
43116         * modules/wcsstr: New file.
43117         * lib/wchar.in.h (wcsstr): New declaration.
43118         * lib/wcsstr.c: New file.
43119         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
43120         * m4/wcsstr.m4: New file.
43121         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
43122         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
43123         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
43124         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
43125         * doc/posix-functions/wcsstr.texi: Mention the new module.
43127 2011-02-06  Bruno Haible  <bruno@clisp.org>
43129         New module 'wcspbrk'.
43130         * modules/wcspbrk: New file.
43131         * lib/wchar.in.h (wcspbrk): New declaration.
43132         * lib/wcspbrk.c: New file.
43133         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
43134         * m4/wcspbrk.m4: New file.
43135         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
43136         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
43137         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
43138         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
43139         * doc/posix-functions/wcspbrk.texi: Mention the new module.
43141 2011-02-06  Bruno Haible  <bruno@clisp.org>
43143         New module 'wcsspn'.
43144         * modules/wcsspn: New file.
43145         * lib/wchar.in.h (wcsspn): New declaration.
43146         * lib/wcsspn.c: New file.
43147         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
43148         * m4/wcsspn.m4: New file.
43149         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
43150         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
43151         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
43152         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
43153         * doc/posix-functions/wcsspn.texi: Mention the new module.
43155 2011-02-06  Bruno Haible  <bruno@clisp.org>
43157         New module 'wcscspn'.
43158         * modules/wcscspn: New file.
43159         * lib/wchar.in.h (wcscspn): New declaration.
43160         * lib/wcscspn.c: New file.
43161         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
43162         * m4/wcscspn.m4: New file.
43163         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
43164         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
43165         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
43166         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
43167         * doc/posix-functions/wcscspn.texi: Mention the new module.
43169 2011-02-06  Bruno Haible  <bruno@clisp.org>
43171         New module 'wcsrchr'.
43172         * modules/wcsrchr: New file.
43173         * lib/wchar.in.h (wcsrchr): New declaration.
43174         * lib/wcsrchr.c: New file.
43175         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
43176         * m4/wcsrchr.m4: New file.
43177         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
43178         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
43179         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
43180         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
43181         * doc/posix-functions/wcsrchr.texi: Mention the new module.
43183 2011-02-06  Bruno Haible  <bruno@clisp.org>
43185         New module 'wcschr'.
43186         * modules/wcschr: New file.
43187         * lib/wchar.in.h (wcschr): New declaration.
43188         * lib/wcschr.c: New file.
43189         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
43190         * m4/wcschr.m4: New file.
43191         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
43192         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
43193         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
43194         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
43195         * doc/posix-functions/wcschr.texi: Mention the new module.
43197 2011-02-06  Bruno Haible  <bruno@clisp.org>
43199         New module 'wcsdup'.
43200         * modules/wcsdup: New file.
43201         * lib/wchar.in.h (wcsdup): New declaration.
43202         * lib/wcsdup.c: New file.
43203         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
43204         * m4/wcsdup.m4: New file.
43205         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
43206         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
43207         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
43208         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
43209         * doc/posix-functions/wcsdup.texi: Mention the new module.
43211 2011-02-06  Bruno Haible  <bruno@clisp.org>
43213         New module 'wcsxfrm'.
43214         * modules/wcsxfrm: New file.
43215         * lib/wchar.in.h (wcsxfrm): New declaration.
43216         * lib/wcsxfrm.c: New file.
43217         * lib/wcsxfrm-impl.h: New file.
43218         * m4/wcsxfrm.m4: New file.
43219         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
43220         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
43221         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
43222         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
43223         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
43225 2011-02-06  Bruno Haible  <bruno@clisp.org>
43227         New module 'wcscoll'.
43228         * modules/wcscoll: New file.
43229         * lib/wchar.in.h (wcscoll): New declaration.
43230         * lib/wcscoll.c: New file.
43231         * lib/wcscoll-impl.h: New file.
43232         * m4/wcscoll.m4: New file.
43233         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
43234         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
43235         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
43236         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
43237         * doc/posix-functions/wcscoll.texi: Mention the new module.
43239 2011-02-06  Bruno Haible  <bruno@clisp.org>
43241         New module 'wcsncasecmp'.
43242         * modules/wcsncasecmp: New file.
43243         * lib/wchar.in.h (wcsncasecmp): New declaration.
43244         * lib/wcsncasecmp.c: New file.
43245         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
43246         * m4/wcsncasecmp.m4: New file.
43247         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
43248         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
43249         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
43250         HAVE_WCSNCASECMP.
43251         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
43252         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
43254 2011-02-06  Bruno Haible  <bruno@clisp.org>
43256         New module 'wcscasecmp'.
43257         * modules/wcscasecmp: New file.
43258         * lib/wchar.in.h (wcscasecmp): New declaration.
43259         * lib/wcscasecmp.c: New file.
43260         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
43261         * m4/wcscasecmp.m4: New file.
43262         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
43263         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
43264         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
43265         HAVE_WCSCASECMP.
43266         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
43267         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
43269 2011-02-05  Bruno Haible  <bruno@clisp.org>
43271         New module 'wcsncmp'.
43272         * modules/wcsncmp: New file.
43273         * lib/wchar.in.h (wcsncmp): New declaration.
43274         * lib/wcsncmp.c: New file.
43275         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
43276         * m4/wcsncmp.m4: New file.
43277         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
43278         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
43279         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
43280         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
43281         * doc/posix-functions/wcsncmp.texi: Mention the new module.
43283 2011-02-05  Bruno Haible  <bruno@clisp.org>
43285         New module 'wcscmp'.
43286         * modules/wcscmp: New file.
43287         * lib/wchar.in.h (wcscmp): New declaration.
43288         * lib/wcscmp.c: New file.
43289         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
43290         * m4/wcscmp.m4: New file.
43291         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
43292         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
43293         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
43294         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
43295         * doc/posix-functions/wcscmp.texi: Mention the new module.
43297 2011-02-05  Bruno Haible  <bruno@clisp.org>
43299         New module 'wcsncat'.
43300         * modules/wcsncat: New file.
43301         * lib/wchar.in.h (wcsncat): New declaration.
43302         * lib/wcsncat.c: New file.
43303         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
43304         * m4/wcsncat.m4: New file.
43305         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
43306         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
43307         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
43308         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
43309         * doc/posix-functions/wcsncat.texi: Mention the new module.
43311 2011-02-05  Bruno Haible  <bruno@clisp.org>
43313         New module 'wcscat'.
43314         * modules/wcscat: New file.
43315         * lib/wchar.in.h (wcscat): New declaration.
43316         * lib/wcscat.c: New file.
43317         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
43318         * m4/wcscat.m4: New file.
43319         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
43320         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
43321         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
43322         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
43323         * doc/posix-functions/wcscat.texi: Mention the new module.
43325 2011-02-05  Bruno Haible  <bruno@clisp.org>
43327         New module 'wcpncpy'.
43328         * modules/wcpncpy: New file.
43329         * lib/wchar.in.h (wcpncpy): New declaration.
43330         * lib/wcpncpy.c: New file.
43331         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
43332         * m4/wcpncpy.m4: New file.
43333         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
43334         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
43335         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
43336         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
43337         * doc/posix-functions/wcpncpy.texi: Mention the new module.
43339 2011-02-05  Bruno Haible  <bruno@clisp.org>
43341         New module 'wcsncpy'.
43342         * modules/wcsncpy: New file.
43343         * lib/wchar.in.h (wcsncpy): New declaration.
43344         * lib/wcsncpy.c: New file.
43345         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
43346         * m4/wcsncpy.m4: New file.
43347         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
43348         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
43349         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
43350         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
43351         * doc/posix-functions/wcsncpy.texi: Mention the new module.
43353 2011-02-05  Bruno Haible  <bruno@clisp.org>
43355         New module 'wcpcpy'.
43356         * modules/wcpcpy: New file.
43357         * lib/wchar.in.h (wcpcpy): New declaration.
43358         * lib/wcpcpy.c: New file.
43359         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
43360         * m4/wcpcpy.m4: New file.
43361         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
43362         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
43363         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
43364         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
43365         * doc/posix-functions/wcpcpy.texi: Mention the new module.
43367 2011-02-05  Bruno Haible  <bruno@clisp.org>
43369         New module 'wcscpy'.
43370         * modules/wcscpy: New file.
43371         * lib/wchar.in.h (wcscpy): New declaration.
43372         * lib/wcscpy.c: New file.
43373         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
43374         * m4/wcscpy.m4: New file.
43375         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
43376         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
43377         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
43378         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
43379         * doc/posix-functions/wcscpy.texi: Mention the new module.
43381 2011-02-05  Bruno Haible  <bruno@clisp.org>
43383         New module 'wcsnlen'.
43384         * modules/wcsnlen: New file.
43385         * lib/wchar.in.h (wcsnlen): New declaration.
43386         * lib/wcsnlen.c: New file.
43387         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
43388         * m4/wcsnlen.m4: New file.
43389         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
43390         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
43391         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
43392         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
43393         * doc/posix-functions/wcsnlen.texi: Mention the new module.
43395 2011-02-05  Bruno Haible  <bruno@clisp.org>
43397         New module 'wcslen'.
43398         * modules/wcslen: New file.
43399         * lib/wchar.in.h (wcslen): New declaration.
43400         * lib/wcslen.c: New file.
43401         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
43402         * m4/wcslen.m4: New file.
43403         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
43404         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
43405         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
43406         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
43407         * doc/posix-functions/wcslen.texi: Mention the new module.
43409 2011-02-05  Bruno Haible  <bruno@clisp.org>
43411         New module 'wmemset'.
43412         * modules/wmemset: New file.
43413         * lib/wchar.in.h (wmemset): New declaration.
43414         * lib/wmemset.c: New file.
43415         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
43416         * m4/wmemset.m4: New file.
43417         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
43418         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
43419         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
43420         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
43421         * doc/posix-functions/wmemset.texi: Mention the new module.
43423 2011-02-05  Bruno Haible  <bruno@clisp.org>
43425         New module 'wmemmove'.
43426         * modules/wmemmove: New file.
43427         * lib/wchar.in.h (wmemmove): New declaration.
43428         * lib/wmemmove.c: New file.
43429         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
43430         * m4/wmemmove.m4: New file.
43431         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
43432         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
43433         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
43434         HAVE_WMEMMOVE.
43435         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
43436         * doc/posix-functions/wmemmove.texi: Mention the new module.
43438 2011-02-05  Bruno Haible  <bruno@clisp.org>
43440         New module 'wmemcpy'.
43441         * modules/wmemcpy: New file.
43442         * lib/wchar.in.h (wmemcpy): New declaration.
43443         * lib/wmemcpy.c: New file.
43444         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
43445         * m4/wmemcpy.m4: New file.
43446         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
43447         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
43448         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
43449         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
43450         * doc/posix-functions/wmemcpy.texi: Mention the new module.
43452 2011-02-05  Bruno Haible  <bruno@clisp.org>
43454         New module 'wmemcmp'.
43455         * modules/wmemcmp: New file.
43456         * lib/wchar.in.h (wmemcmp): New declaration.
43457         * lib/wmemcmp.c: New file.
43458         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
43459         * m4/wmemcmp.m4: New file.
43460         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
43461         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
43462         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
43463         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
43464         * doc/posix-functions/wmemcmp.texi: Mention the new module.
43466 2011-02-07  Jim Meyering  <meyering@redhat.com>
43468         di-set, ino-map: new modules, from coreutils
43469         * lib/di-set.c: New file.
43470         * lib/di-set.h: Likewise.
43471         * lib/ino-map.c: Likewise.
43472         * lib/ino-map.h: Likewise.
43473         * modules/di-set: Likewise.
43474         * modules/di-set-tests: Likewise.
43475         * modules/ino-map: Likewise.
43476         * modules/ino-map-tests: Likewise.
43477         * tests/test-di-set.c: Likewise.
43478         * tests/test-ino-map.c: Likewise.
43480 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
43482         getloadavg: merge minor changes from Emacs
43484         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
43485         (getloadavg): Use memset, not bzero.
43487         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
43488         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
43489         clash (bug#86).
43491 2010-11-14  Bruno Haible  <bruno@clisp.org>
43493         Allow multiple gnulib generated replacements to coexist.
43494         * lib/getopt.in.h (struct option): Avoid identical redefinition.
43495         * lib/inttypes.in.h (imaxdiv_t): Likewise.
43496         * lib/langinfo.in.h (nl_item): Likewise.
43497         * lib/math.in.h (_NaN, NAN): Likewise.
43498         * lib/netdb.in.h (struct addrinfo): Likewise.
43499         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
43500         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
43501         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
43502         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
43503         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
43504         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
43505         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
43506         pthread_mutexattr_init, pthread_mutexattr_settype,
43507         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
43508         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
43509         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
43510         pthread_spin_trylock, pthread_spin_unlock): Likewise.
43511         * lib/sched.in.h (struct sched_param): Likewise.
43512         * lib/se-selinux.in.h (security_class_t, security_context_t,
43513         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
43514         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
43515         lsetfilecon, fsetfilecon, security_check_context,
43516         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
43517         Likewise.
43518         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
43519         Likewise.
43520         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
43521         _gl_function_taking_int_returning_void_t, union sigval,
43522         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
43523         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
43524         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
43525         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
43526         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
43527         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
43528         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
43529         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
43530         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
43531         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
43532         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
43533         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
43534         socklen_t, rpl_fd_isset): Likewise.
43535         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
43536         * lib/sys_time.in.h (struct timeval): Likewise.
43537         * lib/sys_times.in.h (struct tms): Likewise.
43538         * lib/sys_utsname.in.h (struct utsname):
43539         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
43540         * lib/unistd.in.h (getpagesize): Likewise.
43541         * lib/wchar.in.h (mbstate_t): Likewise.
43542         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
43543         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
43544         towlower, towupper): Likewise.
43545         Reported by Sam Steingold <sds@gnu.org>.
43547 2011-02-05  Eric Blake  <eblake@redhat.com>
43549         unsetenv: work around Haiku issues
43550         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
43551         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
43553 2010-12-30  Bruce Korb  <bkorb@gnu.org>
43555         libposix: avoid calling error() within libposix
43556         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
43557         is defined.
43559 2011-02-05  Eric Blake  <eblake@redhat.com>
43561         strerror_r-posix: port to cygwin
43562         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
43563         implementation.
43564         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
43565         * tests/test-strerror_r.c (main): Fix test.
43566         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
43567         issue.
43569 2011-02-05  Bruno Haible  <bruno@clisp.org>
43571         New module 'wmemchr'.
43572         * modules/wmemchr: New file.
43573         * lib/wchar.in.h (wmemchr): New declaration.
43574         * lib/wmemchr.c: New file.
43575         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
43576         * m4/wmemchr.m4: New file.
43577         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
43578         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
43579         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
43580         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
43581         * doc/posix-functions/wmemchr.texi: Mention the new module.
43583 2011-02-04  Eric Blake  <eblake@redhat.com>
43585         fdopendir: detect FreeBSD bug
43586         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
43587         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
43589 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
43591         stdbool: do not define HAVE_STDBOOL_H
43592         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
43593         AC_HEADER_STDBOOL.  All uses changed.  Do not define
43594         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
43595         imported from the latest Autoconf git.  It was motivated by Emacs,
43596         which uses gnulib but does not need HAVE_STDBOOL_H.
43598 2011-02-04  Bruno Haible  <bruno@clisp.org>
43600         wcsnrtombs: Prepare for new module wwcsnrtombs.
43601         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
43602         * lib/wcsnrtombs.c: Include it.
43603         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
43605         wcsrtombs: Prepare for new module wwcsrtombs.
43606         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
43607         * lib/wcsrtombs.c: Include it.
43608         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
43610         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
43611         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
43612         * lib/mbsnrtowcs.c: Include it.
43613         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
43615         mbsrtowcs: Prepare for new module mbsrtowwcs.
43616         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
43617         * lib/mbsrtowcs.c: Include it.
43618         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
43620 2011-02-04  Bruno Haible  <bruno@clisp.org>
43622         vasnprintf: Reduce use of malloc for small format strings.
43623         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
43624         (arguments): Add room for the first 7 arguments.
43625         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
43626         (char_directives, u8_directives, u16_directives, u32_directives): Add
43627         room for the first 7 directives.
43628         * lib/printf-parse.c: Include <string.h>.
43629         (PRINTF_PARSE): Change memory handling code so that it uses the first
43630         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
43631         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
43632         Reported by Pádraig Brady <P@draigbrady.com>.
43634 2011-01-31  Eric Blake  <eblake@redhat.com>
43636         dup2: work around Haiku bug
43637         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
43638         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
43639         * doc/posix-functions/dup2.texi (dup2): Document the bug.
43640         * tests/test-dup2.c (main): Enhance test.
43642 2011-01-31  Simon Josefsson  <simon@josefsson.org>
43644         doc: off_t is not available in eglibc 2.11.2 stdio.h.
43645         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
43646         declared by eglibc 2.11.2.
43647         * lib/stdio.in.h: Likewise.
43649 2011-01-31  Eric Blake  <eblake@redhat.com>
43651         ignore-value: add missing test dependency
43652         * tests/test-ignore-value.c: Revert previous change; stdio.h
43653         provides off_t.
43654         * modules/ignore-value-tests (Depends-on): Add missing dependency.
43656 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
43658         mktime: clarify long_int width checking
43659         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
43660         the top level, to make it clearer that the assumption about
43661         long_int width is being checked.  See
43662         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00554.html>.
43664 2011-01-30  Simon Josefsson  <simon@josefsson.org>
43666         ignore-value: Fix self-test.
43667         * tests/test-ignore-value.c: Include sys/types.h for off_t.
43669 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
43671         TYPE_MAXIMUM: avoid theoretically undefined behavior
43672         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
43673         negative number, which the C Standard says has undefined behavior.
43674         In practice this is not a problem, but might as well do it by the book.
43675         Reported by Rich Felker and Eric Blake; see
43676         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00493.html>.
43677         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
43678         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
43679         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
43680         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
43681         * m4/stdint.m4 (gl_STDINT_H): Likewise.
43682         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
43684         mktime: #undef mktime before #defining it
43685         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
43687         mktime: systematically normalize tm_isdst comparisons
43688         * lib/mktime.c (isdst_differ): New function.
43689         (__mktime_internal): Use it systematically for all isdst comparisons.
43690         This completes the fix for libc BZ #6723, and removes the need for
43691         normalizing tm_isdst.  See
43692         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
43693         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
43695         mktime: fix some integer overflow issues and sidestep the rest
43697         This was prompted by a bug report by Benjamin Lindner for MinGW
43698         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00472.html>.
43699         His bug is due to signed integer overflow (0 - INT_MIN), and I
43700         I scanned through mktime.c looking for other integer overflow
43701         problems, fixing all the bugs I found.
43703         Although the C Standard says the resulting code is still not safe
43704         in the presence of integer overflow, in practice it should be good
43705         enough for all real-world two's-complement implementations, except
43706         for debugging environments that deliberately trap on integer
43707         overflow (e.g., gcc -ftrapv).
43709         * lib/mktime.c (WRAPV): New macro.
43710         (SHR): Also check that long_int and time_t shift right in the
43711         usual way, before using the fast-but-unportable method.
43712         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
43713         used.  The code already assumed two's complement, so there's
43714         no need to test for alternatives.  All uses removed.
43715         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
43716         the C standard.  Problem reported by Rich Felker in
43717         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00488.html>.
43718         (twos_complement_arithmetic): Also check long_int and time_t.
43719         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
43720         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
43721         (__mktime_internal): Avoid integer overflow with unary subtraction
43722         in two instances where -1 - X is an adequate replacement for -X,
43723         since the calculations are approximate.
43725 2011-01-29  Eric Blake  <eblake@redhat.com>
43727         mktime: avoid infinite loop
43728         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
43729         type; behavior is still undefined but portable to all known targets.
43730         Reported by Rich Felker.
43732 2011-01-29  Simon Josefsson  <simon@josefsson.org>
43734         rename, unlink, same-inode: Relicense.
43735         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
43736         * modules/unlink (License): Likewise.
43737         * modules/same-inode (License): Likewise.
43739 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
43741         mktime: avoid problems on NetBSD 5 / i386
43742         * lib/mktime.c (long_int): New type.  This works around a problem
43743         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
43744         but time_t is 64 bits, and where I expect the existing code is
43745         wrong in some cases.
43746         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
43747         (ydhms_diff): Bring back the compile-time check for wide-enough
43748         year and yday.
43750         mktime: fix misspelling in comment
43751         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
43752         This merges all recent glibc changes of importance.
43754 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43756         move-if-change: cope with concurrent mv of identical file.
43757         * build-aux/move-if-change (CMPPROG): Accept environment
43758         variable as an override for `cmp'.
43759         (usage): Document CMPPROG.
43760         Adjust comparison to drop stdout.  Cope with failure of mv if
43761         the target file exists and is identical to the source, for
43762         parallel builds.
43763         Report from H.J. Lu against binutils in PR binutils/12283.
43765 2011-01-28  Bruce Korb  <bkorb@gnu.org>
43767         * users.txt: Mention sharutils.
43769 2011-01-28  Simon Josefsson  <simon@josefsson.org>
43771         * users.txt: Mention OATH Toolkit.
43773 2011-01-27  Bruno Haible  <bruno@clisp.org>
43775         Prepare for supporting FreeBSD 10.
43776         * build-aux/config.libpath: Remove handling of freebsd1*.
43778 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
43780         Prepare for supporting FreeBSD 10.
43781         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
43782         match FreeBSD 10.0.
43784 2011-01-27  Bruno Haible  <bruno@clisp.org>
43786         vma-iter, get-rusage-as: Add OpenBSD support.
43787         * modules/vma-iter (configure.ac): Test for mquery.
43788         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
43789         * lib/vma-iter.c: Include <sys/mman.h>.
43790         (vma_iterate): Add an implementation based on mquery().
43791         * lib/resource-ext.h (get_rusage_as): Update comments.
43792         * lib/get-rusage-as.c: Likewise.
43793         * lib/get-rusage-data.c: Likewise.
43795 2011-01-26  Karl Berry  <karl@gnu.org>
43797         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
43798         variables to make it easier to override the makeinfo program used.
43800 2011-01-26  Eric Blake  <eblake@redhat.com>
43802         fcntl: work around Haiku F_DUPFD bugs
43803         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
43804         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
43805         cloexec bit on duplication.
43806         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
43808 2011-01-26  Bruno Haible  <bruno@clisp.org>
43810         Enable memory leak tests on AIX.
43811         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
43812         * tests/test-fprintf-posix3.c (main): Likewise.
43814 2011-01-26  Bruno Haible  <bruno@clisp.org>
43816         Tests for module 'get-rusage-data'.
43817         * modules/get-rusage-data-tests: New file.
43818         * tests/test-get-rusage-data.c: New file.
43820         New module 'get-rusage-data'.
43821         * lib/resource-ext.h (get_rusage_data): New declaration.
43822         * lib/get-rusage-data.c: New file.
43823         * modules/get-rusage-data: New file.
43825 2011-01-25  Bruno Haible  <bruno@clisp.org>
43827         get-rusage-as: Allow for easier testing.
43828         * lib/resource-ext.h (get_rusage_as): Add comment.
43829         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
43830         (main): New function for interactive testing.
43832 2011-01-25  Bruno Haible  <bruno@clisp.org>
43834         vma-iter: Treat Haiku like BeOS.
43835         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
43836         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
43838 2011-01-25  Eric Blake  <eblake@redhat.com>
43840         c-stack: fix regression on cygwin when libsigsegv is present
43841         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
43843 2011-01-24  Bruno Haible  <bruno@clisp.org>
43845         vma-iter: Avoid empty intervals.
43846         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
43847         on an empty interval.
43849 2011-01-24  Jim Meyering  <meyering@redhat.com>
43851         u64: remove unnecessary #include
43852         * lib/u64.h: Don't include <stddef.h>.  It was not used.
43854 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
43856         Allow the user to avoid the HAVE_RAW_DECL_* macros.
43857         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
43859 2011-01-23  Bruno Haible  <bruno@clisp.org>
43861         New module 'vma-iter'.
43862         * lib/vma-iter.h: New file.
43863         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
43864         * modules/vma-iter: New file.
43865         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
43866         for get_rusage_as_via_iterator.
43867         (vma_iterate_callback): New function.
43868         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
43869         * modules/get-rusage-as (Depends-on): Add vma-iter.
43871 2011-01-23  Bruno Haible  <bruno@clisp.org>
43873         uninorm: Tweak includes.
43874         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
43875         Reported by Jim Meyering.
43877 2011-01-23  Bruno Haible  <bruno@clisp.org>
43879         get-rusage-as: Improve on NetBSD.
43880         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
43881         /proc, like on FreeBSD.
43883 2011-01-23  Jim Meyering  <meyering@redhat.com>
43885         xreadlink.h: remove unnecessary #include
43886         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
43888         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
43889         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
43891 2011-01-23  Bruno Haible  <bruno@clisp.org>
43893         get-rusage-as: Fix bug.
43894         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
43895         original limit when aborting the first loop.
43897 2011-01-23  Bruno Haible  <bruno@clisp.org>
43899         wctype: Ensure valid C syntax.
43900         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
43901         unconditionally, instead of gl_NEXT_HEADERS conditionally.
43903 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
43905         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
43906         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
43907         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
43908         as they are needed only for configure's test case.
43909         This removes two unnecessary symbols from config.h.
43911         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
43912         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
43913         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
43914         AC_CHECK_HEADERS_ONCE on a header that we also invoke
43915         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
43916         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
43917         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
43918         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
43919         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
43920         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
43921         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
43922         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
43923         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
43924         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
43925         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
43926         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
43927         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
43928         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
43930 2011-01-21  Eric Blake  <eblake@redhat.com>
43932         maintainer-makefile: work with older git for submodule check
43933         * top/maint.mk (public-submodule-commit): Rewrite to avoid
43934         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
43935         Reported by Matthias Bolte.
43937         bootstrap: minor portability fixes
43938         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
43939         (usage): Omit leading capital and trailing . on help phrases, per
43940         GNU Coding Standards.
43941         (check_versions, top level): Prefix messages with script name.
43943 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
43945         bootstrap: support --no-git option
43946         * build-aux/bootstrap: Add --no-git option, to be used when
43947         --gnulib-srcdir points to the exact desired checkout.
43949 2011-01-21  Eric Blake  <eblake@redhat.com>
43951         strerror_r-posix: work with glibc 2.13
43952         * lib/strerror_r.c (strerror_r): Fix return type.
43954 2011-01-21  Pádraig Brady  <P@draigBrady.com>
43955             Bruno Haible  <bruno@clisp.org>
43957         uN_strstr: New unit tests.
43958         * modules/unistr/u8-strstr-tests: New file.
43959         * modules/unistr/u16-strstr-tests: New file.
43960         * modules/unistr/u32-strstr-tests: New file.
43961         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
43962         * tests/unistr/test-u8-strstr.c: New file.
43963         * tests/unistr/test-u16-strstr.c: New file.
43964         * tests/unistr/test-u32-strstr.c: New file.
43966 2011-01-21  Pádraig Brady  <P@draigBrady.com>
43967             Bruno Haible  <bruno@clisp.org>
43969         Make uN_strstr functions O(n) worst-case.
43970         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
43971         16-bit and 32-bit unit cases, use the unibyte algorithm from
43972         lib/mbsstr.c.
43973         * lib/unistr/u8-strstr.c: Include <string.h>.
43974         (UNIT_IS_UINT8_T): New macro.
43975         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
43976         (U_STRLEN, U_STRNLEN): New macros.
43977         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
43978         (U_STRLEN, U_STRNLEN): New macros.
43979         * modules/unistr/u8-strstr (Depends-on): Add strstr.
43980         (configure.ac): Update required libunistring version.
43981         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
43982         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
43983         malloca.
43984         (configure.ac): Update required libunistring version.
43985         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
43986         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
43987         malloca.
43988         (configure.ac): Update required libunistring version.
43990 2011-01-21  Pádraig Brady  <P@draigBrady.com>
43991             Bruno Haible  <bruno@clisp.org>
43993         Prepare for faster uN_strstr functions.
43994         * lib/str-kmp.h: Support definable UNITs.
43995         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
43996         needle_len argument.
43997         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
43998         * lib/mbscasestr.c (mbscasestr): Likewise.
44000 2011-01-21  Pádraig Brady  <P@draigBrady.com>
44002         malloca-tests: make faster by unsetting MALLOC_PERTURB_
44003         * tests/test-malloca.c (main): Unset the environment variable
44004         to greatly speed up the test.
44005         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
44006         * modules/malloca-tests: Depend on unsetenv.
44008 2011-01-21  Pádraig Brady  <P@draigBrady.com>
44010         ignore-value: remove stdint dependency
44011         * lib/ignore-value.h: Remove <stdint.h>
44012         * modules/ignore-value: Remove stdint dependency.
44014 2011-01-21  Jim Meyering  <meyering@redhat.com>
44016         maint.mk: adjust variable name to be consistent with other gl_ vars
44017         * top/maint.mk (gl_public_submodule_commit): Rename the variable
44018         to be lower case.
44020 2011-01-20  Jim Meyering  <meyering@redhat.com>
44022         maint.mk: make "check" depend on public-submodule-commit by default
44023         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
44025 2011-01-20  Bruno Haible  <bruno@clisp.org>
44027         mbfile, mbiter: Complete change from 2008-12-21.
44028         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
44029         * m4/mbiter.m4 (gl_MBITER): Likewise.
44031 2011-01-20  Jim Meyering  <meyering@redhat.com>
44033         init.sh: insert space between each function name and "()"
44034         * tests/init.sh: Make it a little easier to see that a function's
44035         name is "warn_", and not "warn" when looking at the first part of
44036         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
44038 2011-01-20  Jim Meyering  <meyering@redhat.com>
44040         mountlist: clean up code formatting
44041         * lib/mountlist.c (read_file_system_list): Split a long line,
44042         correct bracing style, use NULL in place of "(struct statfs *)0",
44043         don't parenthesize return value, add spaces around "=" and after
44044         ";-in-for-stmt".
44046 2011-01-14  Markus Duft  <mduft@gentoo.org>
44048         mountlist: add support for Interix
44049         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
44050         Apply statvfs to all entries of /dev/fs.
44051         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
44052         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
44054 2011-01-20  Jim Meyering  <meyering@redhat.com>
44056         maint.mk: improve the public-submodule-commit rule
44057         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
44058         to suppress printing of its commands... unless V=1.
44059         Add git submodule's --quiet option to suppress printing of e.g.,
44060         "Entering gnulib" output.
44061         "cd" into $(srcdir) before running git submodule.
44063 2011-01-20  Bruno Haible  <bruno@clisp.org>
44065         include_next: Fix bug introduced on 2011-01-18.
44066         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
44067         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
44068         ac_cv_header_... variable if the second argument is not 'check'.
44069         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
44070         gl_NEXT_HEADERS_INTERNAL.
44072 2011-01-20  Bruno Haible  <bruno@clisp.org>
44074         Allow the user to avoid the GNULIB_TEST_* macros.
44075         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
44076         Suggested by Paul Eggert.
44078 2011-01-14  Jim Meyering  <meyering@redhat.com>
44080         bootstrap: avoid failure when there is no .gitmodules file
44081         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
44082         has been assigned to, even when its value is the empty string.
44083         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
44084         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
44085         Reported by John W. Eaton <jwe@gnu.org>.
44087 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
44089         assume <ctype.h>, ..., <time.h> exist
44090         For years gnulib has been assuming the existence of the headers
44091         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
44092         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
44093         them, since they don't appear to be needed.
44094         * README (Portability guidelines): Document this.
44095         * lib/flock.c: Assume <fcntl.h> exists.
44096         * lib/regex_internal.h: Assume <locale.h> exists.
44097         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
44098         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
44099         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
44100         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
44101         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
44102         * m4/regex.m4 (gl_REGEX): Likewise.
44103         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
44104         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
44105         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
44106         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
44107         * tests/test-argp.c: Likewise.
44108         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
44110         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
44111         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
44112         AA_APPLE_UNIVERSAL_BUILD.  See
44113         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00247.html>.
44114         * NEWS: Document this.
44116 2011-01-19  Eric Blake  <eblake@redhat.com>
44118         c-stack: assume stack overflow if SA_SIGINFO unsupported
44119         * lib/c-stack.c (SIGACTION_WORKS): Rename...
44120         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
44121         sigaction will work.
44122         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
44123         behavior match Linux.
44124         * tests/test-c-stack.c (main): Prefer NULL for pointers.
44126         stdbool-tests: accommodate Haiku
44127         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
44129         binary-io: fix O_TEXT on Haiku
44130         * modules/binary-io (Depends-on): Add fcntl-h.
44131         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
44132         than blindly undefining O_TEXT.
44133         Reported by Scott McCreary.
44135 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
44137         include_next: do not check for standard headers like stddef.h
44139         I found this problem when modifying Emacs to use gnulib.
44140         I noticed that it added HAVE_STDDEF_H to config.h, even though
44141         gnulib always assumes <stddef.h> exists as per README and this
44142         symbol is unnecessary.
44143         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
44144         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
44145         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
44146         faster for headers like stddef.h that are known to exist.
44147         (gl_CHECK_NEXT_HEADERS): Use it.
44148         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
44149         rather than gl_CHECK_NEXT_HEADERS.
44150         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
44151         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
44153 2011-01-18  Eric Blake  <eblake@redhat.com>
44155         ansi-c++-opt: skip C++ dependency style if C++ is unused
44156         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
44157         tests when we know C++ compilation is not desired.
44158         Reported by Scott McCreary.
44160 2011-01-18  Bruno Haible  <bruno@clisp.org>
44162         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
44163         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
44164         (main): Perform test also when getrlimit and setrlimit don't exist or
44165         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
44166         limiting the address space size using setrlimit, compare the address
44167         space size before and after the test.
44168         * tests/test-dprintf-posix2.c: Likewise.
44169         * tests/test-fprintf-posix3.sh: Update skip messages.
44170         * tests/test-dprintf-posix2.sh: Likewise.
44171         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
44172         * modules/dprintf-posix-tests (Depends-on): Likewise.
44173         Reported by Bruce Korb <bkorb@gnu.org> and
44174         Gary V. Vaughan <gary@gnu.org>.
44176 2011-01-18  Bruno Haible  <bruno@clisp.org>
44178         get-rusage-as: Improvement for Cygwin.
44179         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
44180         areas that are merely reserved.
44182 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
44184         strftime: remove dependencies on multibyte modules
44186         strftime depended on mbrlen, mbsinit, and wchar, but these modules
44187         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
44188         only if __osf__ is defined, and I suspect OSF doesn't need these
44189         other modules.  If my guess is wrong, we'll need to come up with a
44190         variant of strftime that doesn't need the multibyte modules.
44192         I discovered this problem when attempting modify Emacs to use the
44193         strftime module.  With the previous gnulib, this caused Emacs to
44194         need 31 new files, ranging from lib/config.charset to
44195         m4/wint_t.m4.  This was overkill and I expect would be offputting
44196         to the Emacs maintainers.  After this change, only 6 new files are
44197         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
44198         stdbool.m4, and tm_gmtoff.m4.
44200         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
44201         Suggested by Bruno Haible in
44202         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00238.html>.
44203         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
44204         and do not check for wchar.h.
44205         * modules/strftime (Files): Remove m4/mbstate_t.m4.
44206         (Depends-on): Remove mbrlen, mbsinit, wchar.
44208 2011-01-18  Bruno Haible  <bruno@clisp.org>
44210         Tests for module 'get-rusage-as'.
44211         * modules/get-rusage-as-tests: New file.
44212         * tests/test-get-rusage-as.c: New file.
44214         New module 'get-rusage-as'.
44215         * modules/get-rusage-as: New file.
44216         * lib/resource-ext.h: New file.
44217         * lib/get-rusage-as.c: New file.
44219 2011-01-17  Eric Blake  <eblake@redhat.com>
44221         sigaction: relax license from LGPLv3+ to LGPLv2+
44222         * modules/sigaction (License): Relax to LGPLv2+.
44224 2011-01-14  Bruno Haible  <bruno@clisp.org>
44226         filemode: Make function declarations usable in C++ mode.
44227         * lib/filemode.h: Enclose function declarations in extern "C" block.
44228         Reported by John W. Eaton <jwe@gnu.org>.
44230 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
44232         save-cwd: no longer include "xgetcwd.h"
44233         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
44234         This avoids a compilation failure in projects that use save-cwd
44235         without also using the xgetcwd module.
44237 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
44239         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
44240         This is so that a program like Emacs, which needs only dtoastr,
44241         does not have to bother with distributing and compiling ftoastr
44242         and ldtoastr.
44243         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
44244         * modules/dtoastr, modules/ldtoastr: New files.
44245         * modules/ftoastr: Now works just for 'float'.
44246         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
44247         (Makefile.am): Remove ftoastr.h (not needed and no effect),
44248         dtoastr.c, ldtoastr.c.
44250 2011-01-11  Jim Meyering  <meyering@redhat.com>
44252         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
44253         There is no need to work around the lack of the fchdir function,
44254         since gnulib can now provide a replacement when required.
44255         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
44256         * modules/save-cwd (Depends-on): Add fchdir.
44258 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
44260         openat, save-cwd: avoid xmalloc
44262         This removes a direct (but undocumented) dependency of openat on
44263         xalloc, along with an indirect dependency via save-cwd.  It also
44264         removes a dependency of save-cwd on xgetcwd, and thereby
44265         indirectly on xalloc.  This change causes the openat substitute
44266         to fall back on save_cwd when memory is tight, and for save_cwd to
44267         fail instead of dying when memory is tight, but that's good enough.
44268         Problem and initial idea for fix reported by Bastien Roucaries in
44269         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00170.html>.
44271         * lib/openat-proc.c: Include stdlib.h (for malloc), not
44272         xalloc.h (for xmalloc).
44273         (openat_proc_name): Use malloc, not xmalloc.
44274         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
44275         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
44277         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
44278         This avoids heap allocation for file names whose lengths are in
44279         the range 512..1023, with the upper bound increasing to at most
44280         4031 depending on the platform's PATH_MAX.  (We do not want
44281         pathmax.h here as it might supply a non-constant PATH_MAX.)
44282         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
44283         Perhaps they should be moved to malloca.h?
44284         (OPENAT_BUFFER_SIZE): Use them.
44286 2011-01-10  Bruno Haible  <bruno@clisp.org>
44288         doc: Update users.txt.
44289         * users.txt: Add recutils.
44291 2011-01-09  Karl Berry  <karl@gnu.org>
44293         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
44295         * doc/configmake.texi: New file.
44296         * doc/gnulib.texi: Include it.
44297         * modules/configmake: Move documentation from here.
44299 2011-01-09  Bruno Haible  <bruno@clisp.org>
44301         Update to Unicode 6.0.0.
44302         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
44303         (get_lbp): Update for Unicode 6.0.0.
44304         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
44305         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
44306         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
44307         U+11001, U+11038..U+11046. Remove U+06DE.
44308         (uc_width): Fix bounds of planes.
44309         * tests/uniwidth/test-uc_width2.sh: Same updates as in
44310         lib/uniwidth/width.c.
44311         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
44312         trailing whitespace removed.
44313         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
44314         without comments, but with the original copyright notice.
44315         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
44316         * lib/unicase/ignorable.h: Likewise.
44317         * lib/unicase/tocasefold.h: Likewise.
44318         * lib/unicase/tolower.h: Likewise.
44319         * lib/unicase/totitle.h: Likewise.
44320         * lib/unicase/toupper.h: Likewise.
44321         * lib/unictype/bidi_of.h: Likewise.
44322         * lib/unictype/blocks.h: Likewise.
44323         * lib/unictype/categ_C.h: Likewise.
44324         * lib/unictype/categ_Cn.h: Likewise.
44325         * lib/unictype/categ_L.h: Likewise.
44326         * lib/unictype/categ_Ll.h: Likewise.
44327         * lib/unictype/categ_Lm.h: Likewise.
44328         * lib/unictype/categ_Lo.h: Likewise.
44329         * lib/unictype/categ_Lu.h: Likewise.
44330         * lib/unictype/categ_M.h: Likewise.
44331         * lib/unictype/categ_Mc.h: Likewise.
44332         * lib/unictype/categ_Me.h: Likewise.
44333         * lib/unictype/categ_Mn.h: Likewise.
44334         * lib/unictype/categ_N.h: Likewise.
44335         * lib/unictype/categ_Nd.h: Likewise.
44336         * lib/unictype/categ_No.h: Likewise.
44337         * lib/unictype/categ_P.h: Likewise.
44338         * lib/unictype/categ_Po.h: Likewise.
44339         * lib/unictype/categ_S.h: Likewise.
44340         * lib/unictype/categ_Sc.h: Likewise.
44341         * lib/unictype/categ_Sk.h: Likewise.
44342         * lib/unictype/categ_Sm.h: Likewise.
44343         * lib/unictype/categ_So.h: Likewise.
44344         * lib/unictype/categ_of.h: Likewise.
44345         * lib/unictype/combining.h: Likewise.
44346         * lib/unictype/ctype_alnum.h: Likewise.
44347         * lib/unictype/ctype_alpha.h: Likewise.
44348         * lib/unictype/ctype_graph.h: Likewise.
44349         * lib/unictype/ctype_lower.h: Likewise.
44350         * lib/unictype/ctype_print.h: Likewise.
44351         * lib/unictype/ctype_punct.h: Likewise.
44352         * lib/unictype/ctype_upper.h: Likewise.
44353         * lib/unictype/decdigit.h: Likewise.
44354         * lib/unictype/digit.h: Likewise.
44355         * lib/unictype/numeric.h: Likewise.
44356         * lib/unictype/pr_alphabetic.h: Likewise.
44357         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
44358         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
44359         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
44360         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
44361         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
44362         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
44363         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
44364         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
44365         * lib/unictype/pr_case_ignorable.h: Likewise.
44366         * lib/unictype/pr_cased.h: Likewise.
44367         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
44368         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
44369         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
44370         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
44371         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
44372         * lib/unictype/pr_combining.h: Likewise.
44373         * lib/unictype/pr_composite.h: Likewise.
44374         * lib/unictype/pr_currency_symbol.h: Likewise.
44375         * lib/unictype/pr_decimal_digit.h: Likewise.
44376         * lib/unictype/pr_deprecated.h: Likewise.
44377         * lib/unictype/pr_format_control.h: Likewise.
44378         * lib/unictype/pr_grapheme_base.h: Likewise.
44379         * lib/unictype/pr_grapheme_extend.h: Likewise.
44380         * lib/unictype/pr_grapheme_link.h: Likewise.
44381         * lib/unictype/pr_id_continue.h: Likewise.
44382         * lib/unictype/pr_id_start.h: Likewise.
44383         * lib/unictype/pr_ideographic.h: Likewise.
44384         * lib/unictype/pr_lowercase.h: Likewise.
44385         * lib/unictype/pr_math.h: Likewise.
44386         * lib/unictype/pr_numeric.h: Likewise.
44387         * lib/unictype/pr_other_alphabetic.h: Likewise.
44388         * lib/unictype/pr_other_id_continue.h: Likewise.
44389         * lib/unictype/pr_other_math.h: Likewise.
44390         * lib/unictype/pr_punctuation.h: Likewise.
44391         * lib/unictype/pr_sentence_terminal.h: Likewise.
44392         * lib/unictype/pr_terminal_punctuation.h: Likewise.
44393         * lib/unictype/pr_unassigned_code_value.h: Likewise.
44394         * lib/unictype/pr_unified_ideograph.h: Likewise.
44395         * lib/unictype/pr_uppercase.h: Likewise.
44396         * lib/unictype/pr_xid_continue.h: Likewise.
44397         * lib/unictype/pr_xid_start.h: Likewise.
44398         * lib/unictype/scripts.h: Likewise.
44399         * lib/unictype/scripts_byname.gperf: Likewise.
44400         * lib/unictype/sy_java_ident.h: Likewise.
44401         * lib/unigbrk/gbrkprop.h: Likewise.
44402         * lib/unilbrk/lbrkprop1.h: Likewise.
44403         * lib/unilbrk/lbrkprop2.h: Likewise.
44404         * lib/uninorm/decomposition-table2.h: Likewise.
44405         * lib/uniwbrk/wbrkprop.h: Likewise.
44406         * tests/unicase/test-cased.c: Likewise.
44407         * tests/unicase/test-ignorable.c: Likewise.
44408         * tests/unicase/test-uc_tolower.c: Likewise.
44409         * tests/unicase/test-uc_totitle.c: Likewise.
44410         * tests/unicase/test-uc_toupper.c: Likewise.
44411         * tests/unictype/test-categ_C.c: Likewise.
44412         * tests/unictype/test-categ_Cn.c: Likewise.
44413         * tests/unictype/test-categ_L.c: Likewise.
44414         * tests/unictype/test-categ_Ll.c: Likewise.
44415         * tests/unictype/test-categ_Lm.c: Likewise.
44416         * tests/unictype/test-categ_Lo.c: Likewise.
44417         * tests/unictype/test-categ_Lu.c: Likewise.
44418         * tests/unictype/test-categ_M.c: Likewise.
44419         * tests/unictype/test-categ_Mc.c: Likewise.
44420         * tests/unictype/test-categ_Me.c: Likewise.
44421         * tests/unictype/test-categ_Mn.c: Likewise.
44422         * tests/unictype/test-categ_N.c: Likewise.
44423         * tests/unictype/test-categ_Nd.c: Likewise.
44424         * tests/unictype/test-categ_No.c: Likewise.
44425         * tests/unictype/test-categ_P.c: Likewise.
44426         * tests/unictype/test-categ_Po.c: Likewise.
44427         * tests/unictype/test-categ_S.c: Likewise.
44428         * tests/unictype/test-categ_Sc.c: Likewise.
44429         * tests/unictype/test-categ_Sk.c: Likewise.
44430         * tests/unictype/test-categ_Sm.c: Likewise.
44431         * tests/unictype/test-categ_So.c: Likewise.
44432         * tests/unictype/test-ctype_alnum.c: Likewise.
44433         * tests/unictype/test-ctype_alpha.c: Likewise.
44434         * tests/unictype/test-ctype_graph.c: Likewise.
44435         * tests/unictype/test-ctype_lower.c: Likewise.
44436         * tests/unictype/test-ctype_print.c: Likewise.
44437         * tests/unictype/test-ctype_punct.c: Likewise.
44438         * tests/unictype/test-ctype_upper.c: Likewise.
44439         * tests/unictype/test-decdigit.h: Likewise.
44440         * tests/unictype/test-digit.h: Likewise.
44441         * tests/unictype/test-numeric.h: Likewise.
44442         * tests/unictype/test-pr_alphabetic.c: Likewise.
44443         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
44444         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
44445         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
44446         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
44447         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
44448         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
44449         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
44450         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
44451         * tests/unictype/test-pr_case_ignorable.c: Likewise.
44452         * tests/unictype/test-pr_cased.c: Likewise.
44453         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
44454         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
44455         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
44456         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
44457         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
44458         * tests/unictype/test-pr_combining.c: Likewise.
44459         * tests/unictype/test-pr_composite.c: Likewise.
44460         * tests/unictype/test-pr_currency_symbol.c: Likewise.
44461         * tests/unictype/test-pr_decimal_digit.c: Likewise.
44462         * tests/unictype/test-pr_deprecated.c: Likewise.
44463         * tests/unictype/test-pr_format_control.c: Likewise.
44464         * tests/unictype/test-pr_grapheme_base.c: Likewise.
44465         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
44466         * tests/unictype/test-pr_grapheme_link.c: Likewise.
44467         * tests/unictype/test-pr_id_continue.c: Likewise.
44468         * tests/unictype/test-pr_id_start.c: Likewise.
44469         * tests/unictype/test-pr_ideographic.c: Likewise.
44470         * tests/unictype/test-pr_lowercase.c: Likewise.
44471         * tests/unictype/test-pr_math.c: Likewise.
44472         * tests/unictype/test-pr_numeric.c: Likewise.
44473         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
44474         * tests/unictype/test-pr_other_id_continue.c: Likewise.
44475         * tests/unictype/test-pr_other_math.c: Likewise.
44476         * tests/unictype/test-pr_punctuation.c: Likewise.
44477         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
44478         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
44479         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
44480         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
44481         * tests/unictype/test-pr_uppercase.c: Likewise.
44482         * tests/unictype/test-pr_xid_continue.c: Likewise.
44483         * tests/unictype/test-pr_xid_start.c: Likewise.
44484         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
44485         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
44486         changes.
44487         * lib/unictype/categ_Cc.h: Likewise.
44488         * lib/unictype/categ_Cf.h: Likewise.
44489         * lib/unictype/categ_Co.h: Likewise.
44490         * lib/unictype/categ_Cs.h: Likewise.
44491         * lib/unictype/categ_Lt.h: Likewise.
44492         * lib/unictype/categ_Nl.h: Likewise.
44493         * lib/unictype/categ_Pc.h: Likewise.
44494         * lib/unictype/categ_Pd.h: Likewise.
44495         * lib/unictype/categ_Pe.h: Likewise.
44496         * lib/unictype/categ_Pf.h: Likewise.
44497         * lib/unictype/categ_Pi.h: Likewise.
44498         * lib/unictype/categ_Ps.h: Likewise.
44499         * lib/unictype/categ_Z.h: Likewise.
44500         * lib/unictype/categ_Zl.h: Likewise.
44501         * lib/unictype/categ_Zp.h: Likewise.
44502         * lib/unictype/categ_Zs.h: Likewise.
44503         * lib/unictype/ctype_blank.h: Likewise.
44504         * lib/unictype/ctype_cntrl.h: Likewise.
44505         * lib/unictype/ctype_digit.h: Likewise.
44506         * lib/unictype/ctype_space.h: Likewise.
44507         * lib/unictype/ctype_xdigit.h: Likewise.
44508         * lib/unictype/mirror.h: Likewise.
44509         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
44510         * lib/unictype/pr_bidi_block_separator.h: Likewise.
44511         * lib/unictype/pr_bidi_common_separator.h: Likewise.
44512         * lib/unictype/pr_bidi_control.h: Likewise.
44513         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
44514         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
44515         * lib/unictype/pr_bidi_european_digit.h: Likewise.
44516         * lib/unictype/pr_bidi_pdf.h: Likewise.
44517         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
44518         * lib/unictype/pr_bidi_whitespace.h: Likewise.
44519         * lib/unictype/pr_dash.h: Likewise.
44520         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
44521         * lib/unictype/pr_diacritic.h: Likewise.
44522         * lib/unictype/pr_extender.h: Likewise.
44523         * lib/unictype/pr_hex_digit.h: Likewise.
44524         * lib/unictype/pr_hyphen.h: Likewise.
44525         * lib/unictype/pr_ids_binary_operator.h: Likewise.
44526         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
44527         * lib/unictype/pr_ignorable_control.h: Likewise.
44528         * lib/unictype/pr_iso_control.h: Likewise.
44529         * lib/unictype/pr_join_control.h: Likewise.
44530         * lib/unictype/pr_left_of_pair.h: Likewise.
44531         * lib/unictype/pr_line_separator.h: Likewise.
44532         * lib/unictype/pr_logical_order_exception.h: Likewise.
44533         * lib/unictype/pr_non_break.h: Likewise.
44534         * lib/unictype/pr_not_a_character.h: Likewise.
44535         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
44536         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
44537         * lib/unictype/pr_other_id_start.h: Likewise.
44538         * lib/unictype/pr_other_lowercase.h: Likewise.
44539         * lib/unictype/pr_other_uppercase.h: Likewise.
44540         * lib/unictype/pr_paired_punctuation.h: Likewise.
44541         * lib/unictype/pr_paragraph_separator.h: Likewise.
44542         * lib/unictype/pr_pattern_syntax.h: Likewise.
44543         * lib/unictype/pr_pattern_white_space.h: Likewise.
44544         * lib/unictype/pr_private_use.h: Likewise.
44545         * lib/unictype/pr_quotation_mark.h: Likewise.
44546         * lib/unictype/pr_radical.h: Likewise.
44547         * lib/unictype/pr_soft_dotted.h: Likewise.
44548         * lib/unictype/pr_space.h: Likewise.
44549         * lib/unictype/pr_titlecase.h: Likewise.
44550         * lib/unictype/pr_variation_selector.h: Likewise.
44551         * lib/unictype/pr_white_space.h: Likewise.
44552         * lib/unictype/pr_zero_width.h: Likewise.
44553         * lib/unictype/sy_c_ident.h: Likewise.
44554         * lib/unictype/sy_c_whitespace.h: Likewise.
44555         * lib/unictype/sy_java_whitespace.h: Likewise.
44556         * lib/uninorm/composition-table.gperf: Likewise.
44557         * lib/uninorm/decomposition-table1.h: Likewise.
44558         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
44559         LB8.
44560         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
44561         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
44562         * modules/unictype/*: Bump version number of expected libunistring
44563         version.
44565 2011-01-09  Bruno Haible  <bruno@clisp.org>
44567         Update to Unicode 5.2.0.
44568         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
44569         trailing whitespace removed.
44571 2011-01-09  Bruno Haible  <bruno@clisp.org>
44573         New Unicode character properties, from Unicode 5.2.0.
44574         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
44575         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
44576         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
44577         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
44578         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
44579         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
44580         uc_is_property_cased, uc_is_property_case_ignorable,
44581         uc_is_property_changes_when_lowercased,
44582         uc_is_property_changes_when_uppercased,
44583         uc_is_property_changes_when_titlecased,
44584         uc_is_property_changes_when_casefolded,
44585         uc_is_property_changes_when_casemapped): New declarations.
44586         * lib/unictype/pr_byname.gperf: Add the new properties.
44587         * modules/unictype/property-byname (Depends-on): Depend on the new
44588         properties modules.
44589         * modules/unictype/property-all (Depends-on): Likewise.
44590         * MODULES.html.sh (Unicode string functions): Add
44591         unictype/property-case-ignorable, unictype/property-cased,
44592         unictype/property-changes-when-casefolded,
44593         unictype/property-changes-when-casemapped,
44594         unictype/property-changes-when-lowercased,
44595         unictype/property-changes-when-titlecased,
44596         unictype/property-changes-when-uppercased.
44598         New module 'unictype/property-changes-when-casemapped'.
44599         * modules/unictype/property-changes-when-casemapped: New file.
44600         * lib/unictype/pr_changes_when_casemapped.c: New file.
44601         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
44602         generated by gen-uni-tables.
44603         * modules/unictype/property-changes-when-casemapped-tests: New file.
44604         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
44605         automatically generated by gen-uni-tables.
44607         New module 'unictype/property-changes-when-casefolded'.
44608         * modules/unictype/property-changes-when-casefolded: New file.
44609         * lib/unictype/pr_changes_when_casefolded.c: New file.
44610         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
44611         generated by gen-uni-tables.
44612         * modules/unictype/property-changes-when-casefolded-tests: New file.
44613         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
44614         automatically generated by gen-uni-tables.
44616         New module 'unictype/property-changes-when-titlecased'.
44617         * modules/unictype/property-changes-when-titlecased: New file.
44618         * lib/unictype/pr_changes_when_titlecased.c: New file.
44619         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
44620         generated by gen-uni-tables.
44621         * modules/unictype/property-changes-when-titlecased-tests: New file.
44622         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
44623         automatically generated by gen-uni-tables.
44625         New module 'unictype/property-changes-when-uppercased'.
44626         * modules/unictype/property-changes-when-uppercased: New file.
44627         * lib/unictype/pr_changes_when_uppercased.c: New file.
44628         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
44629         generated by gen-uni-tables.
44630         * modules/unictype/property-changes-when-uppercased-tests: New file.
44631         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
44632         automatically generated by gen-uni-tables.
44634         New module 'unictype/property-changes-when-lowercased'.
44635         * modules/unictype/property-changes-when-lowercased: New file.
44636         * lib/unictype/pr_changes_when_lowercased.c: New file.
44637         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
44638         generated by gen-uni-tables.
44639         * modules/unictype/property-changes-when-lowercased-tests: New file.
44640         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
44641         automatically generated by gen-uni-tables.
44643         New module 'unictype/property-case-ignorable'.
44644         * modules/unictype/property-case-ignorable: New file.
44645         * lib/unictype/pr_case_ignorable.c: New file.
44646         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
44647         by gen-uni-tables.
44648         * modules/unictype/property-case-ignorable-tests: New file.
44649         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
44650         generated by gen-uni-tables.
44652         New module 'unictype/property-cased'.
44653         * modules/unictype/property-cased: New file.
44654         * lib/unictype/pr_cased.c: New file.
44655         * lib/unictype/pr_cased.h: New file, automatically generated by
44656         gen-uni-tables.
44657         * modules/unictype/property-cased-tests: New file.
44658         * tests/unictype/test-pr_cased.c: New file, automatically generated by
44659         gen-uni-tables.
44661 2011-01-09  Bruno Haible  <bruno@clisp.org>
44663         Update to Unicode 5.2.0.
44664         * lib/gen-uni-tables.c (output_predicate, output_category,
44665         output_combclass, output_bidi_category, output_decimal_digit_test,
44666         output_decimal_digit, output_digit_test, output_digit,
44667         output_numeric_test, output_numeric, output_mirror, output_scripts,
44668         output_scripts_byname, output_blocks, output_ident_category): Fix
44669         comment header.
44670         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
44671         get_wbp.
44672         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
44673         items.
44674         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
44675         Changes_When_Lowercased, Changes_When_Uppercased,
44676         Changes_When_Titlecased, Changes_When_Casefolded,
44677         Changes_When_Casemapped.
44678         (is_property_alphabetic, is_property_default_ignorable_code_point):
44679         Update for Unicode 5.2.0.
44680         (is_property_cased, is_property_case_ignorable,
44681         is_property_changes_when_lowercased,
44682         is_property_changes_when_uppercased,
44683         is_property_changes_when_titlecased,
44684         is_property_changes_when_casefolded,
44685         is_property_changes_when_casemapped): New functions.
44686         (output_properties): Output also the properties cased, case_ignorable,
44687         changes_when_lowercased, changes_when_uppercased,
44688         changes_when_titlecased, changes_when_casefolded,
44689         changes_when_casemapped.
44690         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
44691         Unicode TR#11 revision 17 -> 19.
44692         (LBP_CP): New enumeration value.
44693         (LBP_*): Adjust values accordingly.
44694         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
44695         TR#14 revision 22 -> 24.
44696         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
44697         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
44698         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
44699         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
44700         is_WBP_MIDLETTER.
44701         (output_composition_tables): Allow for 24 bits instead of 16 bits in
44702         the code1 and code2 of each composition rule.
44703         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
44704         * lib/unicase/ignorable.h: Likewise.
44705         * lib/unicase/tocasefold.h: Likewise.
44706         * lib/unicase/tolower.h: Likewise.
44707         * lib/unicase/totitle.h: Likewise.
44708         * lib/unicase/toupper.h: Likewise.
44709         * lib/unictype/bidi_of.h: Likewise.
44710         * lib/unictype/blocks.h: Likewise.
44711         * lib/unictype/categ_C.h: Likewise.
44712         * lib/unictype/categ_Cf.h: Likewise.
44713         * lib/unictype/categ_Cn.h: Likewise.
44714         * lib/unictype/categ_L.h: Likewise.
44715         * lib/unictype/categ_Ll.h: Likewise.
44716         * lib/unictype/categ_Lm.h: Likewise.
44717         * lib/unictype/categ_Lo.h: Likewise.
44718         * lib/unictype/categ_Lu.h: Likewise.
44719         * lib/unictype/categ_M.h: Likewise.
44720         * lib/unictype/categ_Mc.h: Likewise.
44721         * lib/unictype/categ_Mn.h: Likewise.
44722         * lib/unictype/categ_N.h: Likewise.
44723         * lib/unictype/categ_Nd.h: Likewise.
44724         * lib/unictype/categ_Nl.h: Likewise.
44725         * lib/unictype/categ_No.h: Likewise.
44726         * lib/unictype/categ_P.h: Likewise.
44727         * lib/unictype/categ_Pd.h: Likewise.
44728         * lib/unictype/categ_Po.h: Likewise.
44729         * lib/unictype/categ_S.h: Likewise.
44730         * lib/unictype/categ_Sc.h: Likewise.
44731         * lib/unictype/categ_So.h: Likewise.
44732         * lib/unictype/categ_of.h: Likewise.
44733         * lib/unictype/combining.h: Likewise.
44734         * lib/unictype/ctype_alnum.h: Likewise.
44735         * lib/unictype/ctype_alpha.h: Likewise.
44736         * lib/unictype/ctype_graph.h: Likewise.
44737         * lib/unictype/ctype_lower.h: Likewise.
44738         * lib/unictype/ctype_print.h: Likewise.
44739         * lib/unictype/ctype_punct.h: Likewise.
44740         * lib/unictype/ctype_upper.h: Likewise.
44741         * lib/unictype/decdigit.h: Likewise.
44742         * lib/unictype/digit.h: Likewise.
44743         * lib/unictype/numeric.h: Likewise.
44744         * lib/unictype/pr_alphabetic.h: Likewise.
44745         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
44746         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
44747         * lib/unictype/pr_bidi_european_digit.h: Likewise.
44748         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
44749         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
44750         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
44751         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
44752         * lib/unictype/pr_combining.h: Likewise.
44753         * lib/unictype/pr_composite.h: Likewise.
44754         * lib/unictype/pr_currency_symbol.h: Likewise.
44755         * lib/unictype/pr_dash.h: Likewise.
44756         * lib/unictype/pr_decimal_digit.h: Likewise.
44757         * lib/unictype/pr_deprecated.h: Likewise.
44758         * lib/unictype/pr_diacritic.h: Likewise.
44759         * lib/unictype/pr_extender.h: Likewise.
44760         * lib/unictype/pr_grapheme_base.h: Likewise.
44761         * lib/unictype/pr_grapheme_extend.h: Likewise.
44762         * lib/unictype/pr_grapheme_link.h: Likewise.
44763         * lib/unictype/pr_id_continue.h: Likewise.
44764         * lib/unictype/pr_id_start.h: Likewise.
44765         * lib/unictype/pr_ideographic.h: Likewise.
44766         * lib/unictype/pr_ignorable_control.h: Likewise.
44767         * lib/unictype/pr_logical_order_exception.h: Likewise.
44768         * lib/unictype/pr_lowercase.h: Likewise.
44769         * lib/unictype/pr_numeric.h: Likewise.
44770         * lib/unictype/pr_other_alphabetic.h: Likewise.
44771         * lib/unictype/pr_punctuation.h: Likewise.
44772         * lib/unictype/pr_sentence_terminal.h: Likewise.
44773         * lib/unictype/pr_terminal_punctuation.h: Likewise.
44774         * lib/unictype/pr_unassigned_code_value.h: Likewise.
44775         * lib/unictype/pr_unified_ideograph.h: Likewise.
44776         * lib/unictype/pr_uppercase.h: Likewise.
44777         * lib/unictype/pr_xid_continue.h: Likewise.
44778         * lib/unictype/pr_xid_start.h: Likewise.
44779         * lib/unictype/pr_zero_width.h: Likewise.
44780         * lib/unictype/scripts.h: Likewise.
44781         * lib/unictype/scripts_byname.gperf: Likewise.
44782         * lib/unictype/sy_java_ident.h: Likewise.
44783         * lib/unigbrk/gbrkprop.h: Likewise.
44784         * lib/unilbrk/lbrkprop1.h: Likewise.
44785         * lib/unilbrk/lbrkprop2.h: Likewise.
44786         * lib/unilbrk/lbrktables.h: Likewise.
44787         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
44788         LBP_CP. Implement rule LB30.
44789         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
44790         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
44791         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
44792         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
44793         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
44794         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
44795         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
44796         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
44797         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
44798         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
44799         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
44800         bits instead of 16 bits in the code1 and code2 of each composition
44801         rule.
44802         (uc_composition): Update for Unicode 5.2.0.
44803         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
44804         * lib/uninorm/decomposition-table2.h: Likewise.
44805         * lib/uniwbrk/wbrkprop.h: Likewise.
44806         * tests/unicase/test-cased.c: Likewise.
44807         * tests/unicase/test-ignorable.c: Likewise.
44808         * tests/unicase/test-uc_tolower.c: Likewise.
44809         * tests/unicase/test-uc_totitle.c: Likewise.
44810         * tests/unicase/test-uc_toupper.c: Likewise.
44811         * tests/unictype/test-categ_C.c: Likewise.
44812         * tests/unictype/test-categ_Cf.c: Likewise.
44813         * tests/unictype/test-categ_Cn.c: Likewise.
44814         * tests/unictype/test-categ_L.c: Likewise.
44815         * tests/unictype/test-categ_Ll.c: Likewise.
44816         * tests/unictype/test-categ_Lm.c: Likewise.
44817         * tests/unictype/test-categ_Lo.c: Likewise.
44818         * tests/unictype/test-categ_Lu.c: Likewise.
44819         * tests/unictype/test-categ_M.c: Likewise.
44820         * tests/unictype/test-categ_Mc.c: Likewise.
44821         * tests/unictype/test-categ_Mn.c: Likewise.
44822         * tests/unictype/test-categ_N.c: Likewise.
44823         * tests/unictype/test-categ_Nd.c: Likewise.
44824         * tests/unictype/test-categ_Nl.c: Likewise.
44825         * tests/unictype/test-categ_No.c: Likewise.
44826         * tests/unictype/test-categ_P.c: Likewise.
44827         * tests/unictype/test-categ_Pd.c: Likewise.
44828         * tests/unictype/test-categ_Po.c: Likewise.
44829         * tests/unictype/test-categ_S.c: Likewise.
44830         * tests/unictype/test-categ_Sc.c: Likewise.
44831         * tests/unictype/test-categ_So.c: Likewise.
44832         * tests/unictype/test-ctype_alnum.c: Likewise.
44833         * tests/unictype/test-ctype_alpha.c: Likewise.
44834         * tests/unictype/test-ctype_graph.c: Likewise.
44835         * tests/unictype/test-ctype_lower.c: Likewise.
44836         * tests/unictype/test-ctype_print.c: Likewise.
44837         * tests/unictype/test-ctype_punct.c: Likewise.
44838         * tests/unictype/test-ctype_upper.c: Likewise.
44839         * tests/unictype/test-decdigit.h: Likewise.
44840         * tests/unictype/test-digit.h: Likewise.
44841         * tests/unictype/test-numeric.h: Likewise.
44842         * tests/unictype/test-pr_alphabetic.c: Likewise.
44843         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
44844         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
44845         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
44846         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
44847         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
44848         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
44849         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
44850         * tests/unictype/test-pr_combining.c: Likewise.
44851         * tests/unictype/test-pr_composite.c: Likewise.
44852         * tests/unictype/test-pr_currency_symbol.c: Likewise.
44853         * tests/unictype/test-pr_dash.c: Likewise.
44854         * tests/unictype/test-pr_decimal_digit.c: Likewise.
44855         * tests/unictype/test-pr_deprecated.c: Likewise.
44856         * tests/unictype/test-pr_diacritic.c: Likewise.
44857         * tests/unictype/test-pr_extender.c: Likewise.
44858         * tests/unictype/test-pr_grapheme_base.c: Likewise.
44859         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
44860         * tests/unictype/test-pr_grapheme_link.c: Likewise.
44861         * tests/unictype/test-pr_id_continue.c: Likewise.
44862         * tests/unictype/test-pr_id_start.c: Likewise.
44863         * tests/unictype/test-pr_ideographic.c: Likewise.
44864         * tests/unictype/test-pr_ignorable_control.c: Likewise.
44865         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
44866         * tests/unictype/test-pr_lowercase.c: Likewise.
44867         * tests/unictype/test-pr_numeric.c: Likewise.
44868         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
44869         * tests/unictype/test-pr_punctuation.c: Likewise.
44870         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
44871         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
44872         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
44873         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
44874         * tests/unictype/test-pr_uppercase.c: Likewise.
44875         * tests/unictype/test-pr_xid_continue.c: Likewise.
44876         * tests/unictype/test-pr_xid_start.c: Likewise.
44877         * tests/unictype/test-pr_zero_width.c: Likewise.
44878         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
44879         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
44880         changed behaviour: line breaking is now disallowed between a letter
44881         or '=' and '('.
44882         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
44883         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
44884         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
44885         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
44886         * tests/uniwidth/test-uc_width2.sh: Same updates as in
44887         lib/uniwidth/width.c.
44888         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
44889         without comments, but with the original copyright notice.
44890         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
44891         changes.
44892         * lib/unictype/categ_Cc.h: Likewise.
44893         * lib/unictype/categ_Co.h: Likewise.
44894         * lib/unictype/categ_Cs.h: Likewise.
44895         * lib/unictype/categ_Lt.h: Likewise.
44896         * lib/unictype/categ_Me.h: Likewise.
44897         * lib/unictype/categ_Pc.h: Likewise.
44898         * lib/unictype/categ_Pe.h: Likewise.
44899         * lib/unictype/categ_Pf.h: Likewise.
44900         * lib/unictype/categ_Pi.h: Likewise.
44901         * lib/unictype/categ_Ps.h: Likewise.
44902         * lib/unictype/categ_Sk.h: Likewise.
44903         * lib/unictype/categ_Sm.h: Likewise.
44904         * lib/unictype/categ_Z.h: Likewise.
44905         * lib/unictype/categ_Zl.h: Likewise.
44906         * lib/unictype/categ_Zp.h: Likewise.
44907         * lib/unictype/categ_Zs.h: Likewise.
44908         * lib/unictype/ctype_blank.h: Likewise.
44909         * lib/unictype/ctype_cntrl.h: Likewise.
44910         * lib/unictype/ctype_digit.h: Likewise.
44911         * lib/unictype/ctype_space.h: Likewise.
44912         * lib/unictype/ctype_xdigit.h: Likewise.
44913         * lib/unictype/mirror.h: Likewise.
44914         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
44915         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
44916         * lib/unictype/pr_bidi_block_separator.h: Likewise.
44917         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
44918         * lib/unictype/pr_bidi_common_separator.h: Likewise.
44919         * lib/unictype/pr_bidi_control.h: Likewise.
44920         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
44921         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
44922         * lib/unictype/pr_bidi_pdf.h: Likewise.
44923         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
44924         * lib/unictype/pr_bidi_whitespace.h: Likewise.
44925         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
44926         * lib/unictype/pr_format_control.h: Likewise.
44927         * lib/unictype/pr_hex_digit.h: Likewise.
44928         * lib/unictype/pr_hyphen.h: Likewise.
44929         * lib/unictype/pr_ids_binary_operator.h: Likewise.
44930         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
44931         * lib/unictype/pr_iso_control.h: Likewise.
44932         * lib/unictype/pr_join_control.h: Likewise.
44933         * lib/unictype/pr_left_of_pair.h: Likewise.
44934         * lib/unictype/pr_line_separator.h: Likewise.
44935         * lib/unictype/pr_math.h: Likewise.
44936         * lib/unictype/pr_non_break.h: Likewise.
44937         * lib/unictype/pr_not_a_character.h: Likewise.
44938         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
44939         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
44940         * lib/unictype/pr_other_id_continue.h: Likewise.
44941         * lib/unictype/pr_other_id_start.h: Likewise.
44942         * lib/unictype/pr_other_lowercase.h: Likewise.
44943         * lib/unictype/pr_other_math.h: Likewise.
44944         * lib/unictype/pr_other_uppercase.h: Likewise.
44945         * lib/unictype/pr_paired_punctuation.h: Likewise.
44946         * lib/unictype/pr_paragraph_separator.h: Likewise.
44947         * lib/unictype/pr_pattern_syntax.h: Likewise.
44948         * lib/unictype/pr_pattern_white_space.h: Likewise.
44949         * lib/unictype/pr_private_use.h: Likewise.
44950         * lib/unictype/pr_quotation_mark.h: Likewise.
44951         * lib/unictype/pr_radical.h: Likewise.
44952         * lib/unictype/pr_soft_dotted.h: Likewise.
44953         * lib/unictype/pr_space.h: Likewise.
44954         * lib/unictype/pr_titlecase.h: Likewise.
44955         * lib/unictype/pr_variation_selector.h: Likewise.
44956         * lib/unictype/pr_white_space.h: Likewise.
44957         * lib/unictype/sy_c_ident.h: Likewise.
44958         * lib/unictype/sy_c_whitespace.h: Likewise.
44959         * lib/unictype/sy_java_whitespace.h: Likewise.
44960         * modules/uni*/*: Bump version number of expected libunistring version.
44961         Reported by Simon Josefsson.
44963 2011-01-09  Karl Heuer  <kwzh@gnu.org>
44965         useless-if-before-free: fix typo in --help and make the internal,
44966         automatic version date update process work once again.
44967         --help output contained a NUL character instead of the
44968         backslash-zero that was intended.  Also, the "must lie within
44969         the first 8 lines" line is on line 9, and hence not getting
44970         automatically updated.
44971         * build-aux/useless-if-before-free: Fix the former by adding a
44972         backslash, and the latter by condensing the three lines of what-it-does
44973         to a single line, leaving one line of slack for the future.
44975 2011-01-09  Bruno Haible  <bruno@clisp.org>
44977         uniwidth/width: Fix width of U+1D173..U+1D17A.
44978         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
44979         symbolic_width, output_width_property_test): New functions.
44980         (main): Invoke output_nonspacing_property, output_width_property_test.
44981         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
44982         U+1D173..U+1D17A.
44983         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
44984         1.
44985         * modules/uniwidth/*: Bump version number of expected libunistring
44986         version.
44987         * modules/unilbrk/*: Likewise.
44989 2011-01-08  Bruno Haible  <bruno@clisp.org>
44991         uninorm tests: Preserve copyright of Unicode data file.
44992         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
44993         Mention modifications.
44995 2011-01-08  Bruno Haible  <bruno@clisp.org>
44997         gen-uni-tables: Prepare for Unicode 5.2.0.
44998         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
44999         (debug_output_lbp, output_lbp): Update.
45001 2011-01-08  Bruno Haible  <bruno@clisp.org>
45003         unilbrk: Clarify gen-uni-tables.c code.
45004         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
45005         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
45006         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
45008 2011-01-07  Bruno Haible  <bruno@clisp.org>
45010         strtod: Restore errno when successfully parsing Infinity or NaN.
45011         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
45012         restore the original errno.
45014 2011-01-07  Bruno Haible  <bruno@clisp.org>
45016         remove test: Avoid failure on HP-UX 11.
45017         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
45019 2011-01-07  Bruno Haible  <bruno@clisp.org>
45021         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
45022         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
45023         error code.
45025 2011-01-07  Pádraig Brady  <P@draigBrady.com>
45027         ignore-value: fixup comments, and add Eric Blake
45028         as an author since he rewrote the macros.
45029         * lib/ignore-value.h (ignore_value):  State that
45030         we now support aggregates.  Also specify exactly
45031         when the GCC warn_unused_result feature was added.
45033 2011-01-06  Eric Blake  <eblake@redhat.com>
45035         ignore-value: support aggregate types
45036         * lib/ignore-value.h (ignore_value): Provide separate gcc
45037         definition.
45038         * modules/ignore-value-tests: New test module.
45039         * tests/test-ignore-value.c: New test.
45041         maint.mk: improve sc_prohibit_strcmp regex
45042         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
45043         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
45044         definition of STRNEQ.
45046         signal: work around Haiku issue with SIGBUS
45047         * lib/siglist.h: Add comment.
45048         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
45049         strsignal's favoring of SIGSEGV.
45050         * tests/test-signal.c (main): Avoid test failure.
45051         * doc/posix-headers/signal.texi (signal.h): Document the issue.
45052         Reported by Scott McCreary.
45054         maint.mk: add pre-release check to ensure submodule commits are public
45055         * top/maint.mk (public-submodule-commit): New rule.
45056         (submodule-checks): New variable.
45057         (alpha beta stable): Depend on the variable.
45059 2011-01-05  Pádraig Brady  <P@draigBrady.com>
45060         and Jim Meyering  <meyering@redhat.com>
45062         ignore-value: make ignore_value more generic; deprecate ignore_ptr
45063         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
45064         (ATTRIBUTE_DEPRECATED): Define.
45065         (_ignore_case): New function.
45066         (ignore_value): New macro, to replace the old function.
45067         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
45068         * modules/ignore-value (Depends-on): Add stdint.
45070 2011-01-04  Eric Blake  <eblake@redhat.com>
45072         doc: regenerate INSTALL
45073         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
45074         @firstparagraphindent support, now that autoconf dropped it.
45075         (INSTALL_PRELUDE): Reinstate old macro.
45076         * doc/install.texi: Resync from autoconf.
45077         * doc/INSTALL: Reflect recent autoconf update.
45078         * doc/INSTALL.ISO: Likewise.
45079         * doc/INSTALL.UTF-8: Likewise.
45080         Reported by Karl Berry.
45082 2011-01-04  Bruce Korb  <address@hidden>
45084         git-version-gen: avoid a sub-shell
45085         * build-aux/git-version-gen: Redirect stderr in `...` via
45086         "exec 2>...", rather than via an added sub-shell.
45088 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
45090         git-version-gen: use (...) rather than sh -c '...'
45091         * build-aux/git-version-gen: Rather than hard-coding a shell's name
45092         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
45094 2011-01-03  Jim Meyering  <meyering@redhat.com>
45096         git-version-gen: convert leading TABs to spaces
45097         * build-aux/git-version-gen: Expand leading TABs.
45099         git-version-gen: handle failed "git rev-list"
45100         * build-aux/git-version-gen: Rather than leaking a "fatal" error
45101         from git and proceeding as if it had succeeded but printed no SHA1
45102         checksums, suppress the diagnostic and handle the failure.
45103         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
45105         git-version-gen: include command name in one more diagnostic
45106         * build-aux/git-version-gen: When the required .tarball-version file
45107         was missing or unreadable, you might see the diagnostic from "cat",
45108         but no trace of the name of the invoking script.  Now, you still see
45109         the diagnostic from cat, but also get one from "git-version-gen: ".
45110         Inspired by a patch from Bruce Korb.
45112         update-copyright: adjust test to match changed code
45113         * tests/test-update-copyright.sh: Change test's expected output
45114         to match new actual output.
45116 2011-01-02  Bruno Haible  <bruno@clisp.org>
45118         getlogin_r: Avoid test failure on HP-UX 11.
45119         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
45120         ERANGE when the second argument is zero.
45121         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
45122         portability problem.
45124 2011-01-02  Bruce Korb  <bkorb@gnu.org>
45126         * build-aux/update-copyright: doc Simon's changes
45128 2011-01-02  Simon Josefsson  <simon@josefsson.org>
45130         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
45131         environment variable.
45133 2011-01-02  Bruno Haible  <bruno@clisp.org>
45135         unigbrk: Avoid gcc warnings.
45136         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
45137         unused variable.
45138         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
45139         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
45140         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
45141         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
45142         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
45143         Change type of first argument to 'const char *'.
45144         (main): Remove unused variable.
45145         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
45146         type of first argument to 'const char *'.
45147         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
45148         Likewise.
45149         (main): Change type of variable 's'.
45150         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
45151         to 'int'.
45153 2011-01-02  Bruno Haible  <bruno@clisp.org>
45155         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
45156         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
45157         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
45158         bug.
45159         * lib/pwrite.c: Undo 2010-12-31 patch.
45160         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
45162 2011-01-02  Bruno Haible  <bruno@clisp.org>
45164         pread: Fix test whether it works.
45165         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
45167 2011-01-02  Bruno Haible  <bruno@clisp.org>
45169         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
45170         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
45171         ends in "6". Don't require a specific month name. Try also the locale
45172         names found on HP-UX 11 and Solaris 7.
45174 2011-01-02  Bruno Haible  <bruno@clisp.org>
45176         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
45177         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
45178         C linkage.
45179         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
45181 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
45183         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
45184         for consistency, since the "cluster" term is not used elsewhere.
45185         * lib/unigbrk.in.h: Update name.
45186         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
45187         * lib/unigbrk/u16-grapheme-next.c: Update name.
45188         * lib/unigbrk/u16-grapheme-prev.c: Update name.
45189         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
45190         * lib/unigbrk/u32-grapheme-next.c: Update name.
45191         * lib/unigbrk/u32-grapheme-prev.c: Update name.
45192         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
45193         * lib/unigbrk/u8-grapheme-next.c: Update name.
45194         * lib/unigbrk/u8-grapheme-prev.c: Update name.
45195         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
45196         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
45197         Suggested by Bruno Haible.
45199 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
45201         Remove module 'u8-grapheme-len' as too redundant with
45202         'u8-grapheme-next'.
45203         * modules/unigbrk/u8-grapheme-len: Delete file.
45204         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
45205         * lib/unigbrk.in.h: Remove prototype for deleted function.
45206         * lib/unigbrk/u8-grapheme-len.c: Delete file.
45207         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
45209         Remove module 'u16-grapheme-len' as too redundant with
45210         'u16-grapheme-next'.
45211         * modules/unigbrk/u16-grapheme-len: Delete file.
45212         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
45213         * lib/unigbrk.in.h: Remove prototype for deleted function.
45214         * lib/unigbrk/u16-grapheme-len.c: Delete file.
45215         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
45217         Remove module 'u32-grapheme-len' as too redundant with
45218         'u32-grapheme-next'.
45219         * modules/unigbrk/u32-grapheme-len: Delete file.
45220         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
45221         * lib/unigbrk.in.h: Remove prototype for deleted function.
45222         * lib/unigbrk/u32-grapheme-len.c: Delete file.
45223         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
45225         Suggested by Bruno Haible.
45227 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
45229         * unigbrk.in.h: Fix typo: "ben" => "been".
45230         Reported by Bruno Haible.
45232 2011-01-01  Jim Meyering  <meyering@redhat.com>
45234         maint: update almost all copyright ranges to include 2011
45235         Run the new "make update-copyright" rule.
45237 2011-01-01  Jim Meyering  <meyering@redhat.com>
45239         maint: update-copyright: exempt doc/INSTALL*
45240         * Makefile (update-copyright): Also exclude doc/INSTALL*,
45241         since they are generated.  Suggested by Bruno Haible.
45243 2011-01-01  Jim Meyering  <meyering@redhat.com>
45245         maint: refine the update-copyright rule
45246         * Makefile (update-copyright): Also exclude any file that includes
45247         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
45248         code that merely generates the comment.
45250 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
45252         New module 'u8-grapheme-len'.
45253         * modules/unigbrk/u8-grapheme-len: New file.
45254         * modules/unigbrk/u8-grapheme-len-tests: New file.
45255         * lib/unigbrk.in.h: Add prototype for new function.
45256         * lib/unigbrk/u8-grapheme-len.c: New file.
45257         * tests/unigbrk/test-u8-grapheme-len.c: New file.
45259         New module 'u16-grapheme-len'.
45260         * modules/unigbrk/u16-grapheme-len: New file.
45261         * modules/unigbrk/u16-grapheme-len-tests: New file.
45262         * lib/unigbrk.in.h: Add prototype for new function.
45263         * lib/unigbrk/u16-grapheme-len.c: New file.
45264         * tests/unigbrk/test-u16-grapheme-len.c: New file.
45266         New module 'u32-grapheme-len'.
45267         * modules/unigbrk/u32-grapheme-len: New file.
45268         * modules/unigbrk/u32-grapheme-len-tests: New file.
45269         * lib/unigbrk.in.h: Add prototype for new function.
45270         * lib/unigbrk/u32-grapheme-len.c: New file.
45271         * tests/unigbrk/test-u32-grapheme-len.c: New file.
45273         New module 'u8-grapheme-next'.
45274         * modules/unigbrk/u8-grapheme-next: New file.
45275         * modules/unigbrk/u8-grapheme-next-tests: New file.
45276         * lib/unigbrk.in.h: Add prototype for new function.
45277         * lib/unigbrk/u8-grapheme-next.c: New file.
45278         * tests/unigbrk/test-u8-grapheme-next.c: New file.
45280         New module 'u16-grapheme-next'.
45281         * modules/unigbrk/u16-grapheme-next: New file.
45282         * modules/unigbrk/u16-grapheme-next-tests: New file.
45283         * lib/unigbrk.in.h: Add prototype for new function.
45284         * lib/unigbrk/u16-grapheme-next.c: New file.
45285         * tests/unigbrk/test-u16-grapheme-next.c: New file.
45287         New module 'u32-grapheme-next'.
45288         * modules/unigbrk/u32-grapheme-next: New file.
45289         * modules/unigbrk/u32-grapheme-next-tests: New file.
45290         * lib/unigbrk.in.h: Add prototype for new function.
45291         * lib/unigbrk/u32-grapheme-next.c: New file.
45292         * tests/unigbrk/test-u32-grapheme-next.c: New file.
45294         New module 'u8-grapheme-prev'.
45295         * modules/unigbrk/u8-grapheme-prev: New file.
45296         * modules/unigbrk/u8-grapheme-prev-tests: New file.
45297         * lib/unigbrk.in.h: Add prototype for new function.
45298         * lib/unigbrk/u8-grapheme-prev.c: New file.
45299         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
45301         New module 'u16-grapheme-prev'.
45302         * modules/unigbrk/u16-grapheme-prev: New file.
45303         * modules/unigbrk/u16-grapheme-prev-tests: New file.
45304         * lib/unigbrk.in.h: Add prototype for new function.
45305         * lib/unigbrk/u16-grapheme-prev.c: New file.
45306         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
45308         New module 'u32-grapheme-prev'.
45309         * modules/unigbrk/u32-grapheme-prev: New file.
45310         * modules/unigbrk/u32-grapheme-prev-tests: New file.
45311         * lib/unigbrk.in.h: Add prototype for new function.
45312         * lib/unigbrk/u32-grapheme-prev.c: New file.
45313         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
45315         New module 'u8-grapheme-breaks'.
45316         * modules/unigbrk/u8-grapheme-breaks: New file.
45317         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
45318         * lib/unigbrk.in.h: Add prototype for new function.
45319         * lib/unigbrk/u8-grapheme-breaks.c: New file.
45320         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
45322         New module 'u16-grapheme-breaks'.
45323         * modules/unigbrk/u16-grapheme-breaks: New file.
45324         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
45325         * lib/unigbrk.in.h: Add prototype for new function.
45326         * lib/unigbrk/u16-grapheme-breaks.c: New file.
45327         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
45329         New module 'u32-grapheme-breaks'.
45330         * modules/unigbrk/u32-grapheme-breaks: New file.
45331         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
45332         * lib/unigbrk.in.h: Add prototype for new function.
45333         * lib/unigbrk/u32-grapheme-breaks.c: New file.
45334         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
45336         New module 'ulc-grapheme-breaks'.
45337         * modules/unigbrk/ulc-grapheme-breaks: New file.
45338         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
45339         * m4/locale-ar.m4: New file.
45340         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
45341         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
45342         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
45344 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
45346         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
45347         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
45348         modified how this file was generated before I initially submitted
45349         the module, but failed to regenerate it.  This meant that several
45350         of the level2 entries were wrong.
45351         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
45352         Remove the division-by-2 that is folded into the table now that
45353         gbrkprop.h has been regenerated properly.  Now -1 entries are
45354         handled correctly.
45356         New module 'unigbrk/uc-gbrk-prop-tests'.
45357         * modules/unigbrk/uc-gbrk-prop-tests: New file.
45358         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
45359         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
45360         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
45362 2011-01-01  Bruno Haible  <bruno@clisp.org>
45364         Avoid use of hexadecimal escapes.
45365         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
45366         instead of hexadecimal escapes.
45368 2011-01-01  Jim Meyering  <meyering@redhat.com>
45370         maint: new rule to update copyright year ranges
45371         * Makefile (update-copyright): New rule.
45373         maint: indent with TABs in Makefile
45374         * Makefile: Expand leading sequences of spaces to TABs
45376         version-etc: update the copyright year it reports
45377         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
45379 2010-12-31  Bruno Haible  <bruno@clisp.org>
45381         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
45382         * lib/isfinite.c (zerof, zerod, zerol): New variables.
45383         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
45384         zero.
45386 2010-12-31  Bruno Haible  <bruno@clisp.org>
45388         pwrite: Work around HP-UX 11.11 bug.
45389         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
45390         works and set REPLACE_PWRITE if not.
45391         * lib/pwrite.c (pwrite): Add an implementation that uses the system
45392         function.
45393         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
45395 2010-12-31  Bruno Haible  <bruno@clisp.org>
45397         pread: Work around HP-UX 11 bugs.
45398         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
45399         and set REPLACE_PREAD if not.
45400         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
45402 2010-12-31  Eric Blake  <eblake@redhat.com>
45404         nl_langinfo: fix YESEXPR on Irix 6.5
45405         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
45406         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
45407         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
45408         it.
45410 2010-12-31  Bruno Haible  <bruno@clisp.org>
45412         iconv: Document HP-UX 11 bug.
45413         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
45415 2010-12-31  Bruno Haible  <bruno@clisp.org>
45417         ldexpl: Fix link error on HP-UX 11.
45418         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
45419         LDEXPL_LIBM, using $ISNANL_LIBM.
45421 2010-12-31  Eric Blake  <eblake@redhat.com>
45423         ftello: avoid compilation failure with SunStudio c89
45424         * lib/ftello.c (ftello): Use lseek, not llseek.
45426         tests: avoid failing coreutils tests on cygwin
45427         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
45428         (create_exe_shims_): Return 0 when skipping.
45430 2010-12-31  Bruno Haible  <bruno@clisp.org>
45432         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
45433         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
45435 2010-12-31  Bruno Haible  <bruno@clisp.org>
45437         waitpid: Fix link error in C++ mode.
45438         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
45440 2010-12-31  Bruno Haible  <bruno@clisp.org>
45442         isnan: Use GCC built-ins when possible.
45443         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
45444         __builtin_isnan.
45445         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
45446         (isnan): Define using GCC built-ins for GCC >= 4.0.
45448 2010-12-31  Bruno Haible  <bruno@clisp.org>
45450         isnand: Fix mistake.
45451         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
45452         __builtin_isnand.
45454 2010-12-31  Bruno Haible  <bruno@clisp.org>
45456         open: Avoid C++ error on HP-UX 11.
45457         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
45459 2010-12-31  Bruno Haible  <bruno@clisp.org>
45461         time_r: Add missing declarations on HP-UX 11.
45462         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
45463         instead of HAVE_LOCALTIME_R.
45464         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
45465         HAVE_LOCALTIME_R always.
45466         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
45467         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
45468         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
45469         HAVE_LOCALTIME_R.
45470         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
45471         * doc/posix-functions/localtime_r.texi: Likewise.
45473 2010-12-29  Eric Blake  <eblake@redhat.com>
45475         mountlist: tweak previous commit
45476         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
45477         Reported by Paul Eggert.
45479         mountlist: fix local drive detection on cygwin
45480         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
45481         that works for cygwin.
45483 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
45485         ftoastr, snprintf: ftoastr + snprintf module
45486         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
45487         since the snprintf module now should be good enough here.
45488         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
45489         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
45490         and gl_MODULE_INDICATOR([snprintf]), but the former enables
45491         GNULIB_SNPRINTF only for the test directory, and the latter
45492         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
45493         seems to suffice by itself.
45495 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
45497         alloca: one step towards thread-safety
45498         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
45499         need for a static variable.  All callers changed.  This does not
45500         make the alloca replacement thread-safe, but it's one step.
45502         tests: minor indenting change
45503         * tests/init.sh: Sync from coreutils housekeeping patch
45504         <http://lists.gnu.org/r/coreutils/2010-12/msg00116.html>
45505         to keep lines within 80 columns.
45507 2010-12-28  Jim Meyering  <meyering@redhat.com>
45509         regex: don't infloop on persistent failing calloc
45510         * lib/regexec.c (build_trtable): Return failure indication upon
45511         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
45512         In glibc, this was fixed for version 2.13:
45513         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
45515 2010-12-28  Bruno Haible  <bruno@clisp.org>
45516             Paul Eggert <eggert@cs.ucla.edu>
45518         linkat: Make implementation robust against system behaviour variations.
45519         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
45520         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
45521         way, and to -2 if it needs a generic runtime test.
45522         * lib/linkat.c (solaris_optimized_link_immediate,
45523         solaris_optimized_link_follow): New functions.
45524         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
45525         (check_same_link): Use it.
45527 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
45529         New module 'unigbrk/base'.
45530         * modules/unigbrk/base: New file.
45531         * lib/unigbrk.in.h: New file.
45533         New module 'unigbrk/uc-gbrk-prop'.
45534         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
45535         * modules/unigbrk/uc-gbrk-prop: New file.
45536         * lib/unigbrk/gbrkprop.h: New file.
45537         * lib/unigbrk/uc-gbrk-prop.c: New file.
45539         New module 'unigbrk/uc-is-grapheme-break'.
45540         * modules/unigbrk/uc-is-grapheme-break: New file.
45541         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
45542         * lib/unigbrk/uc-is-grapheme-break.c: New file.
45543         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
45544         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
45545         * tests/unigbrk/GraphemeBreakTest.txt: New file.
45547         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
45549 2010-12-27  Bruno Haible  <bruno@clisp.org>
45551         linkat test: Avoid failure on Solaris 11 2010-11.
45552         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
45554 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
45556         utimens: work around glibc rounding bug on more platforms
45557         * lib/utimens.c (fdutimens): Work around rounding bug even if
45558         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
45559         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00298.html>.
45561 2010-12-27  Bruno Haible  <bruno@clisp.org>
45563         select tests: Improve comments.
45564         * tests/test-select.c (do_select): Add comments.
45566 2010-12-27  Bruno Haible  <bruno@clisp.org>
45568         select tests: Safer way of handling timeout.
45569         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
45570         at every invocation.
45572 2010-12-27  Bruno Haible  <bruno@clisp.org>
45574         select tests: Use 'bool' where appropriate.
45575         * tests/test-select.c (connect_to_socket): Change argument type to
45576         'bool'.
45578 2010-12-27  Bruno Haible  <bruno@clisp.org>
45580         select tests: Use existing modules.
45581         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
45582         (configure.ac): Don't test for unistd.h.
45583         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
45584         declared in <unistd.h>.
45586 2010-12-27  Bruno Haible  <bruno@clisp.org>
45588         mbrtowc: Work around a Solaris 7 bug.
45589         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
45590         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
45591         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
45592         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
45593         MBRTOWC_NULL_ARG1_BUG.
45594         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
45595         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
45596         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
45597         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
45599 2010-12-27  Jim Meyering  <meyering@redhat.com>
45601         read-file.c: tweak syntax
45602         * lib/read-file.c (fread_file): Remove space after "*" in function
45603         definitions.
45605 2010-12-27  Bruno Haible  <bruno@clisp.org>
45607         times test: Avoid gcc warnings on OSF/1.
45608         * tests/test-times.c (main): Cast printf arguments from clock_t to
45609         'long int'.
45611 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
45613         utimens: work around glibc rounding bug on older Linux kernels
45614         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
45615         on Linux with a glibc whose utimes might not work, then work
45616         around a longstanding glibc bug involving rounding rather than
45617         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
45618         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
45620 2010-12-26  Bruno Haible  <bruno@clisp.org>
45622         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
45623         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
45624         _GL_CXXALIAS_SYS.
45625         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
45627 2010-12-26  Bruno Haible  <bruno@clisp.org>
45629         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
45630         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
45631         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
45632         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
45633         looking for the declaration.
45634         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
45635         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
45636         problem.
45637         * doc/posix-functions/inet_pton.texi: Likewise.
45639 2010-12-26  Bruno Haible  <bruno@clisp.org>
45641         arpa_inet: Use the common idioms with C++ support.
45642         * lib/arpa_inet.in.h: Include c++defs.h.
45643         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
45644         support.
45645         * modules/arpa_inet (Depends-on): Add c++defs.
45646         (Makefile.am): Substitute the contents of c++defs.h.
45647         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
45648         * modules/arpa_inet-c++-tests: New file.
45649         * tests/test-arpa_inet-c++.cc: New file.
45651 2010-12-25  Bruno Haible  <bruno@clisp.org>
45653         Fix more C++ link errors on Solaris 8.
45654         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
45655         $(LIB_EACCESS).
45656         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
45657         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
45658         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
45659         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
45660         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
45662 2010-12-25  Bruno Haible  <bruno@clisp.org>
45664         printf-posix: Fix link error when a non-GCC compiler is used.
45665         * lib/stdio.in.h (printf): When not using GCC, override printf
45666         correctly.
45667         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
45669 2010-12-25  Bruno Haible  <bruno@clisp.org>
45671         strerror_r-posix: Update doc.
45672         * doc/posix-functions/strerror_r.texi: Update doc about the return
45673         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
45675 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
45677         utimens: simplify the logic of the previous change
45678         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
45679         This should not affect whether the test succeeds or fails.
45681         utimens: configure better on hosts with NFS clock skew
45682         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
45683         uses the clock of the local host.  It might use the clock of the
45684         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
45685         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
45687 2010-12-25  Bruno Haible  <bruno@clisp.org>
45689         ptsname test: Avoid failure on Solaris.
45690         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
45691         open a pseudo-terminal; don't use BSD-style ptys.
45692         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
45694 2010-12-25  Bruno Haible  <bruno@clisp.org>
45696         ptsname: Avoid ERANGE failure on some systems.
45697         * lib/ptsname.c (buffer): Increase size.
45699 2010-12-25  Bruno Haible  <bruno@clisp.org>
45701         rename, renameat: Avoid test failures at NFS mounted locations.
45702         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
45703         so that subsequent mkdir calls succeed.
45705 2010-12-25  Bruno Haible  <bruno@clisp.org>
45707         iswblank: Fix C++ link error on Solaris 8.
45708         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
45709         _GL_FUNCDECL_SYS.
45711 2010-12-25  Bruno Haible  <bruno@clisp.org>
45713         unistd: Fix C++ link error on Solaris 8.
45714         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
45716 2010-12-25  Bruno Haible  <bruno@clisp.org>
45718         readlink doc: Mention an old glibc bug.
45719         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
45721 2010-12-25  Bruno Haible  <bruno@clisp.org>
45723         fcntl-h: Fix for use of C++ on glibc systems.
45724         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
45725         also on glibc systems in C++ mode.
45726         Reported by Gary V. Vaughan <gary@gnu.org>.
45728 2010-12-25  Bruno Haible  <bruno@clisp.org>
45730         roundl-ieee: Make it work on OSF/1 5.1 with cc.
45731         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
45733 2010-12-25  Bruno Haible  <bruno@clisp.org>
45735         truncl-ieee: Make it work on OSF/1 5.1 with cc.
45736         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
45737         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
45738         test whether truncl works according to ISO C 99 with IEC 60559.
45739         * m4/truncl-ieee.m4: New file.
45740         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
45741         m4/signbit.m4.
45742         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
45744 2010-12-25  Bruno Haible  <bruno@clisp.org>
45746         ceill-ieee: Make it work on OSF/1 5.1 with cc.
45747         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
45748         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
45749         test whether ceill works according to ISO C 99 with IEC 60559.
45750         * m4/ceill-ieee.m4: New file.
45751         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
45752         m4/signbit.m4.
45753         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
45755 2010-12-25  Bruno Haible  <bruno@clisp.org>
45757         Ensure all prerequisites of <wchar.h> are included.
45758         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
45759         before <wchar.h>.
45760         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
45761         gl_MBRLEN_NUL_RETVAL): Likewise.
45762         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
45763         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
45764         AC_FUNC_MBRTOWC): Likewise.
45765         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
45766         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
45767         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
45768         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
45769         Likewise.
45770         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
45771         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
45772         (gl_WCHAR_H): Improve comments.
45773         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
45775 2010-12-25  Bruno Haible  <bruno@clisp.org>
45777         strtok_r: Fix C syntax error in autoconf macro.
45778         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
45779         characters in test program.
45781 2010-12-24  Bruno Haible  <bruno@clisp.org>
45783         ceil, trunc, round: Fix gcc warnings.
45784         * lib/ceil.c (MIN): Undefine before redefining.
45785         * lib/trunc.c (MIN): Likewise.
45786         * lib/round.c (MIN): Likewise.
45787         Include <math.h> first.
45789 2010-12-24  Bruno Haible  <bruno@clisp.org>
45791         select tests: Avoid failures on OSF/1 5.1.
45792         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
45793         failure of closing the last socket; it may fail with ECONNRESET.
45795 2010-12-24  Eric Blake  <eblake@redhat.com>
45797         stdint: avoid HP-UX 10.20 preprocessor bug
45798         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
45799         than #if.
45800         * tests/test-floor2.c (main): Likewise.
45801         Reported by Peter O'Gorman.
45803         pipe: make obsoletion transition easier
45804         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
45805         * modules/pipe (Files): Include revived file.
45806         (Include): Drop reference, to mirror getdate's behavior.
45808 2010-12-24  Bruno Haible  <bruno@clisp.org>
45810         sys_socket: Hide mismatch of declarations on NonStop Kernel.
45811         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
45812         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
45813         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
45815 2010-12-24  Bruno Haible  <bruno@clisp.org>
45817         gethostname: Ensure declaration on NonStop Kernel.
45818         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
45819         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
45821 2010-12-24  Bruno Haible  <bruno@clisp.org>
45823         sys_select: Ensure all necessary types on NonStop Kernel.
45824         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
45825         include <sys/time.h>.
45826         * doc/posix-headers/sys_select.texi: Mention that it's missing on
45827         NonStop Kernel.
45828         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
45830 2010-12-24  Bruno Haible  <bruno@clisp.org>
45832         sys_select: Remove unneeded include.
45833         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
45834         have <sys/select.h>.
45836 2010-12-24  Bruno Haible  <bruno@clisp.org>
45838         gethostname: Provide a fallback for HOST_NAME_MAX.
45839         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
45840         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
45841         instead.
45842         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
45844 2010-12-24  Bruno Haible  <bruno@clisp.org>
45846         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
45847         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
45848         (SA_RESTART): Likewise.
45849         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
45851 2010-12-24  Bruno Haible  <bruno@clisp.org>
45853         signal: Define NSIG.
45854         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
45855         * tests/test-signal.c (nsig): New variable.
45856         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
45858 2010-12-24  Bruno Haible  <bruno@clisp.org>
45860         rename, renameat: Avoid test failures on OSF/1 5.1.
45861         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
45862         alternative error codes.
45863         * tests/test-renameat.c (main): Likewise.
45865 2010-12-24  Bruno Haible  <bruno@clisp.org>
45867         *printf: Detect large precisions bug on Solaris 10/SPARC.
45868         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
45869         by Paul Eggert.
45870         * tests/test-snprintf-posix.h (test_function): Add this test code here
45871         too.
45872         * tests/test-sprintf-posix.h (test_function): Likewise.
45873         * tests/test-vasnprintf-posix.c (test_function): Likewise.
45874         * tests/test-vasprintf-posix.c (test_function): Likewise.
45875         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
45876         around by gnulib.
45877         * doc/posix-functions/printf.texi: Likewise.
45878         * doc/posix-functions/snprintf.texi: Likewise.
45879         * doc/posix-functions/sprintf.texi: Likewise.
45880         * doc/posix-functions/vfprintf.texi: Likewise.
45881         * doc/posix-functions/vprintf.texi: Likewise.
45882         * doc/posix-functions/vsnprintf.texi: Likewise.
45883         * doc/posix-functions/vsprintf.texi: Likewise.
45884         * doc/posix-functions/dprintf.texi: Undo last commit.
45885         * doc/posix-functions/vdprintf.texi: Likewise.
45887 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
45889         tests: port test-fdutimensat.c to Solaris 8
45890         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
45891         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
45892         On Solaris 8, it fails with errno == ENOSYS, because there is no
45893         futimens (so it can't use the fd), and there is no lutimens (so it
45894         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
45896         vsnprintf: make more consistent with snprintf; doc fixes
45898         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
45899         the byte count return problem was promoted from the snprintf-posix
45900         to the snprintf module.
45901         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
45902         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
45903         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
45904         * tests/test-snprintf.c (main): Check the byte count returned.
45905         * tests/test-vsnprintf.c (main): Likewise.
45907 2010-12-23  Eric Blake  <eblake@redhat.com>
45909         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
45910         * modules/sigpipe (License): Relax license.
45912 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
45914         doc: document Solaris printf bug with large float precisions
45915         * doc/posix-functions/dprintf.texi (dprintf):
45916         * doc/posix-functions/fprintf.texi (fprintf):
45917         * doc/posix-functions/printf.texi (printf):
45918         * doc/posix-functions/snprintf.texi (snprintf):
45919         * doc/posix-functions/sprintf.texi (sprintf):
45920         * doc/posix-functions/vdprintf.texi (vdprintf):
45921         * doc/posix-functions/vfprintf.texi (vfprintf):
45922         * doc/posix-functions/vprintf.texi (vprintf):
45923         * doc/posix-functions/vsnprintf.texi (vsnprintf):
45924         * doc/posix-functions/vsprintf.texi (vsprintf):
45925         Mention that these functions mishandle large floating point
45926         precisions on Solaris 10.  The same bug is also present in Solaris
45927         8, and I assume earlier.  This causes "cd gnulib-tests; make
45928         check" to fail on Solaris 8 (and I assume, later) when building
45929         the latest coreutils, in test-vasprintf-posix's call to
45930         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
45931         the wide flavors (e.g., wprintf) so this patch just updates the
45932         documentation for the narrow ones.
45934         test-posixtm.c: add two tests
45935         * tests/test-posixtm.c: Add two tests, to highlight the
45936         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
45937         around this bug; this is merely to document it.
45939 2010-12-22  Bruno Haible  <bruno@clisp.org>
45941         getlogin_r: Work around portability problem on OSF/1.
45942         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
45943         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
45944         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
45945         test for a truncated result.
45946         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
45947         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
45948         * modules/getlogin_r (Depends-on): Add memchr.
45949         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
45951 2010-12-22  Bruno Haible  <bruno@clisp.org>
45953         ptsname: Avoid test failure on OSF/1 5.1.
45954         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
45955         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
45956         (same_slave): New function.
45957         (main): Use it to compare ptsname's result with the expected file name.
45959 2010-12-22  Bruno Haible  <bruno@clisp.org>
45961         Port extended stdio modules to HP NonStop Kernel.
45962         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
45963         macros.
45964         * lib/fbufmode.c: Update comments.
45965         * lib/fflush.c: Likewise.
45966         * lib/fpurge.c: Likewise.
45967         * lib/freadable.c: Likewise.
45968         * lib/freadahead.c: Likewise.
45969         * lib/freading.c: Likewise.
45970         * lib/freadptr.c: Likewise.
45971         * lib/freadseek.c: Likewise.
45972         * lib/fseeko.c: Likewise.
45973         * lib/fseterr.c: Likewise.
45974         * lib/fwritable.c: Likewise.
45975         * lib/fwriting.c: Likewise.
45976         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
45978 2010-12-22  Bruno Haible  <bruno@clisp.org>
45980         ttyname_r: Work around bug on OSF/1 5.1.
45981         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
45982         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
45983         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
45984         present.
45985         * lib/ttyname_r.c (ttyname_r): Update comments.
45987 2010-12-22  Bruno Haible  <bruno@clisp.org>
45989         round: Implement result sign according to IEEE 754.
45990         * lib/round.c (MIN, MINUS_ZERO): New macros.
45991         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
45992         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
45993         * tests/test-round-ieee.c (main): Likewise.
45994         * tests/test-roundl-ieee.c (main): Likewise.
45996         trunc: Implement result sign according to IEEE 754.
45997         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
45998         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
45999         * tests/test-trunc2.c: Include minus-zero.h.
46000         (MINUS_ZERO): New macro.
46001         (trunc_reference): Keep in sync with lib/trunc.c.
46002         * tests/test-truncf2.c: Include minus-zero.h.
46003         (MINUS_ZERO): New macro.
46004         (truncf_reference): Keep in sync with lib/trunc.c.
46005         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
46006         * tests/test-trunc-ieee.c (main): Likewise.
46007         * tests/test-truncl-ieee.c (main): Likewise.
46009         ceil: Implement result sign according to IEEE 754.
46010         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
46011         (FUNC): Return -0.0 for -1 < x < 0.
46012         * tests/test-ceil2.c: Include minus-zero.h.
46013         (MINUS_ZERO): New macro.
46014         (ceil_reference): Keep in sync with lib/ceil.c.
46015         * tests/test-ceilf2.c: Include minus-zero.h.
46016         (MINUS_ZERO): New macro.
46017         (ceilf_reference): Keep in sync with lib/ceil.c.
46018         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
46019         * tests/test-ceil-ieee.c (main): Likewise.
46020         * tests/test-ceill-ieee.c (main): Likewise.
46022         floor: Implement result sign according to IEEE 754.
46023         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
46024         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
46025         * tests/test-floorf2.c (floorf_reference): Likewise.
46026         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
46027         * tests/test-floor-ieee.c (main): Likewise.
46028         * tests/test-floorl-ieee.c (main): Likewise.
46030 2010-12-22  Bruno Haible  <bruno@clisp.org>
46032         getaddrinfo: Update doc.
46033         * doc/posix-functions/gai_strerror.texi: Return type is also different
46034         on AIX and HP-UX.
46036 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
46038         getaddrinfo, inet_ntop: Update doc for Solaris.
46039         * doc/posix-functions/gai_strerror.texi: Return type is also an
46040         issue on Solaris 9 and earlier.
46041         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
46042         on Solaris 10 and earlier.
46044 2010-12-21  Bruno Haible  <bruno@clisp.org>
46046         New module 'roundl-ieee'.
46047         * modules/roundl-ieee: New file.
46048         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
46049         test whether roundl works according to ISO C 99 with IEC 60559.
46050         * m4/roundl-ieee.m4: New file.
46051         * modules/roundl-ieee-tests: New file.
46052         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
46053         * tests/test-roundl.c (main): Remove signbit tests.
46054         * modules/roundl-tests (Depends-on): Remove signbit.
46055         * doc/posix-functions/roundl.texi: Mention the new module.
46057 2010-12-21  Bruno Haible  <bruno@clisp.org>
46059         New module 'truncl-ieee'.
46060         * modules/truncl-ieee: New file.
46061         * modules/truncl-ieee-tests: New file.
46062         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
46063         * tests/test-truncl.c (main): Remove signbit tests.
46064         * modules/truncl-tests (Depends-on): Remove signbit.
46065         * doc/posix-functions/truncl.texi: Mention the new module.
46067 2010-12-21  Bruno Haible  <bruno@clisp.org>
46069         New module 'ceill-ieee'.
46070         * modules/ceill-ieee: New file.
46071         * modules/ceill-ieee-tests: New file.
46072         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
46073         * tests/test-ceill.c (main): Remove signbit tests.
46074         * modules/ceill-tests (Depends-on): Remove signbit.
46075         * doc/posix-functions/ceill.texi: Mention the new module.
46077 2010-12-21  Bruno Haible  <bruno@clisp.org>
46079         New module 'floorl-ieee'.
46080         * modules/floorl-ieee: New file.
46081         * modules/floorl-ieee-tests: New file.
46082         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
46083         * tests/test-floorl.c (main): Remove signbit tests.
46084         * modules/floorl-tests (Depends-on): Remove signbit.
46085         * doc/posix-functions/floorl.texi: Mention the new module.
46087 2010-12-21  Bruno Haible  <bruno@clisp.org>
46089         New module 'round-ieee'.
46090         * modules/round-ieee: New file.
46091         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
46092         whether round works according to ISO C 99 with IEC 60559.
46093         * m4/round-ieee.m4: New file.
46094         * modules/round-ieee-tests: New file.
46095         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
46096         * tests/test-round1.c (main): Remove signbit tests.
46097         * modules/round-tests (Depends-on): Remove 'signbit'.
46098         * doc/posix-functions/round.texi: Mention the new module.
46100 2010-12-21  Bruno Haible  <bruno@clisp.org>
46102         New module 'trunc-ieee'.
46103         * modules/trunc-ieee: New file.
46104         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
46105         whether trunc works according to ISO C 99 with IEC 60559.
46106         * m4/trunc-ieee.m4: New file.
46107         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
46108         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
46109         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
46110         * modules/trunc-ieee-tests: New file.
46111         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
46112         * tests/test-trunc1.c (main): Remove signbit tests.
46113         * modules/trunc-tests (Depends-on): Remove 'signbit'.
46114         * doc/posix-functions/trunc.texi: Mention the new module.
46116 2010-12-21  Bruno Haible  <bruno@clisp.org>
46118         New module 'ceil-ieee'.
46119         * modules/ceil-ieee: New file.
46120         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
46121         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
46122         ISO C 99 with IEC 60559.
46123         * m4/ceil-ieee.m4: New file.
46124         * modules/ceil (Files): Add lib/ceil.c.
46125         (Depends-on): Add 'float'.
46126         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
46127         * lib/math.in.h (ceil): New declaration.
46128         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
46129         REPLACE_CEIL.
46130         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
46131         * modules/ceil-ieee-tests: New file.
46132         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
46133         * tests/test-math-c++.cc: Check the signature of 'ceil'.
46134         * doc/posix-functions/ceil.texi: Mention the new module.
46136 2010-12-21  Bruno Haible  <bruno@clisp.org>
46138         New module 'floor-ieee'.
46139         * modules/floor-ieee: New file.
46140         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
46141         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
46142         ISO C 99 with IEC 60559.
46143         * m4/floor-ieee.m4: New file.
46144         * modules/floor (Files): Add lib/floor.c.
46145         (Depends-on): Add 'float'.
46146         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
46147         * lib/math.in.h (floor): New declaration.
46148         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
46149         REPLACE_FLOOR.
46150         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
46151         * modules/floor-ieee-tests: New file.
46152         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
46153         * tests/test-math-c++.cc: Check the signature of 'floor'.
46154         * doc/posix-functions/floor.texi: Mention the new module.
46156 2010-12-21  Bruno Haible  <bruno@clisp.org>
46158         New module 'roundf-ieee'.
46159         * modules/roundf-ieee: New file.
46160         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
46161         test whether roundf works according to ISO C 99 with IEC 60559.
46162         * m4/roundf-ieee.m4: New file.
46163         * modules/roundf-ieee-tests: New file.
46164         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
46165         * tests/test-roundf1.c (main): Remove signbit tests.
46166         * modules/roundf-tests (Depends-on): Remove 'signbit'.
46167         * doc/posix-functions/roundf.texi: Mention the new module.
46169 2010-12-21  Bruno Haible  <bruno@clisp.org>
46171         New module 'truncf-ieee'.
46172         * modules/truncf-ieee: New file.
46173         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
46174         test whether truncf works according to ISO C 99 with IEC 60559.
46175         * m4/truncf-ieee.m4: New file.
46176         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
46177         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
46178         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
46179         * modules/truncf-ieee-tests: New file.
46180         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
46181         * tests/test-truncf1.c (main): Remove signbit tests.
46182         * modules/truncf-tests (Depends-on): Remove 'signbit'.
46183         * doc/posix-functions/truncf.texi: Mention the new module.
46185 2010-12-21  Bruno Haible  <bruno@clisp.org>
46187         New module 'ceilf-ieee'.
46188         * modules/ceilf-ieee: New file.
46189         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
46190         test whether ceilf works according to ISO C 99 with IEC 60559.
46191         * m4/ceilf-ieee.m4: New file.
46192         * modules/ceilf-ieee-tests: New file.
46193         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
46194         * tests/test-ceilf1.c (main): Remove signbit tests.
46195         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
46196         * doc/posix-functions/ceilf.texi: Mention the new module.
46198 2010-12-21  Bruno Haible  <bruno@clisp.org>
46200         New module 'floorf-ieee'.
46201         * modules/floorf-ieee: New file.
46202         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
46203         test whether floorf works according to ISO C 99 with IEC 60559.
46204         * m4/floorf-ieee.m4: New file.
46205         * modules/floorf-ieee-tests: New file.
46206         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
46207         * tests/test-floorf1.c (main): Remove signbit tests.
46208         * modules/floorf-tests (Depends-on): Remove 'signbit'.
46209         * doc/posix-functions/floorf.texi: Mention the new module.
46211 2010-12-21  Bruno Haible  <bruno@clisp.org>
46213         Support for minus zero in autoconf macros.
46214         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
46215         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
46216         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
46217         * tests/minus-zero.h: Update comments.
46219 2010-12-21  Bruno Haible  <bruno@clisp.org>
46221         Tests for module 'ceil'.
46222         * modules/ceil-tests: New file.
46223         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
46224         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
46226 2010-12-21  Bruno Haible  <bruno@clisp.org>
46228         Tests for module 'floor'.
46229         * modules/floor-tests: New file.
46230         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
46231         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
46233 2010-12-21  Bruno Haible  <bruno@clisp.org>
46235         math: Fix indentation.
46236         * lib/math.in.h (floorf): Fix indentation.
46238 2010-12-21  Bruno Haible  <bruno@clisp.org>
46240         Fix cross-compilation guesses on Solaris.
46241         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
46242         not match "solaris2.10".
46243         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
46244         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
46245         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
46247 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
46249         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
46250         This fixes a problem observed with the latest coreutils snapshot
46251         that caused a test to fail on Solaris 8.  src/csplit.c's call
46252         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
46253         earlier, instead of returning the number of bytes that would have
46254         been generated; this causes csplit to incorrectly report memory
46255         exhaustion.
46256         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
46257         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
46258         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
46259         comments to match.
46260         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
46261         Fix typo in matching older versions of Solaris: "solaris2.10"
46262         is matched by the shell pattern "solaris2.[0-9]*".  This matters
46263         only for guessing while cross-compiling.
46264         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
46266 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
46268         ftoastr: fix comment again
46269         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
46270         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00149.html>.
46271         Also, simplify example a bit by using flags = 0.
46273 2010-12-20  Bruno Haible  <bruno@clisp.org>
46275         round*, trunc*: Update documentation regarding glibc.
46276         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
46277         * doc/posix-functions/round.texi: Likewise.
46278         * doc/posix-functions/roundl.texi: Likewise.
46279         * doc/posix-functions/truncf.texi: Likewise.
46280         * doc/posix-functions/trunc.texi: Likewise.
46281         * doc/posix-functions/truncl.texi: Likewise.
46283 2010-12-20  Bruno Haible  <bruno@clisp.org>
46285         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
46286         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
46287         * doc/posix-functions/round.texi: Likewise.
46288         * doc/posix-functions/roundl.texi: Likewise.
46290 2010-12-20  Bruno Haible  <bruno@clisp.org>
46292         ttyname_r: Add missing declaration on HP-UX 11.
46293         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
46294         HAVE_TTYNAME_R.
46295         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
46296         declared. Set HAVE_TTYNAME_R always.
46297         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46298         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
46299         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
46300         HAVE_TTYNAME_R.
46301         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
46303 2010-12-20  Bruno Haible  <bruno@clisp.org>
46305         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
46306         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
46307         * doc/posix-functions/getlogin_r.texi: Likewise.
46308         * tests/test-getlogin.c: Include <errno.h>.
46309         (main): Avoid test failure on HP-UX 11.11.
46310         * tests/test-getlogin_r.c (main): Likewise.
46312 2010-12-20  Bruno Haible  <bruno@clisp.org>
46314         getlogin_r: Add missing declaration on HP-UX 11.
46315         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
46316         declared also when it exists as a function.
46317         * doc/posix-functions/getlogin_r.texi: Document this workaround.
46319 2010-12-20  Bruno Haible  <bruno@clisp.org>
46321         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
46322         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
46323         through wcrtomb.
46325 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
46327         ftoastr: fix comment
46328         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
46329         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00130.html>.
46331 2010-12-19  Bruno Haible  <bruno@clisp.org>
46333         isnan: Ensure it is a macro.
46334         * lib/math.in.h (isnan): Define as a macro if not already a macro.
46335         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
46336         Solaris.
46338 2010-12-19  Bruno Haible  <bruno@clisp.org>
46340         ldexpl test: Fix link error on OSF/1 5.1.
46341         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
46343 2010-12-19  Bruno Haible  <bruno@clisp.org>
46345         wctype: Make it work in C++ mode on OSF/1 5.1.
46346         * lib/wctype.in.h (iswblank): Declare but not define here.
46347         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
46348         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
46349         * modules/wctype (Files): Add lib/iswblank.c.
46351 2010-12-19  Bruno Haible  <bruno@clisp.org>
46353         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
46354         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
46355         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
46357 2010-12-19  Bruno Haible  <bruno@clisp.org>
46359         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
46360         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
46361         _POSIX_PII_SOCKET.
46362         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
46363         * doc/posix-functions/recvfrom.texi: Likewise.
46364         * doc/posix-functions/send.texi: Likewise.
46365         * doc/posix-functions/sendto.texi: Likewise.
46367 2010-12-19  Bruno Haible  <bruno@clisp.org>
46369         tcgetsid: Add missing declaration on OSF/1 5.1.
46370         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
46371         HAVE_TCGETSID.
46372         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
46373         Don't set HAVE_TCGETSID.
46374         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
46375         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
46376         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
46377         HAVE_TCGETSID.
46378         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
46380 2010-12-19  Bruno Haible  <bruno@clisp.org>
46382         stdio: Fix problem with popen() declaration on OSF/1 5.1.
46383         * lib/stdio.in.h: During the include_next statement, let recursive
46384         includes of this file include only the system header file.
46386 2010-12-19  Bruno Haible  <bruno@clisp.org>
46388         iconv_open: Fix regression from 2010-12-04.
46389         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
46390         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
46392 2010-12-19  Bruno Haible  <bruno@clisp.org>
46394         stdbool test: Avoid a gcc warning.
46395         * tests/test-stdbool.c (main): Fail if e1 is false.
46396         Reported by Jim Meyering.
46398 2010-12-19  Jim Meyering  <meyering@redhat.com>
46400         setenv: restore to working order
46401         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
46402         mistakenly removed.
46403         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
46404         HAVE_SETENV.
46405         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
46406         HAVE_SETENV.
46408 2010-12-19  Bruno Haible  <bruno@clisp.org>
46410         Document some different function declarations on OSF/1 5.1.
46411         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
46412         * doc/posix-functions/inet_ntop.texi: Likewise.
46413         * doc/posix-functions/gethostname.texi: Likewise.
46414         * lib/unistd.in.h (gethostname): Update comment.
46416 2010-12-19  Bruno Haible  <bruno@clisp.org>
46418         doc: Mention vasprintf-posix module.
46419         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
46420         the 'vasprintf-posix' module.
46421         * doc/glibc-functions/vasprintf.texi: Likewise.
46423 2010-12-19  Bruno Haible  <bruno@clisp.org>
46425         unsetenv: Add missing declaration on OSF/1 5.1.
46426         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
46427         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
46428         Don't set HAVE_UNSETENV. In the test program, set _BSD.
46429         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
46430         not HAVE_UNSETENV.
46431         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
46432         HAVE_UNSETENV.
46433         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
46435 2010-12-19  Bruno Haible  <bruno@clisp.org>
46437         setenv: Add missing declaration on OSF/1 5.1.
46438         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
46439         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
46440         declared. Don't set HAVE_SETENV.
46441         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
46442         not HAVE_SETENV.
46443         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
46444         HAVE_SETENV.
46445         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
46447 2010-12-19  Bruno Haible  <bruno@clisp.org>
46449         nl_langinfo tests: Avoid gcc warning.
46450         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
46452 2010-12-19  Bruno Haible  <bruno@clisp.org>
46454         mknod: Avoid error in C++ mode on OSF/1 with GCC.
46455         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
46456         _GL_CXXALIAS_SYS.
46458 2010-12-19  Bruno Haible  <bruno@clisp.org>
46460         stdbool: Relax test.
46461         * tests/test-stdbool.c (e): Don't require that casts from a variable's
46462         address to 'bool' work in static initializer, for compilers other than
46463         GCC.
46465 2010-12-19  Bruno Haible  <bruno@clisp.org>
46467         ftello: Add missing declaration on OSF/1 5.1.
46468         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
46469         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
46470         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
46471         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
46472         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
46474 2010-12-19  Bruno Haible  <bruno@clisp.org>
46476         fseeko: Add missing declaration on OSF/1 5.1.
46477         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
46478         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
46479         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
46480         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
46481         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
46483 2010-12-19  Bruno Haible  <bruno@clisp.org>
46485         fchdir: Add missing declaration on OSF/1 5.1.
46486         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
46487         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
46488         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
46489         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
46490         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
46492 2010-12-19  Bruno Haible  <bruno@clisp.org>
46494         relocatable-prog-wrapper: Separate from relocatable-prog.
46495         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
46496         uninstall-relocwrapper rule here.
46497         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
46498         Reported by Ian Beckwith <ianb@erislabs.net>.
46500 2010-12-19  Bruno Haible  <bruno@clisp.org>
46502         unistr/u8-mbsnlen: Add missing dependency.
46503         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
46504         Reported by Ian Beckwith <ianb@erislabs.net>.
46506 2010-12-19  Bruno Haible  <bruno@clisp.org>
46508         iconv: Make it possible again to use this module without 'iconv-h'.
46509         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
46510         if it is not defined.
46511         Reported by Ian Beckwith <ianb@erislabs.net>.
46513 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
46515         acl: port to Solaris 8 when copying from tmpfs to ufs
46516         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
46517         error number.  Problem observed on Solaris 8 with latest
46518         coreutils, with "mv A B", where A is on a tmpfs file system and B
46519         is on a ufs file system.  This caused coreutils' mv/part-symlink
46520         test to fail.
46522         tests: set fail=0 at start
46523         * tests/init.sh (setup_): Move fail=0 initialization here ...
46524         (mktempd_): ... from here, so that tests can rely on fail being
46525         set to 0 initially.  This fixes a problem in coreutils; see:
46526         http://lists.gnu.org/r/coreutils/2010-12/msg00083.html
46528 2010-12-18  Bruno Haible  <bruno@clisp.org>
46530         memmem-simple: Stylistic changes.
46531         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
46532         Fix preprocessor directive indentation.
46534 2010-12-15  Pádraig Brady  <P@draigBrady.com>
46536         memmem, memmem-simple: reorganize and expand empty needle check
46537         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
46538         functional checks to memmem-simple so that one has a fully functional
46539         memmem by using just this module.
46540         Restrict the performance only check to the memmem module.
46541         Also expand the empty needle check to ensure the correct
46542         pointer is returned, not just a non NULL pointer.
46543         * doc/glibc-functions/memmem.texi: Rearrange the portability
46544         documentation to correlate with the rearranged checks.
46545         Clarify exactly how the memmem and memmem-simple modules
46546         relate to each other.
46548 2010-12-15  Pádraig Brady  <P@draigBrady.com>
46549             Bruno Haible  <bruno@clisp.org>
46551         Improve cross-compilation guesses for uClibc.
46552         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
46553         that uClibc does not have the glibc bug.
46554         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
46555         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
46557 2010-12-14  Eric Blake  <eblake@redhat.com>
46559         configmake: provide fallbacks for oldest supported autotools
46560         * m4/configmake.m4: New file.
46561         * modules/configmake (Files): Ship it.
46562         (configure.ac): Use it to guarantee fallbacks.
46564 2010-12-13  Pádraig Brady  <P@draigBrady.com>
46566         read-file: Improve handling of large files
46567         * lib/read-file.c (fread_file): Minimize realloc()s
46568         for regular files, and better manage sizes around SIZE_MAX.
46570 2010-12-13  Eric Blake  <eblake@redhat.com>
46572         cloexec, fcntl: relax license
46573         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
46574         consent from all contributors.
46575         * modules/fcntl (License): Likewise.
46577 2010-12-10  Bruno Haible  <bruno@clisp.org>
46579         Tests for module 'pipe-posix'.
46580         * modules/pipe-posix-tests: New file.
46581         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
46583 2010-12-10  Bruno Haible  <bruno@clisp.org>
46585         pipe-posix: Make it work in C++ mode.
46586         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
46587         (pipe): Use common idiom, not a macro definition.
46588         * lib/pipe.c: New file.
46589         * m4/pipe.m4: New file.
46590         * modules/pipe-posix (Description): Enhance.
46591         (Files): Add lib/pipe.c, m4/pipe.m4.
46592         (configure.ac): Invoke gl_FUNC_PIPE.
46593         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
46594         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
46595         * tests/test-unistd-c++.cc: Check the signature of pipe.
46597 2010-12-10  Bruno Haible  <bruno@clisp.org>
46599         Rename module 'pipe' to 'spawn-pipe'.
46600         * modules/spawn-pipe: New file, renamed from modules/pipe.
46601         (Files, configure.ac, Makefile.am): Update.
46602         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
46603         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
46604         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
46605         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
46606         "spawn-pipe.h" instead of "pipe.h".
46607         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
46608         to gl_SPAWN_PIPE.
46609         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
46610         (Files, Makefile.am): Update.
46611         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
46612         Update.
46613         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
46614         Include "spawn-pipe.h" instead of "pipe.h".
46615         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
46616         * lib/javacomp.c: Likewise.
46617         * lib/javaversion.c: Likewise.
46618         * lib/pipe-filter-gi.c: Likewise.
46619         * lib/pipe-filter-ii.c: Likewise.
46620         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
46621         * modules/javacomp (Depends-on): Likewise.
46622         * modules/javaversion (Depends-on): Likewise.
46623         * modules/pipe-filter-gi (Depends-on): Likewise.
46624         * modules/pipe-filter-ii (Depends-on): Likewise.
46625         * MODULES.html.sh (Executing programs): Update.
46626         * NEWS: Mention the change.
46628 2010-12-10  Eric Blake  <eblake@redhat.com>
46630         pipe-posix: new module
46631         * modules/pipe-posix: New file.
46632         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
46633         (gl_UNISTD_H): Check for declaration.
46634         * modules/unistd (Makefile.am): Substitute it.
46635         * lib/unistd.in.h (pipe): Provide it for mingw.
46636         * doc/posix-functions/pipe.texi (pipe): Update documentation.
46637         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
46639 2010-12-07  Bruno Haible  <bruno@clisp.org>
46641         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
46642         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
46643         u8_strcmp_gnu.
46644         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
46646 2010-12-06  Bruno Haible  <bruno@clisp.org>
46648         Update internal documentation.
46649         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
46651 2010-12-04  Bruno Haible  <bruno@clisp.org>
46653         Put more information about failed tests into the test return codes.
46654         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
46655         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
46656         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
46657         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
46658         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
46659         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
46660         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
46661         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
46662         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
46663         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
46664         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
46665         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
46666         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
46667         * m4/stdint.m4 (gl_STDINT_H): Likewise.
46668         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
46669         returns a bit mask.
46670         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
46671         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
46672         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
46673         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
46674         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
46675         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
46676         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
46677         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
46678         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
46679         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
46680         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
46681         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
46682         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
46683         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
46684         * m4/link.m4 (gl_FUNC_LINK): Likewise.
46685         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
46686         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
46687         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
46688         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
46689         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
46690         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
46691         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
46692         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
46693         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
46694         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
46695         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
46696         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
46697         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
46698         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
46699         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
46700         gl_PRINTF_PRECISION): Likewise.
46701         * m4/regex.m4 (gl_REGEX): Likewise.
46702         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
46703         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
46704         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
46705         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
46706         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
46707         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
46708         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
46709         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
46710         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
46711         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
46712         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
46713         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
46714         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
46715         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
46716         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
46717         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
46718         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
46719         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
46720         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
46721         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
46722         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
46723         enumerated value.
46724         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
46726 2010-12-04  Bruno Haible  <bruno@clisp.org>
46728         Update for Solaris 11 2010-11.
46729         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
46730         Express, released in November 2010.
46732 2010-12-04  Bruno Haible  <bruno@clisp.org>
46734         nproc: Relax license.
46735         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
46736         and Paul Eggert.
46737         Requested by Ludovic Courtès <ludo@gnu.org>.
46739 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
46741         utimecmp: fine-grained src to nearby coarse-grained dest
46743         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
46744         and the source is on a file system with higher-resolution time
46745         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
46746         not work, and the time stamps are close together, the algorithm to
46747         determine the exact resolution from the read-back mtime was buggy:
46748         it had a "!=" where it should have had an "==".  This bug has been
46749         in the code ever since it was introduced to gnulib.
46750         Problem reported by Dan Jacobson in
46751         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
46753 2010-11-30  Bruno Haible  <bruno@clisp.org>
46755         strerror_r-posix: Fix autoconf test.
46756         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
46758 2010-11-28  Bruno Haible  <bruno@clisp.org>
46759             Paul Eggert  <eggert@cs.ucla.edu>
46761         Tests for module 'getdomainname'.
46762         * modules/getdomainname-tests: New file.
46763         * tests/test-getdomainname.c: New file, based on
46764         tests/test-gethostname.c.
46766 2010-11-28  Bruno Haible  <bruno@clisp.org>
46767             Paul Eggert  <eggert@cs.ucla.edu>
46769         getdomainname: Use the system function when possible.
46770         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
46771         (getdomainname): Replace if needed. Provide the declaration if it is
46772         missing. Don't use _GL_CXXALIAS_SYS_CAST.
46773         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
46774         (getdomainname): When the system has getdomainname, call the system
46775         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
46776         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
46777         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
46778         found in libnsl. Look for the declaration also in <netdb.h>. Replace
46779         the function if its second argument is of type 'int' or if it is found
46780         in libnsl.
46781         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
46782         <sys/systeminfo.h> and sysinfo().
46783         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
46784         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46785         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
46786         HAVE_GETDOMAINNAME.
46787         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
46788         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
46789         * doc/glibc-functions/getdomainname.texi: Document the problems with
46790         the getdomainname declaration.
46792 2010-11-28  Bruno Haible  <bruno@clisp.org>
46794         sys_socket: Ensure ss_family field on AIX.
46795         * lib/sys_socket.in.h (ss_family): New macro definition.
46796         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
46797         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
46798         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
46799         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
46800         * modules/sys_socket (Makefile.am): Substitute
46801         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
46802         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
46804 2010-11-27  Bruno Haible  <bruno@clisp.org>
46806         readline: Improve configure output.
46807         * m4/readline.m4 (gl_FUNC_READLINE): Make the
46808         "checking for readline..." result understandable.
46810 2010-11-27  Bruno Haible  <bruno@clisp.org>
46812         *printf-posix: Detect a bug on Solaris 10/x86.
46813         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
46814         for floating-point output.
46815         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
46816         directive.
46817         * tests/test-snprintf-posix.h (test_function): Likewise.
46818         * tests/test-sprintf-posix.h (test_function): Likewise.
46819         * tests/test-vasprintf-posix.c (test_function): Likewise.
46820         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
46821         * doc/posix-functions/printf.texi: Likewise.
46822         * doc/posix-functions/snprintf.texi: Likewise.
46823         * doc/posix-functions/sprintf.texi: Likewise.
46824         * doc/posix-functions/vfprintf.texi: Likewise.
46825         * doc/posix-functions/vprintf.texi: Likewise.
46826         * doc/posix-functions/vsnprintf.texi: Likewise.
46827         * doc/posix-functions/vsprintf.texi: Likewise.
46828         * doc/glibc-functions/obstack_printf.texi: Likewise.
46829         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
46831 2010-11-27  Bruno Haible  <bruno@clisp.org>
46833         Fix link error when module libunistring-optional is in use.
46834         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
46835         * modules/striconveha-tests (Makefile.am): Likewise.
46837 2010-11-27  Bruno Haible  <bruno@clisp.org>
46839         regex: Mention link dependencies.
46840         * modules/regex (Link): New section.
46841         * modules/rpmatch (Link): Likewise.
46842         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
46844 2010-11-27  Bruno Haible  <bruno@clisp.org>
46846         ftoastr: Fix compilation error on Solaris.
46847         * lib/ftoastr.c: Include <config.h>.
46849 2010-11-27  Bruno Haible  <bruno@clisp.org>
46851         getloadavg: Update documentation.
46852         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
46854 2010-11-27  Bruno Haible  <bruno@clisp.org>
46856         sys_socket: Fix test whether the functions are declared.
46857         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
46858         not <sys/select.h>.
46860 2010-11-27  Bruno Haible  <bruno@clisp.org>
46862         getpass: Make sure to get system declaration on some platforms.
46863         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
46864         gl_USE_SYSTEM_EXTENSIONS.
46865         * modules/getpass (Depends-on): Add extensions.
46867 2010-11-26  Bruno Haible  <bruno@clisp.org>
46869         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
46870         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
46871         'iconv' module is present.
46872         (ICONV_CONST): New macro.
46873         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
46874         ICONV_CONST.
46875         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
46876         set ICONV_CONST.
46877         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
46878         here.
46879         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
46880         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
46881         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
46882         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
46883         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
46884         present.
46886 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
46888         ftoastr: comment fix
46889         * lib/ftoastr.c: "little" -> "little or no" in comment
46891 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
46893         stdint: port to GCC 4.3 + OSX + Octave
46894         On this platform, stdint.h is buggy and defines int64_t to long
46895         long int.  The replacement defined it to long int, causing
46896         problems with C++ style name mangling.  Instead, trust the system
46897         definition if INT64_MAX is defined, and likewise for the unsigned
46898         variant.   Problem reported by Jarno Rajahalme in
46899         <http://lists.gnu.org/r/bug-gnulib/2010-04/msg00143.html>.
46900         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
46901         and don't mess with int64_t and INT64_MAX in this case.
46902         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
46904 2010-11-24  Bruno Haible  <bruno@clisp.org>
46906         doc: Corrections regarding MacOS X 10.4 and 10.5.
46907         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
46908         MacOS X.
46909         Reported by Simon Josefsson.
46911 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
46913         Uninstall ".bin" files installed by relocwrapper.
46914         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
46915         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
46916         unless it is already there.
46918 2010-11-21  Bruno Haible  <bruno@clisp.org>
46920         Update for NetBSD 5.0.
46921         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
46922         NetBSD; the test fails on NetBSD 5.0.
46923         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
46924         about NetBSD.
46926 2010-11-21  Bruno Haible  <bruno@clisp.org>
46928         Update for HP-UX 11.23 and HP-UX 11.31.
46929         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
46930         HP-UX.
46932 2010-11-21  Bruno Haible  <bruno@clisp.org>
46934         Update for MacOS X 10.5.
46935         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
46936         MacOS X; the test fails on MacOS X 10.5.8.
46937         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
46938         about MacOS X.
46940 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
46942         bootstrap: add bootstrap_sync option.
46943         See discussion at
46944         <http://lists.gnu.org/r/bug-gnulib/2010-10/msg00369.html>,
46945         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00200.html>.
46946         * build-aux/bootstrap: Accept --bootstrap-sync to update
46947         bootstrap if it is not identical to the local gnulib's
46948         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
46949         enable this by default.  Accept --no-bootstrap-sync to disable
46950         it.
46952 2010-11-20  Bruno Haible  <bruno@clisp.org>
46954         Ensure that <features.h> is included before __GLIBC__ is tested.
46955         * lib/printf-parse.h: Include <features.h>.
46956         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
46957         Reported by Mike Frysinger <vapier@gentoo.org>.
46959         Ensure that <features.h> is included before __GLIBC__ is tested.
46960         * lib/wchar.in.h: Include <features.h>.
46961         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
46962         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
46963         Reported by Mike Frysinger <vapier@gentoo.org>.
46965         Ensure that <features.h> is included before __GLIBC__ is tested.
46966         * lib/arpa_inet.in.h: Include <features.h>.
46967         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
46968         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
46969         Reported by Mike Frysinger <vapier@gentoo.org>.
46971         Ensure that <features.h> is included before __GLIBC__ is tested.
46972         * build-aux/link-warning.h: Include <features.h>.
46973         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
46974         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
46975         Reported by Mike Frysinger <vapier@gentoo.org>.
46977         Ensure that <features.h> is included before __GLIBC__ is tested.
46978         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
46979         Reported by Mike Frysinger <vapier@gentoo.org>.
46981 2010-11-20  Bruno Haible  <bruno@clisp.org>
46983         memmem: Fix autoconf test.
46984         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
46986 2010-11-20  Bruno Haible  <bruno@clisp.org>
46988         Port to uClibc.
46989         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
46990         * lib/fcntl.in.h: Likewise.
46991         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
46992         * lib/mbrtowc.c (mbrtowc): Likewise.
46993         * lib/relocatable.c (find_shared_library_fullname): Likewise.
46994         * lib/strerror_r.c: Likewise.
46995         * lib/unistr/u8-strnlen.c: Likewise.
46996         * lib/vasnprintf.c (decimal_point_char): Likewise.
46997         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
46998         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
46999         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
47000         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
47001         * tests/test-sigaction.c (handler, main): Likewise.
47002         * lib/freading.h: Treat uClibc like a non-glibc platform.
47003         * lib/freading.c: Likewise.
47004         * lib/gettext.h: Likewise.
47005         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
47006         Likewise.
47007         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
47008         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
47009         * lib/propername.c (proper_name_utf8): Likewise.
47010         * lib/spawn.in.h: Likewise.
47011         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
47012         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
47013         mem_cd_iconveh_internal): Likewise.
47014         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
47015         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
47016         strstr, strcasestr): Likewise.
47017         * lib/unicodeio.c (unicode_to_mb): Likewise.
47018         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
47019         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
47020         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
47021         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
47022         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
47023         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
47024         * lib/unistr/u8-stpncpy.c: Likewise.
47025         * lib/vasnprintf.c (VASNPRINTF): Likewise.
47026         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
47027         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
47028         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
47029         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
47030         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
47031         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
47032         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
47033         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
47034         Likewise.
47035         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
47036         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
47037         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
47038         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
47039         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
47040         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
47041         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
47042         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
47043         * tests/test-getopt.h (OPTIND_MIN): Likewise.
47044         * tests/test-striconveha.c (main): Likewise.
47045         * tests/test-vasnprintf-posix.c (test_function): Likewise.
47046         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
47047         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
47048         * doc/posix-functions/getline.texi: Likewise.
47049         Reported by Mike Frysinger <vapier@gentoo.org>.
47051 2010-11-20  Bruno Haible  <bruno@clisp.org>
47053         nproc: Fix condition.
47054         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
47055         HAVE_PTHREAD_AFFINITY_NP.
47057 2010-11-20  Bruno Haible  <bruno@clisp.org>
47059         Fix a comment.
47060         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
47062 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
47064         ftoastr: don't assume snprintf
47065         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
47066         Implement a subset of snprintf here, by using sprintf safely.
47067         * modules/ftoastr (Depends-on): Remove snprintf.
47069 2010-11-19  Jim Meyering  <meyering@redhat.com>
47071         test-rename.h: fix compilation failure
47072         * tests/test-rename.h (test_rename): Add omitted "}".
47074 2010-11-17  Jim Meyering  <meyering@redhat.com>
47076         maint.mk: add a URL discussing the no-@acronym policy
47077         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
47079 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
47081         ftoastr: depend on snprintf, improve comments
47082         * lib/ftoastr.c: Also mention Loitsch's draft.
47083         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
47084         needed in the current implementation, but it might simplify
47085         speeding up the code later.
47086         * modules/ftoastr: Depend on snprintf; this improves portability.
47087         Suggested by Bruno Haible in the same email.
47089         ftoastr: port to hosts lacking strtof and strtold
47090         Problem reported by Bruno Haible in
47091         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00242.html>.
47092         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
47093         environment and strtold (and presumably strtof) are not available.
47094         * modules/ftoastr (Files): Add m4/c-strtod.m4.
47095         (configure.ac): Require gl_C99_STRTOLD.
47097 2010-11-18  Bruno Haible  <bruno@clisp.org>
47099         c-strtold: Avoid link error on AIX 7.
47100         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
47101         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
47102         (gl_C_STRTOLD): Test whether strtold_l exists.
47103         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47105 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
47107         intprops: new macro INT_BITS_STRLEN_BOUND
47108         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
47109         ftoastr.h.  This exposes an internal of intprops.h that was formerly
47110         not exposed.  Also, it uses a slightly tighter bound than before;
47111         though this makes no practical difference, we might as well be as
47112         tight as we easily can.
47114         ftoastr: new module, for lossless conversion of floats to short strings
47115         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
47116         * modules/ftoastr: New files.
47118 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
47120         bootstrap: port to Solaris sed
47121         * build-aux/bootstrap (get_version): Port to Solaris sed.
47122         See Ralf Wildenhues's note in
47123         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00156.html>.
47125 2010-11-14  Jim Meyering  <meyering@redhat.com>
47127         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
47128         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
47129         and move definition closer to sole use.
47131 2010-11-13  Jim Meyering  <meyering@redhat.com>
47133         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
47134         Now we require at least autoconf-2.59, which means the work-around
47135         is no longer needed.
47136         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
47137         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
47138         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
47139         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
47140         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
47142 2010-11-13  Bruno Haible  <bruno@clisp.org>
47144         rename, renameat: Avoid test failures at NFS mounted locations.
47145         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
47146         functions.
47147         (test_rename): Use assert_nonexistent.
47148         * tests/test-rename.c: Include <dirent.h>.
47149         * tests/test-renameat.c: Likewise.
47150         Reported by Gary V. Vaughan <gary@gnu.org>.
47152         rename, renameat: Document Linux bug with NFS
47153         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00154.html>.
47154         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
47155         * doc/posix-functions/renameat.texi: Likewise.
47156         Suggested by Eric Blake.
47158 2010-11-13  Bruno Haible  <bruno@clisp.org>
47160         rename test: Add comments.
47161         * tests/test-rename.h (test_rename): Add structure and comments.
47163 2010-11-13  Eric Blake  <eblake@redhat.com>
47165         maintainer-makefile: cover a few more files
47166         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
47167         scripts generated within C files, for libvirt.
47169 2010-11-13  Bruno Haible  <bruno@clisp.org>
47171         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
47172         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
47173         character, return the number of bytes that belong together, not always
47174         1.
47175         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
47176         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
47177         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
47178         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
47179         number of bytes of an invalid character.
47180         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
47181         (main): Invoke it.
47182         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
47183         results.
47184         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
47185         malformed byte sequences.
47186         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
47187         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
47188         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
47189         Reported by Ben Pfaff and Paolo Bonzini.
47191 2010-11-13  Bruno Haible  <bruno@clisp.org>
47193         openat: Work around glibc bug with fchownat() and empty file names.
47194         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
47195         (gl_FUNC_FCHOWNAT): Invoke it.
47196         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
47197         * doc/posix-functions/fchownat.texi: Document the glibc bug.
47198         Reported by Gary V. Vaughan <gary@gnu.org>.
47200 2010-11-13  Bruno Haible  <bruno@clisp.org>
47202         openat: Ensure autoconf macro ordering.
47203         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
47204         gl_USE_SYSTEM_EXTENSIONS.
47205         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
47207 2010-11-13  Bruno Haible  <bruno@clisp.org>
47209         Update comments.
47210         * lib/unistr/u8-check.c: Update file name in comments.
47211         * lib/unistr/u8-mblen.c: Likewise.
47212         * lib/unistr/u8-prev.c: Likewise.
47213         * lib/unistr/u8-strmblen.c: Likewise.
47214         * lib/unistr/u8-strmbtouc.c: Likewise.
47216 2010-11-13  Jim Meyering  <meyering@redhat.com>
47218         tests: avoid test failure on Solaris 10 due to lack of PATH export
47219         * tests/test-update-copyright.sh: Don't forget to export PATH.
47221         init.sh: ensure that IFS is defined, just in case...
47222         * tests/init.sh (setup_): Ensure that IFS is defined,
47223         so that saving and restoring it works as expected.  This
47224         appears to be useful at least for an old version of dash
47225         from a long time ago (RH 6).  See here for details:
47226         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
47228         maint.mk: tighten "test a == b" check
47229         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
47230         test to files that contain something like #!/bin/sh.
47231         Without this, coreutils would get two false positives in
47232         the comments of C source files.
47234 2010-11-12  Eric Blake  <eblake@redhat.com>
47236         bootstrap: fix typo in previous attempt
47237         * build-aux/bootstrap (buildreq): Correct the grouping.
47238         Reported by Paul Eggert.
47240         maintainer-makefile: prohibit test x == x
47241         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
47242         Based on a report by Matthias Bolte.
47244         bootstrap: allow FreeBSD gzip
47245         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
47246         which has no '.' and goes to stderr.
47247         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
47248         Reported by Matthias Bolte.
47250         maintainer-makefile: check for i18n setup
47251         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
47252         will likely work.
47254 2010-11-12  Bruno Haible  <bruno@clisp.org>
47256         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
47257         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
47258         * lib/nanosleep.c (nanosleep): Likewise.
47260 2010-11-11  Bruno Haible  <bruno@clisp.org>
47262         fcntl-h: Fix for use of C++ on glibc systems.
47263         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
47264         also on glibc systems in C++ mode.
47265         Reported by Gary V. Vaughan <gary@gnu.org>.
47267 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
47269         mknod: avoid false failure with dash
47270         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
47272 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
47274         unlink: Fix "is it should" typo in diagnostic.
47275         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
47276         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00106.html>.
47278 2010-11-11  Bruno Haible  <bruno@clisp.org>
47280         Tests for module 'strerror_r-posix'.
47281         * modules/strerror_r-posix-tests: New file.
47282         * tests/test-strerror_r.c: New file.
47283         * tests/test-string-c++.cc: Check the signature of strerror_r.
47285         New module 'strerror_r-posix'.
47286         * lib/string.in.h (strerror_r): New declaration.
47287         * lib/strerror_r.c: New file.
47288         * m4/strerror_r.m4: New file.
47289         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
47290         of strerror_r.
47291         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
47292         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
47293         * modules/strerror_r-posix: New file.
47294         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
47295         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
47296         * doc/posix-functions/strerror_r.texi: Mention the new module and the
47297         portability problems.
47299 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
47301         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
47302         line is also considered for output. Quoted function name in shell
47303         command, so temporary files for functions like MyClass::operator()
47304         are removed correctly without errors.
47306 2010-11-09  Bruno Haible  <bruno@clisp.org>
47308         * doc/posix-functions/strerror.texi: List more failing platforms.
47310         * doc/posix-functions/strerror.texi: Add a comment.
47312 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
47314         fdopendir: fix bug on MacOS X when low on file descriptors
47316         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
47317         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
47318         All callers changed.
47319         (fdopendir): Invoke save_cwd at the top level, not after using
47320         multiple dup() calls to use up file descriptors.  Then retry
47321         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
47322         less than the maximum number of open file descriptors, because
47323         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
47324         on Mac OS X 10.6.4 for tar 1.24
47325         <http://lists.gnu.org/r/bug-tar/2010-10/msg00084.html>
47326         <http://lists.gnu.org/r/bug-tar/2010-11/msg00000.html>
47327         and for tar 1.25
47328         <http://lists.gnu.org/r/bug-tar/2010-11/msg00038.html>.
47330 2010-11-07  Bruno Haible  <bruno@clisp.org>
47332         vasnprintf: Support I flag on glibc systems.
47333         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
47334         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
47335         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
47336         snprintf function.
47337         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
47338         glibc systems.
47339         * tests/test-vasnprintf-posix3.c: New file.
47340         * modules/vasnprintf-posix-tests (Files): Add it.
47341         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
47343 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
47345         [html] Fix copy/paste bug: Use unique name for compiler warnings.
47346         * MODULES.html.sh: For compiler warnings, use name
47347         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
47349 2010-11-05  Eric Blake  <eblake@redhat.com>
47351         ceil, floor: avoid spurious failure with icc
47352         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
47353         [denormals-as-zero] when optimizing without -mieee-fp option.
47354         * tests/test-floorf2.c (floorf_reference): Likewise.
47355         * tests/test-ceilf1.c (dummy): New function.
47356         (main): Use it to outsmart icc's optimization.
47357         * tests/test-floorf1.c (dummy, main): Likewise.
47359         tests: require working signbit
47360         * modules/ceilf-tests (Depends-on): Add signbit.
47361         * modules/ceill-tests (Depends-on): Likewise.
47362         * modules/floorf-tests (Depends-on): Likewise.
47363         * modules/floorl-tests (Depends-on): Likewise.
47364         * modules/round-tests (Depends-on): Likewise.
47365         * modules/roundf-tests (Depends-on): Likewise.
47366         * modules/roundl-tests (Depends-on): Likewise.
47367         * modules/trunc-tests (Depends-on): Likewise.
47368         * modules/truncf-tests (Depends-on): Likewise.
47369         * modules/truncl-tests (Depends-on): Likewise.
47371         strtod: work around icc bug
47372         * lib/strtod.c (minus_zero): Define to working value.
47373         (strtod): Use it to avoid icc bug.
47375         copysign: enhance tests
47376         * modules/copysign-tests (Files): Add minus-zero.h.
47377         * tests/test-copysign.c (main): Also test zeros.
47379 2010-11-04  Eric Blake  <eblake@redhat.com>
47381         ceil, floor, round, trunc: enhance tests of -0
47382         * tests/test-ceilf1.c (main): Ensure correct sign of result.
47383         * tests/test-ceill.c (main): Likewise.
47384         * tests/test-floorf1.c (main): Likewise.
47385         * tests/test-floorl.c (main): Likewise.
47386         * tests/test-round1.c (main): Likewise.
47387         * tests/test-roundf1.c (main): Likewise.
47388         * tests/test-roundl.c (main): Likewise.
47389         * tests/test-trunc1.c (main): Likewise.
47390         * tests/test-truncf1.c (main): Likewise.
47391         * tests/test-truncl.c (main): Likewise.
47393 2010-11-04  Eric Blake  <eblake@redhat.com>
47395         frexp, tests: work around ICC bug with -zero
47396         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
47397         works with more compilers.
47398         * tests/minus-zero.h: New file.
47399         * modules/ceilf-tests (Files): Include it.
47400         * modules/ceill-tests (Files): Likewise.
47401         * modules/floorf-tests (Files): Likewise.
47402         * modules/floorl-tests (Files): Likewise.
47403         * modules/frexp-nolibm-tests (Files): Likewise.
47404         * modules/frexp-tests (Files): Likewise.
47405         * modules/frexpl-nolibm-tests (Files): Likewise.
47406         * modules/frexpl-tests (Files): Likewise.
47407         * modules/isnan-tests (Files): Likewise.
47408         * modules/isnand-nolibm-tests (Files): Likewise.
47409         * modules/isnand-tests (Files): Likewise.
47410         * modules/isnanf-nolibm-tests (Files): Likewise.
47411         * modules/isnanf-tests (Files): Likewise.
47412         * modules/isnanl-nolibm-tests (Files): Likewise.
47413         * modules/isnanl-tests (Files): Likewise.
47414         * modules/round-tests (Files): Likewise.
47415         * modules/roundf-tests (Files): Likewise.
47416         * modules/roundl-tests (Files): Likewise.
47417         * modules/ldexpl-tests (Files): Likewise.
47418         * modules/signbit-tests (Files): Likewise.
47419         * modules/snprintf-posix-tests (Files): Likewise.
47420         * modules/sprintf-posix-tests (Files): Likewise.
47421         * modules/strtod-tests (Files): Likewise.
47422         * modules/trunc-tests (Files): Likewise.
47423         * modules/truncf-tests (Files): Likewise.
47424         * modules/truncl-tests (Files): Likewise.
47425         * modules/vsnprintf-posix-tests (Files): Likewise.
47426         * modules/vsprintf-posix-tests (Files): Likewise.
47427         * modules/vasnprintf-posix-tests (Files): Likewise.
47428         * modules/vasprintf-posix-tests (Files): Likewise.
47429         * tests/test-ceilf1.c (main): Use it.
47430         * tests/test-ceill.c (main): Likewise.
47431         * tests/test-floorf1.c (main): Likewise.
47432         * tests/test-floorl.c (main): Likewise.
47433         * tests/test-frexp.c (main): Likewise.
47434         * tests/test-frexpl.c (main): Likewise.
47435         * tests/test-isnan.c (main): Likewise.
47436         * tests/test-isnand.h (main): Likewise.
47437         * tests/test-isnanf.h (main): Likewise.
47438         * tests/test-isnanl.h (main): Likewise.
47439         * tests/test-ldexpl.c (main): Likewise.
47440         * tests/test-round.c (main): Likewise.
47441         * tests/test-roundf.c (main): Likewise.
47442         * tests/test-roundl.c (main): Likewise.
47443         * tests/test-signbit.c (test_signbitf, test_signbitd)
47444         (test_signbitl): Likewise.
47445         * tests/test-snprintf-posix.h (test_function): Likewise.
47446         * tests/test-sprintf-posix.h (test_function): Likewise.
47447         * tests/test-strtod.c (main): Likewise.
47448         * tests/test-trunc1.c (main): Likewise.
47449         * tests/test-truncf1.c (main): Likewise.
47450         * tests/test-truncl.c (main): Likewise.
47452         isnanl: work around icc bug
47453         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
47455 2010-11-03  Eric Blake  <eblake@redhat.com>
47457         tests: fix compiler warnings
47458         * tests/test-getopt.h (test_getopt): Fix condition.
47459         * tests/test-getopt_long.h (test_getopt_long): Likewise.
47460         * tests/test-pipe2.c (main): Likewise.
47461         * tests/test-quotearg-simple.c (main): Avoid icc warning.
47463         utimens: fix broken m4 test
47464         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
47466 2010-10-28  Bruno Haible  <bruno@clisp.org>
47468         posix_spawn*, getdtablesize: Relax license.
47469         * modules/posix_spawn (License): Change to LGPLv2+.
47470         * modules/posix_spawnp (License): Likewise.
47471         * modules/posix_spawn-internal (License): Likewise.
47472         * modules/posix_spawnattr_init (License): Likewise.
47473         * modules/posix_spawnattr_getflags (License): Likewise.
47474         * modules/posix_spawnattr_setflags (License): Likewise.
47475         * modules/posix_spawnattr_getpgroup (License): Likewise.
47476         * modules/posix_spawnattr_setpgroup (License): Likewise.
47477         * modules/posix_spawnattr_getschedparam (License): Likewise.
47478         * modules/posix_spawnattr_setschedparam (License): Likewise.
47479         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
47480         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
47481         * modules/posix_spawnattr_getsigdefault (License): Likewise.
47482         * modules/posix_spawnattr_setsigdefault (License): Likewise.
47483         * modules/posix_spawnattr_getsigmask (License): Likewise.
47484         * modules/posix_spawnattr_setsigmask (License): Likewise.
47485         * modules/posix_spawnattr_destroy (License): Likewise.
47486         * modules/posix_spawn_file_actions_init (License): Likewise.
47487         * modules/posix_spawn_file_actions_addclose (License): Likewise.
47488         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
47489         * modules/posix_spawn_file_actions_addopen (License): Likewise.
47490         * modules/posix_spawn_file_actions_destroy (License): Likewise.
47491         * modules/getdtablesize (License): Likewise.
47492         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
47494 2010-10-26  Bruno Haible  <bruno@clisp.org>
47496         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
47497         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
47498         Cygwin and mingw.
47499         Suggested by Eric Blake.
47501 2010-10-26  Bruno Haible  <bruno@clisp.org>
47503         stdio: Work around compilation error due to renameat() on Solaris 10.
47504         * lib/stdio.in.h: Include <unistd.h> on Solaris.
47505         * lib/renameat.c: Don't include <unistd.h> here.
47506         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
47507         Reported by Paul Eggert and Eric Blake.
47509 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
47511         renameat: port to Solaris 10, which declares renameat in unistd.h
47513         * lib/renameat.c: Include unistd.h before stdio.h, because
47514         Solaris 10 declares renameat in unistd.h.  Problem encountered
47515         when building GNU tar 1.24 on Solaris 10.
47517 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
47519         fdopendir: fix C89 compilation
47520         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
47521         compilers.
47523 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
47525         inttostr: simplify by removing unnecessary redundancy
47526         * lib/anytostr.c: Don't include verify.h.
47527         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
47528         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
47529         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
47530         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
47531         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
47532         Likewise.
47533         * modules/inttostr (Depends-on): Remove 'verify'.
47535 2010-10-23  Bruno Haible  <bruno@clisp.org>
47537         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
47538         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
47539         Reported by Eric Blake.
47541 2010-10-23  Bruno Haible  <bruno@clisp.org>
47543         Tests: Fix LOCALE_JA on MirBSD 10.
47544         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
47545         to an UTF-8 locale.
47546         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
47547         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
47548         Reported by Eric Blake.
47550 2010-10-21  Bruno Haible  <bruno@clisp.org>
47552         nl_langinfo test: Avoid test failure on NetBSD 5.
47553         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
47554         Reported by Eric Blake.
47556 2010-10-21  Eric Blake  <eblake@redhat.com>
47558         c-stack: work around libsigsegv 2.8 bug
47559         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
47560         overflow on at least PowerPC64.
47562 2010-10-17  Bruno Haible  <bruno@clisp.org>
47564         userspec: Drop redundant file.
47565         * modules/userspec (Files): Remove lib/inttostr.h.
47567 2010-10-17  Bruno Haible  <bruno@clisp.org>
47569         nl_langinfo tests: Silence some warnings.
47570         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
47571         Reported by Jim Meyering.
47573 2010-10-17  Bruno Haible  <bruno@clisp.org>
47575         Make use of GCC's attribute __alloc_size__.
47576         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
47577         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
47578         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
47579         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
47580         __alloc_size__.
47581         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
47582         Suggested by Jim Meyering.
47584 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
47586         bootstrap: anchor .gitignore entries.
47587         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
47588         with...
47589         (insert_vc_ignore): ... this new function, which prepends `/' to
47590         all .gitignore entries before passing them to
47591         insert_sorted_if_absent.
47593 2010-10-16  Bruno Haible  <bruno@clisp.org>
47595         nextafter: Fix configure check.
47596         * modules/nextafter (configure.ac): Correct expected prototype.
47598 2010-10-16  Bruno Haible  <bruno@clisp.org>
47600         termios: Update documentation.
47601         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
47603 2010-10-16  Bruno Haible  <bruno@clisp.org>
47605         tests: Make them compile with TinyCC.
47606         * tests/test-strstr.c (main): Remove parentheses around array
47607         initializer.
47609 2010-10-15  Eric Blake  <eblake@redhat.com>
47611         ignore-value: make header idempotent
47612         * lib/ignore-value.h: Add double-inclusion guards.
47613         Reported by Stefan Berger.
47615 2010-10-15  Jim Meyering  <meyering@redhat.com>
47617         GNUmakefile: handle "stable" target, not "major"
47618         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
47619         lists in maint.mk and announce-gen.  Without this, "make stable"
47620         would fail to ensure that $(VERSION) is up to date.
47622 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
47624         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
47625         & co.
47627 2010-10-14  Bruno Haible  <bruno@clisp.org>
47629         vasnprintf: Don't set errno to 0.
47630         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
47631         block that sets it to 0.
47632         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
47634 2010-10-14  Bruno Haible  <bruno@clisp.org>
47636         socketlib: Fix.
47637         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
47638         gl_PREREQ_SYS_H_WINSOCK2.
47639         Reported by Ian Beckwith <ianb@erislabs.net>.
47641 2010-10-13  Jim Meyering  <meyering@redhat.com>
47643         test-select-stdin.c: avoid warn_unused_result warnings
47644         * tests/test-select-stdin.c: Include "macros.h".
47645         ASSERT that read and fflush succeed.
47647 2010-10-13  Jim Meyering  <meyering@redhat.com>
47649         git-version-gen: do require git-VC'd files in cwd
47650         * build-aux/git-version-gen: Reject a git version string
47651         if there are no commits associated with the current directory.
47652         This avoids an unlikely false-positive (unrelated dir whose parent
47653         repository also contains a tag matching v*), as pointed out
47654         by Giuseppe Scrivano in
47655         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
47657 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
47659         argv-iter: omit nonconforming declaration
47660         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
47661         enum arg_iter_err declaration, which doesn't conform to C99.
47662         Solaris 10 cc warns about this.
47664 2010-10-13  Eric Blake  <eblake@redhat.com>
47666         termios: fix compilation on mingw
47667         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
47668         (gl_TERMIOS_H): Adjust it on mingw.
47669         * modules/termios (Makefile.am): Substitute new key.
47670         * lib/termios.in.h (includes): Make include_next conditional.
47671         * doc/posix-headers/termios.texi (termios.h): Update
47672         documentation.
47673         Reported by Daniel P. Berrange.
47675 2010-10-13  Jim Meyering  <meyering@redhat.com>
47677         git-version-gen: don't require that .git/ be in the current dir
47678         * build-aux/git-version-gen: Adjust this script so that it works
47679         when run from any working directory beneath the top-level .git/-
47680         containing directory.  Inspired by a patch from Giuseppe Scrivano,
47681         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
47683         test-select: avoid warn_unused_result warnings
47684         * tests/test-select.c: Include "macros.h".
47685         ASSERT that each call to read, write, and pipe succeeds.
47686         While not technically required, also check each "close".
47687         * modules/select-tests (Files): Add tests/macros.h.
47689         test-symlinkat: remove declaration of unused local
47690         * tests/test-symlinkat.c (main): Remove unused local, "buf".
47692         test-inttostr: avoid shadowing warnings
47693         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
47694         and use malloc rather than the stack for the same reason as
47695         mentioned in the comment justifying the other allocation.
47697 2010-10-11  Bruno Haible  <bruno@clisp.org>
47699         stdlib: Allow multiple gnulib generated replacements to coexist.
47700         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
47701         Reported by Sam Steingold <sds@gnu.org>.
47703 2010-10-11  Jim Meyering  <meyering@redhat.com>
47705         fix a documentation typo
47706         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
47708 2010-10-11  Eric Blake  <eblake@redhat.com>
47710         futimens: work around Solaris 11 bug
47711         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
47712         * tests/test-futimens.h (test_futimens): Enhance, rather than
47713         weaken test.
47714         * doc/posix-functions/futimens.texi (futimens): Document the bug.
47716 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
47718         Indentation.
47719         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
47720         higher-level operators more to the left.
47722 2010-10-11  Jim Meyering  <meyering@redhat.com>
47724         test-futimens: avoid unwarranted test failure on Solaris 5.11
47725         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
47726         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
47727         because it tries to dereference the NULL name argument.
47729 2010-10-11  Bruno Haible  <bruno@clisp.org>
47731         Indentation.
47732         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
47733         indentation.
47735 2010-10-11  Jim Meyering  <meyering@redhat.com>
47737         spawn.in.h: make indentation consistent with parentheses
47738         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
47739         Make indentation consistent with parentheses.
47741 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
47743         Fix mismatched parens in previous commit
47744         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
47745         parens.
47747 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
47749         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
47751         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
47752         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
47753         * lib/malloca.c: Include "verify.h".
47754         (verify1): Remove, replacing with a verify call.
47755         * lib/relocwrapper.c (verify1): Likewise.
47756         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
47757         Likewise.
47758         * modules/malloca (Depends-on): Add 'verify'.
47759         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
47760         * modules/vasnprintf (Depends-on): Add 'verify'.
47761         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
47762         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
47763         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
47764         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
47765         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
47766         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
47767         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
47769         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
47771         Formerly the style was sometimes 2*X - 1, because the C standard
47772         was wrongly thought to disallow ?: in integral constant expressions.
47773         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
47774         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
47775         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
47776         * lib/stdint.in.h (_verify_intmax_size): Likewise.
47777         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
47778         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
47779         verify that time_t cannot be floating.
47781 2010-10-08  Eric Blake  <eblake@redhat.com>
47783         time: enforce recent POSIX ruling that time_t is integral
47784         * lib/time.in.h (__time_t_must_be_integral): Detect any
47785         problematic systems, allowing the rest of gnulib to assume POSIX.
47787 2010-10-08  Jim Meyering  <meyering@redhat.com>
47789         fdopendir: fix a bug on systems lacking openat and /proc support
47790         OpenBSD 4.7 is one such system.  The most noticeable effect was
47791         failure of any application making nontrivial use of fts: rm, du,
47792         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
47793           ./rm: traversal failed: `a': Bad file descriptor
47794         Debugging that, you see that even though FD 6 was closed just
47795         prior to the opendir call in fd_clone_opendir, its resulting
47796         dir->dd_fd was 8, rather than the expected value of 6:
47798         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
47799         93                close (fd);
47800         (gdb) n
47801         94                dir = fd_clone_opendir (dupfd);
47802         (gdb) n
47803         95                saved_errno = errno;
47804         (gdb) p dir->dd_fd
47805         $11 = 8
47807         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
47808         The problem is that on OpenBSD, fd_clone_opendir has to resort
47809         to using the old-style save/restore CWD mechanism, due to its
47810         lack of openat/proc support, and *that* would steal the FD (6)
47811         that opendir was supposed to use.
47813         The fix is to squirrel away the desired FD so that save_cwd uses a
47814         different one, and then free the dest FD right before calling opendir.
47815         That guarantees opendir will use the required file descriptor.
47817         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
47819 2010-10-08  Bruno Haible  <bruno@clisp.org>
47821         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
47822         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
47824 2010-10-08  Bruno Haible  <bruno@clisp.org>
47826         nanosleep: Make replacement POSIX compliant.
47827         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
47828         is out of range.
47829         Reported by Jim Meyering.
47831 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
47833         bootstrap: add hook for altering gnulib.mk, for Bison
47834         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
47835         the Bison bootstrapping process can rewrite file names and variables
47836         in this file before later parts of 'bootstrap' use the file.
47837         Bison wants to include lib/gnulib.mk from the top-level makefile,
47838         so it needs the file names in this file to be relative to the top
47839         level, not relative to lib; plus it needs variable names to be
47840         rewritten.
47841         (slurp): Use the new function.
47843         bootstrap: reformat for readability
47844         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
47846 2010-10-08  Eric Blake  <eblake@redhat.com>
47848         docs: update cygwin progress
47849         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
47850         1.7.7.
47851         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
47852         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
47853         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
47854         * doc/posix-functions/carg.texi (carg): Likewise.
47855         * doc/posix-functions/cargf.texi (cargf): Likewise.
47856         * doc/posix-functions/casin.texi (casin): Likewise.
47857         * doc/posix-functions/casinf.texi (casinf): Likewise.
47858         * doc/posix-functions/casinh.texi (casinh): Likewise.
47859         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
47860         * doc/posix-functions/catan.texi (catan): Likewise.
47861         * doc/posix-functions/catanf.texi (catanf): Likewise.
47862         * doc/posix-functions/catanh.texi (catanh): Likewise.
47863         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
47864         * doc/posix-functions/ccos.texi (ccos): Likewise.
47865         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
47866         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
47867         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
47868         * doc/posix-functions/cexp.texi (cexp): Likewise.
47869         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
47870         * doc/posix-functions/cimag.texi (cimag): Likewise.
47871         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
47872         * doc/posix-functions/clog.texi (clog): Likewise.
47873         * doc/posix-functions/clogf.texi (clogf): Likewise.
47874         * doc/posix-functions/conj.texi (conj): Likewise.
47875         * doc/posix-functions/conjf.texi (conjf): Likewise.
47876         * doc/posix-functions/cpow.texi (cpow): Likewise.
47877         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
47878         * doc/posix-functions/cproj.texi (cproj): Likewise.
47879         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
47880         * doc/posix-functions/creal.texi (creal): Likewise.
47881         * doc/posix-functions/crealf.texi (crealf): Likewise.
47882         * doc/posix-functions/csin.texi (csin): Likewise.
47883         * doc/posix-functions/csinf.texi (csinf): Likewise.
47884         * doc/posix-functions/csinh.texi (csinh): Likewise.
47885         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
47886         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
47887         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
47888         * doc/posix-functions/ctan.texi (ctan): Likewise.
47889         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
47890         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
47891         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
47892         * doc/posix-headers/complex.texi (complex.h): Likewise.
47894 2010-10-07  Jim Meyering  <meyering@redhat.com>
47896         parse-datetime: avoid compilation failure on OpenBSD 4.7
47897         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
47898         This works around a compilation failure on OpenBSD 4.7:
47899         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
47901 2010-10-07  Eric Blake  <eblake@redhat.com>
47903         docs: update cygwin progress
47904         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
47905         1.7.6.
47906         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
47907         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
47908         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
47909         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
47910         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
47911         Likewise.
47912         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
47913         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
47914         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
47915         Likewise.
47916         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
47917         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
47918         Likewise.
47919         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
47920         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
47921         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
47922         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
47923         Likewise.
47924         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
47925         Likewise.
47926         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
47928         docs: update parse-datetime history
47929         * doc/parse-datetime.texi (Authors of parse_datetime): Better
47930         documentation of this function's history and alternatives.
47932         cygwin: use more robust version check
47933         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
47934         exclude an eventual cygwin 1.9.1.
47935         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
47936         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
47937         (gl_FUNC_STRCASESTR): Likewise.
47938         Reported by Bruno Haible.
47940 2010-10-06  Bruno Haible  <bruno@clisp.org>
47942         string, sys_select: Avoid #including large headers unless necessary.
47943         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
47944         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
47945         OSF/1, BeOS, Haiku.
47946         Reported by Jim Meyering.
47948 2010-10-05  Eric Blake  <eblake@redhat.com>
47950         memmem, strstr, strcasestr: fix bug with long periodic needle
47951         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
47952         periodic needle having false positive.
47953         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
47954         and cygwin 1.7.7.
47955         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
47956         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
47957         (gl_FUNC_STRCASESTR): Likewise.
47958         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
47959         * tests/test-memmem.c (main): Expose the bug.
47960         * tests/test-strcasestr.c (main): Likewise.
47961         * tests/test-strstr.c (main): Likewise.
47962         * tests/test-c-strcasestr.c (main): Likewise.
47963         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
47964         * doc/posix-functions/strstr.texi (strstr): Likewise.
47965         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
47966         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
47968 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
47970         parse-datetime: do some more renaming
47971         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
47972         parse_datetime, not get_date.  Mention the renaming.
47973         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
47974         in comments.
47975         * m4/bison.m4: Likewise.
47977 2010-10-05  Eric Blake  <eblake@redhat.com>
47979         parse-datetime: better name than get_date
47980         * NEWS: Reword the deprecation notice.
47981         * modules/get_date: Rename to modules/parse-datetime.
47982         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
47983         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
47984         * lib/get_date.y: Rename to lib/parse-datetime.y.
47985         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
47986         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
47987         * doc/getdate.texi: Provide fallback wrapper.
47988         * lib/getdate.h: Move guts, and wrap...
47989         * lib/parse-datetime.h: ...new file.
47990         * lib/parse-datetime.y (get_date): Rename...
47991         (parse_datetime): ...to this.
47992         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
47993         (gl_PARSE_DATETIME): ...to this.
47994         * doc/posix-functions/getdate.texi (get_date): Provide fallback
47995         documentation.
47996         * modules/getdate (Files): Provide fallback docs and header.
47997         (Notice, Depends-on): Update references.
47998         * tests/test-parse-datetime.c: Likewise.
47999         * DEPENDENCIES: Likewise.
48000         * MODULES.html.sh (Date and time <time.h>): Likewise.
48001         * doc/parse-datetime.texi (Date input formats)
48002         (Authors of parse_datetime): Likewise.
48003         * modules/parse-datetime (Files, configure.ac, Makefile.am)
48004         (Include): Likewise.
48005         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
48006         * gnulib-tool: Likewise.
48007         * m4/bison.m4 (gl_BISON): Likewise.
48008         Suggested by Bruno Haible.
48010 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
48012         more ports to Solaris tr, which needs [] around ranges
48013         * gnulib-tool: Solaris tr needs [] around ranges.
48014         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
48015         * tests/test-pipe-filter-gi1.c (main): Likewise.
48016         * tests/test-pipe-filter-ii1.c (main): Likewise.
48018 2010-10-05  Eric Blake  <eblake@redhat.com>
48020         bootstrap: fix Solaris regression
48021         * build-aux/bootstrap (check_versions): Solaris tr still needs []
48022         around ranges.
48023         Reported by Pádraig Brady.
48025         bootstrap: work with pkg-config
48026         * build-aux/bootstrap (check_versions): Also transliterate - in
48027         prerequisite name.
48028         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
48029         prerequisites that were already found, to avoid confusion.
48030         Reported by Justin Clift.
48032         faccessat: remove unused wrappers
48033         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
48034         presence of these wrappers dragged in -lgen on Solaris.
48035         Reported by Clemens Brogi; fix suggested by Paul Eggert.
48037 2010-10-05  Jim Meyering  <meyering@redhat.com>
48039         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
48040         * Makefile (sc_pragma_columns): New syntax-check rule.
48042 2010-10-04  Bruno Haible  <bruno@clisp.org>
48044         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
48045         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
48046         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
48047         Reported by Bruce Korb and Eric Blake.
48049 2010-10-04  Bruno Haible  <bruno@clisp.org>
48051         threadlib: Make option --with-libpth-prefix work.
48052         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
48053         use $LIBPTH, not just -lpth.
48055 2010-10-04  Bruno Haible  <bruno@clisp.org>
48057         Avoid line length limitation from HP NonStop system header files.
48058         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
48059         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
48060         * lib/ctype.in.h: Likewise.
48061         * lib/dirent.in.h: Likewise.
48062         * lib/errno.in.h: Likewise.
48063         * lib/fcntl.in.h: Likewise.
48064         * lib/float.in.h: Likewise.
48065         * lib/getopt.in.h: Likewise.
48066         * lib/iconv.in.h: Likewise.
48067         * lib/inttypes.in.h: Likewise.
48068         * lib/langinfo.in.h: Likewise.
48069         * lib/locale.in.h: Likewise.
48070         * lib/math.in.h: Likewise.
48071         * lib/netdb.in.h: Likewise.
48072         * lib/netinet_in.in.h: Likewise.
48073         * lib/poll.in.h: Likewise.
48074         * lib/pthread.in.h: Likewise.
48075         * lib/pty.in.h: Likewise.
48076         * lib/sched.in.h: Likewise.
48077         * lib/se-selinux.in.h: Likewise.
48078         * lib/search.in.h: Likewise.
48079         * lib/signal.in.h: Likewise.
48080         * lib/spawn.in.h: Likewise.
48081         * lib/stdarg.in.h: Likewise.
48082         * lib/stddef.in.h: Likewise.
48083         * lib/stdint.in.h: Likewise.
48084         * lib/stdio.in.h: Likewise.
48085         * lib/stdlib.in.h: Likewise.
48086         * lib/string.in.h: Likewise.
48087         * lib/strings.in.h: Likewise.
48088         * lib/sys_file.in.h: Likewise.
48089         * lib/sys_ioctl.in.h: Likewise.
48090         * lib/sys_select.in.h: Likewise.
48091         * lib/sys_socket.in.h: Likewise.
48092         * lib/sys_stat.in.h: Likewise.
48093         * lib/sys_time.in.h: Likewise.
48094         * lib/sys_times.in.h: Likewise.
48095         * lib/sys_utsname.in.h: Likewise.
48096         * lib/sys_wait.in.h: Likewise.
48097         * lib/sysexits.in.h: Likewise.
48098         * lib/termios.in.h: Likewise.
48099         * lib/time.in.h: Likewise.
48100         * lib/unistd.in.h: Likewise.
48101         * lib/wchar.in.h: Likewise.
48102         * lib/wctype.in.h: Likewise.
48103         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
48104         * modules/ctype (Makefile.am): Likewise.
48105         * modules/dirent (Makefile.am): Likewise.
48106         * modules/errno (Makefile.am): Likewise.
48107         * modules/fcntl-h (Makefile.am): Likewise.
48108         * modules/float (Makefile.am): Likewise.
48109         * modules/getopt-posix (Makefile.am): Likewise.
48110         * modules/iconv-h (Makefile.am): Likewise.
48111         * modules/inttypes (Makefile.am): Likewise.
48112         * modules/langinfo (Makefile.am): Likewise.
48113         * modules/locale (Makefile.am): Likewise.
48114         * modules/math (Makefile.am): Likewise.
48115         * modules/netdb (Makefile.am): Likewise.
48116         * modules/netinet_in (Makefile.am): Likewise.
48117         * modules/poll-h (Makefile.am): Likewise.
48118         * modules/pthread (Makefile.am): Likewise.
48119         * modules/pty (Makefile.am): Likewise.
48120         * modules/sched (Makefile.am): Likewise.
48121         * modules/search (Makefile.am): Likewise.
48122         * modules/selinux-h (Makefile.am): Likewise.
48123         * modules/signal (Makefile.am): Likewise.
48124         * modules/spawn (Makefile.am): Likewise.
48125         * modules/stdarg (Makefile.am): Likewise.
48126         * modules/stddef (Makefile.am): Likewise.
48127         * modules/stdint (Makefile.am): Likewise.
48128         * modules/stdio (Makefile.am): Likewise.
48129         * modules/stdlib (Makefile.am): Likewise.
48130         * modules/string (Makefile.am): Likewise.
48131         * modules/strings (Makefile.am): Likewise.
48132         * modules/sys_file (Makefile.am): Likewise.
48133         * modules/sys_ioctl (Makefile.am): Likewise.
48134         * modules/sys_select (Makefile.am): Likewise.
48135         * modules/sys_socket (Makefile.am): Likewise.
48136         * modules/sys_stat (Makefile.am): Likewise.
48137         * modules/sys_time (Makefile.am): Likewise.
48138         * modules/sys_times (Makefile.am): Likewise.
48139         * modules/sys_utsname (Makefile.am): Likewise.
48140         * modules/sys_wait (Makefile.am): Likewise.
48141         * modules/sysexits (Makefile.am): Likewise.
48142         * modules/termios (Makefile.am): Likewise.
48143         * modules/time (Makefile.am): Likewise.
48144         * modules/unistd (Makefile.am): Likewise.
48145         * modules/wchar (Makefile.am): Likewise.
48146         * modules/wctype (Makefile.am): Likewise.
48148 2010-10-04  Bruno Haible  <bruno@clisp.org>
48150         read-file tests: Avoid a test failure on NonStop Kernel.
48151         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
48152         a regular file.
48153         Reported by Joachim Schmitz <schmitz@hp.com>.
48155 2010-10-03  Bruno Haible  <bruno@clisp.org>
48157         gnulib-tool: Fixes for --create-testdir with --libtool.
48158         * gnulib-tool (func_get_automake_snippet): Don't augment
48159         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
48160         an executable.
48161         (func_create_testdir): Handle module 'alloca' like func_import.
48162         Reported by Bruce Korb <bruce.korb@gmail.com>.
48164 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
48166         Avoid some lines longer than 80 characters.
48167         * lib/stdint.in.h: Break long comment lines.
48168         * lib/math.in.h: Likewise.
48169         (_GL_NUM_UINT_WORDS): New macro, for readability.
48170         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
48171         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
48172         * lib/stdlib.in.h: Likewise.
48173         * lib/spawn.in.h: Likewise.
48174         * lib/sys_socket.in.h: Update an URL.
48175         * lib/sys_stat.in.h: Break long line.
48177 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
48179         Improve pmccabe2html.
48180         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
48181         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
48182         when the sources change. Remove the line in the HTML about "Used
48183         ranges" (which implied that there might be other unused ranges),
48184         rename "Resume" to "Summary" (easier to understand for more users).
48185         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
48186         styles, and some unnecessary blank lines.
48188 2010-10-03  Bruno Haible  <bruno@clisp.org>
48189             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
48191         acl: Add support for ACLs on NonStop Kernel.
48192         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
48193         Check whether the function aclsort() exists.
48194         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
48195         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
48196         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
48197         (acl_nontrivial [HAVE_ACLSORT]: New function.
48198         (file_has_acl): Implement for NonStop Kernel.
48199         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
48200         (qset_acl): Implement for NonStop Kernel.
48201         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
48202         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
48203         (main): Implement for NonStop Kernel.
48204         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
48205         Kernel. Handle this flavor.
48206         * tests/test-set-mode-acl.sh: Likewise.
48207         * tests/test-copy-acl.sh: Likewise.
48208         * tests/test-copy-file.sh: Likewise.
48210 2010-10-03  Bruno Haible  <bruno@clisp.org>
48212         Info about ACLs on NonStop Kernel.
48213         * doc/acl-resources.txt: Add info about NonStop Kernel.
48214         References by Joachim Schmitz <schmitz@hp.com>.
48216 2010-10-02  Bruno Haible  <bruno@clisp.org>
48218         Define missing EDQUOT on NonStop Kernel.
48219         * lib/errno.in.h (EDQUOT): Assign a value if missing.
48220         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
48221         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
48222         missing.
48223         * doc/posix-headers/errno.texi: Mention the NSK bug.
48224         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
48225         Reported by Joachim Schmitz <schmitz@hp.com>.
48227 2010-10-02  Bruno Haible  <bruno@clisp.org>
48229         Update doc for POSIX:2008.
48230         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
48231         Update URL of POSIX specification.
48233 2010-10-02  Bruno Haible  <bruno@clisp.org>
48235         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
48236         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
48237         from gnulib, not from Automake.
48239 2010-10-02  Bruno Haible  <bruno@clisp.org>
48241         New module 'system-posix'.
48242         * modules/system-posix: New file.
48243         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
48244         module is present.
48245         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
48246         GNULIB_SYSTEM_POSIX.
48247         * modules/stdlib (Depends-on): Remove sys_wait.
48248         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
48249         * doc/posix-functions/system.texi: Mention the new module.
48250         * doc/posix-headers/stdlib.texi: Likewise.
48251         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
48252         define test_sys_wait_macros to a no-op.
48253         Reported by Sam Steingold <sds@gnu.org>.
48255 2010-09-30  Bruno Haible  <bruno@clisp.org>
48257         More renaming from 'getdate' to 'get_date'.
48258         * doc/get_date.texi: Renamed from doc/getdate.texi.
48259         * modules/get_date (Files): Update.
48260         * MODULES.html.sh (Date and time <time.h>): Update.
48261         * DEPENDENCIES: Update.
48262         * gnulib-tool: Update comment.
48263         * m4/bison.m4 (gl_BISON): Likewise.
48264         * m4/get_date.m4 (gl_GET_DATE): Likewise.
48266 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
48268         bootstrap: support ACLOCAL_FLAGS during aclocal
48269         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
48270         can add additional -I dir for third-party .m4 files.
48272 2010-09-30  Eric Blake  <eblake@redhat.com>
48274         bootstrap: use glibtoolize on MacOS
48275         * build-aux/bootstrap (check_versions): Convert libtool into
48276         libtoolize.
48277         (tool search): Move libtool check earlier, and look for
48278         glibtoolize for MacOS.
48279         (gnulib_tool_options): Auto-add --libtool when appropriate.
48280         Reported by Justin Clift.
48282         poll: fix typo that broke test on MacOS
48283         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
48284         Reported by Justin Clift.
48286         getdate: rename to get_date
48287         Note: getdate.h is not renamed, to minimize client impact.
48288         * modules/getdate: Mark obsolete.  Move old contents...
48289         * modules/get_date: ...to new module name.
48290         * modules/getdate-tests: Move...
48291         * modules/get_date-tests: ...here.
48292         * m4/getdate.m4: Move...
48293         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
48294         * lib/getdate.y: Move...
48295         * lib/get_date.y: ...here.
48296         * tests/test-getdate.c: Move...
48297         * tests/test-get_date.c: ...here.
48298         * doc/posix-functions/getdate.texi (getdate): Update name.
48299         * NEWS: Mention the change.
48301 2010-09-29  Bruno Haible  <bruno@clisp.org>
48303         Separate the module 'waitpid' from the module 'sys_wait'.
48304         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
48305         present.
48306         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
48307         gl_MODULE_INDICATOR_FOR_TESTS.
48308         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
48309         * modules/sys_wait (Depends-on): Remove waitpid.
48310         (Makefile.am): Substitute GNULIB_WAITPID.
48311         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
48312         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
48313         signature only if the 'waitpid' module is present.
48314         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
48315         * NEWS: Mention the change.
48316         * modules/grantpt (Depends-on): Add waitpid.
48317         * modules/wait-process (Depends-on): Likewise.
48319 2010-09-29  Bruno Haible  <bruno@clisp.org>
48321         More tests for module 'sys_wait'.
48322         * modules/sys_wait-c++-tests: New file.
48323         * tests/test-sys_wait-c++.cc: New file.
48324         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
48325         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
48327 2010-09-29  Bruno Haible  <bruno@clisp.org>
48329         New module 'waitpid'.
48330         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
48331         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
48332         Don't include <process.h>.
48333         (waitpid): Declare only, using modern idiom.
48334         * m4/waitpid.m4: New file.
48335         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
48336         * modules/waitpid: New file.
48337         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
48338         (Makefile.am): Update.
48339         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
48341 2010-09-28  Bruno Haible  <bruno@clisp.org>
48343         poll: Assume ANSI C.
48344         * lib/poll.c (poll): Use an ANSI C declaration.
48346 2010-09-28  Bruno Haible  <bruno@clisp.org>
48348         poll-h: Create poll.h on all platforms.
48349         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
48350         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
48351         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
48352         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
48353         (gl_REPLACE_POLL_H): Don't set POLL_H.
48354         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
48355         * modules/poll-h (Depends-on): Add include_next.
48356         (Makefile.am): Create poll.h unconditionally. Substitute also
48357         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
48359 2010-09-28  Bruno Haible  <bruno@clisp.org>
48361         Tests for module 'poll-h'.
48362         * modules/poll-h-c++-tests: New file.
48363         * tests/test-poll-h-c++.cc: New file.
48365         Tests for module 'poll-h'.
48366         * modules/poll-h-tests: New file.
48367         * tests/test-poll-h.c: New file.
48369 2010-09-28  Bruno Haible  <bruno@clisp.org>
48371         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
48372         * modules/poll-h (Depends-on): Add 'extensions'.
48374 2010-09-28  Bruno Haible  <bruno@clisp.org>
48376         New module 'poll-h'.
48377         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
48378         (poll): Use modern idiom.
48379         * modules/poll-h: New file.
48380         * modules/poll (Files): Remove lib/poll.in.h.
48381         (Depends-on): Add poll-h.
48382         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
48383         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
48384         * m4/poll_h.m4: New file.
48385         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
48386         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
48387         and invoke gl_REPLACE_POLL_H.
48388         * lib/poll.c: Use common idiom.
48389         * tests/test-poll.c: Likewise.
48390         * doc/posix-headers/poll.texi: Mention the poll-h module.
48391         Suggested by Eric Blake.
48393 2010-09-26  Bruno Haible  <bruno@clisp.org>
48395         sys_wait: Implement WSTOPSIG.
48396         * lib/sys_wait.in.h (WSTOPSIG): New macro.
48397         Reported by Simon Josefsson.
48399 2010-09-26  Simon Josefsson  <simon@josefsson.org>
48401         stdlib, sys_wait: Avoid compilation error on mingw.
48402         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
48404 2010-09-26  Bruno Haible  <bruno@clisp.org>
48406         stdlib tests: Avoid code duplication.
48407         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
48408         * modules/sys_wait-tests (Files): Likewise.
48409         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
48410         * tests/test-stdlib.c: Include test-sys_wait.h.
48411         (main): Invoke test_sys_wait_macros.
48412         * tests/test-sys_wait.c: Include test-sys_wait.h.
48413         (main): Invoke test_sys_wait_macros.
48415 2010-09-25  Simon Josefsson  <simon@josefsson.org>
48417         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
48418         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
48419         sure Windows sockets are working before calling getaddrinfo.
48420         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
48421         * doc/gnulib.texi (Windows sockets): Fix typo.
48423 2010-09-25  Bruno Haible  <bruno@clisp.org>
48425         Tests for module 'regex-quote'.
48426         * modules/regex-quote-tests: New file.
48427         * tests/test-regex-quote.c: New file.
48429         New module 'regex-quote'.
48430         * lib/regex-quote.h: New file.
48431         * lib/regex-quote.c: New file.
48432         * modules/regex-quote: New file.
48433         Suggested by Reuben Thomas <rrt@sc3d.org>.
48435 2010-09-24  Bruno Haible  <bruno@clisp.org>
48437         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
48438         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
48440 2010-09-23  Bruno Haible  <bruno@clisp.org>
48442         setenv: Relax license.
48443         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
48444         Blake.
48445         Requested by Eric Blake.
48447 2010-09-22  Bruno Haible  <bruno@clisp.org>
48449         termios: Relax license.
48450         * modules/termios (License): Change to LGPLv2+.
48451         Requested by Eric Blake.
48453 2010-09-22  Bruno Haible  <bruno@clisp.org>
48455         threadlib: Allow the package to change the default to 'no'.
48456         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
48457         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
48458         Reported by Paul Eggert.
48460 2010-09-22  Pádraig Brady  <P@draigbrady.com>
48461             Bruno Haible  <bruno@clisp.org>
48463         Fix endless loop in mbmemcasecoll.
48464         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
48465         byte.
48466         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
48468 2010-09-22  Bruno Haible  <bruno@clisp.org>
48470         Tests for module 'memcoll'.
48471         * modules/memcoll-tests: New file.
48472         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
48474         memcoll, xmemcoll: Clarify size vs. length.
48475         * modules/memcoll.c (memcoll0): Clarify specification.
48476         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
48477         passed to collate_error.
48479 2010-09-22  Bruno Haible  <bruno@clisp.org>
48481         Tests for module 'memcasecmp'.
48482         * modules/memcasecmp-tests: New file.
48483         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
48485 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
48487         * lib/pthread.in.h: Add split double-inclusion guard, and include
48488         system <pthread.h> if there is one.  Use @@-style as in other
48489         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
48490         pthread.h doesn't.
48491         (pthread_mutexattr_destroy, pthread_mutexattr_init):
48492         (pthread_mutexattr_settype, pthread_mutex_trylock):
48493         New static inline functions, if there's no system <pthread.h>.
48494         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
48495         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
48496         Approximate with mutexes if the system lacks spinlocks, as in
48497         MacOS.
48498         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
48499         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
48500         @@-style.  Check for spinlocks separately.
48501         (gl_PTHREAD_DEFAULTS): New macro.
48502         * modules/pthread: Redo to use a more typical style for in.h files.
48504 2010-09-21  Eric Blake  <eblake@redhat.com>
48506         net_if: enhance tests
48507         * tests/test-net_if.c (main): Move signature checks earlier.
48508         Print failures to stderr.
48509         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
48510         Document the bug that we do not yet fix.
48512 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
48514         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
48515         about gnulib, not GSS.
48517 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
48519         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
48520         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
48521         for Emacs.
48522         * build-aux/pmccabe2html: Make Makefile.am example code more
48523         cut-and-paste friendly.
48525 2010-09-21  Simon Josefsson  <simon@josefsson.org>
48527         * tests/test-net_if.c: New file.
48528         * modules/net_if-tests: New file.
48530 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
48532         pthread: add pthread_spin_destroy
48533         * lib/pthread.in.h (pthread_spin_destroy): New function.
48535 2010-09-19  Bruno Haible  <bruno@clisp.org>
48537         gnulib-tool: Fix --help output.
48538         * gnulib-tool (func_usage): Fix help message.
48539         Reported by Reuben Thomas <rrt@sc3d.org>.
48541 2010-09-18  Jim Meyering  <meyering@redhat.com>
48543         maint.mk: avoid unexpanded \n in two diagnostics
48544         * top/maint.mk (sc_prohibit_always_true_header_tests):
48545         Don't use a literal \n in a halt=... assignment.  It would not be
48546         expanded, and the two \n bytes would appear in the diagnostic output
48547         rather than the desired newline.  Use halt=$$(printf ... instead.
48548         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
48550 2010-09-18  Bruno Haible  <bruno@clisp.org>
48552         netinet_in: Doc tweak.
48553         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
48554         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
48556 2010-09-18  Jim Meyering  <meyering@redhat.com>
48558         init.sh: correct an outdated comment
48559         * tests/init.sh (create_exe_shims_):  s/function/alias/
48561         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
48562         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
48563         a file named "*.exe" is removed between the glob expansion and the
48564         processing of that oddly named file.
48566 2010-09-17  Eric Blake  <eblake@redhat.com>
48568         mirbsd: add some more support
48569         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
48570         in BSD family.
48571         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
48572         devices as OpenBSD.
48573         * m4/host-os.m4 (mirbsd): Add MirBSD.
48575         tests: fix unportable assumption on sys/wait.h
48576         * tests/test-sys_wait.c (main): Relax test.
48577         * tests/test-stdlib.c (main): Likewise.
48579         init.sh: accommodate directory with no .exes
48580         * tests/init.sh: Accomodate directory containing only scripts.
48582         tests: avoid compiler warning
48583         * tests/test-stdlib.c (main): Use the variable.
48585         fdutimens, fdutimensat: update signature, again
48586         * lib/utimens.h (gl_futimens): Delete, and move signature...
48587         (fdutimens): ...here.
48588         (fdutimensat): Rearrange signature.
48589         (lutimensat): Rename variable for clarity.
48590         * lib/fdutimensat.c (fdutimensat): Update signature.
48591         * lib/utimens.c (fdutimens): Likewise.
48592         (gl_futimens): Delete.
48593         (utimens, lutimens): Update callers.
48594         * lib/futimens.c (futimens): Likewise.
48595         * tests/test-fdutimensat.c: Likewise.
48596         * tests/test-utimens.c: Likewise.
48597         * tests/test-futimens.h: Update comment.
48598         * NEWS: Mention this.
48599         Suggested by Paul Eggert.
48601 2010-09-17  Bruno Haible  <bruno@clisp.org>
48603         Take over the maintenance of some older macros from Autoconf.
48604         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
48605         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
48606         GNU Autoconf.
48607         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
48608         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
48610 2010-09-17  Eric Blake  <eblake@redhat.com>
48612         fdutimensat: drop atflag validation
48613         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
48614         with valid fd, to close a race scenario where futimens is
48615         unsupported and FILE was replaced by a symlink.
48616         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
48617         accordingly.
48618         Suggested by Paul Eggert.
48620 2010-09-16  Bruno Haible  <bruno@clisp.org>
48622         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
48623         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
48625 2010-09-16  Bruno Haible  <bruno@clisp.org>
48627         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
48628         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
48629         login_tty exists.
48630         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
48632 2010-09-16  Bruno Haible  <bruno@clisp.org>
48634         login_tty: Make the replacement code work on BSD systems.
48635         * lib/login_tty.c: Include <sys/ioctl.h>.
48636         (login_tty): Use ioctl TIOCSCTTY when available.
48637         * modules/login_tty (Depends-on): Add sys_ioctl.
48638         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
48640 2010-09-16  Bruno Haible  <bruno@clisp.org>
48642         login_tty: Stricter unit test.
48643         * modules/login_tty-tests (Depends-on): Add tcgetsid.
48644         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
48645         and tcgetsid() after login_tty.
48646         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
48648 2010-09-16  Bruno Haible  <bruno@clisp.org>
48650         New module 'tcgetsid'.
48651         * lib/tcgetsid.c: New file.
48652         * m4/tcgetsid.m4: New file.
48653         * modules/tcgetsid: New file.
48654         * modules/termios (Depends-on): Add c++defs, warn-on-use.
48655         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
48656         GNULIB_TCGETSID, HAVE_TCGETSID.
48657         * lib/termios.in.h: Include <sys/types.h>.
48658         (tcgetsid): New declaration.
48659         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
48660         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
48661         * doc/posix-functions/tcgetsid.texi: Mention the new module.
48662         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
48664 2010-09-16  Bruno Haible  <bruno@clisp.org>
48666         Tests for module 'termios'.
48667         * modules/termios-c++-tests: New file.
48668         * modules/termios-tests: New file.
48669         * tests/test-termios-c++.cc: New file.
48670         * tests/test-termios.c: New file.
48672         New module 'termios'.
48673         * modules/termios: New file.
48674         * lib/termios.in.h: New file.
48675         * m4/termios_h.m4: New file.
48676         * doc/posix-headers/termios.texi: Mention the new module.
48678 2010-09-16  Eric Blake  <eblake@redhat.com>
48680         fdutimensat: add an atflag parameter
48681         * lib/fdutimensat.c (fdutimensat): Add new parameter.
48682         * lib/utimens.h (fdutimensat): Update prototype.
48683         * tests/test-fdutimensat.c: Adjust test to match.
48684         * NEWS: Document the change.
48685         Suggested by Paul Eggert.
48687 2010-09-16  Bruno Haible  <bruno@clisp.org>
48689         Fix typos in comments.
48690         * lib/striconveh.h: Fix typo in comment.
48691         * lib/login_tty.c (login_tty): Likewise.
48693 2010-09-15  Bruno Haible  <bruno@clisp.org>
48695         stdlib: clarify MirBSD WEXITSTATUS bug
48696         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
48697         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
48699 2010-09-15  Eric Blake  <eblake@redhat.com>
48701         stdlib: work around MirBSD WEXITSTATUS bug
48702         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
48703         * modules/stdlib (Depends-on): Add sys_wait.
48704         * tests/test-sys_wait.c (main): Enhance test.
48705         * tests/test-stdlib.c (main): Likewise.
48706         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
48708         docs: mention MacOS issue with WEXITSTATUS(constant)
48709         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
48710         issue.
48711         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
48713         strnlen: add tests
48714         * modules/strnlen-tests: New file.
48715         * tests/test-strnlen.c: Likewise.
48717 2010-09-14  Bruno Haible  <bruno@clisp.org>
48719         unistr/base: Avoid link errors when module 'libunistring' is also used.
48720         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
48721         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
48722         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
48723         Declare also when HAVE_LIBUNISTRING is set.
48724         Reported by Pádraig Brady <P@draigbrady.com>.
48726 2010-09-14  Eric Blake  <eblake@redhat.com>
48728         test-rawmemchr: make more robust
48729         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
48730         (Depends-on, configure.ac): Add needed prerequisites to use it.
48731         * modules/memchr-tests (Files, Depends-on, configure.ac):
48732         Likewise, to avoid implicit reliance on memchr module prereqs.
48733         * tests/test-memchr.c (main): Ensure proper masking.
48734         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
48735         reads.
48737         memchr: detect glibc Alpha bug
48738         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
48739         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
48740         Alpha.
48741         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
48742         * tests/test-memchr.c (main): Enhance test.
48743         Reported by Nelson H. F. Beebe.
48745 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
48747         fts, getcwd, glob: audit for dirfd returning -1
48748         * lib/fts.c (opendir): Remove #define; no longer used.
48749         (opendirat): New arg PDIR_FD.  All callers changed.
48750         (fts_build, _opendir2): Use new opendirat to avoid the need for
48751         dirfd, or for checking whether dirfd returns a negative value.
48752         Don't use opendir; always use openat followed by fdopendir.
48753         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
48754         it.
48755         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
48756         returns -1 here.
48757         * modules/fts (Depends-on): Remove dirfd.
48758         * modules/getcwd (Depends-on): Likewise.
48760 2010-09-13  Eric Blake  <eblake@redhat.com>
48762         float: fix broken MirBSD header
48763         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
48764         * doc/posix-headers/float.texi (float.h): Document it.
48766 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
48768         fts: use O_NOFOLLOW to avoid race condition when opening a directory
48769         * lib/fts.c (opendirat): New arg extra_flags.
48770         (__opendir2): Use it to avoid following symlinks when opening
48771         a directory, if symlinks are not supposed to be followed.  See
48772         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00213.html>.
48774         fdopendir: preserve argument fd before returning
48775         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
48776         (fdopendir_with_dup, fd_clone_opendir): New static functions.
48777         (fdopendir): Use them, arranging for FD to be open to the same
48778         directory that it was when it started.  (It might be temporarily
48779         closed while fdopendir is running, so this not thread- or
48780         signal-safe.)  Be careful to do the right thing even when file
48781         descriptors are scarce and dup fails with errno == EMFILE.  See
48782         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00208.html>.
48784 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
48786         regex: Pass the system regex if its only problem is 32-bit regoff_t.
48787         * NEWS: Document change.
48788         * m4/regex.m4: Disable test for regoff_t size.
48790 2010-09-13  Jim Meyering  <meyering@redhat.com>
48792         fts: don't operate on an invalid file descriptor after failed dup
48793         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
48794         negative file descriptor.
48796 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
48798         savedir: add streamsavedir, deprecate fdsavedir
48799         * NEWS: Mention deprecation of fdsavedir.
48800         * lib/savedir.c (streamsavedir): New extern function, whose name
48801         ends in "savedir" to be consistent with the others.  This differs
48802         from savedirstream in that it doesn't close its argument.  The
48803         next version of GNU tar will use this instead of fdsavedir, to
48804         avoid some race conditions and conserve file descriptors.
48805         (savedirstream): Reimplement as a wrapper around streamsavedir.
48806         (fdsavedir): Add a comment deprecating this function.  As far as
48807         I know, only GNU tar used it, and GNU tar doesn't need it any more.
48808         * lib/savedir.h (streamsavedir): New decl.
48809         (fdsavedir): Add a comment deprecating this.
48811 2010-09-10  Bruno Haible  <bruno@clisp.org>
48813         langinfo: Fix last commit.
48814         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
48815         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
48816         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48818 2010-09-10  Bruno Haible  <bruno@clisp.org>
48820         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
48821         * lib/progreloc.c (O_EXEC): Define fallback.
48823 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
48825         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
48826         * NEWS: Document recent changes to fcntl-h.
48827         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
48828         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
48829         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
48830         Similarly for O_SEARCH; this last was already true, but not documented.
48831         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
48832         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
48833         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
48834         Likewise.
48835         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
48836         is zero, not whether it is defined.
48837         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
48838         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
48839         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
48841 2010-09-10  Bruno Haible  <bruno@clisp.org>
48843         langinfo, nl_langinfo: Fix for IRIX 5.3.
48844         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
48845         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
48846         HAVE_LANGINFO_YESEXPR.
48847         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
48848         HAVE_LANGINFO_YESEXPR.
48849         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
48850         HAVE_LANGINFO_T_FMT_AMPM is 0.
48851         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
48852         HAVE_LANGINFO_YESEXPR is 0.
48853         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
48854         NOEXPR.
48855         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
48856         * doc/posix-functions/nl_langinfo.texi: Likewise.
48857         Reported by Eric Blake.
48859 2010-09-10  Bruno Haible  <bruno@clisp.org>
48861         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
48862         * doc/glibc-functions/login_tty.texi: Mention the include file problem
48863         on FreeBSD 8.0 and OpenBSD 4.6.
48864         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
48865         * m4/pty_h.m4 (gl_PTY_H): Likewise.
48866         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
48867         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
48868         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
48869         ac_includes_default.
48870         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
48872 2010-09-09  Eric Blake  <eblake@redhat.com>
48874         strsignal: work around NetBSD bug
48875         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
48876         * lib/string.in.h (includes): Likewise.
48877         * doc/posix-functions/strsignal.texi (strsignal): Document the
48878         bug.
48879         Reported by Nelson H. F. Beebe.
48881         gnulib-tool: work with NetBSD /bin/sh
48882         * gnulib-tool (func_cache_var, func_cache_lookup_module)
48883         (func_get_description, func_get_comment, func_get_status)
48884         (func_get_notice, func_get_applicability, func_get_filelist)
48885         (func_get_dependencies, func_get_autoconf_early_snippet)
48886         (func_get_autoconf_snippet, func_get_automake_snippet)
48887         (func_get_include_directive, func_get_link_directive)
48888         (func_get_license, func_get_maintainer, func_import): Avoid
48889         shell syntax errors from parsing syntax extensions.
48891 2010-09-09  Bruno Haible  <bruno@clisp.org>
48893         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
48894         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
48895         a reliable way to determine whether the 'alias' command works.
48897 2010-09-08  Jim Meyering  <meyering@redhat.com>
48899         init.sh: penalize a set-x-impaired shell; don't disqualify it
48900         * tests/init.sh: Too many shells corrupt application stderr when
48901         you set -x, so we can't afford to disqualify them, since at least
48902         on Irix-6.5, that would disqualify all bourne shells.
48903         Instead, use a two-pass approach.
48904         On the first pass, try to find a shell that meets the stricter
48905         condition that set -x does not corrupt stderr.
48906         If no shell meets the stricter condition, retest each candidate
48907         shell, but without that extra condition.  Finally, when
48908         VERBOSE=yes is requested and set -x might cause trouble, simply
48909         issue a warning and refrain from enabling debug output.
48911 2010-09-08  Eric Blake  <eblake@redhat.com>
48913         unsetenv: fix OpenBSD bug
48914         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
48915         * doc/posix-functions/unsetenv.texi (unsetenv): Update
48916         documentation.
48917         Reported by Jim Meyering.
48919         strtod: work around IRIX 6.5 bug
48920         * lib/strtod.c (strtod): Reparse number on shorter string if
48921         exponent parse was invalid.
48922         * tests/test-strtod.c (main): Add check for "0x1p 2".
48923         Reported by Tom G. Christensen.
48925         getopt: optimize previous patch
48926         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
48927         empty variable.  Speed up awk script.
48928         Reported by Paolo Bonzini.
48930 2010-09-08  Jim Meyering  <meyering@redhat.com>
48932         test.sh: disqualify shells for which set -x corrupts stderr
48933         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
48934         and OpenBSD 4.7.  They make it so with "set -x", environment settings
48935         appear in stderr output.  For example, this command:
48936             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
48937         prints "P=1" on those two systems:
48939 2010-09-08  Bruno Haible  <bruno@clisp.org>
48941         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
48942         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
48943         commands, because some shells ignore redirections when there is an
48944         error in the command lookup.
48945         Reported by Eric Blake.
48947 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
48949         * lib/regex.h: Fix a mention of `regex_compile' (should be
48950         `re_compile_pattern').
48951         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
48952         (re_set_registers): Correct name of parameter in comment.
48954         * doc/regex.texi: Add documentation for missing syntax flags.
48955         Remove commented-out documentation of defunct syntax option
48956         RE_NO_EMPTY_ALTS.
48957         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
48958         Add documentation of re_set_registers.
48959         Document trick to re-use a pattern buffer by setting fastmap manually.
48960         Update documentation of struct re_pattern_buffer per public members.
48961         Uncomment documentation of equivalence class operators and
48962         collating symbol operators, since they are now implemented,
48963         Explain leftmost-longest matching in relation to alternatives.
48964         Tidy documentation of substring matching.
48965         Remove POSIX documentation, which is done better in
48966         glibc, and refer the reader there. Keep BSD API documentation, as
48967         that is not readily available elsewhere.
48969 2010-09-07  Eric Blake  <eblake@redhat.com>
48971         getopt: handle POSIXLY_CORRECT set but not exported
48972         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
48973         export state of POSIXLY_CORRECT, due to bash set -o posix.
48974         Reported by Dustin J. Mitchell.
48976 2010-09-05  Bruno Haible  <bruno@clisp.org>
48978         gnulib-tool: Highlight the changed options.
48979         * gnulib-tool (func_usage): Display the --import, --add-import,
48980         --remove-import explanations in bold font.
48982 2010-09-06  Karl Berry  <karl@gnu.org>
48984         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
48986 2010-09-05  Bruno Haible  <bruno@clisp.org>
48988         uniwidth/width: Update comment.
48989         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
48990         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
48992 2010-09-05  Bruno Haible  <bruno@clisp.org>
48994         isinf, isnan: Relax license.
48995         * modules/isinf (License): Change from GPL to LGPL, with consent from
48996         Ben Pfaff.
48997         * modules/isnan (License): Likewise.
48998         Requested by Ludovic Courtès.
49000 2010-09-04  Bruno Haible  <bruno@clisp.org>
49002         gnulib-tool: Help migration from --import to --add-import or --update.
49003         * gnulib-tool: Emit a verbose error message when --import is used
49004         without any module name.
49006 2010-09-04  Bruno Haible  <bruno@clisp.org>
49008         Update doc about gnulib-tool.
49009         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
49010         'gnulib-tool --update' in more detail.
49011         Reported by Eric Blake.
49013 2010-09-04  Bruno Haible  <bruno@clisp.org>
49015         gnulib-tool: Change --import. New options --add/remove-import.
49016         * gnulib-tool: New options --add-import, --remove-import.
49017         (func_usage): Document them.
49018         (have_associative): Define always.
49019         (func_import): In import mode, don't merge the specified settings with
49020         the cached settings. Implement remove-import mode.
49021         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
49022         Explain when to use them versus --import.
49023         (Simple update): Use --add-import instead of --import.
49024         * NEWS: Mention the change.
49026 2010-09-04  Bruno Haible  <bruno@clisp.org>
49028         * doc/gnulib-tool.texi (Initial import): Update paragraph about
49029         separate gnulib.mk.
49031 2010-09-04  Bruno Haible  <bruno@clisp.org>
49033         gnulib-tool: Don't talk about CVS any more.
49034         * gnulib-tool (func_usage, func_import): Write "version control"
49035         instead of CVS.
49037 2010-09-04  Jim Meyering  <meyering@redhat.com>
49039         maint.mk: avoid obscure sc_copyright_check failure in coreutils
49040         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
49041         false positives (whose names may be ill-chosen) when searching
49042         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
49043         would cause a false-positive.
49045         avoid coreutils "make distcheck" failure
49046         Coreutils tests with an absolute build directory name that contains
49047         a space.  Not quoting this directory name caused a failure.
49048         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
49049         * tests/test-vc-list-files-cvs.sh: Likewise.
49051 2010-09-04  Bruno Haible  <bruno@clisp.org>
49053         gnulib-tool: Avoid error when run in a package without Makefile.am.
49054         * gnulib-tool: When collecting the m4dirs in a package that does not
49055         have a Makefile.am, eliminate those directories that contain no
49056         gnulib-cache.m4. Fix expression that counts these directories.
49058 2010-09-04  Bruno Haible  <bruno@clisp.org>
49060         update-copyright test: Improve output when perl is missing or too old.
49061         * tests/test-update-copyright.sh: Move test of Perl version down after
49062         the test whether Perl exists. Provide an explanation relating Perl's
49063         error message to Automake's SKIP: message.
49065 2010-09-04  Bruno Haible  <bruno@clisp.org>
49067         Don't augment PATH in TESTS_ENVIRONMENT.
49068         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
49069         set abs_aux_dir instead of augmenting PATH.
49070         * modules/vc-list-files-tests (Makefile.am): Likewise.
49071         * tests/test-update-copyright.sh: Augment PATH here.
49072         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
49073         path_prepend_.
49074         * tests/test-vc-list-files-git.sh: Likewise.
49076 2010-09-04  Jim Meyering  <meyering@redhat.com>
49078         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
49079         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
49081 2010-09-04  Bruno Haible  <bruno@clisp.org>
49083         strdup: Fix compilation error in C++ mode.
49084         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
49085         the macro.
49087 2010-09-04  Bruno Haible  <bruno@clisp.org>
49089         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
49090         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
49091         macro into a function.
49092         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
49094 2010-09-04  Bruno Haible  <bruno@clisp.org>
49096         Set PATH_SEPARATOR the same way autoconf does.
49097         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
49098         the value of PATH_SEPARATOR the same way autoconf-generated configure
49099         scripts do.
49100         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
49101         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
49103 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
49105         Set PATH_SEPARATOR the same way autoconf does.
49106         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
49107         the same way autoconf-generated configure scripts do.
49108         * posix-modules: Likewise.
49110 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
49112         hash: fix safe_hasher const typo
49113         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
49114         const; otherwise, there is a type error later.
49116 2010-09-02  Jim Meyering  <meyering@redhat.com>
49118         test-update-copyright.sh: require perl 5.8.0
49119         * tests/test-update-copyright.sh: Require 5.8.0,
49120         which Tom G. Christensen has confirmed is adequate,
49121         while 5.6.1 is not.
49123 2010-09-02  Eric Blake  <eblake@redhat.com>
49125         tests: init.sh improvements for re-exec'ing with zsh
49126         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
49127         -vx through shell re-exec.
49128         Reported by Tom G. Christensen.
49130         wctype: fix typo in previous commit
49131         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
49132         Reported by Ludovic Courtès.
49134 2010-09-02  Jim Meyering  <meyering@redhat.com>
49136         test-update-copyright.sh: skip test if Perl is too old
49137         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
49138         Reported by Tom G. Christensen.
49140 2010-09-02  Bruno Haible  <bruno@clisp.org>
49142         wctype: Avoid compilation error on IRIX 6.5.30.
49143         * lib/wctype.in.h (iswblank): Declare with a replacement if
49144         REPLACE_ISWBLANK is set.
49145         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
49146         declared. Set REPLACE_ISWBLANK.
49147         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
49148         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
49149         * doc/posix-headers/wctype.texi: Likewise.
49150         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49152 2010-09-01  Bruno Haible  <bruno@clisp.org>
49154         New module 'socketlib'.
49155         * modules/socketlib: New file.
49156         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
49157         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
49158         * modules/sockets (Depends-on): Add socketlib.
49159         Suggested by Sam Steingold <sds@gnu.org>.
49161 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
49163         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
49165         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
49166         when one needs search access to a directory but not read access.
49167         On systems where it is available, it works in some cases where
49168         O_RDONLY does not, namely on directories that are searchable but
49169         not readable, and which need only to be searchable.  If O_SEARCH
49170         is not available, fall back to the traditional method of using
49171         O_RDONLY.
49173         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
49174         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
49175         when opening a directory that needs only to be searchable.
49176         * lib/chdir-safer.c (chdir_no_follow): Likewise.
49177         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
49178         * lib/openat-proc.c (openat_proc_name): Likewise.
49179         * lib/openat.c (openat_needs_fchdir): Likewise.
49180         * lib/save-cwd.c (save_cwd): Likewise.
49181         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
49183 2010-08-28  Bruno Haible  <bruno@clisp.org>
49185         New module 'host-cpu-c-abi'.
49186         * modules/host-cpu-c-abi: New file.
49187         * m4/host-cpu-c-abi.m4: New file, based on part of
49188         clisp/src/m4/general.m4.
49189         Requested by Sam Steingold <sds@gnu.org>.
49191 2010-08-31  Eric Blake  <eblake@redhat.com>
49192         and Jim Meyering  <meyering@redhat.com>
49194         hash: factor, and guard against misbehaving hasher function
49195         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
49196         of table->hasher's return value.  Also protect against a hash value
49197         so large that adding it to table->bucket results in a NULL pointer.
49198         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
49199         Use it in place of open-coded check-and-abort.
49201 2010-08-30  Bruno Haible  <bruno@clisp.org>
49203         hash: silence spurious clang warning
49204         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
49205         Reported by Eric Blake.
49207 2010-08-30  Eric Blake  <eblake@redhat.com>
49209         strstr, memmem, strcasestr: avoid leaked shell message
49210         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
49211         FreeBSD.
49212         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49213         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
49215         tests: silence clang warning
49216         * tests/test-malloca.c (do_allocation): Avoid dead store.
49218 2010-08-29  Bruno Haible  <bruno@clisp.org>
49220         gettext: Fix recent mistake.
49221         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
49223 2010-08-29  Bruno Haible  <bruno@clisp.org>
49225         selinux-h: Offer a --without-selinux option.
49226         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
49227         --without-selinux was specified, skip all tests and define
49228         HAVE_SELINUX_SELINUX_H to 0.
49229         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
49230         set LIB_SELINUX to empty.
49231         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
49232         gl_LIBSELINUX. If --without-selinux was specified, replace
49233         selinux/context.h.
49234         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
49236 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49237             Bruno Haible  <bruno@clisp.org>
49239         Make the module 'realloc-gnu' work again on AIX and OSF/1.
49240         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
49241         of HAVE_REALLOC.
49242         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
49243         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
49244         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
49245         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
49247 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49248             Bruno Haible  <bruno@clisp.org>
49250         Make the module 'calloc-gnu' work again on AIX and OSF/1.
49251         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
49252         HAVE_CALLOC.
49253         * lib/xmalloc.c: Update accordingly.
49254         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
49255         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
49256         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
49258 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49259             Bruno Haible  <bruno@clisp.org>
49261         Make the module 'malloc-gnu' work again on AIX and OSF/1.
49262         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
49263         HAVE_MALLOC.
49264         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
49265         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
49266         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
49268 2010-08-29  Bruno Haible  <bruno@clisp.org>
49270         Update modules list.
49271         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
49272         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
49273         (String handling <string.h>): Add astrxfrm.
49274         (File system functions): Add readlinkat.
49276 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49278         Tests for module 'realloc-gnu'.
49279         * modules/realloc-gnu-tests: New file.
49280         * tests/test-realloc-gnu.c: New file.
49282         Tests for module 'calloc-gnu'.
49283         * modules/calloc-gnu-tests: New file.
49284         * tests/test-calloc-gnu.c: New file.
49286         Tests for module 'malloc-gnu'.
49287         * modules/malloc-gnu-tests: New file.
49288         * tests/test-malloc-gnu.c: New file.
49290 2010-08-28  Bruno Haible  <bruno@clisp.org>
49292         Rename module 'realloc' -> 'realloc-gnu'.
49293         * modules/realloc-gnu: New file, copied from modules/realloc.
49294         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
49295         obsolete.
49296         * modules/mgetgroups (Depends-on): Update.
49297         * doc/posix-functions/realloc.texi: Update.
49298         * NEWS: Mention the change.
49300         Rename module 'calloc' -> 'calloc-gnu'.
49301         * modules/calloc-gnu: New file, copied from modules/calloc.
49302         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
49303         obsolete.
49304         * doc/posix-functions/calloc.texi: Update.
49305         * NEWS: Mention the change.
49307         Rename module 'malloc' -> 'malloc-gnu'.
49308         * modules/malloc-gnu: New file, copied from modules/malloc.
49309         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
49310         obsolete.
49311         * modules/argp (Depends-on): Update.
49312         * modules/regex (Depends-on): Update.
49313         * doc/posix-functions/malloc.texi: Update.
49314         * NEWS: Mention the change.
49316 2010-08-28  Eric Blake  <eblake@redhat.com>
49318         pread, pwrite: add missing dependency
49319         * modules/pread (Depends-on): Add extensions.
49320         * modules/pwrite (Depends-on): Likewise.
49322 2010-08-28  Bruno Haible  <bruno@clisp.org>
49324         unistr/u*-strchr: Fix tests dependencies.
49325         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
49326         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
49327         Reported by Ian Beckwith <ianb@erislabs.net>.
49329 2010-08-28  Bruno Haible  <bruno@clisp.org>
49331         read-file: Don't occupy too much unused memory.
49332         * lib/read-file.c (fread_file): Shrink the buffer at the end.
49334 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
49335             Eric Blake  <eblake@redhat.com>
49336             Bruno Haible  <bruno@clisp.org>
49338         read-file: Avoid memory reallocations with regular files.
49339         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
49340         (fread_file): With regular files, use the remaining length as the
49341         initial buffer size.  Check against overflow.
49342         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
49343         sys_stat.
49345 2010-08-28  Bruno Haible  <bruno@clisp.org>
49347         ftello: Relax license.
49348         * modules/ftello (License): Relax to LGPLv2+.
49349         Reported by Eric Blake.
49351 2010-08-28  Bruno Haible  <bruno@clisp.org>
49353         Avoid relocwrapper link errors due to gnulib replacement functions.
49354         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
49355         function.
49356         Reported by Ben Pfaff <blp@cs.stanford.edu>.
49358 2010-08-28  Bruno Haible  <bruno@clisp.org>
49360         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
49361         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
49362         defined.
49363         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
49364         Suggested by Eric Blake.
49366 2010-08-28  Bruno Haible  <bruno@clisp.org>
49368         sys_socket, netdb: Ensure socklen_t gets defined.
49369         * modules/sys_socket (Depends-on): Add socklen.
49370         * modules/netdb (Depends-on): Likewise.
49371         * modules/getaddrinfo (Depends-on): Remove socklen.
49372         * modules/getsockopt (Depends-on): Likewise.
49373         * modules/setsockopt (Depends-on): Likewise.
49374         * tests/test-sys_socket.c: Check that socklen_t is defined.
49375         * tests/test-netdb.c: Likewise.
49376         * m4/socklen.m4: Update comments.
49377         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49379 2010-08-27  Eric Blake  <eblake@redhat.com>
49381         login_tty: add missing dependency
49382         * modules/login_tty (Depends-on): Add pty.
49384 2010-08-26  Eric Blake  <eblake@redhat.com>
49386         lib-symbol-versions: fix m4 quoting
49387         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
49388         format for AC_LINK_IFELSE.
49390         glob: fix compile test
49391         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
49393         btowc: fix missing file
49394         * modules/btowc (Files): Also ship locale-fr.m4.
49396         lseek: fix link test
49397         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
49398         AC_LINK_IFELSE.
49400         include_next: silence autoconf 2.68 warning
49401         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
49402         AC_COMPILE_IFELSE as special.
49403         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
49404         autoconf < 2.68.
49406         acl: fix compilation test
49407         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
49408         AC_COMPILE_IFELSE.
49410 2010-08-26  Bruno Haible  <bruno@clisp.org>
49412         Modernize AC_TRY_RUN invocations.
49413         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
49414         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
49415         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
49416         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
49417         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
49418         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
49419         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
49420         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
49421         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
49422         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
49423         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
49424         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
49425         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
49426         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
49427         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
49428         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
49429         gl_MBRLEN_NUL_RETVAL): Likewise.
49430         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
49431         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
49432         Likewise.
49433         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
49434         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
49435         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
49436         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
49437         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
49438         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
49439         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
49440         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
49441         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
49442         Likewise.
49443         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
49444         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
49445         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
49446         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
49447         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
49448         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
49449         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
49450         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
49451         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
49452         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
49454 2010-08-26  Bruno Haible  <bruno@clisp.org>
49456         Modernize AC_TRY_LINK invocations.
49457         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
49458         AC_TRY_LINK.
49459         * m4/argp.m4 (gl_ARGP): Likewise.
49460         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
49461         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
49462         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
49463         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
49464         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
49465         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
49466         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
49467         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
49468         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
49469         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
49470         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
49471         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
49472         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
49473         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
49474         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
49475         * m4/hostent.m4 (gl_HOSTENT): Likewise.
49476         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
49477         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
49478         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
49479         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
49480         Likewise.
49481         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
49482         Likewise.
49483         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
49484         Likewise.
49485         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
49486         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
49487         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
49488         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
49489         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
49490         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
49491         * m4/servent.m4 (gl_SERVENT): Likewise.
49492         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
49493         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
49494         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
49495         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
49496         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
49497         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
49498         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
49499         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
49500         * modules/tsearch-tests (configure.ac): Likewise.
49502 2010-08-26  Bruno Haible  <bruno@clisp.org>
49504         Modernize AC_TRY_COMPILE invocations.
49505         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
49506         AC_TRY_COMPILE.
49507         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
49508         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
49509         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
49510         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
49511         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
49512         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
49513         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
49514         * m4/lock.m4 (gl_LOCK): Likewise.
49515         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
49516         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
49517         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
49518         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
49519         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
49520         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
49521         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
49522         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
49523         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
49524         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
49525         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
49526         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
49527         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
49528         extraneous semicolon.
49530 2010-08-26  Jim Meyering  <meyering@redhat.com>
49532         stat-time: relax license LGPL
49533         * modules/stat-time (License): Change from GPL to LGPL,
49534         with consent from all contributors, for use in libguile.
49535         Requested by Ludovic Courtès.
49537 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
49539         poll: return immediately on POLLHUP.
49540         * lib/poll.c (poll): Always set timeout before wait_timeout is
49541         computed.
49543 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49545         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
49546         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
49547         rmdir ("dir/.//"), unlinkat.
49549 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
49551         stdbool: avoid spurious failure with modern xlc
49552         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
49554 2010-08-24  Bruno Haible  <bruno@clisp.org>
49556         getloadavg: simplify code
49557         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
49558         gl_have_func. Update comments.
49560 2010-08-24  Eric Blake  <eblake@redhat.com>
49562         getloadavg: don't define SVR4 on cygwin
49563         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
49564         only define SVR4 when -lkvm is required.
49565         Reported by Yaakov Selkowitz.
49567 2010-08-24  Bruno Haible  <bruno@clisp.org>
49569         priv-set: fix comment
49570         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
49572 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
49574         priv-set: fix comments
49575         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
49576         to match code, as suggested by David Bartley in:
49577         http://lists.gnu.org/r/bug-tar/2010-08/msg00018.html
49579 2010-08-23  Eric Blake  <eblake@redhat.com>
49581         stdbool: avoid rejecting clang
49582         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
49583         * tests/test-stdbool.c: Enable more tests if using the system
49584         <stdbool.h> instead of the gnulib replacement.
49585         (main): Move xlc bug test to a runtime test for all compilers.
49586         Reported by Anders Kaseorg.
49588         argz: fix shell quoting issue
49589         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
49590         Reported by Charles Wilson.
49592 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
49593             Erik Faye-Lund <kusmabite@gmail.com>
49595         poll, select: handle ERROR_BROKEN_PIPE.
49596         * lib/poll.c (win32_compute_revents): Return POLLHUP when
49597         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
49598         * lib/select.c (win32_compute_revents): Do not mark a pipe
49599         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
49601 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
49603         fts: allow compilation with C++
49604         * lib/fts_.h: Specify extern "C" linkage with C++.
49606 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49608         Fix gnulib-tool sed script de-commentation for AIX sed.
49609         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
49610         sed.
49612 2010-08-17  Eric Blake  <eblake@redhat.com>
49614         test-stddef: test for (some) offsetof bugs
49615         * tests/test-stddef.c: Enhance test to ensure correct type of
49616         offsetof.
49617         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
49618         that we are not fixing at this time.
49620 2010-08-15  Bruno Haible  <bruno@clisp.org>
49622         stpncpy: Allow stpncpy to be defined as a macro.
49623         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
49624         if it's already correctly declared.
49625         * lib/string.in.h (stpncpy): Undefine before redefining.
49626         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
49628 2010-08-14  Bruno Haible  <bruno@clisp.org>
49630         Rename module 'memxfrm' to 'amemxfrm'.
49631         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
49632         (amemxfrm): Renamed from memxfrm.
49633         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
49634         (amemxfrm): Renamed from memxfrm.
49635         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
49636         * NEWS: Mention the change.
49637         * MODULES.html.sh (String handling <string.h>): Update.
49638         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
49639         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
49640         * lib/unicase/u16-casexfrm.c: Likewise.
49641         * lib/unicase/u32-casexfrm.c: Likewise.
49642         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
49643         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
49644         * lib/uninorm/u16-normxfrm.c: Likewise.
49645         * lib/uninorm/u32-normxfrm.c: Likewise.
49646         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
49647         memxfrm.
49648         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
49649         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
49650         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
49651         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
49652         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
49653         Suggested by Paul Eggert.
49655 2010-08-14  Bruno Haible  <bruno@clisp.org>
49657         Tests for module 'astrxfrm'.
49658         * modules/astrxfrm-tests: New file.
49659         * tests/test-astrxfrm.c: New file.
49661         New module 'astrxfrm'.
49662         * lib/astrxfrm.h: New file.
49663         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
49664         * modules/astrxfrm: New file.
49666 2010-08-14  Reuben Thomas  <rrt@sc3d.org>
49668         regex: Tweak doc.
49669         * doc/regex.texi (Overview): Don't mention regex.c.
49670         (GNU Regular Expression Compiling): Likewise.
49671         (Match-end-of-line Operator): Mention 'not_eol'.
49673 2010-08-14  Brian Gough  <bjg@gnu.org>
49674             Bruno Haible  <bruno@clisp.org>
49676         git-merge-changelog: add doc relating to use with bzr and hg.
49677         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
49679 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
49681         pthread: fix pthread.h creation for srcdir != builddir
49682         * modules/pthread (Makefile.am): Fix the rule to work also in a
49683         non-srcdir build.
49685 2010-08-13  Karl Berry  <karl@gnu.org>
49687         * doc/regex.texi (Predefined Syntaxes): @smallexample.
49688         * doc/posix-*/*: force line break before @url of POSIX
49689         specifications.
49690         Suggested by Werner Lemberg.
49692 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
49694         strtod: fix const diagnostic
49695         * lib/strtod.c (strtod): Don't assign const char * to char *,
49696         as this elicits a warning from GCC when warnings are enabled.
49698 2010-08-10  Pádraig Brady  <P@draigbrady.com>
49699         and Eric Blake  <eblake@redhat.com>
49701         copy-acl: ignore ENOTSUP on HP-UX
49702         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
49703         so that it is available for HP-UX.
49704         * lib/copy-acl.c (qcopy_acl): Use it.
49705         Reported by Patrick M. Callahan.
49707 2010-08-10  Eric Blake  <eblake@redhat.com>
49709         open, chown: relax license
49710         * modules/open (License): Change to LGPLv2+, with consent by all
49711         authors, for use in augeas.
49712         * modules/chown (License): Likewise.
49713         * modules/lchown (Likewise): Likewise.
49714         Requested by Adam Stokes.
49716 2010-08-09  Karl Berry  <karl@gnu.org>
49718         * build-aux/ar-lib: new file, import from Automake.
49719         * config/srclist.txt: autocheck for updates.
49721 2010-08-09  Eric Blake  <eblake@redhat.com>
49723         readlinkat: adjust client modules
49724         * modules/areadlinkat (Depends-on): Use readlinkat, not
49725         symlinkat.
49726         * modules/areadlinkat-with-size (Depends-on): Likewise.
49728         mknod: be more vocal about danger of running tests as root
49729         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
49730         root, since that is just asking for problems.
49731         Suggested by Bruno Haible, based on a report by Rainer Tammer.
49733         readlinkat: split into its own module
49734         * modules/symlinkat: Split readlinkat...
49735         * modules/readlinkat: ...into separate module.
49736         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
49737         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
49738         * lib/symlinkat.c (readlinkat): Move...
49739         * lib/readlinkat.c: ...into new file.
49740         * modules/symlinkat-tests: Split readlinkat test...
49741         * modules/readlinkat-tests: ...into separate module.
49742         * tests/test-symlinkat.c: Split...
49743         * tests/test-readlinkat.c: ...into new file.
49744         * NEWS: Document the split.
49745         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
49746         * lib/unistd.in.h (readlinkat): Likewise.
49747         Suggested by Bruno Haible.
49749 2010-08-08  Bruno Haible  <bruno@clisp.org>
49751         memxfrm: Speed up.
49752         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
49753         that usually only one call to strxfrm is necessary for each string
49754         part.
49755         Reported by Paul Eggert <eggert@cs.ucla.edu>.
49757 2010-08-07  Karl Berry  <karl@gnu.org>
49759         * doc/posix-headers/limits.texi,
49760         * doc/posix-functions/malloc.texi,
49761         * doc/posix-functions/strsignal.texi: missing @item.
49762         * doc/ld-version-script.texi: spurious leading i.
49763         * doc/regex.texi (Interval Operators): no commas inside @var.
49765 2010-08-01  Bruno Haible  <bruno@clisp.org>
49767         Integrate the regex documentation.
49768         * doc/gnulib.texi: Define 'cn' index.
49769         (Regular expressions): New a chapter that includes regex.texi and
49770         regexprops-generic.texi.
49771         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
49772         syntax.
49774         Whitespace cleanup.
49775         * doc/regex.texi: Remove trailing spaces.
49777         Add regex documentation.
49778         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
49779         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
49780         Written by Kathy A. Hargreaves and Karl Berry.
49782 2010-08-01  Bruno Haible  <bruno@clisp.org>
49784         link: Update documentation.
49785         * doc/posix-functions/link.texi: Update regarding Solaris.
49787 2010-07-31  Bruno Haible  <bruno@clisp.org>
49789         Update modules list.
49790         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
49791         (String handling <string.h>): Add memcmp2, memxfrm.
49792         (Container data structures): Add xlist, xsublist, xoset.
49793         (Core language properties): Add alignof, unused-parameter.
49794         (Process control, Numeric conversion functions <stdlib.h>): Renamed
49795         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
49796         (Unibyte characters <ctype.h>): New section.
49797         (String handling <string.h>): New section.
49798         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
49799         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
49800         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
49801         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
49802         tan, tanh, tanl, y0, y1, yn.
49803         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
49804         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
49805         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
49806         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
49807         unlockpt, vdprintf, vdprintf-posix.
49808         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
49809         (File system functions): Add concat-filename, sys_file, sys_ioctl,
49810         xconcat-filename.
49811         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
49812         getdtablesize, pipe2, pipe2-safer.
49813         (Security): New section.
49814         (Networking functions): Add accept4.
49815         (Signal handling): Add sigpipe.
49816         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
49817         mbmemcasecoll.
49818         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
49819         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
49820         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
49821         pipe-filter-ii.
49822         (Misc): Add argp-version-etc, login_tty, parse-duration.
49824 2010-07-31  Bruno Haible  <bruno@clisp.org>
49826         Improve doc in MODULES.html.
49827         * modules/linkat (Description): Add the word "function".
49828         * modules/mkfifo (Description): Likewise.
49829         * modules/mknod (Description): Likewise.
49830         * modules/remove (Description): Likewise.
49831         * modules/renameat (Description): Likewise.
49832         * modules/stat (Description): Likewise.
49833         * modules/symlink (Description): Likewise.
49834         * modules/unlink (Description): Likewise.
49836 2010-07-31  Bruno Haible  <bruno@clisp.org>
49838         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
49839         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
49840         option --enable/disable-c++ instead of --enable/disable-cxx.
49841         * NEWS: Mention the change.
49843 2010-07-31  Bruno Haible  <bruno@clisp.org>
49845         readlink, areadlink: Relax test a bit.
49846         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
49847         alternative to ENOTDIR.
49848         * tests/test-areadlink.h (test_areadlink): Likewise.
49849         Reported by Rainer Tammer.
49851 2010-07-31  Bruno Haible  <bruno@clisp.org>
49853         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
49854         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
49855         character, perform the search using U_STRCHR.
49856         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
49857         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
49858         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
49859         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
49860         Suggested by Paolo Bonzini.
49862 2010-07-31  Bruno Haible  <bruno@clisp.org>
49864         unistr/u*-strstr: Fix dependencies.
49865         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
49866         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
49867         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
49869 2010-07-31  Bruno Haible  <bruno@clisp.org>
49871         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
49872         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
49873         the beginning of the loop.
49874         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
49875         cases in 'switch' statement.
49877         unistr/u8-strchr: Fix several bugs.
49878         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
49879         the string. When not found, return NULL, not a pointer near the end.
49881         More tests for unistr/u8-strchr.
49882         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
49883         that the function does not read past the first occurrence of the byte
49884         being searched.
49885         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
49886         * tests/unistr/test-u16-strchr.c (main): New function.
49887         * tests/unistr/test-u32-strchr.c (main): New function.
49889 2010-07-31  Bruno Haible  <bruno@clisp.org>
49891         posix-modules: Ignore backup files of documentation files.
49892         * posix-modules: grep only through files named *.texi.
49894 2010-07-31  Bruno Haible  <bruno@clisp.org>
49896         symlinkat: Fix documentation.
49897         * doc/posix-functions/readlinkat.texi: Fix module name.
49899 2010-07-31  Bruno Haible  <bruno@clisp.org>
49901         fchownat: Replace also when chown has the trailing slash bug.
49902         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
49903         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
49904         introduced on 2010-04-10.
49905         Reported by Rainer Tammer.
49907 2010-07-31  Bruno Haible  <bruno@clisp.org>
49909         linkat: Work around AIX 7.1 bug.
49910         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
49911         whether linkat handles trailing slash correctly. If not, replace linkat
49912         and define LINKAT_TRAILING_SLASH_BUG.
49913         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
49914         check whether (fd1,file1) points to a directory if file1 or file2 ends
49915         in a slash. Code taken from lib/link.c.
49916         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
49917         Reported by Rainer Tammer.
49919 2010-07-31  Bruno Haible  <bruno@clisp.org>
49921         Correctly determine whether pow is available in libc on AIX 7 with xlc.
49922         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
49923         This disables an xlc optimization that was causing wrong test results.
49924         Reported by Rainer Tammer.
49926 2010-07-31  Bruno Haible  <bruno@clisp.org>
49928         iconv: Work around AIX 6.1..7.1 bug.
49929         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
49930         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
49931         cross-compiling, guess no on all versions of AIX.
49932         Reported by Rainer Tammer.
49934 2010-07-31  Bruno Haible  <bruno@clisp.org>
49936         readlink: Relax test a bit.
49937         * tests/test-readlink.h (test_readlink): Allow different errno value
49938         when readlink is called with a file name that ends in / and refers to
49939         a file.
49940         Suggested by Eric Blake.
49941         Reported by Rainer Tammer.
49943 2010-07-31  Bruno Haible  <bruno@clisp.org>
49945         copysign: Does not require -lm on glibc systems.
49946         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
49947         gl_COMMON_DOUBLE_MATHFUNC.
49948         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
49950 2010-07-31  Bruno Haible  <bruno@clisp.org>
49952         duplocale: Work around AIX 7.1 bug.
49953         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
49954         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
49955         * lib/duplocale.c (rpl_duplocale): Update comment.
49956         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
49957         Reported by Rainer Tammer.
49959 2010-07-30  Bruno Haible  <bruno@clisp.org>
49961         dirfd: Avoid link error on AIX 7.1.
49962         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
49963         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
49964         exist, set REPLACE_DIRFD.
49965         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
49966         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
49967         * doc/posix-functions/dirfd.texi: Update.
49968         Reported by Rainer Tammer.
49970 2010-07-30  Eric Blake  <eblake@redhat.com>
49972         strtod: next round of AIX fixes
49973         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
49974         exponent.
49975         * tests/test-strtod.c (main): Enhance tests.
49976         * doc/posix-functions/strtod.texi (strtod): Document next bug.
49977         Reported by Rainer Tammer.
49979         futimens: fix configure check
49980         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
49981         Reported by Bruno Haible.
49983 2010-07-30  Bruno Haible  <bruno@clisp.org>
49985         getline: Update regarding AIX.
49986         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
49987         Reported by Rainer Tammer.
49989 2010-07-30  Bruno Haible  <bruno@clisp.org>
49991         wcwidth: Drop replacement on AIX 7.
49992         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
49993         AIX 7.
49994         Reported by Rainer Tammer.
49996 2010-07-30  Bruno Haible  <bruno@clisp.org>
49998         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
49999         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
50000         a 'char *'.
50001         Reported by Rainer Tammer.
50003 2010-07-30  Bruno Haible  <bruno@clisp.org>
50005         unlink: Update regarding AIX.
50006         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
50007         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
50008         Reported by Rainer Tammer.
50010 2010-07-30  Bruno Haible  <bruno@clisp.org>
50012         symlink: Update regarding AIX.
50013         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
50014         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
50015         Reported by Rainer Tammer.
50017 2010-07-30  Bruno Haible  <bruno@clisp.org>
50019         strndup: Update regarding AIX.
50020         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
50021         AIX 7.
50022         Reported by Rainer Tammer.
50024 2010-07-30  Bruno Haible  <bruno@clisp.org>
50026         stat: Update regarding AIX.
50027         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
50028         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
50029         Reported by Rainer Tammer.
50031 2010-07-30  Bruno Haible  <bruno@clisp.org>
50033         truncl: Fix autoconf test.
50034         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
50035         whether truncl works.
50036         Reported by Rainer Tammer.
50038 2010-07-30  Bruno Haible  <bruno@clisp.org>
50040         round: Update regarding AIX.
50041         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
50042         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
50043         Reported by Rainer Tammer.
50045 2010-07-30  Bruno Haible  <bruno@clisp.org>
50047         rename: Update regarding AIX.
50048         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
50049         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
50050         Reported by Rainer Tammer.
50052 2010-07-30  Bruno Haible  <bruno@clisp.org>
50054         printf.m4: Update regarding AIX.
50055         * m4/printf.m4: Update comments regarding AIX.
50056         Reported by Rainer Tammer.
50058 2010-07-30  Bruno Haible  <bruno@clisp.org>
50060         iconv: Update regarding AIX.
50061         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
50062         AIX 7.
50063         Reported by Rainer Tammer.
50065 2010-07-30  Bruno Haible  <bruno@clisp.org>
50067         getopt: Update regarding AIX.
50068         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
50069         no on AIX.
50070         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
50071         Reported by Rainer Tammer.
50073 2010-07-30  Bruno Haible  <bruno@clisp.org>
50075         ldexpl; Update regarding AIX.
50076         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
50077         on AIX 7.
50078         Reported by Rainer Tammer.
50080 2010-07-30  Bruno Haible  <bruno@clisp.org>
50082         frexpl: Update regarding AIX.
50083         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
50084         on AIX 7.
50085         Reported by Rainer Tammer.
50087 2010-07-30  Bruno Haible  <bruno@clisp.org>
50089         open, fopen: Update regarding AIX.
50090         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
50091         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
50092         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
50093         * doc/posix-functions/fopen.texi: Likewise.
50094         Reported by Rainer Tammer.
50096 2010-07-30  Bruno Haible  <bruno@clisp.org>
50098         chown: Update doc regarding AIX.
50099         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
50100         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
50101         Reported by Rainer Tammer.
50103 2010-07-30  Eric Blake  <eblake@redhat.com>
50105         strtod: fix bug in replacement function on AIX
50106         * lib/strtod.c (strtod): Special case broken "0x" parse in
50107         underlying strtod.
50108         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
50109         * doc/posix-functions/strtod.texi (strtod): Likewise.
50110         Reported by Rainer Tammer.
50112 2010-07-30  Bruno Haible  <bruno@clisp.org>
50114         mbrlen: Fix cross-compilation guess for AIX.
50115         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
50116         guess. Leftover from 2008-12-22.
50118 2010-07-30  Bruno Haible  <bruno@clisp.org>
50120         mbrtowc: Fix cross-compilation guess for AIX.
50121         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
50122         guess. Leftover from 2008-12-21.
50124 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
50126         init.sh: work around trap limitation of some shells
50127         * tests/init.sh (setup_): Move exit trap outside of shell function.
50129 2010-07-29  Eric Blake  <eblake@redhat.com>
50131         strtod: aid debugging
50132         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
50133         understanding why strtod is rejected.
50135 2010-07-28  Bruno Haible  <bruno@clisp.org>
50137         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
50138         * lib/unistr/u8-chr.c: Include <string.h>.
50139         * tests/unistr/test-u8-chr.c: Likewise.
50140         * tests/unistr/test-u16-chr.c: Likewise.
50141         * tests/unistr/test-u32-chr.c: Likewise.
50142         * tests/unistr/test-u8-strchr.c: Likewise.
50143         * tests/unistr/test-u16-strchr.c: Likewise.
50144         * tests/unistr/test-u32-strchr.c: Likewise.
50145         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
50146         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
50147         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
50148         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
50150 2010-07-28  Bruno Haible  <bruno@clisp.org>
50152         Use spaces for indentation, not tabs.
50153         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
50155 2010-07-27  Bruno Haible  <bruno@clisp.org>
50157         mbspcasecmp: Fix function specification.
50158         * lib/string.in.h (mbspcasecmp): Fix specification comment.
50159         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
50160         Reported by Eric Blake <eblake@redhat.com>.
50162 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
50164         timespec: use cast and not conditional, as truncation isn't possible
50165         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
50166         instead of a conditional.  Comment about the situation in more detail.
50167         This undoes most of the 2009-10-29 patch.
50169 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
50171         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
50172         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
50173         * lib/unistr/u8-strchr.c: Likewise.
50174         * modules/unistr/u8-chr: Depend on memchr.
50176         unistr/u*-strchr: add tests
50177         * modules/unistr/u8-strchr-tests: New file.
50178         * modules/unistr/u16-strchr-tests: New file.
50179         * modules/unistr/u32-strchr-tests: New file.
50180         * tests/unistr/test-strchr.h: New file.
50181         * tests/unistr/test-u8-strchr.c: New file.
50182         * tests/unistr/test-u16-strchr.c: New file.
50183         * tests/unistr/test-u32-strchr.c: New file.
50185         unistr/u*-chr: test multibyte sequences more
50186         * tests/unistr/test-chr.h: Do complete testing of the characters in the
50187         test vector.
50188         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
50189         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
50190         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
50192         unistr/u*-chr: test multibyte sequences
50193         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
50195         unistr/u*-chr: prepare for multibyte tests
50196         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
50197         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
50198         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
50199         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
50200         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
50201         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
50203 2010-07-18  Bruno Haible  <bruno@clisp.org>
50205         unistr/u8-strchr: Optimize non-ASCII argument case.
50206         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
50207         because the first byte often matches anyway.
50208         Reported by Pádraig Brady <P@draigbrady.com>.
50210 2010-07-15  Karl Berry  <karl@gnu.org>
50212         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
50214 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
50216         getcwd: on Solaris, work better if ancestors are inaccessible
50217         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
50218         buffer and size, try again with a large buffer.  This works better
50219         on Solaris, since its getcwd succeeds even if the path to the root
50220         is inaccessible, and this is helpful in common cases such as .zfs
50221         hidden directories.  Problem reported by J Chapman Flack in
50222         http://lists.gnu.org/r/bug-tar/2010-06/msg00000.html
50223         Use system getcwd if it's declared, not merely if it's partly
50224         working; use the partly-working test only to avoid needless effort
50225         if the system getcwd fails.
50226         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
50227         comment that was already obsolete and is now even more obsolete.
50228         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
50229         now might call strdup.
50231 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
50233         pthread: Add enough so that coreutils/src/sort.c compiles.
50234         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
50235         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
50236         gnulib. Include <sched.h> and <time.h>, as per POSIX.
50237         Include <sys/types.h>, in case it defines pthread_t.
50238         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
50239         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
50240         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
50241         (pthread_rwlockattr_t, pthread_spinlock_t):
50242         New typedefs, if HAVE_PTHREAD_T is not defined.
50243         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
50244         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
50245         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
50246         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
50247         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
50248         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
50249         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
50250         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
50251         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
50252         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
50253         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
50254         New macros.
50255         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
50256         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
50257         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
50258         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
50259         (pthread_spin_unlock): New dummy functions.
50260         (pthread_create): Return EAGAIN; don't set errno.
50261         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
50262         require AC_C_INLINE.
50263         * modules/pthread (Depends-on): Add sched, time.
50264         (pthread.h): Use AM_V_GEN.
50266 2010-07-13  Bruno Haible  <bruno@clisp.org>
50268         striconveh: Don't malloc memory if the result buffer is sufficient.
50269         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
50270         buffer if its size is sufficient.
50271         Reported by Ludovic Courtès <ludo@gnu.org>.
50273 2010-07-13  Bruno Haible  <bruno@clisp.org>
50275         strtod: Add safety check.
50276         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
50278 2010-07-12  Bruno Haible  <bruno@clisp.org>
50280         Unify tests that set gl_cv_func_ldexpl_no_libm.
50281         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
50282         gl_FUNC_LDEXPL.
50283         (gl_FUNC_LDEXPL): Invoke it.
50284         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
50286 2010-07-12  Bruno Haible  <bruno@clisp.org>
50288         Unify tests that set gl_cv_func_ldexp_no_libm.
50289         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
50290         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
50291         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
50292         (configure.ac): Simply invoke gl_FUNC_LDEXP.
50293         * modules/strtod (Files): Add m4/ldexp.m4.
50295 2010-07-12  Bruno Haible  <bruno@clisp.org>
50297         Unify tests that set gl_cv_func_frexpl_no_libm.
50298         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
50299         gl_FUNC_FREXPL_NO_LIBM.
50300         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
50301         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
50303 2010-07-12  Bruno Haible  <bruno@clisp.org>
50305         Unify tests that set gl_cv_func_frexp_no_libm.
50306         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
50307         gl_FUNC_FREXP_NO_LIBM.
50308         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
50309         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
50311 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
50313         memcoll: clarify sizes versus lengths, document better, and tweak perf
50314         * lib/memcoll.c (strcoll_loop, memcoll0):
50315         Improve quality of descriptive comments.  Name variables
50316         consistently as to whether they are lengths (which do not include
50317         terminating null) versus sizes (which do).
50318         * lib/xmemcoll.c (xmemcoll0): Likewise.
50319         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
50320         returned when s1size == 0; this is easier to compile and saves
50321         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
50323 2010-07-12  Bruno Haible  <bruno@clisp.org>
50325         Tests for module '_Exit'.
50326         * modules/_Exit-tests: New file.
50327         * tests/test-_Exit.sh: New file.
50328         * tests/test-_Exit.c: New file.
50330         New module '_Exit'.
50331         * lib/stdlib.in.h (__attribute__): New macro.
50332         (_Exit): New declaration.
50333         * lib/_Exit.c: New file.
50334         * m4/_Exit.m4: New file.
50335         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
50336         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
50337         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
50338         * modules/_Exit: New file.
50339         * tests/test-stdlib-c++.cc (_Exit): Check signature.
50340         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
50342 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
50344         strtod: make it more-accurate typically, and don't require libm
50345         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
50346         Include limits.h.  Don't include string.h.
50347         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
50348         (locale_isspace): New function, so that no casts are needed to
50349         check whether *s is a space.
50350         (ldexp): Provide an unused dummy if not available.
50351         (scale_radix_exp, parse_number, underlying_strtod): New functions.
50352         (strtod): Use them.  This implementation prefers to use the
50353         underlying strtod if available, falling back on our own code
50354         only to fix known bugs.  This is more likely to produce an
50355         accurate result.  Also, it avoids the use of libm functions.
50356         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
50357         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
50358         was absent, but it caused a test failure with coreutils.
50359         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
50360         with libm.
50361         * modules/strtod (Makefile.am, Link): libm is no longer needed.
50362         * modules/strtod-tests (Makefile.am): Likewise.
50364 2010-07-11  Pádraig Brady  <P@draigBrady.com>
50365             Bruno Haible  <bruno@clisp.org>
50367         unistr/u8-strchr: Optimize ASCII argument case.
50368         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
50370 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
50372         (x)memcoll: minor tweaks
50373         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
50374         is after the type that it qualifies.
50375         (memcoll0): Likewise.
50376         * lib/memcoll.h (memcoll0): Likewise.
50377         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
50378         * lib/xmemcoll.h (xmemcoll0): Likewise.
50379         * lib/memcoll.c (memcoll0): Correct the comment.  This function
50380         differs from memcoll in that the NUL byte is part of the argument.
50381         Omit the abort-checks, as performance is a real issue here.  Plus,
50382         the checks were wrong anyway (an off-by-one error).  Omit local
50383         variable 'diff', as it's a bit clearer that way.
50384         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
50385         no longer needed.
50387 2010-07-08  Chen Guo  <chenguo4@yahoo.com>
50389         (x)memcoll: speedup when input is known to be NUL delimited
50390         * lib/memcoll.c: Include stdlib.
50391         (memcoll0): New function.
50392         (strcoll_loop): New function, refactored for use in both memcoll
50393         and memcoll0.
50394         * lib/memcoll.h (memcoll0): Add prototype.
50395         * lib/xmemcoll.c (xmemcoll0): New function.
50396         (collate_error): New function, refactored for use in both xmemcoll
50397         and xmemcoll0.
50398         * lib/xmemcoll.h (xmemcoll0): Add prototype.
50399         * m4/memcoll.m4: add inline invocation.
50401 2010-07-06  Pádraig Brady  <P@draigBrady.com>
50403         * build-aux/bootstrap: Remove any local translations
50404         from the translation project synchronization directory,
50405         so that local only translations are not distributed.
50407 2010-07-04  Bruno Haible  <bruno@clisp.org>
50409         fsusage: Clarify which code applies to which platforms.
50410         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
50411         platform.
50412         * lib/fsusage.c (get_fs_usage): Likewise.
50414 2010-07-04  Bruno Haible  <bruno@clisp.org>
50416         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
50417         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
50418         Reported by Martin Lambers <marlam@marlam.de>.
50420 2010-07-04  Jim Meyering  <meyering@redhat.com>
50422         hash: once again explicitly disallow insertion of NULL
50423         * lib/hash.c (hash_insert0): Reinstate just-removed test:
50424         inserting a NULL pointer cannot work with these functions.
50425         Add a comment with details.
50426         This reverts part of the 2010-07-01 commit, 5bef1a35
50427         "hash: extend module to deal with non-pointer keys".
50429 2010-07-01  Bruno Haible  <bruno@clisp.org>
50431         stdbool: Update doc.
50432         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
50433         Info from Christian Weisgerber <naddy@mips.inka.de>.
50435 2010-07-01  Jim Meyering  <meyering@redhat.com>
50437         hash: extend module to deal with non-pointer keys
50438         * lib/hash.c (hash_insert0): New interface, much like hash_insert
50439         but that allows insertion of non-pointer entries.
50440         Do not disallow an ENTRY value of NULL.
50441         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
50442         * lib/hash.h (hash_insert0): Declare.
50444 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
50446         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
50447         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
50448         not present (i.e. with autoconf 2.59 and when using gettextize, not
50449         gnulib), require AC_GNU_SOURCE instead.
50451 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
50453         idpriv-drop: Fix tests.
50454         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
50455         not to the test-idpriv-droptemp program.
50457 2010-06-29  Bruno Haible  <bruno@clisp.org>
50459         string: Fix syntax error with g++ 2.96.
50460         * lib/string.in.h (__pure__): Remove definition.
50461         (_GL_ATTRIBUTE_PURE): New macro.
50462         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
50463         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
50464         Reported by Christian Weisgerber <naddy@mips.inka.de>.
50466 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
50468         unitypes: Fix bug introduced on 2010-05-18.
50469         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
50471 2010-06-22  Eric Blake  <eblake@redhat.com>
50473         memmem: slight optimization
50474         * lib/str-two-way.h (critical_factorization): Update comments.
50475         Reduce work during factorization phase.
50476         Reported by Carlos Bueno <carlos@bueno.org>.
50478 2010-06-21  Bruno Haible  <bruno@clisp.org>
50480         Fix HAVE_CALLOC_POSIX misnomer.
50481         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
50482         !HAVE_CALLOC_POSIX.
50483         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
50484         HAVE_CALLOC_POSIX.
50485         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
50486         instead of HAVE_CALLOC_POSIX.
50487         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
50488         HAVE_CALLOC_POSIX.
50490         Use modern idiom for calloc() replacement.
50491         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
50492         AC_FUNC_CALLOC.
50493         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
50494         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
50495         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
50496         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
50497         (gl_REPLACE_CALLOC): New macro.
50499 2010-06-21  Bruno Haible  <bruno@clisp.org>
50501         Fix HAVE_REALLOC_POSIX misnomer.
50502         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
50503         !HAVE_REALLOC_POSIX.
50504         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
50505         HAVE_REALLOC_POSIX.
50506         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
50507         instead of HAVE_REALLOC_POSIX.
50508         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
50509         HAVE_REALLOC_POSIX.
50511         Use modern idiom for realloc() replacement.
50512         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
50513         AC_FUNC_REALLOC.
50514         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
50515         Autoconf's AC_FUNC_REALLOC.
50516         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
50517         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
50518         (gl_REPLACE_REALLOC): New macro.
50519         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
50521 2010-06-21  Bruno Haible  <bruno@clisp.org>
50523         Fix HAVE_MALLOC_POSIX misnomer.
50524         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
50525         !HAVE_MALLOC_POSIX.
50526         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
50527         HAVE_MALLOC_POSIX.
50528         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
50529         instead of HAVE_MALLOC_POSIX.
50530         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
50531         HAVE_MALLOC_POSIX.
50533         Use modern idiom for malloc() replacement.
50534         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
50535         AC_FUNC_MALLOC.
50536         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
50537         Autoconf's AC_FUNC_MALLOC.
50538         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
50539         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
50540         (gl_REPLACE_MALLOC): New macro.
50541         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
50543 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
50545         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
50546         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
50547         This macro takes 3 arguments, not 4.
50549 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
50551         ipv6: fix detection under mingw
50552         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
50553         in6_addr.
50555 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
50557         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
50558         that strtod() works when cross-compiling to a glibc version known
50559         to work.
50561 2010-06-15  Bruno Haible  <bruno@clisp.org>
50563         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
50565 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
50567         select: Correct timeout.
50568         * lib/select.c (rpl_select): Compute wait_timeout correctly.
50570 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
50572         git-version-gen: init shell var to avoid env var influence
50573         * build-aux/git-version-gen (v): Init shell var to empty.
50575 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
50577         priv-set: Don't assume that priv.h exists merely because getppriv does.
50578         See Jan Andersen's bug report about AIX 5L in
50579         http://lists.gnu.org/r/bug-tar/2010-06/msg00019.html
50580         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
50581         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
50582         * lib/priv-set.h: Likewise.
50583         * tests/test-priv-set.c: Likewise.
50585 2010-06-13  Bruno Haible  <bruno@clisp.org>
50587         relocatable: Make it easier to test whether to install wrappers.
50588         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
50589         RELOCATABLE_VIA_WRAPPER.
50591 2010-06-13  Bruno Haible  <bruno@clisp.org>
50593         gnulib-tool: Display specified modules and dependencies differently.
50594         * gnulib-tool (func_show_module_list): New function.
50595         (func_import, func_create_testdir): Invoke it.
50596         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
50598 2010-06-13  Bruno Haible  <bruno@clisp.org>
50600         gnulib-tool: Align code of func_import and func_create_testdir.
50601         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
50602         specified_modules.
50604 2010-06-12  Jim Meyering  <meyering@redhat.com>
50606         test-inttostr: avoid spurious failure on Solaris 9
50607         * tests/test-inttostr.c (main): Skip the test when snprintf fails
50608         to accept "%ju".  Reported by Bruno Haible.
50610 2010-06-11  Jim Meyering  <meyering@redhat.com>
50612         test-sys_socket: mark variables as used more readably
50613         * tests/test-sys_socket.c (main): Mark otherwise unused variables
50614         as "used" explicitly via (void) statement casts.  This is more
50615         readable than using them in an artificial return expression.
50616         Suggestion from Bruno Haible.
50618 2010-06-11  Bruno Haible  <bruno@clisp.org>
50620         Avoid some more warnings from "gcc -Wwrite-strings".
50621         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
50622         to 'const char *'.
50623         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
50624         * tests/test-c-strcasestr.c (main): Likewise.
50625         * tests/test-mbscasestr1.c (main): Likewise.
50626         * tests/test-mbscasestr2.c (main): Likewise.
50627         * tests/test-memmem.c (main): Likewise.
50628         * tests/test-strstr.c (main): Likewise.
50629         * tests/test-strcasestr.c (main): Likewise.
50631 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50633         init.sh: change framework_failure_ to fail with status 99, not 1
50634         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
50635         automake's parallel-tests rule that this is an unexpected failure,
50636         even if the test is listed in XFAIL_TESTS.
50638 2010-06-11  Jim Meyering  <meyering@redhat.com>
50640         test-inttostr: avoid warnings about 4-6KB literal strings
50641         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
50642         Include "macros.h", for its definition of ASSERT.
50643         (CK): s/assert/ASSERT/
50644         * modules/inttostr-tests (Files): Add macros.h.
50646         init.sh: don't use $ME_ or skip_ before they are defined
50647         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
50648         their first uses.  Also hoist their companions: warn_, fail_,
50649         framework_failure_, $stderr_fileno.  Prompted by a patch from
50650         Stefano Lattarini.
50652         test-sys_socket: avoid set-but-not-used warnings from gcc
50653         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
50654         avoid warning about set-but-not-used variables.
50656         test-xvasprintf: avoid 'const' discard warnings
50657         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
50658         "const" when assigning from literal strings.
50659         (test_xasprintf): Add "void" in function argument list to placate
50660         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
50662         tests: avoid compilation warnings in argmatch and exclude tests...
50663         in packages that define ARGMATCH_DIE_DECL, like coreutils.
50664         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
50665         Since it always exits, declare with the "noreturn" attribute.
50666         * tests/test-argmatch.c: Likewise.
50668         tests: avoid 'const' discard warnings in mbsstr tests
50669         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
50670         * tests/test-mbsstr2.c (main): Likewise.
50672         test-verify: avoid warning from gcc's -Wmissing-declarations
50673         * tests/test-verify.c (function): Declare to be static.
50675         test-inttostr.c: include <string.h> for use of strcmp
50676         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
50678         test-linkat: avoid failed assertion on "other" architectures
50679         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
50680         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
50681         sparc: https://bugs.launchpad.net/bugs/591968
50683 2010-06-11  Jim Meyering  <meyering@redhat.com>
50685         printf.m4: avoid autoconf's "Expanded Before Required" warning
50686         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
50687         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
50688         autoconf warning.
50690 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
50692         Replacement header templates are now named with ".in", not "_".
50693         * doc/gnulib-intro.texi: Correct.
50695 2010-06-10  Jim Meyering  <meyering@redhat.com>
50697         inttostr-tests: depend on snprintf, not snprintf-posix
50698         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
50699         snprintf-posix, to avoid this aclocal failure:
50700           missing file gnulib-tests/vasnprintf.c
50701           configure.ac:45: error: expected source file, required through \
50702           AC_LIBSOURCES, not found
50704 2010-06-10  Jim Meyering  <meyering@redhat.com>
50706         inttostr: add a new function, inttostr, and tests
50707         The namesake function was not available.  The existence of the
50708         template file, inttostr.c makes its addition nontrivial.
50709         * lib/anytostr.c: Rename from inttostr.c.
50710         (anytostr): Rename from inttostr.
50711         * lib/inttostr.c: New file.
50712         * modules/inttostr (Files): Add anytostr.c.
50713         (Makefile.am): Set lib_SOURCES instead of ...
50714         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
50715         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
50716         * lib/offtostr.c: Likewise.
50717         * lib/uinttostr.c: Likewise.
50718         * lib/umaxtostr.c: Likewise.
50719         * modules/inttostr-tests: New file.
50720         * tests/test-inttostr.c: New file.  Test these functions.
50722 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
50723             Bruno Haible  <bruno@clisp.org>
50725         Add "Extending Gnulib" chapter to manual.
50726         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
50727         chapter.
50728         (Extending Gnulib): New chapter.
50729         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
50730         chapter.
50732 2010-06-09  Bruno Haible  <bruno@clisp.org>
50734         Avoid relocwrapper link errors due to gnulib replacement functions.
50735         * lib/areadlink.c: Use the system's malloc, realloc functions.
50736         (areadlink): Set errno to ENOMEM explicitly.
50737         * modules/areadlink (Depends-on): Remove malloc-posix.
50738         Reported by Ben Pfaff <blp@cs.stanford.edu>.
50740 2010-06-09  Bruno Haible  <bruno@clisp.org>
50742         Avoid relocwrapper link errors due to gnulib replacement functions.
50743         * lib/canonicalize-lgpl.c: Use the system's malloc function.
50744         * lib/malloca.c: Likewise.
50745         * lib/relocatable.c: Likewise.
50746         * lib/progreloc.c: Use the system's malloc, sprintf functions.
50747         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
50748         * lib/setenv.c: Use the system's malloc, realloc functions.
50749         * lib/strerror.c: Use the system's sprintf function.
50750         Reported by Ben Pfaff <blp@cs.stanford.edu>.
50752 2010-06-04  Bruno Haible  <bruno@clisp.org>
50754         Prefer documented low-level autoconf macro names.
50755         * m4/lib-link.m4: Use m4_translit instead of translit.
50756         * m4/environ.m4: Likewise.
50757         * m4/mathfunc.m4: Likewise.
50758         * m4/onceonly.m4: Likewise.
50759         * m4/stdint.m4: Likewise.
50760         Suggested by Eric Blake.
50762 2010-06-04  Martin Lambers  <marlam@marlam.de>
50763             Bruno Haible  <bruno@clisp.org>
50765         havelib: Allow library names with '+' characters.
50766         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
50767         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
50769 2010-06-09  Bruno Haible  <bruno@clisp.org>
50771         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
50772         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
50773         realloc failed.
50775 2010-06-08  Peter Simons  <simons@cryp.to>
50777         maint.mk: make the news-check rule more configurable
50778         * top/maint.mk (news-check-lines-spec): New variable.
50779         (news-check): Use "sed -n 1,10p" in place of "head".
50781 2010-06-07  Jim Meyering  <meyering@redhat.com>
50783         do-release-commit-and-tag: fix typo in --help
50784         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
50786         regex: avoid new dead-code warning with gcc-4.6.0
50787         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
50788         if-block containing a while-loop.  It's been unused for at least
50789         5 years.
50791 2010-06-05  Bruno Haible  <bruno@clisp.org>
50793         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
50794         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
50796 2010-06-04  Bruno Haible  <bruno@clisp.org>
50798         Update to GNU gettext 0.18.1.
50799         * modules/gettext (configure.ac): Require gettext infrastructure from
50800         version 0.18.1.
50802 2010-06-03  Bruno Haible  <bruno@clisp.org>
50804         Don't use AC_LIBOBJ with file names in subdirectories.
50805         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
50806         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
50807         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
50808         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
50809         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
50810         gl_LIBUNISTRING_LIBSOURCE.
50811         (Makefile.am): Augment lib_SOURCES here, conditionally.
50812         * NEWS: Drop requirement for Automake option 'subdir-objects'.
50814 2010-06-03  Bruno Haible  <bruno@clisp.org>
50816         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
50817         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
50818         expansion does not end with a newline.
50819         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
50820         unnecessary newline.
50822 2010-06-03  Bruno Haible  <bruno@clisp.org>
50824         Reduce dependencies.
50825         * tests/test-quotearg.h: New file, extracted from
50826         tests/test-quotearg.c.
50827         * tests/test-quotearg-simple.c: New file, extracted from
50828         tests/test-quotearg.c.
50829         * tests/test-quotearg.c: Don't include <ctype.h>.
50830         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
50831         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
50832         use_quote_double_quotes, use_quotearg_colon): Moved to
50833         tests/test-quotearg.h.
50834         (results_g, flag_results, custom_quotes, custom_results): Moved
50835         to tests/test-quotearg-simple.c.
50836         (main): Moved the part that does not depend on gettext to
50837         tests/test-quotearg-simple.c. Return 77 if the test cannot be
50838         performed.
50839         * modules/quotearg-simple: New file.
50840         * modules/quotearg-simple-tests: New file.
50841         * modules/quotearg (Depends-on): Add quotearg-simple.
50842         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
50843         (Files): Add tests/test-quotearg.h.
50844         Reported by Paolo Bonzini.
50846 2010-06-03  Bruno Haible  <bruno@clisp.org>
50848         Reduce dependencies.
50849         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
50851 2010-06-03  Bruno Haible  <bruno@clisp.org>
50853         time: Undefine more broken macros.
50854         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
50855         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
50856         Reported by Eric Blake.
50858 2010-06-03  Bruno Haible  <bruno@clisp.org>
50860         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
50861         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
50862         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
50863         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
50864         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
50865         Reported by Ludovic Courtès <ludo@gnu.org>.
50867 2010-06-02  Eric Blake  <eblake@redhat.com>
50869         time: work with mingw + pthreads-win32 library
50870         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
50871         if timespec is defined only in pthread.h.
50872         * modules/time (Makefile.am): Substitute it.
50873         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
50874         <pthread.h>, when needed.
50875         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
50876         from the library.
50878 2010-05-31  Bruno Haible  <bruno@clisp.org>
50880         Avoid expanding two macros in the wrong order.
50881         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
50882         gl_LIBUNISTRING if it is defined.
50883         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
50884         autoconf >= 2.64.
50885         Reported by Ludovic Courtès <ludo@gnu.org>.
50887 2010-05-27  Jim Meyering  <meyering@redhat.com>
50889         maint.mk: also prohibit "#undef" of always-defined symbols
50890         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
50891         Allow more than one space before the symbol name.
50892         (sc_prohibit_always-defined_macros): Use grep's -E, now that
50893         the regexp uses alternation.
50895 2010-05-26  Eric Blake  <eblake@redhat.com>
50897         maint.mk: avoid echo -e
50898         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
50899         Convert all uses of echo -* to printf.
50900         Reported by Matthias Bolte.
50902 2010-05-25  Bruno Haible  <bruno@clisp.org>
50904         Update to GNU gettext 0.18, part 2.
50905         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
50906         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
50908 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50910         Add missing include in test-pwrite.c.
50911         * tests/test-pwrite.c: Include string.h, for strcmp.
50913 2010-05-24  Bruno Haible  <bruno@clisp.org>
50915         * NEWS: Mention requirement for Automake option 'subdir-objects'.
50917 2010-05-24  Bruno Haible  <bruno@clisp.org>
50919         Don't use conversion with transliteration in u{8,16,32}_strcoll.
50920         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
50921         iconveh_error argument.
50922         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
50923         U_STRCONV_TO_LOCALE.
50924         * lib/unistr/u16-strcoll.c: Likewise.
50925         * lib/unistr/u32-strcoll.c: Likewise.
50926         * modules/unistr/u8-strcoll (Depends-on): Add
50927         uniconv/u8-strconv-to-enc, localcharset. Remove
50928         uniconv/u8-strconv-to-locale.
50929         (configure.ac): Bump version number.
50930         * modules/unistr/u16-strcoll (Depends-on): Add
50931         uniconv/u16-strconv-to-enc, localcharset. Remove
50932         uniconv/u16-strconv-to-locale.
50933         (configure.ac): Bump version number.
50934         * modules/unistr/u32-strcoll (Depends-on): Add
50935         uniconv/u32-strconv-to-enc, localcharset. Remove
50936         uniconv/u32-strconv-to-locale.
50937         (configure.ac): Bump version number.
50939 2010-05-24  Bruno Haible  <bruno@clisp.org>
50941         Avoid a test failure on NetBSD 5.0.
50942         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
50943         an iconv() bug.
50945 2010-05-24  Bruno Haible  <bruno@clisp.org>
50947         Adjust #include directive style.
50948         * modules/regex (Includes): Recommend to write <regex.h>.
50950 2010-05-24  Bruno Haible  <bruno@clisp.org>
50952         regex: Don't require alloca.
50953         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
50954         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
50955         only inside if (0).
50957 2010-05-23  Jim Meyering  <meyering@redhat.com>
50959         test-renameat.c: include <sys/stat.h>
50960         * tests/test-renameat.c: Include <sys/stat.h>; required for
50961         definition of S_IS* macros.
50963 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
50965         Update maintainer documentation for 'relocatable-prog' module.
50966         * doc/relocatable-maint.texi: Update.
50967         Comments by Bruno Haible.
50969 2010-05-23  Bruno Haible  <bruno@clisp.org>
50971         git-merge-changelog: Enable --split-merged-entry by default.
50972         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
50973         (usage): Don't mention this option any more.
50974         Reported by Ralf Wildenhues.
50976 2010-05-23  Jim Meyering  <meyering@redhat.com>
50978         test-pwrite: do not leave behind a test file named "out"
50979         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
50980         The trivial-looking use of init.sh is really necessary.
50981         It ensures that the temporary file, "out", is created in
50982         a temporary directory, and removed upon termination.
50983         * tests/test-pwrite.sh: Re-add file.
50984         * modules/pwrite-tests: Reference it.
50986 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50988         Fix output redirection buglet in init.sh.
50989         * tests/init.sh: Fix redirection of stderr.
50991 2010-05-20  Simon Josefsson  <simon@josefsson.org>
50993         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
50995 2010-05-17  Simon Josefsson  <simon@josefsson.org>
50997         * modules/valgrind-tests: New file.
50998         * m4/valgrind-tests.m4: New file.
50999         * doc/valgrind-tests.texi: New file.
51000         * doc/gnulib.texi (Running self-tests under valgrind): New
51001         section.
51003 2010-05-19  Bruno Haible  <bruno@clisp.org>
51005         Clean up dead code in recent commit.
51006         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
51007         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
51008         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
51009         Suggested by Paolo Bonzini.
51011 2010-05-19  Bruno Haible  <bruno@clisp.org>
51013         Avoid valgrind error reports from libunistring.
51014         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
51015         * modules/libunistring (Files): Add it.
51016         * modules/libunistring-optional (Files): Likewise.
51018 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
51019             Bruno Haible  <bruno@clisp.org>
51021         New module 'libunistring-optional'.
51022         * modules/libunistring-optional: New file.
51023         * m4/libunistring-base.m4: New file.
51024         * m4/libunistring-optional.m4: New file.
51025         * lib/unicase.in.h: Renamed from lib/unicase.h.
51026         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
51027         * lib/unictype.in.h: Renamed from lib/unictype.h.
51028         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
51029         * lib/uniname.in.h: Renamed from lib/uniname.h.
51030         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
51031         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
51032         * lib/unistr.in.h: Renamed from lib/unistr.h.
51033         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
51034         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
51035         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
51036         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
51037         gl_LIBUNISTRING. If the library was found, determine the installed
51038         version and set LIBUNISTRING_VERSION.
51039         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
51040         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
51041         handle a configuration option --with-included-libunistring.
51042         * modules/libunistring (Files): Add m4/absolute-header.m4.
51043         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
51044         Add m4/libunistring-base.m4.
51045         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51046         (Makefile.am): Build unicase.h from unicase.in.h.
51047         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
51048         Add m4/libunistring-base.m4.
51049         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51050         (Makefile.am): Build uniconv.h from uniconv.in.h.
51051         * modules/unictype/base (Files): Use unictype.in.h instead of
51052         unictype.h. Add m4/libunistring-base.m4.
51053         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51054         (Makefile.am): Build unictype.h from unictype.in.h.
51055         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
51056         Add m4/libunistring-base.m4.
51057         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51058         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
51059         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
51060         Add m4/libunistring-base.m4.
51061         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51062         (Makefile.am): Build uniname.h from uniname.in.h.
51063         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
51064         Add m4/libunistring-base.m4.
51065         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51066         (Makefile.am): Build uninorm.h from uninorm.in.h.
51067         * modules/unistdio/base (Files): Use unistdio.in.h instead of
51068         unistdio.h. Add m4/libunistring-base.m4.
51069         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51070         (Makefile.am): Build unistdio.h from unistdio.in.h.
51071         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
51072         Add m4/libunistring-base.m4.
51073         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51074         (Makefile.am): Build unistr.h from unistr.in.h.
51075         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
51076         Add m4/libunistring-base.m4.
51077         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51078         (Makefile.am): Build unitypes.h from unitypes.in.h.
51079         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
51080         Add m4/libunistring-base.m4.
51081         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51082         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
51083         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
51084         uniwidth.h. Add m4/libunistring-base.m4.
51085         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51086         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
51087         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
51088         instead of augmenting lib_SOURCES.
51089         * modules/unicase/empty-suffix-context: Likewise.
51090         * modules/unicase/locale-language: Likewise.
51091         * modules/unicase/tolower: Likewise.
51092         * modules/unicase/totitle: Likewise.
51093         * modules/unicase/toupper: Likewise.
51094         * modules/unicase/u8-casecmp: Likewise.
51095         * modules/unicase/u8-casecoll: Likewise.
51096         * modules/unicase/u8-casefold: Likewise.
51097         * modules/unicase/u8-casexfrm: Likewise.
51098         * modules/unicase/u8-ct-casefold: Likewise.
51099         * modules/unicase/u8-ct-tolower: Likewise.
51100         * modules/unicase/u8-ct-totitle: Likewise.
51101         * modules/unicase/u8-ct-toupper: Likewise.
51102         * modules/unicase/u8-is-cased: Likewise.
51103         * modules/unicase/u8-is-casefolded: Likewise.
51104         * modules/unicase/u8-is-lowercase: Likewise.
51105         * modules/unicase/u8-is-titlecase: Likewise.
51106         * modules/unicase/u8-is-uppercase: Likewise.
51107         * modules/unicase/u8-prefix-context: Likewise.
51108         * modules/unicase/u8-suffix-context: Likewise.
51109         * modules/unicase/u8-tolower: Likewise.
51110         * modules/unicase/u8-totitle: Likewise.
51111         * modules/unicase/u8-toupper: Likewise.
51112         * modules/unicase/u16-casecmp: Likewise.
51113         * modules/unicase/u16-casecoll: Likewise.
51114         * modules/unicase/u16-casefold: Likewise.
51115         * modules/unicase/u16-casexfrm: Likewise.
51116         * modules/unicase/u16-ct-casefold: Likewise.
51117         * modules/unicase/u16-ct-tolower: Likewise.
51118         * modules/unicase/u16-ct-totitle: Likewise.
51119         * modules/unicase/u16-ct-toupper: Likewise.
51120         * modules/unicase/u16-is-cased: Likewise.
51121         * modules/unicase/u16-is-casefolded: Likewise.
51122         * modules/unicase/u16-is-lowercase: Likewise.
51123         * modules/unicase/u16-is-titlecase: Likewise.
51124         * modules/unicase/u16-is-uppercase: Likewise.
51125         * modules/unicase/u16-prefix-context: Likewise.
51126         * modules/unicase/u16-suffix-context: Likewise.
51127         * modules/unicase/u16-tolower: Likewise.
51128         * modules/unicase/u16-totitle: Likewise.
51129         * modules/unicase/u16-toupper: Likewise.
51130         * modules/unicase/u32-casecmp: Likewise.
51131         * modules/unicase/u32-casecoll: Likewise.
51132         * modules/unicase/u32-casefold: Likewise.
51133         * modules/unicase/u32-casexfrm: Likewise.
51134         * modules/unicase/u32-ct-casefold: Likewise.
51135         * modules/unicase/u32-ct-tolower: Likewise.
51136         * modules/unicase/u32-ct-totitle: Likewise.
51137         * modules/unicase/u32-ct-toupper: Likewise.
51138         * modules/unicase/u32-is-cased: Likewise.
51139         * modules/unicase/u32-is-casefolded: Likewise.
51140         * modules/unicase/u32-is-lowercase: Likewise.
51141         * modules/unicase/u32-is-titlecase: Likewise.
51142         * modules/unicase/u32-is-uppercase: Likewise.
51143         * modules/unicase/u32-prefix-context: Likewise.
51144         * modules/unicase/u32-suffix-context: Likewise.
51145         * modules/unicase/u32-tolower: Likewise.
51146         * modules/unicase/u32-totitle: Likewise.
51147         * modules/unicase/u32-toupper: Likewise.
51148         * modules/unicase/ulc-casecmp: Likewise.
51149         * modules/unicase/ulc-casecoll: Likewise.
51150         * modules/unicase/ulc-casexfrm: Likewise.
51151         * modules/uniconv/u8-conv-from-enc: Likewise.
51152         * modules/uniconv/u8-conv-to-enc: Likewise.
51153         * modules/uniconv/u8-strconv-from-enc: Likewise.
51154         * modules/uniconv/u8-strconv-from-locale: Likewise.
51155         * modules/uniconv/u8-strconv-to-enc: Likewise.
51156         * modules/uniconv/u8-strconv-to-locale: Likewise.
51157         * modules/uniconv/u16-conv-from-enc: Likewise.
51158         * modules/uniconv/u16-conv-to-enc: Likewise.
51159         * modules/uniconv/u16-strconv-from-enc: Likewise.
51160         * modules/uniconv/u16-strconv-from-locale: Likewise.
51161         * modules/uniconv/u16-strconv-to-enc: Likewise.
51162         * modules/uniconv/u16-strconv-to-locale: Likewise.
51163         * modules/uniconv/u32-conv-from-enc: Likewise.
51164         * modules/uniconv/u32-conv-to-enc: Likewise.
51165         * modules/uniconv/u32-strconv-from-enc: Likewise.
51166         * modules/uniconv/u32-strconv-from-locale: Likewise.
51167         * modules/uniconv/u32-strconv-to-enc: Likewise.
51168         * modules/uniconv/u32-strconv-to-locale: Likewise.
51169         * modules/unictype/bidicategory-byname: Likewise.
51170         * modules/unictype/bidicategory-name: Likewise.
51171         * modules/unictype/bidicategory-of: Likewise.
51172         * modules/unictype/bidicategory-test: Likewise.
51173         * modules/unictype/block-list: Likewise.
51174         * modules/unictype/block-test: Likewise.
51175         * modules/unictype/category-C: Likewise.
51176         * modules/unictype/category-Cc: Likewise.
51177         * modules/unictype/category-Cf: Likewise.
51178         * modules/unictype/category-Cn: Likewise.
51179         * modules/unictype/category-Co: Likewise.
51180         * modules/unictype/category-Cs: Likewise.
51181         * modules/unictype/category-L: Likewise.
51182         * modules/unictype/category-Ll: Likewise.
51183         * modules/unictype/category-Lm: Likewise.
51184         * modules/unictype/category-Lo: Likewise.
51185         * modules/unictype/category-Lt: Likewise.
51186         * modules/unictype/category-Lu: Likewise.
51187         * modules/unictype/category-M: Likewise.
51188         * modules/unictype/category-Mc: Likewise.
51189         * modules/unictype/category-Me: Likewise.
51190         * modules/unictype/category-Mn: Likewise.
51191         * modules/unictype/category-N: Likewise.
51192         * modules/unictype/category-Nd: Likewise.
51193         * modules/unictype/category-Nl: Likewise.
51194         * modules/unictype/category-No: Likewise.
51195         * modules/unictype/category-P: Likewise.
51196         * modules/unictype/category-Pc: Likewise.
51197         * modules/unictype/category-Pd: Likewise.
51198         * modules/unictype/category-Pe: Likewise.
51199         * modules/unictype/category-Pf: Likewise.
51200         * modules/unictype/category-Pi: Likewise.
51201         * modules/unictype/category-Po: Likewise.
51202         * modules/unictype/category-Ps: Likewise.
51203         * modules/unictype/category-S: Likewise.
51204         * modules/unictype/category-Sc: Likewise.
51205         * modules/unictype/category-Sk: Likewise.
51206         * modules/unictype/category-Sm: Likewise.
51207         * modules/unictype/category-So: Likewise.
51208         * modules/unictype/category-Z: Likewise.
51209         * modules/unictype/category-Zl: Likewise.
51210         * modules/unictype/category-Zp: Likewise.
51211         * modules/unictype/category-Zs: Likewise.
51212         * modules/unictype/category-and: Likewise.
51213         * modules/unictype/category-and-not: Likewise.
51214         * modules/unictype/category-byname: Likewise.
51215         * modules/unictype/category-name: Likewise.
51216         * modules/unictype/category-none: Likewise.
51217         * modules/unictype/category-of: Likewise.
51218         * modules/unictype/category-or: Likewise.
51219         * modules/unictype/category-test: Likewise.
51220         * modules/unictype/combining-class: Likewise.
51221         * modules/unictype/ctype-alnum: Likewise.
51222         * modules/unictype/ctype-alpha: Likewise.
51223         * modules/unictype/ctype-blank: Likewise.
51224         * modules/unictype/ctype-cntrl: Likewise.
51225         * modules/unictype/ctype-digit: Likewise.
51226         * modules/unictype/ctype-graph: Likewise.
51227         * modules/unictype/ctype-lower: Likewise.
51228         * modules/unictype/ctype-print: Likewise.
51229         * modules/unictype/ctype-punct: Likewise.
51230         * modules/unictype/ctype-space: Likewise.
51231         * modules/unictype/ctype-upper: Likewise.
51232         * modules/unictype/ctype-xdigit: Likewise.
51233         * modules/unictype/decimal-digit: Likewise.
51234         * modules/unictype/digit: Likewise.
51235         * modules/unictype/mirror: Likewise.
51236         * modules/unictype/numeric: Likewise.
51237         * modules/unictype/property-alphabetic: Likewise.
51238         * modules/unictype/property-ascii-hex-digit: Likewise.
51239         * modules/unictype/property-bidi-arabic-digit: Likewise.
51240         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
51241         * modules/unictype/property-bidi-block-separator: Likewise.
51242         * modules/unictype/property-bidi-boundary-neutral: Likewise.
51243         * modules/unictype/property-bidi-common-separator: Likewise.
51244         * modules/unictype/property-bidi-control: Likewise.
51245         * modules/unictype/property-bidi-embedding-or-override: Likewise.
51246         * modules/unictype/property-bidi-eur-num-separator: Likewise.
51247         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
51248         * modules/unictype/property-bidi-european-digit: Likewise.
51249         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
51250         * modules/unictype/property-bidi-left-to-right: Likewise.
51251         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
51252         * modules/unictype/property-bidi-other-neutral: Likewise.
51253         * modules/unictype/property-bidi-pdf: Likewise.
51254         * modules/unictype/property-bidi-segment-separator: Likewise.
51255         * modules/unictype/property-bidi-whitespace: Likewise.
51256         * modules/unictype/property-byname: Likewise.
51257         * modules/unictype/property-combining: Likewise.
51258         * modules/unictype/property-composite: Likewise.
51259         * modules/unictype/property-currency-symbol: Likewise.
51260         * modules/unictype/property-dash: Likewise.
51261         * modules/unictype/property-decimal-digit: Likewise.
51262         * modules/unictype/property-default-ignorable-code-point: Likewise.
51263         * modules/unictype/property-deprecated: Likewise.
51264         * modules/unictype/property-diacritic: Likewise.
51265         * modules/unictype/property-extender: Likewise.
51266         * modules/unictype/property-format-control: Likewise.
51267         * modules/unictype/property-grapheme-base: Likewise.
51268         * modules/unictype/property-grapheme-extend: Likewise.
51269         * modules/unictype/property-grapheme-link: Likewise.
51270         * modules/unictype/property-hex-digit: Likewise.
51271         * modules/unictype/property-hyphen: Likewise.
51272         * modules/unictype/property-id-continue: Likewise.
51273         * modules/unictype/property-id-start: Likewise.
51274         * modules/unictype/property-ideographic: Likewise.
51275         * modules/unictype/property-ids-binary-operator: Likewise.
51276         * modules/unictype/property-ids-trinary-operator: Likewise.
51277         * modules/unictype/property-ignorable-control: Likewise.
51278         * modules/unictype/property-iso-control: Likewise.
51279         * modules/unictype/property-join-control: Likewise.
51280         * modules/unictype/property-left-of-pair: Likewise.
51281         * modules/unictype/property-line-separator: Likewise.
51282         * modules/unictype/property-logical-order-exception: Likewise.
51283         * modules/unictype/property-lowercase: Likewise.
51284         * modules/unictype/property-math: Likewise.
51285         * modules/unictype/property-non-break: Likewise.
51286         * modules/unictype/property-not-a-character: Likewise.
51287         * modules/unictype/property-numeric: Likewise.
51288         * modules/unictype/property-other-alphabetic: Likewise.
51289         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
51290         * modules/unictype/property-other-grapheme-extend: Likewise.
51291         * modules/unictype/property-other-id-continue: Likewise.
51292         * modules/unictype/property-other-id-start: Likewise.
51293         * modules/unictype/property-other-lowercase: Likewise.
51294         * modules/unictype/property-other-math: Likewise.
51295         * modules/unictype/property-other-uppercase: Likewise.
51296         * modules/unictype/property-paired-punctuation: Likewise.
51297         * modules/unictype/property-paragraph-separator: Likewise.
51298         * modules/unictype/property-pattern-syntax: Likewise.
51299         * modules/unictype/property-pattern-white-space: Likewise.
51300         * modules/unictype/property-private-use: Likewise.
51301         * modules/unictype/property-punctuation: Likewise.
51302         * modules/unictype/property-quotation-mark: Likewise.
51303         * modules/unictype/property-radical: Likewise.
51304         * modules/unictype/property-sentence-terminal: Likewise.
51305         * modules/unictype/property-soft-dotted: Likewise.
51306         * modules/unictype/property-space: Likewise.
51307         * modules/unictype/property-terminal-punctuation: Likewise.
51308         * modules/unictype/property-test: Likewise.
51309         * modules/unictype/property-titlecase: Likewise.
51310         * modules/unictype/property-unassigned-code-value: Likewise.
51311         * modules/unictype/property-unified-ideograph: Likewise.
51312         * modules/unictype/property-uppercase: Likewise.
51313         * modules/unictype/property-variation-selector: Likewise.
51314         * modules/unictype/property-white-space: Likewise.
51315         * modules/unictype/property-xid-continue: Likewise.
51316         * modules/unictype/property-xid-start: Likewise.
51317         * modules/unictype/property-zero-width: Likewise.
51318         * modules/unictype/scripts: Likewise.
51319         * modules/unictype/syntax-c-ident: Likewise.
51320         * modules/unictype/syntax-c-whitespace: Likewise.
51321         * modules/unictype/syntax-java-ident: Likewise.
51322         * modules/unictype/syntax-java-whitespace: Likewise.
51323         * modules/unilbrk/u8-possible-linebreaks: Likewise.
51324         * modules/unilbrk/u8-width-linebreaks: Likewise.
51325         * modules/unilbrk/u16-possible-linebreaks: Likewise.
51326         * modules/unilbrk/u16-width-linebreaks: Likewise.
51327         * modules/unilbrk/u32-possible-linebreaks: Likewise.
51328         * modules/unilbrk/u32-width-linebreaks: Likewise.
51329         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
51330         * modules/unilbrk/ulc-width-linebreaks: Likewise.
51331         * modules/uniname/uniname: Likewise.
51332         * modules/uninorm/canonical-decomposition: Likewise.
51333         * modules/uninorm/composition: Likewise.
51334         * modules/uninorm/decomposing-form: Likewise.
51335         * modules/uninorm/decomposition: Likewise.
51336         * modules/uninorm/filter: Likewise.
51337         * modules/uninorm/nfc: Likewise.
51338         * modules/uninorm/nfd: Likewise.
51339         * modules/uninorm/nfkc: Likewise.
51340         * modules/uninorm/nfkd: Likewise.
51341         * modules/uninorm/u8-normalize: Likewise.
51342         * modules/uninorm/u8-normcmp: Likewise.
51343         * modules/uninorm/u8-normcoll: Likewise.
51344         * modules/uninorm/u8-normxfrm: Likewise.
51345         * modules/uninorm/u16-normalize: Likewise.
51346         * modules/uninorm/u16-normcmp: Likewise.
51347         * modules/uninorm/u16-normcoll: Likewise.
51348         * modules/uninorm/u16-normxfrm: Likewise.
51349         * modules/uninorm/u32-normalize: Likewise.
51350         * modules/uninorm/u32-normcmp: Likewise.
51351         * modules/uninorm/u32-normcoll: Likewise.
51352         * modules/uninorm/u32-normxfrm: Likewise.
51353         * modules/unistdio/u8-asnprintf: Likewise.
51354         * modules/unistdio/u8-asprintf: Likewise.
51355         * modules/unistdio/u8-snprintf: Likewise.
51356         * modules/unistdio/u8-sprintf: Likewise.
51357         * modules/unistdio/u8-u8-asnprintf: Likewise.
51358         * modules/unistdio/u8-u8-asprintf: Likewise.
51359         * modules/unistdio/u8-u8-snprintf: Likewise.
51360         * modules/unistdio/u8-u8-sprintf: Likewise.
51361         * modules/unistdio/u8-u8-vasnprintf: Likewise.
51362         * modules/unistdio/u8-u8-vasprintf: Likewise.
51363         * modules/unistdio/u8-u8-vsnprintf: Likewise.
51364         * modules/unistdio/u8-u8-vsprintf: Likewise.
51365         * modules/unistdio/u8-vasnprintf: Likewise.
51366         * modules/unistdio/u8-vasprintf: Likewise.
51367         * modules/unistdio/u8-vsnprintf: Likewise.
51368         * modules/unistdio/u8-vsprintf: Likewise.
51369         * modules/unistdio/u16-asnprintf: Likewise.
51370         * modules/unistdio/u16-asprintf: Likewise.
51371         * modules/unistdio/u16-snprintf: Likewise.
51372         * modules/unistdio/u16-sprintf: Likewise.
51373         * modules/unistdio/u16-u16-asnprintf: Likewise.
51374         * modules/unistdio/u16-u16-asprintf: Likewise.
51375         * modules/unistdio/u16-u16-snprintf: Likewise.
51376         * modules/unistdio/u16-u16-sprintf: Likewise.
51377         * modules/unistdio/u16-u16-vasnprintf: Likewise.
51378         * modules/unistdio/u16-u16-vasprintf: Likewise.
51379         * modules/unistdio/u16-u16-vsnprintf: Likewise.
51380         * modules/unistdio/u16-u16-vsprintf: Likewise.
51381         * modules/unistdio/u16-vasnprintf: Likewise.
51382         * modules/unistdio/u16-vasprintf: Likewise.
51383         * modules/unistdio/u16-vsnprintf: Likewise.
51384         * modules/unistdio/u16-vsprintf: Likewise.
51385         * modules/unistdio/u32-asnprintf: Likewise.
51386         * modules/unistdio/u32-asprintf: Likewise.
51387         * modules/unistdio/u32-snprintf: Likewise.
51388         * modules/unistdio/u32-sprintf: Likewise.
51389         * modules/unistdio/u32-u32-asnprintf: Likewise.
51390         * modules/unistdio/u32-u32-asprintf: Likewise.
51391         * modules/unistdio/u32-u32-snprintf: Likewise.
51392         * modules/unistdio/u32-u32-sprintf: Likewise.
51393         * modules/unistdio/u32-u32-vasnprintf: Likewise.
51394         * modules/unistdio/u32-u32-vasprintf: Likewise.
51395         * modules/unistdio/u32-u32-vsnprintf: Likewise.
51396         * modules/unistdio/u32-u32-vsprintf: Likewise.
51397         * modules/unistdio/u32-vasnprintf: Likewise.
51398         * modules/unistdio/u32-vasprintf: Likewise.
51399         * modules/unistdio/u32-vsnprintf: Likewise.
51400         * modules/unistdio/u32-vsprintf: Likewise.
51401         * modules/unistdio/ulc-asnprintf: Likewise.
51402         * modules/unistdio/ulc-asprintf: Likewise.
51403         * modules/unistdio/ulc-fprintf: Likewise.
51404         * modules/unistdio/ulc-snprintf: Likewise.
51405         * modules/unistdio/ulc-sprintf: Likewise.
51406         * modules/unistdio/ulc-vasnprintf: Likewise.
51407         * modules/unistdio/ulc-vasprintf: Likewise.
51408         * modules/unistdio/ulc-vfprintf: Likewise.
51409         * modules/unistdio/ulc-vsnprintf: Likewise.
51410         * modules/unistdio/ulc-vsprintf: Likewise.
51411         * modules/unistr/u8-check: Likewise.
51412         * modules/unistr/u8-chr: Likewise.
51413         * modules/unistr/u8-cmp: Likewise.
51414         * modules/unistr/u8-cmp2: Likewise.
51415         * modules/unistr/u8-cpy: Likewise.
51416         * modules/unistr/u8-cpy-alloc: Likewise.
51417         * modules/unistr/u8-endswith: Likewise.
51418         * modules/unistr/u8-mblen: Likewise.
51419         * modules/unistr/u8-mbsnlen: Likewise.
51420         * modules/unistr/u8-mbtouc: Likewise.
51421         * modules/unistr/u8-mbtouc-unsafe: Likewise.
51422         * modules/unistr/u8-mbtoucr: Likewise.
51423         * modules/unistr/u8-move: Likewise.
51424         * modules/unistr/u8-next: Likewise.
51425         * modules/unistr/u8-prev: Likewise.
51426         * modules/unistr/u8-set: Likewise.
51427         * modules/unistr/u8-startswith: Likewise.
51428         * modules/unistr/u8-stpcpy: Likewise.
51429         * modules/unistr/u8-stpncpy: Likewise.
51430         * modules/unistr/u8-strcat: Likewise.
51431         * modules/unistr/u8-strchr: Likewise.
51432         * modules/unistr/u8-strcmp: Likewise.
51433         * modules/unistr/u8-strcoll: Likewise.
51434         * modules/unistr/u8-strcpy: Likewise.
51435         * modules/unistr/u8-strcspn: Likewise.
51436         * modules/unistr/u8-strdup: Likewise.
51437         * modules/unistr/u8-strlen: Likewise.
51438         * modules/unistr/u8-strmblen: Likewise.
51439         * modules/unistr/u8-strmbtouc: Likewise.
51440         * modules/unistr/u8-strncat: Likewise.
51441         * modules/unistr/u8-strncmp: Likewise.
51442         * modules/unistr/u8-strncpy: Likewise.
51443         * modules/unistr/u8-strnlen: Likewise.
51444         * modules/unistr/u8-strpbrk: Likewise.
51445         * modules/unistr/u8-strrchr: Likewise.
51446         * modules/unistr/u8-strspn: Likewise.
51447         * modules/unistr/u8-strstr: Likewise.
51448         * modules/unistr/u8-strtok: Likewise.
51449         * modules/unistr/u8-to-u16: Likewise.
51450         * modules/unistr/u8-to-u32: Likewise.
51451         * modules/unistr/u8-uctomb: Likewise.
51452         * modules/unistr/u16-check: Likewise.
51453         * modules/unistr/u16-chr: Likewise.
51454         * modules/unistr/u16-cmp: Likewise.
51455         * modules/unistr/u16-cmp2: Likewise.
51456         * modules/unistr/u16-cpy: Likewise.
51457         * modules/unistr/u16-cpy-alloc: Likewise.
51458         * modules/unistr/u16-endswith: Likewise.
51459         * modules/unistr/u16-mblen: Likewise.
51460         * modules/unistr/u16-mbsnlen: Likewise.
51461         * modules/unistr/u16-mbtouc: Likewise.
51462         * modules/unistr/u16-mbtouc-unsafe: Likewise.
51463         * modules/unistr/u16-mbtoucr: Likewise.
51464         * modules/unistr/u16-move: Likewise.
51465         * modules/unistr/u16-next: Likewise.
51466         * modules/unistr/u16-prev: Likewise.
51467         * modules/unistr/u16-set: Likewise.
51468         * modules/unistr/u16-startswith: Likewise.
51469         * modules/unistr/u16-stpcpy: Likewise.
51470         * modules/unistr/u16-stpncpy: Likewise.
51471         * modules/unistr/u16-strcat: Likewise.
51472         * modules/unistr/u16-strchr: Likewise.
51473         * modules/unistr/u16-strcmp: Likewise.
51474         * modules/unistr/u16-strcoll: Likewise.
51475         * modules/unistr/u16-strcpy: Likewise.
51476         * modules/unistr/u16-strcspn: Likewise.
51477         * modules/unistr/u16-strdup: Likewise.
51478         * modules/unistr/u16-strlen: Likewise.
51479         * modules/unistr/u16-strmblen: Likewise.
51480         * modules/unistr/u16-strmbtouc: Likewise.
51481         * modules/unistr/u16-strncat: Likewise.
51482         * modules/unistr/u16-strncmp: Likewise.
51483         * modules/unistr/u16-strncpy: Likewise.
51484         * modules/unistr/u16-strnlen: Likewise.
51485         * modules/unistr/u16-strpbrk: Likewise.
51486         * modules/unistr/u16-strrchr: Likewise.
51487         * modules/unistr/u16-strspn: Likewise.
51488         * modules/unistr/u16-strstr: Likewise.
51489         * modules/unistr/u16-strtok: Likewise.
51490         * modules/unistr/u16-to-u32: Likewise.
51491         * modules/unistr/u16-to-u8: Likewise.
51492         * modules/unistr/u16-uctomb: Likewise.
51493         * modules/unistr/u32-check: Likewise.
51494         * modules/unistr/u32-chr: Likewise.
51495         * modules/unistr/u32-cmp: Likewise.
51496         * modules/unistr/u32-cmp2: Likewise.
51497         * modules/unistr/u32-cpy: Likewise.
51498         * modules/unistr/u32-cpy-alloc: Likewise.
51499         * modules/unistr/u32-endswith: Likewise.
51500         * modules/unistr/u32-mblen: Likewise.
51501         * modules/unistr/u32-mbsnlen: Likewise.
51502         * modules/unistr/u32-mbtouc: Likewise.
51503         * modules/unistr/u32-mbtouc-unsafe: Likewise.
51504         * modules/unistr/u32-mbtoucr: Likewise.
51505         * modules/unistr/u32-move: Likewise.
51506         * modules/unistr/u32-next: Likewise.
51507         * modules/unistr/u32-prev: Likewise.
51508         * modules/unistr/u32-set: Likewise.
51509         * modules/unistr/u32-startswith: Likewise.
51510         * modules/unistr/u32-stpcpy: Likewise.
51511         * modules/unistr/u32-stpncpy: Likewise.
51512         * modules/unistr/u32-strcat: Likewise.
51513         * modules/unistr/u32-strchr: Likewise.
51514         * modules/unistr/u32-strcmp: Likewise.
51515         * modules/unistr/u32-strcoll: Likewise.
51516         * modules/unistr/u32-strcpy: Likewise.
51517         * modules/unistr/u32-strcspn: Likewise.
51518         * modules/unistr/u32-strdup: Likewise.
51519         * modules/unistr/u32-strlen: Likewise.
51520         * modules/unistr/u32-strmblen: Likewise.
51521         * modules/unistr/u32-strmbtouc: Likewise.
51522         * modules/unistr/u32-strncat: Likewise.
51523         * modules/unistr/u32-strncmp: Likewise.
51524         * modules/unistr/u32-strncpy: Likewise.
51525         * modules/unistr/u32-strnlen: Likewise.
51526         * modules/unistr/u32-strpbrk: Likewise.
51527         * modules/unistr/u32-strrchr: Likewise.
51528         * modules/unistr/u32-strspn: Likewise.
51529         * modules/unistr/u32-strstr: Likewise.
51530         * modules/unistr/u32-strtok: Likewise.
51531         * modules/unistr/u32-to-u16: Likewise.
51532         * modules/unistr/u32-to-u8: Likewise.
51533         * modules/unistr/u32-uctomb: Likewise.
51534         * modules/uniwbrk/u8-wordbreaks: Likewise.
51535         * modules/uniwbrk/u16-wordbreaks: Likewise.
51536         * modules/uniwbrk/u32-wordbreaks: Likewise.
51537         * modules/uniwbrk/ulc-wordbreaks: Likewise.
51538         * modules/uniwbrk/wordbreak-property: Likewise.
51539         * modules/uniwidth/u8-strwidth: Likewise.
51540         * modules/uniwidth/u8-width: Likewise.
51541         * modules/uniwidth/u16-strwidth: Likewise.
51542         * modules/uniwidth/u16-width: Likewise.
51543         * modules/uniwidth/u32-strwidth: Likewise.
51544         * modules/uniwidth/u32-width: Likewise.
51545         * modules/uniwidth/width: Likewise.
51546         * modules/unicase/cased-tests (Makefile.am): Link all test programs
51547         with $(LIBUNISTRING).
51548         * modules/unicase/ignorable-tests: Likewise.
51549         * modules/unicase/locale-language-tests: Likewise.
51550         * modules/unicase/tolower-tests: Likewise.
51551         * modules/unicase/totitle-tests: Likewise.
51552         * modules/unicase/toupper-tests: Likewise.
51553         * modules/unicase/u8-casecmp-tests: Likewise.
51554         * modules/unicase/u8-casecoll-tests: Likewise.
51555         * modules/unicase/u8-casefold-tests: Likewise.
51556         * modules/unicase/u8-is-cased-tests: Likewise.
51557         * modules/unicase/u8-is-casefolded-tests: Likewise.
51558         * modules/unicase/u8-is-lowercase-tests: Likewise.
51559         * modules/unicase/u8-is-titlecase-tests: Likewise.
51560         * modules/unicase/u8-is-uppercase-tests: Likewise.
51561         * modules/unicase/u8-tolower-tests: Likewise.
51562         * modules/unicase/u8-totitle-tests: Likewise.
51563         * modules/unicase/u8-toupper-tests: Likewise.
51564         * modules/unicase/u16-casecmp-tests: Likewise.
51565         * modules/unicase/u16-casecoll-tests: Likewise.
51566         * modules/unicase/u16-casefold-tests: Likewise.
51567         * modules/unicase/u16-is-cased-tests: Likewise.
51568         * modules/unicase/u16-is-casefolded-tests: Likewise.
51569         * modules/unicase/u16-is-lowercase-tests: Likewise.
51570         * modules/unicase/u16-is-titlecase-tests: Likewise.
51571         * modules/unicase/u16-is-uppercase-tests: Likewise.
51572         * modules/unicase/u16-tolower-tests: Likewise.
51573         * modules/unicase/u16-totitle-tests: Likewise.
51574         * modules/unicase/u16-toupper-tests: Likewise.
51575         * modules/unicase/u32-casecmp-tests: Likewise.
51576         * modules/unicase/u32-casecoll-tests: Likewise.
51577         * modules/unicase/u32-casefold-tests: Likewise.
51578         * modules/unicase/u32-is-cased-tests: Likewise.
51579         * modules/unicase/u32-is-casefolded-tests: Likewise.
51580         * modules/unicase/u32-is-lowercase-tests: Likewise.
51581         * modules/unicase/u32-is-titlecase-tests: Likewise.
51582         * modules/unicase/u32-is-uppercase-tests: Likewise.
51583         * modules/unicase/u32-tolower-tests: Likewise.
51584         * modules/unicase/u32-totitle-tests: Likewise.
51585         * modules/unicase/u32-toupper-tests: Likewise.
51586         * modules/unicase/ulc-casecmp-tests: Likewise.
51587         * modules/unicase/ulc-casecoll-tests: Likewise.
51588         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
51589         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
51590         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
51591         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
51592         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
51593         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
51594         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
51595         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
51596         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
51597         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
51598         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
51599         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
51600         * modules/unictype/bidicategory-byname-tests: Likewise.
51601         * modules/unictype/bidicategory-name-tests: Likewise.
51602         * modules/unictype/bidicategory-of-tests: Likewise.
51603         * modules/unictype/bidicategory-test-tests: Likewise.
51604         * modules/unictype/block-list-tests: Likewise.
51605         * modules/unictype/block-of-tests: Likewise.
51606         * modules/unictype/block-test-tests: Likewise.
51607         * modules/unictype/category-C-tests: Likewise.
51608         * modules/unictype/category-Cc-tests: Likewise.
51609         * modules/unictype/category-Cf-tests: Likewise.
51610         * modules/unictype/category-Cn-tests: Likewise.
51611         * modules/unictype/category-Co-tests: Likewise.
51612         * modules/unictype/category-Cs-tests: Likewise.
51613         * modules/unictype/category-L-tests: Likewise.
51614         * modules/unictype/category-Ll-tests: Likewise.
51615         * modules/unictype/category-Lm-tests: Likewise.
51616         * modules/unictype/category-Lo-tests: Likewise.
51617         * modules/unictype/category-Lt-tests: Likewise.
51618         * modules/unictype/category-Lu-tests: Likewise.
51619         * modules/unictype/category-M-tests: Likewise.
51620         * modules/unictype/category-Mc-tests: Likewise.
51621         * modules/unictype/category-Me-tests: Likewise.
51622         * modules/unictype/category-Mn-tests: Likewise.
51623         * modules/unictype/category-N-tests: Likewise.
51624         * modules/unictype/category-Nd-tests: Likewise.
51625         * modules/unictype/category-Nl-tests: Likewise.
51626         * modules/unictype/category-No-tests: Likewise.
51627         * modules/unictype/category-P-tests: Likewise.
51628         * modules/unictype/category-Pc-tests: Likewise.
51629         * modules/unictype/category-Pd-tests: Likewise.
51630         * modules/unictype/category-Pe-tests: Likewise.
51631         * modules/unictype/category-Pf-tests: Likewise.
51632         * modules/unictype/category-Pi-tests: Likewise.
51633         * modules/unictype/category-Po-tests: Likewise.
51634         * modules/unictype/category-Ps-tests: Likewise.
51635         * modules/unictype/category-S-tests: Likewise.
51636         * modules/unictype/category-Sc-tests: Likewise.
51637         * modules/unictype/category-Sk-tests: Likewise.
51638         * modules/unictype/category-Sm-tests: Likewise.
51639         * modules/unictype/category-So-tests: Likewise.
51640         * modules/unictype/category-Z-tests: Likewise.
51641         * modules/unictype/category-Zl-tests: Likewise.
51642         * modules/unictype/category-Zp-tests: Likewise.
51643         * modules/unictype/category-Zs-tests: Likewise.
51644         * modules/unictype/category-and-not-tests: Likewise.
51645         * modules/unictype/category-and-tests: Likewise.
51646         * modules/unictype/category-byname-tests: Likewise.
51647         * modules/unictype/category-name-tests: Likewise.
51648         * modules/unictype/category-none-tests: Likewise.
51649         * modules/unictype/category-of-tests: Likewise.
51650         * modules/unictype/category-or-tests: Likewise.
51651         * modules/unictype/category-test-withtable-tests: Likewise.
51652         * modules/unictype/combining-class-tests: Likewise.
51653         * modules/unictype/ctype-alnum-tests: Likewise.
51654         * modules/unictype/ctype-alpha-tests: Likewise.
51655         * modules/unictype/ctype-blank-tests: Likewise.
51656         * modules/unictype/ctype-cntrl-tests: Likewise.
51657         * modules/unictype/ctype-digit-tests: Likewise.
51658         * modules/unictype/ctype-graph-tests: Likewise.
51659         * modules/unictype/ctype-lower-tests: Likewise.
51660         * modules/unictype/ctype-print-tests: Likewise.
51661         * modules/unictype/ctype-punct-tests: Likewise.
51662         * modules/unictype/ctype-space-tests: Likewise.
51663         * modules/unictype/ctype-upper-tests: Likewise.
51664         * modules/unictype/ctype-xdigit-tests: Likewise.
51665         * modules/unictype/decimal-digit-tests: Likewise.
51666         * modules/unictype/digit-tests: Likewise.
51667         * modules/unictype/mirror-tests: Likewise.
51668         * modules/unictype/numeric-tests: Likewise.
51669         * modules/unictype/property-alphabetic-tests: Likewise.
51670         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
51671         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
51672         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
51673         * modules/unictype/property-bidi-block-separator-tests: Likewise.
51674         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
51675         * modules/unictype/property-bidi-common-separator-tests: Likewise.
51676         * modules/unictype/property-bidi-control-tests: Likewise.
51677         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
51678         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
51679         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
51680         * modules/unictype/property-bidi-european-digit-tests: Likewise.
51681         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
51682         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
51683         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
51684         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
51685         * modules/unictype/property-bidi-pdf-tests: Likewise.
51686         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
51687         * modules/unictype/property-bidi-whitespace-tests: Likewise.
51688         * modules/unictype/property-byname-tests: Likewise.
51689         * modules/unictype/property-combining-tests: Likewise.
51690         * modules/unictype/property-composite-tests: Likewise.
51691         * modules/unictype/property-currency-symbol-tests: Likewise.
51692         * modules/unictype/property-dash-tests: Likewise.
51693         * modules/unictype/property-decimal-digit-tests: Likewise.
51694         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
51695         * modules/unictype/property-deprecated-tests: Likewise.
51696         * modules/unictype/property-diacritic-tests: Likewise.
51697         * modules/unictype/property-extender-tests: Likewise.
51698         * modules/unictype/property-format-control-tests: Likewise.
51699         * modules/unictype/property-grapheme-base-tests: Likewise.
51700         * modules/unictype/property-grapheme-extend-tests: Likewise.
51701         * modules/unictype/property-grapheme-link-tests: Likewise.
51702         * modules/unictype/property-hex-digit-tests: Likewise.
51703         * modules/unictype/property-hyphen-tests: Likewise.
51704         * modules/unictype/property-id-continue-tests: Likewise.
51705         * modules/unictype/property-id-start-tests: Likewise.
51706         * modules/unictype/property-ideographic-tests: Likewise.
51707         * modules/unictype/property-ids-binary-operator-tests: Likewise.
51708         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
51709         * modules/unictype/property-ignorable-control-tests: Likewise.
51710         * modules/unictype/property-iso-control-tests: Likewise.
51711         * modules/unictype/property-join-control-tests: Likewise.
51712         * modules/unictype/property-left-of-pair-tests: Likewise.
51713         * modules/unictype/property-line-separator-tests: Likewise.
51714         * modules/unictype/property-logical-order-exception-tests: Likewise.
51715         * modules/unictype/property-lowercase-tests: Likewise.
51716         * modules/unictype/property-math-tests: Likewise.
51717         * modules/unictype/property-non-break-tests: Likewise.
51718         * modules/unictype/property-not-a-character-tests: Likewise.
51719         * modules/unictype/property-numeric-tests: Likewise.
51720         * modules/unictype/property-other-alphabetic-tests: Likewise.
51721         * modules/unictype/property-other-default-ignorable-code-point-tests:
51722         Likewise.
51723         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
51724         * modules/unictype/property-other-id-continue-tests: Likewise.
51725         * modules/unictype/property-other-id-start-tests: Likewise.
51726         * modules/unictype/property-other-lowercase-tests: Likewise.
51727         * modules/unictype/property-other-math-tests: Likewise.
51728         * modules/unictype/property-other-uppercase-tests: Likewise.
51729         * modules/unictype/property-paired-punctuation-tests: Likewise.
51730         * modules/unictype/property-paragraph-separator-tests: Likewise.
51731         * modules/unictype/property-pattern-syntax-tests: Likewise.
51732         * modules/unictype/property-pattern-white-space-tests: Likewise.
51733         * modules/unictype/property-private-use-tests: Likewise.
51734         * modules/unictype/property-punctuation-tests: Likewise.
51735         * modules/unictype/property-quotation-mark-tests: Likewise.
51736         * modules/unictype/property-radical-tests: Likewise.
51737         * modules/unictype/property-sentence-terminal-tests: Likewise.
51738         * modules/unictype/property-soft-dotted-tests: Likewise.
51739         * modules/unictype/property-space-tests: Likewise.
51740         * modules/unictype/property-terminal-punctuation-tests: Likewise.
51741         * modules/unictype/property-test-tests: Likewise.
51742         * modules/unictype/property-titlecase-tests: Likewise.
51743         * modules/unictype/property-unassigned-code-value-tests: Likewise.
51744         * modules/unictype/property-unified-ideograph-tests: Likewise.
51745         * modules/unictype/property-uppercase-tests: Likewise.
51746         * modules/unictype/property-variation-selector-tests: Likewise.
51747         * modules/unictype/property-white-space-tests: Likewise.
51748         * modules/unictype/property-xid-continue-tests: Likewise.
51749         * modules/unictype/property-xid-start-tests: Likewise.
51750         * modules/unictype/property-zero-width-tests: Likewise.
51751         * modules/unictype/scripts-tests: Likewise.
51752         * modules/unictype/syntax-c-ident-tests: Likewise.
51753         * modules/unictype/syntax-c-whitespace-tests: Likewise.
51754         * modules/unictype/syntax-java-ident-tests: Likewise.
51755         * modules/unictype/syntax-java-whitespace-tests: Likewise.
51756         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
51757         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
51758         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
51759         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
51760         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
51761         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
51762         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
51763         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
51764         * modules/uniname/uniname-tests: Likewise.
51765         * modules/uninorm/canonical-decomposition-tests: Likewise.
51766         * modules/uninorm/compat-decomposition-tests: Likewise.
51767         * modules/uninorm/composition-tests: Likewise.
51768         * modules/uninorm/decomposing-form-tests: Likewise.
51769         * modules/uninorm/decomposition-tests: Likewise.
51770         * modules/uninorm/filter-tests: Likewise.
51771         * modules/uninorm/nfc-tests: Likewise.
51772         * modules/uninorm/nfd-tests: Likewise.
51773         * modules/uninorm/nfkc-tests: Likewise.
51774         * modules/uninorm/nfkd-tests: Likewise.
51775         * modules/uninorm/u8-normcmp-tests: Likewise.
51776         * modules/uninorm/u8-normcoll-tests: Likewise.
51777         * modules/uninorm/u16-normcmp-tests: Likewise.
51778         * modules/uninorm/u16-normcoll-tests: Likewise.
51779         * modules/uninorm/u32-normcmp-tests: Likewise.
51780         * modules/uninorm/u32-normcoll-tests: Likewise.
51781         * modules/unistdio/u8-asnprintf-tests: Likewise.
51782         * modules/unistdio/u8-vasnprintf-tests: Likewise.
51783         * modules/unistdio/u8-vasprintf-tests: Likewise.
51784         * modules/unistdio/u8-vsnprintf-tests: Likewise.
51785         * modules/unistdio/u8-vsprintf-tests: Likewise.
51786         * modules/unistdio/u16-asnprintf-tests: Likewise.
51787         * modules/unistdio/u16-vasnprintf-tests: Likewise.
51788         * modules/unistdio/u16-vasprintf-tests: Likewise.
51789         * modules/unistdio/u16-vsnprintf-tests: Likewise.
51790         * modules/unistdio/u16-vsprintf-tests: Likewise.
51791         * modules/unistdio/u32-asnprintf-tests: Likewise.
51792         * modules/unistdio/u32-vasnprintf-tests: Likewise.
51793         * modules/unistdio/u32-vasprintf-tests: Likewise.
51794         * modules/unistdio/u32-vsnprintf-tests: Likewise.
51795         * modules/unistdio/u32-vsprintf-tests: Likewise.
51796         * modules/unistdio/ulc-asnprintf-tests: Likewise.
51797         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
51798         * modules/unistdio/ulc-vasprintf-tests: Likewise.
51799         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
51800         * modules/unistdio/ulc-vsprintf-tests: Likewise.
51801         * modules/unistr/u8-check-tests: Likewise.
51802         * modules/unistr/u8-chr-tests: Likewise.
51803         * modules/unistr/u8-cmp-tests: Likewise.
51804         * modules/unistr/u8-cmp2-tests: Likewise.
51805         * modules/unistr/u8-cpy-alloc-tests: Likewise.
51806         * modules/unistr/u8-cpy-tests: Likewise.
51807         * modules/unistr/u8-mblen-tests: Likewise.
51808         * modules/unistr/u8-mbsnlen-tests: Likewise.
51809         * modules/unistr/u8-mbtouc-tests: Likewise.
51810         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
51811         * modules/unistr/u8-mbtoucr-tests: Likewise.
51812         * modules/unistr/u8-move-tests: Likewise.
51813         * modules/unistr/u8-next-tests: Likewise.
51814         * modules/unistr/u8-prev-tests: Likewise.
51815         * modules/unistr/u8-set-tests: Likewise.
51816         * modules/unistr/u8-stpcpy-tests: Likewise.
51817         * modules/unistr/u8-stpncpy-tests: Likewise.
51818         * modules/unistr/u8-strcat-tests: Likewise.
51819         * modules/unistr/u8-strcmp-tests: Likewise.
51820         * modules/unistr/u8-strcoll-tests: Likewise.
51821         * modules/unistr/u8-strcpy-tests: Likewise.
51822         * modules/unistr/u8-strdup-tests: Likewise.
51823         * modules/unistr/u8-strlen-tests: Likewise.
51824         * modules/unistr/u8-strmblen-tests: Likewise.
51825         * modules/unistr/u8-strmbtouc-tests: Likewise.
51826         * modules/unistr/u8-strncat-tests: Likewise.
51827         * modules/unistr/u8-strncmp-tests: Likewise.
51828         * modules/unistr/u8-strncpy-tests: Likewise.
51829         * modules/unistr/u8-strnlen-tests: Likewise.
51830         * modules/unistr/u8-to-u16-tests: Likewise.
51831         * modules/unistr/u8-to-u32-tests: Likewise.
51832         * modules/unistr/u8-uctomb-tests: Likewise.
51833         * modules/unistr/u16-check-tests: Likewise.
51834         * modules/unistr/u16-chr-tests: Likewise.
51835         * modules/unistr/u16-cmp-tests: Likewise.
51836         * modules/unistr/u16-cmp2-tests: Likewise.
51837         * modules/unistr/u16-cpy-alloc-tests: Likewise.
51838         * modules/unistr/u16-cpy-tests: Likewise.
51839         * modules/unistr/u16-mblen-tests: Likewise.
51840         * modules/unistr/u16-mbsnlen-tests: Likewise.
51841         * modules/unistr/u16-mbtouc-tests: Likewise.
51842         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
51843         * modules/unistr/u16-mbtoucr-tests: Likewise.
51844         * modules/unistr/u16-move-tests: Likewise.
51845         * modules/unistr/u16-next-tests: Likewise.
51846         * modules/unistr/u16-prev-tests: Likewise.
51847         * modules/unistr/u16-set-tests: Likewise.
51848         * modules/unistr/u16-stpcpy-tests: Likewise.
51849         * modules/unistr/u16-stpncpy-tests: Likewise.
51850         * modules/unistr/u16-strcat-tests: Likewise.
51851         * modules/unistr/u16-strcmp-tests: Likewise.
51852         * modules/unistr/u16-strcoll-tests: Likewise.
51853         * modules/unistr/u16-strcpy-tests: Likewise.
51854         * modules/unistr/u16-strdup-tests: Likewise.
51855         * modules/unistr/u16-strlen-tests: Likewise.
51856         * modules/unistr/u16-strmblen-tests: Likewise.
51857         * modules/unistr/u16-strmbtouc-tests: Likewise.
51858         * modules/unistr/u16-strncat-tests: Likewise.
51859         * modules/unistr/u16-strncmp-tests: Likewise.
51860         * modules/unistr/u16-strncpy-tests: Likewise.
51861         * modules/unistr/u16-strnlen-tests: Likewise.
51862         * modules/unistr/u16-to-u32-tests: Likewise.
51863         * modules/unistr/u16-to-u8-tests: Likewise.
51864         * modules/unistr/u16-uctomb-tests: Likewise.
51865         * modules/unistr/u32-check-tests: Likewise.
51866         * modules/unistr/u32-chr-tests: Likewise.
51867         * modules/unistr/u32-cmp-tests: Likewise.
51868         * modules/unistr/u32-cmp2-tests: Likewise.
51869         * modules/unistr/u32-cpy-alloc-tests: Likewise.
51870         * modules/unistr/u32-cpy-tests: Likewise.
51871         * modules/unistr/u32-mblen-tests: Likewise.
51872         * modules/unistr/u32-mbsnlen-tests: Likewise.
51873         * modules/unistr/u32-mbtouc-tests: Likewise.
51874         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
51875         * modules/unistr/u32-mbtoucr-tests: Likewise.
51876         * modules/unistr/u32-move-tests: Likewise.
51877         * modules/unistr/u32-next-tests: Likewise.
51878         * modules/unistr/u32-prev-tests: Likewise.
51879         * modules/unistr/u32-set-tests: Likewise.
51880         * modules/unistr/u32-stpcpy-tests: Likewise.
51881         * modules/unistr/u32-stpncpy-tests: Likewise.
51882         * modules/unistr/u32-strcat-tests: Likewise.
51883         * modules/unistr/u32-strcmp-tests: Likewise.
51884         * modules/unistr/u32-strcoll-tests: Likewise.
51885         * modules/unistr/u32-strcpy-tests: Likewise.
51886         * modules/unistr/u32-strdup-tests: Likewise.
51887         * modules/unistr/u32-strlen-tests: Likewise.
51888         * modules/unistr/u32-strmblen-tests: Likewise.
51889         * modules/unistr/u32-strmbtouc-tests: Likewise.
51890         * modules/unistr/u32-strncat-tests: Likewise.
51891         * modules/unistr/u32-strncmp-tests: Likewise.
51892         * modules/unistr/u32-strncpy-tests: Likewise.
51893         * modules/unistr/u32-strnlen-tests: Likewise.
51894         * modules/unistr/u32-to-u16-tests: Likewise.
51895         * modules/unistr/u32-to-u8-tests: Likewise.
51896         * modules/unistr/u32-uctomb-tests: Likewise.
51897         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
51898         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
51899         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
51900         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
51901         * modules/uniwidth/u8-strwidth-tests: Likewise.
51902         * modules/uniwidth/u8-width-tests: Likewise.
51903         * modules/uniwidth/u16-strwidth-tests: Likewise.
51904         * modules/uniwidth/u16-width-tests: Likewise.
51905         * modules/uniwidth/u32-strwidth-tests: Likewise.
51906         * modules/uniwidth/u32-width-tests: Likewise.
51907         * modules/uniwidth/width-tests: Likewise.
51909 2010-05-18  Richard Jones  <rjones@redhat.com>
51911         doc: users.txt: list hivex
51912         * users.txt: Add hivex.
51914 2010-05-18  Richard Jones  <rjones@redhat.com>
51916         doc: users.txt: list febootstrap
51917         * users.txt: Add febootstrap.
51919 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
51921         bootstrap: fix an error when gnulib is not used as a git submodule
51922         * build-aux/bootstrap (gnulib_path): If its length is zero then
51923         assign "gnulib" to it.
51924         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
51926 2010-05-16  Bruno Haible  <bruno@clisp.org>
51928         Avoid autoconf warnings about AM_ICONV.
51929         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
51930         2.64.
51932 2010-05-16  Bruno Haible  <bruno@clisp.org>
51934         absolute-header: Make the macro usable in more situations.
51935         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
51936         from gl_ABSOLUTE_HEADER.
51937         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
51939 2010-05-16  James Youngman  <jay@gnu.org>
51941         doc: update users.txt
51942         * users.txt: Add CSSC.
51944 2010-05-16  Jim Meyering  <meyering@redhat.com>
51946         init.sh: fix an error in the previous change; add more comments
51947         * tests/init.sh: Compare exit code in loop against 9, not 2.
51948         Patch by Bruno Haible.
51949         Make the two tests more similar by adding an empty "then" clause.
51950         Add comments.
51952         init.sh: avoid unnecessary shell re-exec
51953         * tests/init.sh: Improve the re-exec-required check to first test the
51954         current shell.  If it passes the test, do not search for a shell that
51955         does pass, and do not re-exec.  This test is particularly contorted to
51956         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
51957         of $(...) evokes a syntax error and causes immediate shell exit with
51958         status 2.  Bruno Haible reported that the re-exec made it impossible
51959         to single-step through any init.sh-using script.
51961 2010-05-16  Bruno Haible  <bruno@clisp.org>
51963         Fix collision between gnulib's and libintl's printf replacements.
51964         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
51965         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
51966         (printf): When using GNU C, map the __printf__ function to rpl_printf
51967         via __asm__. When not using GNU C, define rpl_printf instead of
51968         __printf__.
51969         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
51970         commit.
51971         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
51972         commit.
51973         * m4/asm-underscore.m4: New file.
51974         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
51975         * modules/stdio (Files): Add m4/asm-underscore.m4.
51976         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
51977         Reported by Ben Pfaff.
51979 2010-05-16  Bruno Haible  <bruno@clisp.org>
51981         verify: Avoid skipping the test on openSUSE 11.0.
51982         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
51984 2010-05-13  Bruno Haible  <bruno@clisp.org>
51986         Avoid useless warnings from G++.
51987         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
51988         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
51989         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
51991 2010-05-11  Jim Meyering  <meyering@redhat.com>
51993         maint.mk: tweak preceding change
51994         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
51995         regexps tighter by anchoring at EOL, and make the new group "shy"
51996         for slightly decreased overhead.
51998 2010-05-11  Eric Blake  <eblake@redhat.com>
52000         maint.mk: gnulib doesn't guarantee NSIG
52001         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
52003 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
52005         test-pwrite.c: Remove unused variable declaration.
52006         * tests/test-pwrite.c (main): Remove read_buf declaration.
52008         Remove useless test-pwrite.sh file.
52009         * tests/test-pwrite.sh: Delete file.
52010         * modules/pwrite-tests: Remove references.
52011         Reported by Bruno Haible.
52013 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
52015         init.sh: fix a typo
52016         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
52018 2010-05-10  Jim Meyering  <meyering@redhat.com>
52020         maint.mk: avoid using a temporary file in the always-defined-macros check
52021         * top/maint.mk (.re-defmac): Remove rule.
52022         (gl_trap_): Remove definition.
52023         (sc_prohibit_always-defined_macros): Rewrite not to create and
52024         depend on a temporary file.  Instead, depend on GNU grep's ability
52025         to read a list of regular expressions from stdin when given "-f -".
52027 2010-05-09  Bruno Haible  <bruno@clisp.org>
52029         Update to GNU gettext 0.18, part 1.
52030         * m4/gettext.m4: Update to GNU gettext 0.18.
52031         * m4/intl.m4: Likewise.
52032         * m4/po.m4: Likewise.
52033         * modules/gettext (Files): Add m4/fcntl-o.m4.
52034         (configure.ac): Require gettext infrastructure from version 0.18.
52036 2010-05-09  Jim Meyering  <meyering@redhat.com>
52038         init.sh: enable MALLOC_PERTURB_
52039         * tests/init.sh: Enable glibc's malloc-perturbing option.
52041         maint.mk: improve sc_cross_check_PATH_usage_in_tests
52042         With my recent change in init.sh from the two-line form:
52043             -#   : ${srcdir=.}
52044             -#   . "$srcdir/init.sh"; path_prepend_ .
52045             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
52046         I noticed that using the one-line form would cause this test
52047         to fail with a false-positive, or to stop working altogether,
52048         depending on whether help-version changed or all the tests did.
52049         * top/maint.mk (_hv_regex): Remove this definition.
52050         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
52051         (_hv_regex_strong): Use a stronger regex to check for conformance.
52052         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
52053         Give a separate diagnostic for lack of conforming use.
52055         maint.mk: prohibit definition of symbols defined by gnulib
52056         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
52057         definition of symbols defined by gnulib.
52059 2010-05-09  Bruno Haible  <bruno@clisp.org>
52061         acl: Avoid test failure on Cygwin-hosted mingw.
52062         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
52064 2010-05-09  Bruno Haible  <bruno@clisp.org>
52066         error: Use system's fcntl function.
52067         * lib/error.c (fcntl): Undefine.
52069 2010-05-09  Jim Meyering  <meyering@redhat.com>
52071         verify: adjust formatting to be more consistent
52072         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
52073         argument-list '('s, and after one comma.
52075 2010-05-09  Bruno Haible  <bruno@clisp.org>
52077         error: More reliable output on mingw.
52078         * lib/error.c: Include <windows.h>.
52079         (is_open): New function.
52080         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
52081         defined.
52083 2010-05-09  Bruno Haible  <bruno@clisp.org>
52085         vasnprintf: Fix syntax errors in libintl build on mingw.
52086         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
52087         pad_ourselves and prec_ourselves after use.
52089 2010-05-08  Bruno Haible  <bruno@clisp.org>
52091         * lib/config.charset: Update comments for Cygwin 1.7.
52092         * lib/localcharset.c: Likewise.
52094 2010-05-07  Jim Meyering  <meyering@redhat.com>
52096         init.sh: improve comments
52097         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
52098         . "${srcdir=.}/init.sh"; path_prepend_ .
52099         Add a note about path_prepend_ and the alternative of using
52100         TESTS_ENVIRONMENT.
52102 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
52104         exclude: Unescape hashed patterns in wildcard mode.
52105         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
52106         to the hash list.
52107         * tests/test-exclude8.sh: New test case.
52108         * modules/exclude-tests: Add new test.
52110 2010-05-05  Eric Blake  <eblake@redhat.com>
52112         verify: automate tests
52113         * modules/verify-tests: New module.
52114         * tests/test-verify.sh: New file.
52115         * tests/test-verify.c: Guard each negative test with a unique id.
52116         Also avoid warning about unused left hand of comma expressions.
52118 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
52120         Further improvements to verify.h, suggested by Eric Blake.
52121         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
52122         the GL_* versions, to avoid collision with OpenGL.
52123         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
52124         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
52125         than testing merely whether it's defined.
52127         Modify verify.h to pacify gcc -Wredundant_decls.
52128         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
52129         These use the prefix "GL_" since they're likely to be useful elsewhere.
52130         We may need to break them out into a different .h file.
52131         (__COUNTER__): Define to 0 if the compiler doesn't support it.
52132         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
52133         of verify_function__.
52135 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
52137         Tests for module pwrite.
52138         * modules/pwrite-tests: New file.
52139         * tests/test-pwrite.sh: New file.
52140         * tests/test-pwrite.c: New file.
52142         New module pwrite.
52143         * lib/unistd.in.h (pwrite): New declaration.
52144         * lib/pwrite.c: New file, from glibc with modifications.
52145         * m4/pwrite.m4: New file.
52146         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
52147         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
52148         REPLACE_PWRITE.
52149         * modules/pwrite: New file.
52150         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
52151         REPLACE_PWRITE.
52152         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
52153         * doc/posix-functions/pwrite.texi: Mention the new module.
52155 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
52157         pread: Update documentation.
52158         * doc/posix-functions/pread.texi: Mention the 'pread' module.
52160 2010-05-04  Eric Blake  <eblake@redhat.com>
52162         docs: update cygwin progress
52163         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
52164         this bug.
52165         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
52166         Added in cygwin 1.7.2.
52167         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
52168         Likewise.
52169         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
52170         Likewise.
52171         * doc/glibc-functions/dup3.texi (dup3): Likewise.
52172         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
52173         * doc/glibc-functions/accept4.texi (accept4): Likewise.
52174         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
52175         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
52176         Mention nproc module.
52177         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
52178         bug in cygwin 1.7.5 addition.
52179         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
52180         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
52181         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
52182         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
52183         1.7.5.
52184         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
52185         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
52186         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
52187         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
52188         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
52189         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
52190         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
52191         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
52192         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
52193         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
52194         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
52195         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
52196         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
52197         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
52198         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
52199         Likewise.
52200         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
52201         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
52202         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
52203         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
52204         Likewise.
52205         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
52206         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
52207         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
52208         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
52209         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
52210         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
52211         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
52212         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
52213         Likewise.
52214         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
52215         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
52216         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
52217         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
52218         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
52219         Likewise.
52220         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
52221         Likewise.
52222         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
52223         Likewise.
52224         * doc/glibc-functions/xdrrec_endofrecord.texi
52225         (xdrrec_endofrecord): Likewise.
52226         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
52227         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
52228         Likewise.
52229         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
52230         Likewise.
52232 2010-05-04  Jim Meyering  <meyering@redhat.com>
52234         gendocs.sh: make its "-s FILE" option more useful
52235         * build-aux/gendocs.sh: When honoring the -s FILE option, update
52236         $PACKAGE to reflect the probably-different basename of "FILE".
52238 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
52240         bootstrap: don't ignore download_po_files failure
52241         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
52242         failure.
52244 2010-05-03  Jim Meyering  <meyering@redhat.com>
52246         maint.mk: allow to pass options to gendocs.sh
52247         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
52248         (gendocs_options_): New overridable variable.
52250         gnu-web-doc-update: don't ignore configure or build failure
52251         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
52253         announce-gen: backslash-escape '@'s in --help output
52254         * build-aux/announce-gen: Fix syntax errors.
52256         maint.mk, announce-gen: allow project-specific announcement mail headers
52257         * top/maint.mk (translation_project_): Define default.
52258         (announcement_Cc_, announcement_mail_headers_): Likewise.
52259         (announcement): Invoke announce-gen with new --mail-headers option.
52260         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
52262         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
52263         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
52264         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
52265         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
52266         line in the "err2" output file when running "make check" in verbose
52267         mode (i.e., with set -x enabled).
52269 2010-05-03  Bruno Haible  <bruno@clisp.org>
52271         wctob: Fix for weird platforms.
52272         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
52273         argument value.
52275 2010-05-03  Jim Meyering  <meyering@redhat.com>
52277         maint.mk: prohibit unwarranted use of <strings.h>
52278         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
52279         strings.h in a file that does not also use strcasecmp, strncasecmp,
52280         ffs or ffsll.
52282         maint.mk: remove obsolete comments
52283         * top/maint.mk: Remove stale, commented-out rules.
52285 2010-05-02  Bruno Haible  <bruno@clisp.org>
52287         wcwidth: Declare also when it's aliased.
52288         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
52289         macro.
52291 2010-05-02  Bruno Haible  <bruno@clisp.org>
52293         Fix regression from 2010-04-25.
52294         * gnulib-tool (func_modules_transitive_closure): Check the status of
52295         all modules, not only of the tests that are of the form foo-tests where
52296         foo is a module.
52298 2010-05-02  Bruno Haible  <bruno@clisp.org>
52300         wctob: Work around nasty Cygwin 1.7.2 bug.
52301         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
52302         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
52304 2010-05-01  Bruno Haible  <bruno@clisp.org>
52306         fpurge: Sharper test.
52307         * tests/test-fpurge.c (main): Add one more ftell check.
52308         * modules/fpurge-tests (Depends-on): Add ftell.
52309         Suggested by Eric Blake.
52311 2010-05-01  Bruno Haible  <bruno@clisp.org>
52313         ftello: Another test.
52314         * tests/test-ftello3.c: New file.
52315         * modules/ftello-tests (Files): Add it.
52316         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
52317         MOSTLYCLEANFILES.
52319         ftell: Another test.
52320         * tests/test-ftell3.c: New file.
52321         * modules/ftell-tests (Files): Add it.
52322         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
52323         MOSTLYCLEANFILES.
52325 2010-05-01  Bruno Haible  <bruno@clisp.org>
52327         ftell, ftello: Work around Solaris bug.
52328         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
52329         * lib/ftello.c: Include stdio-impl.h.
52330         (ftello): On Solaris, when _IOWRT is set, compute the result without
52331         looking at _IOREAD.
52332         * modules/ftello (Files): Add lib/stdio-impl.h.
52333         * doc/posix-functions/ftell.texi: Mention Solaris bug.
52334         * doc/posix-functions/ftello.texi: Likewise.
52335         Reported by Eric Blake.
52337 2010-05-01  Bruno Haible  <bruno@clisp.org>
52339         freading: Adapt to special meaning of _IOREAD flag on Solaris.
52340         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
52341         the _IOWRT flag is also set.
52343 2010-05-01  Bruno Haible  <bruno@clisp.org>
52345         Fix doc about a HP-UX stdio bug.
52346         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
52347         * doc/posix-functions/ftello.texi: Likewise.
52349 2010-05-01  Bruno Haible  <bruno@clisp.org>
52351         lseek test: Fix failure on Solaris.
52352         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
52353         output.
52355 2010-04-30  Jim Meyering  <meyering@redhat.com>
52357         bootstrap: don't ignore failure to generate po*/Makevars
52358         * build-aux/bootstrap (with_gettext): Don't ignore failure
52359         to create po/Makevars or runtime-po/Makevars.
52361 2010-04-29  Eric Blake  <eblake@redhat.com>
52363         headers: relax license to LGPLv2+
52364         * modules/fcntl-h (License): Relax license.
52365         * modules/getopt-posix (License): Likewise.
52366         * modules/locale (License): Likewise.
52367         * modules/math (License): Likewise.
52368         * modules/pty (License): Likewise.
52369         * modules/sched (License): Likewise.
52370         * modules/search (License): Likewise.
52371         * modules/spawn (License): Likewise.
52372         * modules/stdarg (License): Likewise.
52373         * modules/sysexits (License): Likewise.
52375 2010-04-29  Jim Meyering  <meyering@redhat.com>
52377         inttypes: relax license to LGPLv2+
52378         * modules/inttypes (License): Relax license.
52380 2010-04-29  Simon Josefsson  <simon@josefsson.org>
52382         * top/maint.mk (indent): Run twice to produce idempotent results.
52384 2010-04-28  Bruno Haible  <bruno@clisp.org>
52386         getdate: Generate getdate.c in the source directory.
52387         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
52388         MOSTLYCLEANFILES.
52389         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
52391 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
52393         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
52394         is not declared as a const *; avoid warnings in that case.
52396 2010-04-28  Eric Blake  <eblake@redhat.com>
52398         canonicalize-lgpl: avoid compiler warning
52399         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
52400         declaration' / 'extraneous semicolon' warning with some compilers.
52401         Reported by Andreas Gruenbacher.
52403 2010-04-28  Jim Meyering  <meyering@redhat.com>
52405         init.sh: ensure a more reliable exit status when exiting via trap
52406         * tests/init.sh (setup_): Don't rely on $? in signal handler.
52407         Inspired by patches from Dmitry V. Levin.
52408         Also trap on signal 3 (SIGQUIT).
52410 2010-04-27  Bruno Haible  <bruno@clisp.org>
52412         Update doc about utimes().
52413         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
52414         'utimens' module.
52415         Reported by Andreas Gruenbacher <agruen@suse.de>.
52417 2010-04-27  Eric Blake  <eblake@redhat.com>
52419         full-read, full-write: relax license
52420         * modules/full-read (License): Drop to LGPLv2+.
52421         * modules/full-write (License): Likewise.
52422         * modules/safe-read (License): Likewise.
52423         * modules/safe-write (License): Likewise.
52425         pthread: mention library for linking
52426         * modules/pthread (Link): Mention $(LIB_PTHREAD).
52428 2010-04-27  Jim Meyering  <meyering@redhat.com>
52430         maint.mk: fix a bug introduced in last change
52431         * top/maint.mk (gl_assured_headers_): Now that all names are on
52432         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
52433         is not anchored to end of word, it should be adequate.
52435         maint.mk: avoid side-effect in latest syntax-check
52436         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
52437         to run commands via $(shell...), and hence to incur cost only when
52438         the new rule is actually run.
52440         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
52441         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
52442         and use that to create a regexp used to detect all #if HAVE_..._H uses.
52443         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
52444         (gl_assured_headers_, az_, AZ_): Define.
52445         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
52447 2010-04-26  Jim Meyering  <jim@meyering.net>
52448             Bruno Haible  <bruno@clisp.org>
52450         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
52451         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
52452         Prompted by an exchange with Gilles Espinasse.
52454 2010-04-26  Jim Meyering  <meyering@redhat.com>
52456         git-version-gen: aesthetic tweak
52457         * build-aux/git-version-gen: Use "$nl" rather than a literal,
52458         so that the command remains on a single line.
52460 2010-04-26  Eric Blake  <eblake@redhat.com>
52462         git-version-gen: allow use on EBCDIC hosts
52463         * build-aux/git-version-gen (dirty): Use literal rather than tying
52464         ourselves to ascii.
52465         Reported by Steve Goetze.
52467 2010-04-25  Bruno Haible  <bruno@clisp.org>
52469         netdb: Add support for GNULIB_POSIXCHECK.
52470         * lib/netdb.in.h: Include warn-on-use.h.
52471         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
52472         functions are used when GNULIB_POSIXCHECK is defined and the
52473         getaddrinfo module is not in use.
52474         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
52475         freeaddrinfo, gai_strerror, getnameinfo are declared.
52476         * modules/netdb (Depends-on): Add warn-on-use.
52477         (Makefile.am): Include warn-on-use.h in netdb.h.
52479 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
52481         build: avoid "make check" failure without .git/ directory
52482         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
52483         there is no .git/ directory.
52485 2010-04-25  Bruno Haible  <bruno@clisp.org>
52487         ptsname: Fix misuse of ttyname_r.
52488         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
52489         of errno.
52491 2010-04-25  Bruno Haible  <bruno@clisp.org>
52493         ttyname_r: Make it work on Solaris 10.
52494         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
52495         if the system function has the POSIX declaration. Test whether the
52496         function fails if the buffer is less than 128 bytes large.
52497         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
52498         system's ttyname_r function. Provide a reasonably large buffer.
52499         * modules/ttyname_r (Depends-on): Add extensions.
52500         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
52502 2010-04-25  Bruno Haible  <bruno@clisp.org>
52504         Use the 'extensions' module for some more functions on Solaris.
52505         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
52506         module.
52507         * doc/posix-functions/ctime_r.texi: Likewise.
52508         * doc/posix-functions/getgrgid_r.texi: Likewise.
52509         * doc/posix-functions/getgrnam_r.texi: Likewise.
52510         * doc/posix-functions/getpwnam_r.texi: Likewise.
52511         * doc/posix-functions/getpwuid_r.texi: Likewise.
52512         * doc/posix-functions/readdir_r.texi: Likewise.
52513         * doc/posix-functions/sigwait.texi: Likewise.
52514         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
52515         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
52517 2010-04-25  Bruno Haible  <bruno@clisp.org>
52519         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
52520         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
52521         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
52522         * lib/ttyname_r.c: Include <limits.h>.
52523         (ttyname_r): Define using the system's ttyname_r function, if it exists
52524         and not on Solaris.
52525         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
52526         set.
52527         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
52528         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
52529         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
52530         Reported by Simon Josefsson.
52532 2010-04-25  Bruno Haible  <bruno@clisp.org>
52534         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
52535         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
52536         * doc/posix-functions/ctime_r.texi: Likewise.
52537         * doc/posix-functions/getgrgid_r.texi: Likewise.
52538         * doc/posix-functions/getgrnam_r.texi: Likewise.
52539         * doc/posix-functions/getlogin_r.texi: Likewise.
52540         * doc/posix-functions/getpwnam_r.texi: Likewise.
52541         * doc/posix-functions/getpwuid_r.texi: Likewise.
52542         * doc/posix-functions/readdir_r.texi: Likewise.
52543         * doc/posix-functions/sigwait.texi: Likewise.
52544         * doc/posix-functions/ttyname_r.texi: Likewise.
52545         Reported by Simon Josefsson.
52547 2010-04-25  Bruno Haible  <bruno@clisp.org>
52549         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
52550         * gnulib-tool (func_usage): Document that --with-*-tests options apply
52551         also to --create-testdir.
52552         (func_acceptable): Don't consider the status of *-tests modules here.
52553         (func_modules_transitive_closure): Consider it here, before including a
52554         test module.
52555         (func_import, func_create_testdir): Set inc_all_direct_tests,
52556         inc_all_indirect_tests.
52557         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
52558         --create-testdir and --create-megatestdir.
52560 2010-04-25  Bruno Haible  <bruno@clisp.org>
52562         gnulib-tool: Add --without-*-tests options.
52563         * gnulib-tool (func_usage): Document the --without-*-tests options.
52564         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
52565         excl_unportable_tests): New variables.
52566         Fail if they are specified with --import or --update.
52567         (func_acceptable): Respect the excl_*_tests variables.
52568         (func_import): Set the excl_*_tests variables to empty.
52570 2010-04-25  Simon Josefsson  <simon@josefsson.org>
52571             Bruno Haible  <bruno@clisp.org>
52573         Work around a MacOS X 10.4 bug with openpty.
52574         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
52575         * tests/test-openpty.c (main): Close the master side explicitly.
52577 2010-04-25  Bruno Haible  <bruno@clisp.org>
52579         strnlen: Fix a C++ test error on MacOS X and Solaris.
52580         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
52581         the function is not declared.
52582         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
52583         Simon Josefsson.
52585 2010-04-24  Bruno Haible  <bruno@clisp.org>
52587         Avoid a gcc warning.
52588         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
52589         of correct type for %08lx directive.
52590         Reported by Eric Blake.
52592 2010-04-24  Bruno Haible  <bruno@clisp.org>
52594         vasnprintf: Correct errno value in case of out-of-memory.
52595         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
52596         or sprintf. Use the errno value from SNPRINTF or sprintf.
52597         Reported by Ian Beckwith <ianb@erislabs.net>.
52599 2010-04-24  Bruno Haible  <bruno@clisp.org>
52601         ansi-c++-opt: Find correct compiler when cross-compiling.
52602         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
52603         AC_CHECK_PROGS.
52604         Reported by Simon Josefsson.
52606 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
52608         vc-list-files: Add support for subversion
52609         * build-aux/vc-list-files: Use "svn list" to generate the list of
52610         files controlled by subversion.
52612 2010-04-23  Jim Meyering  <meyering@redhat.com>
52614         vc-list-files tests: convert to use init.sh
52615         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
52616         path_prepend_.
52617         Use Exit, not exit.
52618         Use skip_ rather than open coding it.
52619         Remove trap set-up and compare definitions.
52620         * tests/test-vc-list-files-git.sh: Likewise.
52621         * modules/vc-list-files-tests (Files): Add tests/init.sh.
52623 2010-04-22  Simon Josefsson  <simon@josefsson.org>
52625         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
52626         backup files.
52628 2010-04-21  Simon Josefsson  <simon@josefsson.org>
52630         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
52632 2010-04-20  Eric Blake  <eblake@redhat.com>
52634         tests: be robust to ignored SIGPIPE
52635         * tests/test-select-in.sh: Consume all output.
52636         * tests/test-lseek.sh: Check correct exit status, while avoiding
52637         EPIPE.
52639 2010-04-20  Simon Josefsson  <simon@josefsson.org>
52640             Bruno Haible  <bruno@clisp.org>
52642         visibility: Don't use -fvisibility if it leads to a warning.
52643         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
52644         yes, don't pretend that visibility works if it leads to a warning.
52645         Reported by Mike Gran <spk121@yahoo.com>.
52647 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
52649         * build-aux/bootstrap: Use "git -h" for testing for supported options
52650         instead of "git --help".  The short-form option only shows a summary,
52651         and doesn't layout the full man page.  Grep for the full option name
52652         in the summary, too.
52654 2010-04-19  Bruno Haible  <bruno@clisp.org>
52656         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
52657         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
52658         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
52659         mention of RELOCATABLE_STRIP.
52660         Reported by Sylvain Beucler <beuc@beuc.net>.
52662 2010-04-19  Bruno Haible  <bruno@clisp.org>
52664         * lib/diffseq.h: Fix typo in comment.
52665         Reported by Eric Blake.
52667 2010-04-19  Bruno Haible  <bruno@clisp.org>
52669         ioctl: Move autoconf macro to a .m4 file.
52670         * m4/ioctl.m4: New file, extracted from modules/ioctl.
52671         * modules/ioctl (Files): Add it.
52672         (configure.ac): Simply invoke gl_FUNC_IOCTL.
52673         Reported by Ian Beckwith <ianb@erislabs.net>.
52675 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
52676             Bruno Haible  <bruno@clisp.org>
52678         diffseq: Accommodate use-case with abstract arrays.
52679         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
52680         is not defined.
52681         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
52682         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
52684 2010-04-18  Bruno Haible  <bruno@clisp.org>
52686         * doc/posix-headers/stdbool.texi: More precise wording.
52688 2010-04-17  Jim Meyering  <meyering@redhat.com>
52690         maint.mk: use gnu-style indentation in an embedded perl script
52691         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
52692         Rename variable: s/two/last_two_bytes/
52694 2010-04-16  Eric Blake  <eblake@redhat.com>
52696         test-stdbool: skip test that fails with Solaris CC
52697         * tests/test-stdbool.c (f): Skip test that causes compilation
52698         error under buggy C++ compiler.
52699         * lib/stdbool.in.h: Document the limitation.
52700         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
52702         setenv: allow compilation with C++
52703         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
52704         register keyword.
52706         stdint: allow test to pass with C++
52707         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
52709         getopt: allow compilation with C++
52710         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
52711         struct.
52712         * lib/getopt.c (_getopt_internal_r): Use correct type.
52713         Reported by Dagobert Michelson, via Joel E. Denny.
52715 2010-04-16  Bruno Haible  <bruno@clisp.org>
52717         Override netdb.h always.
52718         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
52719         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
52720         Reported by Ludovic Courtès <ludo@gnu.org>.
52722 2010-04-15  Bruno Haible  <bruno@clisp.org>
52724         openpty: Fix mistake from 2010-03-21.
52725         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
52726         Reported by Simon Josefsson.
52728 2010-04-15  Eric Blake  <eblake@redhat.com>
52730         test-forkpty: fix expected signature
52731         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
52732         Reported by Simon Josefsson.
52734 2010-04-15  Jim Meyering  <meyering@redhat.com>
52736         maint.mk: texinfo_suffix_re_: correct the default regexp
52737         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
52739         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
52740         make it configurable via texinfo_suffix_re_.
52742 2010-04-14  Eric Blake  <eblake@redhat.com>
52744         strtok_r: relax license to LGPLv2+
52745         * modules/strtok_r (License): Relax license.
52746         Reported by Matthias Bolte.
52748 2010-04-14  Simon Josefsson  <simon@josefsson.org>
52750         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
52751         version 1.4.4 by default instead of requiring the libgcrypt
52752         version used during build.  This makes it possible to use the
52753         application with older but still binary compatible libgcrypt
52754         versions.
52756 2010-04-13  Eric Blake  <eblake@redhat.com>
52758         getopt-gnu: match recent glibc fixes and posix ruling
52759         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
52760         '+' handling, when requesting extensions.
52761         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
52762         'W;' handling.
52763         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
52764         * doc/posix-functions/getopt.texi (getopt): Document this.
52765         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
52766         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
52767         Likewise.
52769         getopt: merge bug fixes from glibc
52770         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
52771         diagnostics.  Honor '+:' correctly.  Reject ';'.
52773         getopt-posix: detect MacOS bug
52774         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
52775         optind when missing a required argument.
52776         * doc/posix-functions/getopt.texi (getopt): Document the bug.
52777         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
52778         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
52779         Likewise.
52781         getopt-posix: avoid spurious failure on Solaris
52782         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
52783         an indicator that setting optind=1 is sufficient for reset.
52785         getopt-posix: avoid spurious failure on FreeBSD
52786         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
52787         in POSIX mode, since the m4 test uses it.
52789         gnulib-tool: silence warning on BSD sh
52790         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
52792 2010-04-13  Jim Meyering  <meyering@redhat.com>
52794         doc: users.txt: GNU patch now uses gnulib
52795         * users.txt: Add patch.
52797 2010-04-12  Jim Meyering  <meyering@redhat.com>
52799         maint.mk: generate more concise timing data for syntax-check rules
52800         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
52801         " done" from each line that reports a syntax-check test duration.
52803 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
52805         git-version-gen: use "git update-index..." rather than "git status"
52806         * build-aux/git-version-gen: Use git update-index --refresh, not
52807         "git status".  With some versions of git, "git status" would fail
52808         to update the index and result in an unwarranted "-dirty" suffix.
52810 2010-04-11  Jim Meyering  <meyering@redhat.com>
52812         openat: correct formatting (no semantic change)
52813         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
52814         Suggested by Bruno Haible.
52816 2010-04-11  Bruno Haible  <bruno@clisp.org>
52818         Stricter declaration checking in testdirs.
52819         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
52820         If for_tests is true, augment AM_CPPFLAGS to define
52821         GNULIB_STRICT_CHECKING.
52822         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
52823         GNULIB_STRICT_CHECKING is defined, verify that the function is
52824         declared.
52826 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
52827             Bruno Haible  <bruno@clisp.org>
52829         libunistring: Improve configure output.
52830         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
52831         Don't say "consider installing GNU libunistring" when checking again
52832         with libiconv.
52834 2010-04-11  Bruno Haible  <bruno@clisp.org>
52836         libunistring: Correct value of $LTLIBUNISTRING.
52837         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
52838         correct the value of $LTLIBUNISTRING.
52840 2010-04-11  Bruno Haible  <bruno@clisp.org>
52842         havelib: Add static libraries to LIBS in the right order.
52843         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
52844         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
52846 2010-04-11  Bruno Haible  <bruno@clisp.org>
52848         libunistring: Detect libunistring also when it depends on libiconv.
52849         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
52850         the second AC_LIB_HAVE_LINKFLAGS invocation.
52852 2010-04-11  James Youngman  <jay@gnu.org>
52854         close-stream: declare local scalars to be "const"
52855         * lib/close-stream.c (close_stream): Make boolean variables const
52856         to document the fact that we set but do not change them.
52858 2010-04-11  Bruno Haible  <bruno@clisp.org>
52860         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
52862 2010-04-11  Jim Meyering  <meyering@redhat.com>
52864         maint.mk: don't include dist-check.mk
52865         * top/maint.mk: Remove bogus include directive.
52867         maint.mk: improve empty-line-at-EOF check
52868         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
52869         solution, rather than tail+Perl-based one.  The latter would read
52870         a few kilobytes from the end of each file, and did not handle empty
52871         files properly.
52873         maint.mk: print the elapsed time for each syntax-check rule
52874         * top/maint.mk (sc_m_rules_): Save start time in a file.
52875         (sc_z_rules_): New rules: remove temp file and print elapsed time.
52876         (local-check): Interpose the .z rules
52878 2010-04-11  Jim Meyering  <meyering@redhat.com>
52880         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
52881         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
52882         empty file with one that ends in an empty line.
52884 2010-04-10  Bruno Haible  <bruno@clisp.org>
52886         mkdir: Make it work on mingw64.
52887         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
52888         * lib/mkdir.c: Update comment.
52889         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
52891 2010-04-10  Bruno Haible  <bruno@clisp.org>
52893         Don't override improved macro from newer autoconf.
52894         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
52895         autoconf >= 2.62.
52896         Reported by Joel E. Denny <jdenny@clemson.edu>.
52898 2010-04-10  Jim Meyering  <meyering@redhat.com>
52900         maint.mk: new syntax-check rule: prohibit empty lines at end of file
52901         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
52903         maint.mk: correct a diagnostic
52904         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
52905         in diagnostic; now use $prohibit.
52907 2010-04-10  Bruno Haible  <address@hidden>
52909         fchownat: Fix a C++ test error on Solaris 8.
52910         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
52911         the function does not exist.
52913 2010-04-10  Bruno Haible  <bruno@clisp.org>
52915         vasnprintf: Add more tests.
52916         * tests/test-vasnprintf-posix.c: Include <errno.h>.
52917         (test_function): Test converting an invalid wide string.
52919         vasnprintf: Correct handling of unconvertible wide string arguments.
52920         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
52921         VASNPRINTF.
52922         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
52923         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
52924         smaller than the expected maximum need for the directive. Set errno to
52925         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
52926         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
52927         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
52928         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
52929         * modules/vasnprintf (Files): Add m4/printf.m4.
52930         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
52932 2010-04-10  Bruno Haible  <bruno@clisp.org>
52934         vasnprintf: Fix crash in %ls directive.
52935         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
52936         string is passed as argument to %ls, with no precision and no width.
52937         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
52939 2010-04-10  Bruno Haible  <bruno@clisp.org>
52941         vasnprintf: Fix multiple test failures on mingw.
52942         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
52943         _snprintf, or snwprintf, not _snwprintf.
52945 2010-04-10  Bruno Haible  <bruno@clisp.org>
52947         write: Fix a C++ test error on mingw.
52948         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
52950 2010-04-10  Bruno Haible  <bruno@clisp.org>
52952         vasnprintf test: Reduce code duplication.
52953         * tests/test-vasnprintf.c (test_function): New function, extracted from
52954         test_vasnprintf.
52955         (test_vasnprintf, test_asnprintf): Invoke it.
52957 2010-04-10  Bruno Haible  <bruno@clisp.org>
52959         strnlen: Fix warning in C++ mode on MacOS X.
52960         * lib/string.in.h (strnlen): Use the modern idiom.
52961         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
52962         defining strnlen as a macro already in <config.h>.
52963         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52964         REPLACE_STRNLEN.
52965         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
52966         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
52968 2010-04-08  James Youngman  <jay@gnu.org>
52970         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
52971         the example.
52973 2010-04-09  Jim Meyering  <meyering@redhat.com>
52975         maint.mk: print better diagnostic when there is no $(_hv_file)
52976         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
52977         announce that when $(_hv_file) (aka help-version) does not exist.
52979         init.sh: run tr in the "C" locale to avoid multibyte interpretation
52980         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
52981         not try to interpret its random input bytes.  Jarno Rajahalme reported
52982         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
52983         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
52984         (mktempd_): Likewise, just in case.
52986         ftruncate: add two years to projected module removal date: 2012
52987         * m4/ftruncate.m4: Adjust comments.
52989         ftruncate: mark module as obsolete; even MinGW provides it, now
52990         * modules/ftruncate (Status): Obsolete.
52991         (Notice): Say that.
52992         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
52993         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
52995 2010-04-08  Bruno Haible  <bruno@clisp.org>
52997         Fix side effects from tests-related modules.
52998         * modules/dprintf-posix (Comment): New section.
52999         * modules/fprintf-posix (Comment): Likewise.
53000         * modules/obstack-printf-posix (Comment): Likewise.
53001         * modules/printf-posix (Comment): Likewise.
53002         * modules/snprintf-posix (Comment): Likewise.
53003         * modules/sprintf-posix (Comment): Likewise.
53004         * modules/vasnprintf-posix (Comment): Likewise.
53005         * modules/vasprintf-posix (Comment): Likewise.
53006         * modules/vdprintf-posix (Comment): Likewise.
53007         * modules/vfprintf-posix (Comment): Likewise.
53008         * modules/vprintf-posix (Comment): Likewise.
53009         * modules/vsnprintf-posix (Comment): Likewise.
53010         * modules/vsprintf-posix (Comment): Likewise.
53011         * modules/xprintf-posix (Comment): Likewise.
53012         * modules/xvasprintf-posix (Comment): Likewise.
53013         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
53014         * modules/floorf-tests (Depends-on): Likewise.
53015         * modules/round-tests (Depends-on): Likewise.
53016         * modules/roundf-tests (Depends-on): Likewise.
53017         * modules/trunc-tests (Depends-on): Likewise.
53018         * modules/truncf-tests (Depends-on): Likewise.
53019         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
53020         'fprintf-posix' module is not present.
53021         * tests/test-floorf2.c (check): Likewise.
53022         * tests/test-trunc2.c (check): Likewise.
53023         * tests/test-truncf2.c (check): Likewise.
53024         * tests/test-round2.c (equal): Likewise.
53025         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
53027 2010-04-07  Karl Berry  <karl@gnu.org>
53029         * config/srclist.txt,
53030         * config/srclistvars.sh,
53031         * config/srclist-update: doc fixes.
53033 2010-04-07  Jim Meyering  <meyering@redhat.com>
53035         maint.mk: add a PATH crosschecking syntax-check rule
53036         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
53037         Useful if you use a test like the one in help-version (coreutils,
53038         diffutils, grep, gzip) that ensures $(VERSION) matches what is
53039         printed by prog --version.
53041 2010-04-06  Bruno Haible  <bruno@clisp.org>
53043         Fix link error on mingw.
53044         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
53045         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
53047 2010-04-06  Bruno Haible  <bruno@clisp.org>
53049         Assume rmdir exists.
53050         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
53052 2010-04-06  Giuseppe Scrivano  <gscrivano@gnu.org>
53054         doc: update users.txt
53055         * users.txt: Add gcal.
53057 2010-04-06  Jim Meyering  <meyering@redhat.com>
53059         init.sh: simply unset TMPDIR rather than risking env -i
53060         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
53061         although it probably works fine on all Unix-based systems, some
53062         systems (Cygwin?) cannot tolerate a totally cleared environment.
53063         Suggestion from Eric Blake.
53065 2010-04-06  Jim Meyering  <meyering@redhat.com>
53067         init.sh: portability fix: use env's POSIX-specified -i option not -u
53068         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
53069         than unportable env -u.  Solaris 5.11's env lacks support for -u.
53071 2010-04-05  Bruno Haible  <bruno@clisp.org>
53073         btowc: Work around Cygwin 1.7.2 bug.
53074         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
53075         does not map NUL to 0.
53076         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
53078 2010-04-05  Bruno Haible  <bruno@clisp.org>
53080         Make the multithread modules work on Cygwin 1.7.2.
53081         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
53082         imported symbols can be declared weak, so that it returns "no" on
53083         Cygwin 1.7.2.
53085 2010-04-05  Bruno Haible  <bruno@clisp.org>
53087         Use the module 'strncat'.
53088         * modules/unistr/u8-strncat (Depends-on): Add strncat.
53090         Tests for module 'strncat'.
53091         * modules/strncat-tests: New file.
53092         * tests/test-strncat.c: New file.
53094         New module 'strncat'.
53095         * lib/string.in.h (strncat): New declaration.
53096         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
53097         * m4/strncat.m4: New file, based on m4/memchr.m4.
53098         * modules/strncat: New file.
53099         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
53100         is declared.
53101         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
53102         REPLACE_STRNCAT.
53103         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
53104         REPLACE_STRNCAT.
53105         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
53106         module.
53107         * tests/test-string-c++.cc: Check signature of strncat.
53109 2010-04-05  Jim Meyering  <meyering@redhat.com>
53111         xstrtoumax-tests: convert to use init.sh
53112         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
53113         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
53114         Use Exit, not exit.
53115         Remove uses of $EXEEXT and "./" to run a program in the current dir.
53117         xstrtoimax-tests: convert to use init.sh
53118         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
53119         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
53120         Use Exit, not exit.
53121         Remove uses of $EXEEXT and "./" to run a program in the current dir.
53123 2010-04-05  Bruno Haible  <bruno@clisp.org>
53125         sys_socket: Avoid #define replacements in C++ mode.
53126         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
53127         warning to the function if possible, rather than #defining the symbol
53128         to a dysfunctional alias.
53130 2010-04-05  Bruno Haible  <bruno@clisp.org>
53132         fseeko: Fix C++ test error on mingw.
53133         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
53134         gl_FUNC_FSEEKO.
53135         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
53136         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
53137         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
53138         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
53140 2010-04-05  Bruno Haible  <bruno@clisp.org>
53142         duplocale: Improve test output.
53143         * tests/test-duplocale.c (main): Print reason for skipped test.
53145 2010-04-05  Bruno Haible  <bruno@clisp.org>
53147         Assume rmdir exists.
53148         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
53149         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
53151 2010-04-05  Bruno Haible  <bruno@clisp.org>
53153         Fix link error on Solaris 8 with cc.
53154         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
53156 2010-04-05  Bruno Haible  <bruno@clisp.org>
53158         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
53159         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
53161 2010-04-05  Bruno Haible  <bruno@clisp.org>
53163         vasprintf: Update documentation.
53164         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
53166 2010-04-05  Bruno Haible  <bruno@clisp.org>
53168         ptsname: Improve test.
53169         * tests/test-ptsname.c (main): Also try the various master names of BSD
53170         systems.
53172 2010-04-05  Bruno Haible  <bruno@clisp.org>
53174         memchr: Avoid a possible C++ test error.
53175         * lib/string.in.h (memchr): Provide declaration if function is missing.
53176         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
53177         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
53178         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
53179         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
53181 2010-04-05  Bruno Haible  <bruno@clisp.org>
53183         strtok_r: Improve idiom.
53184         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
53185         AC_LIBOBJ is used.
53187 2010-04-05  Bruno Haible  <bruno@clisp.org>
53189         strdup: Improve idiom.
53190         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
53191         AC_LIBOBJ is used.
53192         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
53193         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
53194         when AC_LIBOBJ is used.
53196 2010-04-05  Bruno Haible  <bruno@clisp.org>
53198         mbsinit, mbrtowc, wcrtomb: Improve idioms.
53199         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
53200         don't set REPLACE_MBSINIT to 1.
53201         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
53202         don't set REPLACE_MBRTOWC to 1.
53203         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
53204         exist, don't set REPLACE_MBSRTOWCS to 1.
53205         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
53206         exist, don't set REPLACE_MBSNRTOWCS to 1.
53207         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
53208         don't set REPLACE_WCRTOMB to 1.
53209         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
53210         exist, don't set REPLACE_WCSRTOMBS to 1.
53211         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
53212         exist, don't set REPLACE_WCSNRTOMBS to 1.
53214 2010-04-05  Bruno Haible  <bruno@clisp.org>
53216         ldexpl: Improve idiom.
53217         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
53218         make sure to set HAVE_DECL_LDEXPL to 0.
53220 2010-04-05  Jim Meyering  <meyering@redhat.com>
53222         xstrtol-tests: convert to use init.sh
53223         * modules/xstrtol-tests (Files): Add tests/init.sh.
53224         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
53225         Use Exit, not exit.
53226         Remove uses of $EXEEXT and "./" to run a program in the current dir.
53228         atexit-tests: convert to use init.sh
53229         * modules/atexit-tests (Files): Add tests/init.sh.
53230         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
53231         Use Exit, not exit.
53232         Remove uses of $EXEEXT and "./" to run a program in the current dir.
53234         init.sh: fix typo
53235         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
53237         init.sh: make it easier for a test script to write to the tty, ...
53238         when using automake's parallel-tests mode.
53239         * tests/init.sh (stderr_fileno_): Define overridable variable.
53240         (warn_): New function, to use it.
53241         (fail_, skip_, framework_failure_): Use warn_.
53243 2010-04-04  Bruno Haible  <bruno@clisp.org>
53245         btowc: Avoid warning.
53246         * lib/btowc.c: Include <stdlib.h>.
53247         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
53249 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
53250             Bruno Haible  <bruno@clisp.org>
53252         wchar: Port to NetBSD 1.5.
53253         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
53254         * lib/wctype.in.h (WEOF): Likewise.
53256 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
53257             Bruno Haible  <bruno@clisp.org>
53259         Port extended stdio to NetBSD 1.5.
53260         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
53261         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
53262         older.
53264 2010-04-04  Bruno Haible  <bruno@clisp.org>
53266         string: Remove unused substitution.
53267         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
53268         HAVE_DECL_STRERROR.
53269         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
53271 2010-04-04  Bruno Haible  <bruno@clisp.org>
53273         strtod: Avoid a possible C++ test error.
53274         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
53275         set REPLACE_STRTOD.
53277 2010-04-04  Bruno Haible  <bruno@clisp.org>
53279         strerror: Update documentation.
53280         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
53282 2010-04-04  Bruno Haible  <bruno@clisp.org>
53284         stdio: Fix some C++ test errors on Solaris 8 with GCC.
53285         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
53286         _GL_CXXALIAS_SYS_CAST.
53288 2010-04-04  Bruno Haible  <bruno@clisp.org>
53290         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
53291         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
53292         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
53293         REPLACE_FREXPL to 1.
53294         * doc/posix-functions/frexpl.texi: Update documentation.
53296 2010-04-04  Bruno Haible  <bruno@clisp.org>
53298         math: Fix some C++ test errors on Solaris 8 and Cygwin.
53299         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
53301 2010-04-04  Bruno Haible  <bruno@clisp.org>
53303         Implement nanosleep for native Windows.
53304         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
53306 2010-04-04  Bruno Haible  <bruno@clisp.org>
53308         math: Fix some C++ test errors on Solaris 8.
53309         * lib/math.in.h (truncf, trunc): Use simpler idiom.
53311 2010-04-04  Bruno Haible  <bruno@clisp.org>
53313         math: Fix some C++ test errors on Cygwin.
53314         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
53315         truncl): Provide declaration if the system does not have it.
53316         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
53317         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
53318         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
53319         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
53320         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
53321         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
53322         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
53323         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
53324         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
53325         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
53326         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
53327         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
53328         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
53329         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
53330         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
53331         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
53332         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
53333         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
53334         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
53335         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
53336         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
53337         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
53339 2010-04-04  Bruno Haible  <bruno@clisp.org>
53341         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
53342         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
53343         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
53344         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
53345         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
53346         * m4/isinf.m4 (gl_ISINF): Likewise.
53347         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
53349 2010-04-04  Bruno Haible  <bruno@clisp.org>
53351         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
53352         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
53354 2010-04-04  Bruno Haible  <bruno@clisp.org>
53356         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
53357         * modules/tmpfile (configure.ac): Update.
53359         tmpfile: Fix C++ test error on mingw.
53360         * lib/stdio.in.h (tmpfile): New declaration.
53361         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
53362         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
53363         * modules/tmpfile (Depends-on): Add stdio.
53364         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
53365         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
53366         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
53367         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
53368         REPLACE_TMPFILE.
53369         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
53371 2010-04-04  Bruno Haible  <bruno@clisp.org>
53373         ioctl: Fix C++ test error on mingw.
53374         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
53375         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
53376         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
53378 2010-04-03  Bruno Haible  <bruno@clisp.org>
53380         wcwidth: Fix C++ test error on mingw.
53381         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
53382         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
53383         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
53385 2010-04-03  Bruno Haible  <bruno@clisp.org>
53387         nanosleep: Fix C++ test error on mingw.
53388         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
53389         * lib/time.in.h (nanosleep): Use modern idiom.
53390         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
53391         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
53392         REPLACE_NANOSLEEP to 1.
53393         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
53394         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
53396 2010-04-03  Bruno Haible  <bruno@clisp.org>
53398         strptime: Fix C++ test error on mingw.
53399         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
53400         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
53401         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
53402         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
53403         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
53404         not REPLACE_STRPTIME.
53405         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
53406         REPLACE_STRPTIME.
53408 2010-04-03  Bruno Haible  <bruno@clisp.org>
53410         timegm: Fix C++ test error on mingw.
53411         * lib/time.in.h (timegm): Use modern idiom.
53412         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
53413         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
53414         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
53415         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
53417 2010-04-03  Bruno Haible  <bruno@clisp.org>
53419         timegm: Assume declaration if function exists.
53420         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
53421         if it exists. Don't clobber ac_cv_func_timegm.
53423 2010-04-03  Bruno Haible  <bruno@clisp.org>
53425         time_r: Fix C++ test error on mingw.
53426         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
53427         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
53428         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
53429         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
53430         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
53432 2010-04-03  Bruno Haible  <bruno@clisp.org>
53434         time_r: Minor updates.
53435         * modules/time_r (Description): Mention the provided functions.
53436         * lib/time_r.c: Don't include <string.h>.
53437         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
53438         * doc/posix-functions/localtime_r.texi: Likewise.
53440 2010-04-03  Bruno Haible  <bruno@clisp.org>
53442         time: Fix regression introduced on 2010-03-08.
53443         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
53444         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
53446 2010-04-03  Jim Meyering  <meyering@redhat.com>
53448         maint.mk: don't silently disable project-specific syntax-check rules
53449         * top/maint.mk (_prohibit_regexp): Define, to help people realize
53450         that they need to convert their project-specific syntax-check rules
53451         to use the new _sc_search_regexp.
53453 2010-04-03  Bruno Haible  <bruno@clisp.org>
53455         fchdir: Fix regression introduced on 2010-03-08.
53456         * lib/unistd.in.h (fchdir): Fix declaration.
53457         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
53458         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
53459         REPLACE_FCHDIR.
53460         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
53461         REPLACE_FCHDIR.
53463 2010-04-03  Bruno Haible  <bruno@clisp.org>
53465         getpagesize: Fix C++ test error on mingw.
53466         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
53467         system does not declare the function.
53468         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
53469         declared.
53470         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
53471         HAVE_DECL_GETPAGESIZE.
53472         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
53474 2010-04-03  Bruno Haible  <bruno@clisp.org>
53476         stdio: Make C++ tests work on mingw.
53477         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
53478         does not declare the function.
53480 2010-04-03  Bruno Haible  <bruno@clisp.org>
53482         ftello: Fix C++ test error on mingw.
53483         * lib/stdio.in.h (ftello): Use modern idiom.
53484         * lib/ftello.c (ftello): Renamed from rpl_ftello.
53485         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
53486         is missing and that it needs to be replaced.
53487         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
53488         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
53489         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
53491 2010-04-03  Bruno Haible  <bruno@clisp.org>
53493         fseeko: Fix C++ test error on mingw.
53494         * lib/stdio.in.h (fseeko): Use modern idiom.
53495         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
53496         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
53497         is missing and that it needs to be replaced.
53498         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
53499         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
53500         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
53502 2010-04-03  Bruno Haible  <bruno@clisp.org>
53504         mkstemp: Fix C++ test error on mingw.
53505         * lib/stdlib.in.h (mkstemp): Use modern idiom.
53506         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
53507         function is missing and that it needs to be replaced.
53508         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
53509         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
53511 2010-04-03  Bruno Haible  <bruno@clisp.org>
53513         stpncpy: Fix C++ test error on mingw.
53514         * lib/string.in.h (stpncpy): Use modern idiom.
53515         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
53516         function is missing and that it needs to be replaced.
53517         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
53518         REPLACE_STPNCPY.
53519         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
53521 2010-04-03  Bruno Haible  <bruno@clisp.org>
53523         sys_stat: Fix C++ test error on mingw.
53524         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
53525         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
53527 2010-04-03  Bruno Haible  <bruno@clisp.org>
53529         pty: Update doc.
53530         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
53532 2010-04-03  Bruno Haible  <bruno@clisp.org>
53534         unistd: Fix C++ test error on mingw.
53535         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
53537 2010-04-03  Bruno Haible  <bruno@clisp.org>
53539         Update doc regarding mingw.
53540         * doc/glibc-functions/openpty.texi: Update regarding mingw.
53541         * doc/glibc-functions/login_tty.texi: Likewise.
53542         * doc/glibc-functions/forkpty.texi: Likewise.
53544 2010-04-03  Bruno Haible  <bruno@clisp.org>
53546         stdlib: Avoid compilation failure of c-strtold on mingw.
53547         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
53549 2010-04-03  Bruno Haible  <bruno@clisp.org>
53551         locale: Make C++ tests work on Cygwin and mingw.
53552         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
53553         cannot provide the function.
53554         Reported by Simon Josefsson.
53556 2010-04-03  Bruno Haible  <bruno@clisp.org>
53558         localename: Port to MacOS X 10.6.
53559         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
53560         memory layout of the locales in MacOS X 10.6 as well.
53561         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
53563 2010-04-02  Bruno Haible  <bruno@clisp.org>
53565         gnulib-tool: Ensure that long-running tests are executed last.
53566         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
53567         running tests after the one for the other tests.
53569 2010-04-02  Bruno Haible  <bruno@clisp.org>
53571         gnulib-tool: Ensure the tests in the main directory are executed first.
53572         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
53573         start with the current directory.
53575 2010-04-02  Bruno Haible  <bruno@clisp.org>
53577         Tests for module 'havelib', moved here from GNU gettext.
53578         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
53579         modifications.
53580         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
53581         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
53582         with modifications.
53583         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
53584         modifications.
53585         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
53586         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
53587         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
53588         with modifications.
53589         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
53590         with modifications.
53591         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
53592         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
53593         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
53594         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
53595         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
53596         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
53597         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
53598         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
53599         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
53600         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
53601         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
53602         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
53603         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
53604         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
53605         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
53606         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
53607         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
53608         with modifications.
53609         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
53610         with modifications.
53611         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
53612         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
53613         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
53614         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
53615         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
53616         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
53617         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
53618         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
53619         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
53620         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
53621         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
53622         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
53623         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
53624         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
53625         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
53626         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
53627         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
53628         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
53629         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
53630         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
53631         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
53632         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
53633         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
53634         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
53635         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
53636         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
53637         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
53638         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
53639         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
53640         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
53641         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
53642         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
53643         * tests/havelib/rpathx/rpathx.c: New file, from
53644         gettext/autoconf-lib-link.
53645         * tests/havelib/rpathx/Makefile.am: New file, from
53646         gettext/autoconf-lib-link.
53647         * tests/havelib/rpathx/configure.ac: New file, from
53648         gettext/autoconf-lib-link with modifications.
53649         * tests/havelib/rpathy/rpathy.c: New file, from
53650         gettext/autoconf-lib-link.
53651         * tests/havelib/rpathy/Makefile.am: New file, from
53652         gettext/autoconf-lib-link.
53653         * tests/havelib/rpathy/configure.ac: New file, from
53654         gettext/autoconf-lib-link with modifications.
53655         * tests/havelib/rpathz/rpathz.c: New file, from
53656         gettext/autoconf-lib-link.
53657         * tests/havelib/rpathz/Makefile.am: New file, from
53658         gettext/autoconf-lib-link.
53659         * tests/havelib/rpathz/configure.ac: New file, from
53660         gettext/autoconf-lib-link with modifications.
53661         * tests/havelib/rpathlx/usex.c: New file, from
53662         gettext/autoconf-lib-link.
53663         * tests/havelib/rpathlx/Makefile.am: New file, from
53664         gettext/autoconf-lib-link.
53665         * tests/havelib/rpathlx/configure.ac: New file, from
53666         gettext/autoconf-lib-link with modifications.
53667         * tests/havelib/rpathly/usey.c: New file, from
53668         gettext/autoconf-lib-link.
53669         * tests/havelib/rpathly/Makefile.am: New file, from
53670         gettext/autoconf-lib-link.
53671         * tests/havelib/rpathly/configure.ac: New file, from
53672         gettext/autoconf-lib-link with modifications.
53673         * tests/havelib/rpathlz/usez.c: New file, from
53674         gettext/autoconf-lib-link.
53675         * tests/havelib/rpathlz/Makefile.am: New file, from
53676         gettext/autoconf-lib-link.
53677         * tests/havelib/rpathlz/configure.ac: New file, from
53678         gettext/autoconf-lib-link with modifications.
53679         * tests/havelib/rpathlyx/usey.c: New file, from
53680         gettext/autoconf-lib-link.
53681         * tests/havelib/rpathlyx/Makefile.am: New file, from
53682         gettext/autoconf-lib-link.
53683         * tests/havelib/rpathlyx/configure.ac: New file, from
53684         gettext/autoconf-lib-link with modifications.
53685         * tests/havelib/rpathlzyx/usez.c: New file, from
53686         gettext/autoconf-lib-link.
53687         * tests/havelib/rpathlzyx/Makefile.am: New file, from
53688         gettext/autoconf-lib-link.
53689         * tests/havelib/rpathlzyx/configure.ac: New file, from
53690         gettext/autoconf-lib-link with modifications.
53691         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
53692         with modifications.
53694 2010-04-02  Bruno Haible  <bruno@clisp.org>
53696         gnulib-tool: Create distributed built sources also for the tests.
53697         * gnulib-tool (func_create_testdir): Also generate distributed built
53698         sources in the tests directory.
53700 2010-04-02  Bruno Haible  <bruno@clisp.org>
53702         gnulib-tool: Obey user's environment variables.
53703         * gnulib-tool (func_create_testdir): When creating built sources,
53704         respect the environment variables for autoconf, automake, etc. given by
53705         the user.
53707 2010-04-02  Bruno Haible  <bruno@clisp.org>
53709         gnulib-tool: Provide the value of --m4-base to modules.
53710         * gnulib-tool (func_import, func_create_testdir): Emit a definition
53711         of gl_m4_base.
53713 2010-04-02  Eric Blake  <eblake@redhat.com>
53715         maint.mk: fix some fallout
53716         * NEWS: Document the incompatible change, and its effect on cfg.mk.
53717         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
53719 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
53721         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
53722         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
53723         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
53724         (sc_cast_of_x_alloc_return_value): Likewise.
53725         (sc_cast_of_alloca_return_value): Likewise.
53726         (sc_space_tab): Likewise.
53727         (sc_prohibit_atoi_atof): Likewise.
53728         (sc_prohibit_magic_number_exit): Likewise.
53729         (sc_error_exit_success): Likewise.
53730         (sc_file_system): Likewise.
53731         (sc_prohibit_have_config_h): Likewise.
53732         (sc_require_config_h): Likewise.
53733         (sc_prohibit_HAVE_MBRTOWC): Likewise.
53734         (sc_obsolete_symbols): Likewise.
53735         (sc_changelog): Likewise.
53736         (sc_program_name): Likewise.
53737         (sc_the_the): Likewise.
53738         (sc_trailing_blank): Likewise.
53739         (sc_two_space_separator_in_usage): Likewise.
53740         (sc_useless_cpp_parens): Likewise.
53741         (sc_GPL_version): Likewise.
53742         (sc_GFDL_version): Likewise.
53743         (sc_texinfo_acronym): Likewise.
53744         (sc_prohibit_cvs_keyword): Likewise.
53745         (sc_prohibit_stat_st_blocks): Likewise.
53746         (sc_prohibit_S_IS_definition): Likewise.
53747         (sc_redundant_const): Likewise.
53748         (sc_makefile_TAB_only_indentation): Likewise.
53749         (sc_m4_quote_check): Likewise.
53750         (sc_makefile_path_separator_check): Likewise.
53751         (sc_copyright_check): Likewise.
53752         (sc_Wundef_boolean): Likewise.
53753         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
53755         maint.mk: match 0 or more whitespace-before-function-call '('
53756         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
53757         that have zero or two-and-more spaces between the function name
53758         and the open parenthesis.
53759         (sc_error_message_warn_fatal): Likewise.
53760         (sc_error_message_uppercase): Likewise.
53761         (sc_error_message_period): Likewise.
53763 2010-03-31  Eric Blake  <eblake@redhat.com>
53765         maint.mk: check for [ as well as test
53766         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
53767         Based on a libvirt report by Matthias Bolte.
53769         gnumakefile: don't squelch _version output
53770         * top/GNUmakefile (_version): Create one-shot dependency rather
53771         than using $(shell) when version must be regenerated.
53772         (_autoreconf): Run verbosely, by default.
53774         sys_time: avoid compiler warnings
53775         * lib/sys_time.in.h (includes): Ensure gcc pragma is
53776         unconditional, fixing regression from 2010-03-29.
53777         Reported by Simon Josefsson.
53779 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
53781         maint.mk: s/_header_without_use/_sc_header_without_use/
53782         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
53783         (sc_prohibit_assert_without_use): Use the new name.
53784         (sc_prohibit_close_stream_without_use): Likewise.
53785         (sc_prohibit_getopt_without_use): Likewise.
53786         (sc_prohibit_quotearg_without_use): Likewise.
53787         (sc_prohibit_quote_without_use): Likewise.
53788         (sc_prohibit_long_options_without_use): Likewise.
53789         (sc_prohibit_inttostr_without_use): Likewise.
53790         (sc_prohibit_ignore_value_without_use): Likewise.
53791         (sc_prohibit_error_without_use): Likewise.
53792         (sc_prohibit_xalloc_without_use): Likewise.
53793         (sc_prohibit_hash_without_use): Likewise.
53794         (sc_prohibit_hash_pjw_without_use): Likewise.
53795         (sc_prohibit_safe_read_without_use): Likewise.
53796         (sc_prohibit_argmatch_without_use): Likewise.
53797         (sc_prohibit_canonicalize_without_use): Likewise.
53798         (sc_prohibit_root_dev_ino_without_use): Likewise.
53799         (sc_prohibit_openat_without_use): Likewise.
53800         (sc_prohibit_c_ctype_without_use): Likewise.
53801         (sc_prohibit_signal_without_use): Likewise.
53802         (sc_prohibit_intprops_without_use): Likewise.
53804 2010-03-30  Eric Blake  <eblake@redhat.com>
53806         maint: improve module indicators
53807         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
53808         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
53809         columns, and avoid extra macro expansion.
53811         fdopendir: work around FreeBSD bug
53812         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
53813         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
53814         * modules/dirent (Makefile.am): Substitute it.
53815         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
53816         declaration.
53817         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
53818         fix.
53819         Reported by Christian Weisgerber <naddy@mips.inka.de>.
53821 2010-03-29  Bruno Haible  <bruno@clisp.org>
53823         Emit #pragma system_header after the inclusion guard, not before.
53824         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
53825         guard that spans the entire file, not before. This enables an
53826         optimization in GCC's preprocessor.
53827         * lib/ctype.in.h: Likewise.
53828         * lib/dirent.in.h: Likewise.
53829         * lib/errno.in.h: Likewise.
53830         * lib/float.in.h: Likewise.
53831         * lib/getopt.in.h: Likewise.
53832         * lib/iconv.in.h: Likewise.
53833         * lib/langinfo.in.h: Likewise.
53834         * lib/locale.in.h: Likewise.
53835         * lib/math.in.h: Likewise.
53836         * lib/netdb.in.h: Likewise.
53837         * lib/netinet_in.in.h: Likewise.
53838         * lib/pty.in.h: Likewise.
53839         * lib/sched.in.h: Likewise.
53840         * lib/se-selinux.in.h: Likewise.
53841         * lib/search.in.h: Likewise.
53842         * lib/spawn.in.h: Likewise.
53843         * lib/stdarg.in.h: Likewise.
53844         * lib/stdint.in.h: Likewise.
53845         * lib/string.in.h: Likewise.
53846         * lib/strings.in.h: Likewise.
53847         * lib/sys_file.in.h: Likewise.
53848         * lib/sys_ioctl.in.h: Likewise.
53849         * lib/sys_time.in.h: Likewise.
53850         * lib/sys_times.in.h: Likewise.
53851         * lib/sys_utsname.in.h: Likewise.
53852         * lib/sys_wait.in.h: Likewise.
53853         * lib/sysexits.in.h: Likewise.
53854         * lib/wctype.in.h: Likewise.
53856 2010-03-28  James Youngman  <jay@gnu.org>
53858         save-cwd: don't leak a file descriptor when the caller execs.
53859         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
53860         saved file descriptor.
53861         * modules/save-cwd (Depends-on): Depend on cloexec.
53863 2010-03-29  Bruno Haible  <bruno@clisp.org>
53865         Remove vestiges of fts-lgpl module.
53866         * lib/fts_.h: Assume GNULIB_FTS is 1.
53867         * lib/fts.c: Likewise.
53868         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
53870 2010-03-28  Bruno Haible  <bruno@clisp.org>
53872         Fix definition of tests witness macro.
53873         * gnulib-tool (func_import): Fix definition of witness macro.
53875 2010-03-28  Bruno Haible  <bruno@clisp.org>
53877         Fix ioctl's protoype on glibc systems.
53878         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
53879         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
53880         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
53881         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
53882         signature. If not, arrange to replace the ioctl function.
53883         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
53884         REPLACE_IOCTL.
53885         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
53886         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
53887         Reported by Ludovic Courtès <ludo@gnu.org>.
53889 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
53891         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
53892         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
53893         made it so grep -r --include=GLOB* ... did not work.
53895 2010-03-26  Jim Meyering  <meyering@redhat.com>
53896             Eric Blake  <eblake@redhat.com>
53898         maint.mk: prohibit use of test's -o and -a operators
53899         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
53901 2010-03-28  Bruno Haible  <bruno@clisp.org>
53903         Remove unused GNULIB_XYZ macro definitions.
53904         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
53905         invocation.
53907 2010-03-28  Bruno Haible  <bruno@clisp.org>
53909         Mark privileged tests modules.
53910         * modules/idpriv-drop-tests (Status): New section.
53911         * modules/idpriv-droptemp-tests (Status): New section.
53913 2010-03-28  Bruno Haible  <bruno@clisp.org>
53915         Split C++ tests into separate tests modules.
53916         * modules/dirent-c++-tests: New file, extracted from
53917         modules/dirent-tests.
53918         * modules/dirent-tests: Depend on it.
53919         * modules/fcntl-h-c++-tests: New file, extracted from
53920         modules/fcntl-h-tests.
53921         * modules/fcntl-h-tests: Depend on it.
53922         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
53923         * modules/glob-tests: Depend on it.
53924         * modules/iconv-h-c++-tests: New file, extracted from
53925         modules/iconv-h-tests.
53926         * modules/iconv-h-tests: Depend on it.
53927         * modules/langinfo-c++-tests: New file, extracted from
53928         modules/langinfo-tests.
53929         * modules/langinfo-tests: Depend on it.
53930         * modules/locale-c++-tests: New file, extracted from
53931         modules/locale-tests.
53932         * modules/locale-tests: Depend on it.
53933         * modules/math-c++-tests: New file, extracted from modules/math-tests.
53934         * modules/math-tests: Depend on it.
53935         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
53936         * modules/pty-tests: Depend on it.
53937         * modules/search-c++-tests: New file, extracted from
53938         modules/search-tests.
53939         * modules/search-tests: Depend on it.
53940         * modules/signal-c++-tests: New file, extracted from
53941         modules/signal-tests.
53942         * modules/signal-tests: Depend on it.
53943         * modules/spawn-c++-tests: New file, extracted from
53944         modules/spawn-tests.
53945         * modules/spawn-tests: Depend on it.
53946         * modules/stdio-c++-tests: New file, extracted from
53947         modules/stdio-tests.
53948         * modules/stdio-tests: Depend on it.
53949         * modules/stdlib-c++-tests: New file, extracted from
53950         modules/stdlib-tests.
53951         * modules/stdlib-tests: Depend on it.
53952         * modules/string-c++-tests: New file, extracted from
53953         modules/string-tests.
53954         * modules/string-tests: Depend on it.
53955         * modules/sys_ioctl-c++-tests: New file, extracted from
53956         modules/sys_ioctl-tests.
53957         * modules/sys_ioctl-tests: Depend on it.
53958         * modules/sys_select-c++-tests: New file, extracted from
53959         modules/sys_select-tests.
53960         * modules/sys_select-tests: Depend on it.
53961         * modules/sys_socket-c++-tests: New file, extracted from
53962         modules/sys_socket-tests.
53963         * modules/sys_socket-tests: Depend on it.
53964         * modules/sys_stat-c++-tests: New file, extracted from
53965         modules/sys_stat-tests.
53966         * modules/sys_stat-tests: Depend on it.
53967         * modules/sys_time-c++-tests: New file, extracted from
53968         modules/sys_time-tests.
53969         * modules/sys_time-tests: Depend on it.
53970         * modules/time-c++-tests: New file, extracted from modules/time-tests.
53971         * modules/time-tests: Depend on it.
53972         * modules/unistd-c++-tests: New file, extracted from
53973         modules/unistd-tests.
53974         * modules/unistd-tests: Depend on it.
53975         * modules/wchar-c++-tests: New file, extracted from
53976         modules/wchar-tests.
53977         * modules/wchar-tests: Depend on it.
53978         * modules/wctype-c++-tests: New file, extracted from
53979         modules/wctype-tests.
53980         * modules/wctype-tests: Depend on it.
53981         Reported by Simon Josefsson.
53983 2010-03-28  Bruno Haible  <bruno@clisp.org>
53985         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
53986         * gnulib-tool (func_exists_module): New function, extracted from
53987         func_verify_module.
53988         (func_verify_module): Use it.
53989         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
53990         'foo' only if 'foo' exists.
53991         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
53992         module.
53994 2010-03-28  Bruno Haible  <bruno@clisp.org>
53996         gnulib-tool: Add support for special categories of tests.
53997         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
53998         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
53999         (func_usage): Document them.
54000         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
54001         inc_unportable_tests, inc_all_tests): New variables.
54002         (func_acceptable): Consider these variables.
54003         (func_modules_transitive_closure): Make it work when the 'Status' field
54004         consists of multiple words.
54005         (func_import): Store and restore the values of inc_cxx_tests,
54006         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
54007         inc_all_tests in gnulib-comp.m4.
54008         (func_create_testdir): Set inc_all_tests to true.
54009         * doc/gnulib.texi (Extra tests modules): New section.
54010         Suggested by Jim Meyering.
54012 2010-03-28  Bruno Haible  <bruno@clisp.org>
54014         ansi-c++-opt: Allow turning off the C++ build by default.
54015         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
54016         gl_CXX_CHOICE_DEFAULT_NO is defined.
54017         Requested by Eric Blake.
54019 2010-03-28  Bruno Haible  <bruno@clisp.org>
54021         unistd: Avoid #define replacements in C++ mode.
54022         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
54023         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
54024         setsockopt, shutdown, select): In C++, attach a warning to the function
54025         if possible, rather than #defining the symbol to a dysfunctional alias.
54026         Reported by John W. Eaton <jwe@gnu.org>.
54028 2010-03-28  Bruno Haible  <bruno@clisp.org>
54030         Fix link errors on mingw.
54031         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
54032         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
54033         $(LIBSOCKET).
54034         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
54035         $(LIBSOCKET).
54037 2010-03-28  Bruno Haible  <bruno@clisp.org>
54038             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54040         lib-ignore: Determine different options for different compilers.
54041         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
54042         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
54043         Add comments.
54044         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
54045         * NEWS: Mention the change.
54047 2010-03-27  Bruno Haible  <bruno@clisp.org>
54049         Remove unused GNULIB_XYZ macro definitions.
54050         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
54051         * modules/fseek (configure.ac): Likewise.
54052         * modules/ioctl (configure.ac): Likewise.
54053         * modules/open (configure.ac): Likewise.
54054         * modules/stdlib-safer (configure.ac): Likewise.
54056 2010-03-27  Bruno Haible  <bruno@clisp.org>
54058         Add a remark about certain modules.
54059         * modules/malloc (Comment): New section.
54060         * modules/realloc (Comment): Likewise.
54061         * modules/sigpipe (Comment): Likewise.
54063 2010-03-27  Bruno Haible  <bruno@clisp.org>
54065         Resolve conflict between the two kinds of module indicators.
54066         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
54067         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
54068         * modules/canonicalize (configure.ac): Invoke
54069         gl_MODULE_INDICATOR_FOR_TESTS.
54070         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
54071         GNULIB_XYZ.
54072         * tests/test-dirent-c++.cc: Likewise.
54073         * tests/test-dirent-safer.c: Likewise.
54074         * tests/test-dup2.c: Likewise.
54075         * tests/test-fchdir.c: Likewise.
54076         * tests/test-fcntl-h-c++.cc: Likewise.
54077         * tests/test-getopt.c: Likewise.
54078         * tests/test-getopt.h: Likewise.
54079         * tests/test-langinfo-c++.cc: Likewise.
54080         * tests/test-locale-c++.cc: Likewise.
54081         * tests/test-math-c++.cc: Likewise.
54082         * tests/test-pty-c++.cc: Likewise.
54083         * tests/test-search-c++.cc: Likewise.
54084         * tests/test-signal-c++.cc: Likewise.
54085         * tests/test-spawn-c++.cc: Likewise.
54086         * tests/test-stdio-c++.cc: Likewise.
54087         * tests/test-stdlib-c++.cc: Likewise.
54088         * tests/test-string-c++.cc: Likewise.
54089         * tests/test-sys_ioctl-c++.cc: Likewise.
54090         * tests/test-sys_select-c++.cc: Likewise.
54091         * tests/test-sys_socket-c++.cc: Likewise.
54092         * tests/test-sys_stat-c++.cc: Likewise.
54093         * tests/test-sys_time-c++.cc: Likewise.
54094         * tests/test-time-c++.cc: Likewise.
54095         * tests/test-unistd-c++.cc: Likewise.
54096         * tests/test-wchar-c++.cc: Likewise.
54097         * tests/uninorm/test-u8-nfc.c: Likewise.
54098         * tests/uninorm/test-u8-nfd.c: Likewise.
54099         * tests/uninorm/test-u8-nfkc.c: Likewise.
54100         * tests/uninorm/test-u8-nfkd.c: Likewise.
54101         * tests/uninorm/test-u16-nfc.c: Likewise.
54102         * tests/uninorm/test-u16-nfd.c: Likewise.
54103         * tests/uninorm/test-u16-nfkc.c: Likewise.
54104         * tests/uninorm/test-u16-nfkd.c: Likewise.
54105         * tests/uninorm/test-u32-nfc.c: Likewise.
54106         * tests/uninorm/test-u32-nfc-big.c: Likewise.
54107         * tests/uninorm/test-u32-nfd.c: Likewise.
54108         * tests/uninorm/test-u32-nfd-big.c: Likewise.
54109         * tests/uninorm/test-u32-nfkc.c: Likewise.
54110         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
54111         * tests/uninorm/test-u32-nfkd.c: Likewise.
54112         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
54113         * tests/uninorm/test-u32-normalize-big.c: Likewise.
54115 2010-03-27  Bruno Haible  <bruno@clisp.org>
54117         Distinguish two kinds of module indicators.
54118         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
54119         gl_MODULE_INDICATOR.
54120         (gl_MODULE_INDICATOR): New macro.
54121         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
54122         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
54123         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
54124         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
54125         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
54126         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
54127         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
54128         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
54129         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
54130         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
54131         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
54132         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
54133         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
54134         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
54135         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
54136         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
54137         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
54138         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
54139         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
54140         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
54141         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
54142         * modules/cloexec (configure.ac): Likewise.
54143         * modules/getopt-gnu (configure.ac): Likewise.
54144         * modules/uninorm/u8-normalize (configure.ac): Likewise.
54145         * modules/uninorm/u16-normalize (configure.ac): Likewise.
54146         * modules/uninorm/u32-normalize (configure.ac): Likewise.
54147         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
54149 2010-03-27  Bruno Haible  <bruno@clisp.org>
54151         New module description field 'Comment'.
54152         * gnulib-tool: New option --extract-comment.
54153         (func_usage): Document it.
54154         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
54155         (func_get_comment): New function.
54156         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
54158 2010-03-27  Bruno Haible  <bruno@clisp.org>
54160         Addendum to 2010-02-07 commit.
54161         * gnulib-tool (func_usage): Document --extract-applicability option.
54163 2010-03-27  Bruno Haible  <bruno@clisp.org>
54165         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
54166         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
54167         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
54168         rather than link errors.
54170 2010-03-27  Bruno Haible  <bruno@clisp.org>
54172         Avoid side effects from tests-related modules on the compilation of lib.
54173         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
54174         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
54175         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
54176         parameter. Emit into AM_CPPFLAGS a definition of the designated C
54177         macro.
54178         (func_import): Define a witness macro. Assign it a value that depends
54179         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
54180         tests-related modules.
54181         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
54182         Reported by Jim Meyering.
54184 2010-03-27  Bruno Haible  <bruno@clisp.org>
54186         Factorize common .m4 code.
54187         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
54188         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
54189         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
54190         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
54191         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
54192         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
54193         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
54194         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
54195         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
54196         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
54197         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
54198         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
54199         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
54200         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
54201         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
54202         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
54203         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
54204         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
54205         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
54206         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
54207         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
54208         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
54209         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
54210         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
54211         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
54212         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
54213         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
54214         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
54215         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
54216         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
54217         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
54218         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
54220 2010-03-27  Bruno Haible  <bruno@clisp.org>
54222         Fix a compilation error on Cygwin with g++ >= 4.3.
54223         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
54224         if it is undefined or if we alias it to chmod.
54225         (lstat): Don't warn about the use of this function if it is undefined
54226         or if we alias it to stat.
54227         Reported by Simon Josefsson.
54229 2010-03-27  Bruno Haible  <bruno@clisp.org>
54231         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
54232         * modules/getlogin (configure.ac): Update.
54234         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
54235         * modules/getlogin_r (configure.ac): Update.
54237         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
54238         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
54239         * modules/inet_ntop (configure.ac): Update.
54241         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
54242         * modules/inet_pton (configure.ac): Update.
54244         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
54245         * modules/mbslen (configure.ac): Update.
54247         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
54248         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
54249         * modules/forkpty (configure.ac): Update.
54250         * modules/openpty (configure.ac): Update.
54252 2010-03-26  Simon Josefsson  <simon@josefsson.org>
54254         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
54255         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
54257 2010-03-25  Eric Blake  <eblake@redhat.com>
54259         maint: use pragma consistently across replacement headers
54260         * lib/ctype.in.h (system_header): Hoist for consistent placement.
54261         * lib/dirent.in.h (system_header): Likewise.
54262         * lib/errno.in.h (system_header): Likewise.
54263         * lib/float.in.h (system_header): Likewise.
54264         * lib/getopt.in.h (system_header): Likewise.
54265         * lib/iconv.in.h (system_header): Likewise.
54266         * lib/inttypes.in.h (system_header): Likewise.
54267         * lib/langinfo.in.h (system_header): Likewise.
54268         * lib/locale.in.h (system_header): Likewise.
54269         * lib/math.in.h (system_header): Likewise.
54270         * lib/netdb.in.h (system_header): Likewise.
54271         * lib/netinet_in.in.h (system_header): Likewise.
54272         * lib/pty.in.h (system_header): Likewise.
54273         * lib/sched.in.h (system_header): Likewise.
54274         * lib/se-selinux.in.h (system_header): Likewise.
54275         * lib/search.in.h (system_header): Likewise.
54276         * lib/spawn.in.h (system_header): Likewise.
54277         * lib/stdarg.in.h (system_header): Likewise.
54278         * lib/stdint.in.h (system_header): Likewise.
54279         * lib/string.in.h (system_header): Likewise.
54280         * lib/strings.in.h (system_header): Likewise.
54281         * lib/sys_file.in.h (system_header): Likewise.
54282         * lib/sys_ioctl.in.h (system_header): Likewise.
54283         * lib/sys_socket.in.h (system_header): Likewise.
54284         * lib/sys_times.in.h (system_header): Likewise.
54285         * lib/sys_utsname.in.h (system_header): Likewise.
54286         * lib/sys_wait.in.h (system_header): Likewise.
54287         * lib/sysexits.in.h (system_header): Likewise.
54288         * lib/unistd.in.h (system_header): Likewise.
54289         * lib/wctype.in.h (system_header): Likewise.
54291         arpa/inet: fix mingw compilation warning
54292         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
54293         Reported by Matthew Bolte.
54295 2010-03-25  Bruno Haible  <bruno@clisp.org>
54297         Avoid collision between gnulib wrapper and libintl wrapper.
54298         * lib/printf.c (printf): Don't define if a printf wrapper is already
54299         defined in intl/printf.c.
54300         Reported by Michel Boaventura <michel@michelboaventura.com>.
54302 2010-03-25  Bruno Haible  <bruno@clisp.org>
54304         Use ANSI C.
54305         * lib/readutmp.h (getutent): Provide ANSI C prototype.
54307 2010-03-25  Bruno Haible  <bruno@clisp.org>
54309         Minor formatting changes.
54310         * lib/acosl.c: Insert space before function argument list.
54311         * lib/argz.c: Likewise.
54312         * lib/asinl.c: Likewise.
54313         * lib/expl.c: Likewise.
54314         * lib/gen-uni-tables.c: Likewise.
54315         * lib/gettext.h: Likewise.
54316         * lib/glthread/lock.h: Likewise.
54317         * lib/tanl.c: Likewise.
54318         * lib/uniname/uniname.c: Likewise.
54319         * tests/test-idpriv-drop.c: Likewise.
54320         * tests/test-idpriv-droptemp.c: Likewise.
54321         * tests/test-lock.c: Likewise.
54322         * tests/test-tls.c: Likewise.
54323         * lib/argp-help.c: Insert space before function-like macro argument
54324         list.
54325         * lib/memcmp.c: Likewise.
54326         * tests/test-base64.c: Likewise.
54327         * lib/localename.c: Insert space before sizeof's argument list.
54328         * lib/safe-alloc.h: Likewise.
54329         * lib/file-set.h: Insert space before macro argument list.
54330         * tests/test-argp.c: Likewise.
54331         * lib/argp-namefrob.h: Insert space before function parameter list.
54332         * lib/getaddrinfo.c: Likewise.
54333         * lib/netdb.in.h: Likewise.
54334         * lib/parse-duration.h: Likewise.
54335         * lib/parse-duration.c: Likewise.
54336         * lib/poll.c: Likewise.
54337         * lib/select.c: Likewise.
54338         * lib/trim.h: Likewise.
54339         * tests/test-usleep.c: Likewise.
54340         * lib/ldexpl.c: Insert space before function parameter list and before
54341         function argument list.
54342         * lib/logl.c: Likewise.
54343         * lib/sqrtl.c: Likewise.
54344         * lib/trim.c: Likewise.
54345         * lib/cosl.c: Use GNU style indentation. Insert space before function
54346         argument list.
54347         * lib/sinl.c: Likewise.
54348         * lib/tsearch.c: Insert space after 'for'.
54349         Reported by Jim Meyering.
54351 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
54353         * maint.mk (sc_Wundef_boolean): Check for the presence of the
54354         config header before grepping, as it's not present before
54355         autoreconf/configure are run.  Reported by Simon Josefsson.
54357 2010-03-23  Bruno Haible  <bruno@clisp.org>
54359         pt_chown: Make it work with automake < 1.11.
54360         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
54361         Reported by Simon Josefsson.
54363 2010-03-23  Bruno Haible  <bruno@clisp.org>
54365         pt_chown: Don't depend on GPLed modules.
54366         * lib/pt_chown.c: Don't include idpriv.h.
54367         (main): Don't drop privileges.
54368         * modules/pt_chown (Depends-on): Remove idpriv-drop.
54369         Reported by Simon Josefsson.
54371 2010-03-24  Simon Josefsson  <simon@josefsson.org>
54373         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
54374         suggestions from karl@freefriends.org (Karl Berry).
54376 2010-03-22  Eric Blake  <eblake@redhat.com>
54378         gethostname: further tweaks
54379         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
54380         are overriding gethostname.
54381         Suggested by Bruno Haible.
54383 2010-03-21  Bruno Haible  <bruno@clisp.org>
54385         Fix comments.
54386         * lib/forkpty.c (rpl_forkpty): Fix comment.
54387         * lib/openpty.c (rpl_openpty): Likewise.
54388         Reported by Eric Blake.
54390 2010-03-22  Eric Blake  <eblake@redhat.com>
54392         gethostname: fix build on mingw
54393         * lib/unistd.in.h (includes): Work around fact that mingw
54394         <winsock2.h> re-includes <unistd.h>, by avoiding any
54395         redeclarations if we are being included by <winsock2.h>.
54396         Reported by Matthias Bolte.
54398 2010-03-21  Bruno Haible  <bruno@clisp.org>
54400         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
54401         * lib/forkpty.c (forkpty): New replacement function, from glibc with
54402         modifications.
54403         * lib/pty.in.h (forkpty): Update declaration. Add comments.
54404         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
54405         provide the replacement.
54406         * modules/forkpty (Depends-on): Add openpty, login_tty.
54407         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
54408         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
54409         * doc/glibc-functions/forkpty.texi: More supported platforms.
54410         * config/srclist.txt: Add forkpty.c (commented).
54412 2010-03-21  Bruno Haible  <bruno@clisp.org>
54414         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
54415         (Makefile.am): Verify that PTY_LIB is defined.
54417         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
54419 2010-03-21  Bruno Haible  <bruno@clisp.org>
54421         Tests for module 'login_tty'.
54422         * modules/login_tty-tests: New file.
54423         * tests/test-login_tty.c: New file.
54425         New module 'login_tty'.
54426         * lib/login_tty.c: New file.
54427         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
54428         * modules/login_tty: New file.
54429         * doc/glibc-functions/login_tty.texi: Mention the new module.
54431 2010-03-21  Bruno Haible  <bruno@clisp.org>
54433         login_tty: Documentation.
54434         * doc/glibc-functions/login_tty.texi: New file.
54435         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
54437 2010-03-21  Bruno Haible  <bruno@clisp.org>
54439         pty: Consistent macro naming.
54440         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
54441         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
54442         * modules/pty (configure.ac): Update.
54444 2010-03-21  Bruno Haible  <bruno@clisp.org>
54446         Tests for openpty: Make stricter.
54447         * tests/test-openpty.c (main): Add test of canonical processing and
54448         erase.
54449         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
54451         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
54452         * lib/openpty.c (openpty): New replacement function.
54453         * lib/pty.in.h: Include <termios.h>.
54454         (openpty): Update declaration. Add comments.
54455         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
54456         is not declared, arrange to provide the replacement. Check for _getpty
54457         and posix_openpt.
54458         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
54459         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
54460         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
54461         * modules/pty-tests (test_pty_c___LDADD): New variable.
54462         * doc/glibc-functions/openpty.texi: More supported platforms.
54464 2010-03-21  Bruno Haible  <bruno@clisp.org>
54466         setenv: Tweaks.
54467         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
54468         the test program.
54469         * doc/posix-functions/setenv.texi: Update platforms list.
54471 2010-03-21  Bruno Haible  <bruno@clisp.org>
54473         New module 'unlockpt'.
54474         * lib/unlockpt.c: New file, from glibc with modifications.
54475         * m4/unlockpt.m4: New file.
54476         * modules/unlockpt: New file.
54477         * lib/stdlib.in.h (unlockpt): New declaration.
54478         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
54479         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
54480         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
54481         HAVE_UNLOCKPT.
54482         * doc/posix-functions/unlockpt.texi: Mention the new module.
54483         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
54484         * config/srclist.txt: Add unlockpt.c (commented).
54486 2010-03-21  Jim Meyering  <meyering@redhat.com>
54488         maint.mk: prohibit inclusion of "intprops.h" without use
54489         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
54491 2010-03-21  Bruno Haible  <bruno@clisp.org>
54493         New module 'grantpt'.
54494         * lib/grantpt.c: New file, from glibc with modifications.
54495         * m4/grantpt.m4: New file.
54496         * modules/grantpt: New file.
54497         * lib/stdlib.in.h (grantpt): New declaration.
54498         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
54499         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
54500         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
54501         HAVE_GRANTPT.
54502         * doc/posix-functions/grantpt.texi: Mention the new module.
54503         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
54504         * config/srclist.txt: Add grantpt.c (commented).
54506 2010-03-21  Bruno Haible  <bruno@clisp.org>
54508         New module 'pt_chown'.
54509         * lib/pt_chown.c: New file, from glibc with modifications.
54510         * lib/pty-private.h: New file, from glibc with modifications.
54511         * modules/pt_chown: New file.
54512         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
54514 2010-03-21  Bruno Haible  <bruno@clisp.org>
54516         Tests for module 'ptsname'.
54517         * modules/ptsname-tests: New file.
54518         * tests/test-ptsname.c: New file.
54520         New module 'ptsname'.
54521         * lib/ptsname.c: New file, from glibc with modifications.
54522         * m4/ptsname.m4: New file.
54523         * modules/ptsname: New file.
54524         * lib/stdlib.in.h (ptsname): New declaration.
54525         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
54526         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
54527         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
54528         HAVE_PTSNAME.
54529         * doc/posix-functions/ptsname.texi: Mention the new module.
54530         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
54531         * config/srclist.txt: Add ptsname.c (commented).
54533 2010-03-21  Bruno Haible  <bruno@clisp.org>
54535         Tests for module 'ttyname_r'.
54536         * modules/ttyname_r-tests: New file.
54537         * tests/test-ttyname_r.c: New file.
54539         New module 'ttyname_r'.
54540         * lib/ttyname_r.c: New file.
54541         * m4/ttyname_r.m4: New file.
54542         * modules/ttyname_r: New file.
54543         * lib/unistd.in.h (ttyname_r): New declaration.
54544         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
54545         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
54546         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
54547         HAVE_TTYNAME_R.
54548         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
54549         * doc/posix-functions/ttyname_r.texi: Mention the new module.
54551 2010-03-20  Bruno Haible  <bruno@clisp.org>
54553         signal: Undefine macro definitions in C++ mode.
54554         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
54555         sigfillset): Undefine macro definitions from the system header in C++
54556         mode.
54557         Reported by John W. Eaton <jwe@gnu.org>.
54559 2010-03-20  Bruno Haible  <bruno@clisp.org>
54561         Ensure no #include statements inside extern "C" { ... }.
54562         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
54563         contain #include statements.
54564         * lib/time.in.h: Likewise.
54566 2010-03-20  Bruno Haible  <bruno@clisp.org>
54568         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
54569         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
54570         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
54571         Reported by John W. Eaton <jwe@gnu.org>.
54573 2010-03-20  Bruno Haible  <bruno@clisp.org>
54575         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
54576         Reported by Jim Meyering.
54578 2010-03-20  Bruno Haible  <bruno@clisp.org>
54580         pipe: Set errno upon failure.
54581         * lib/pipe.h: Specify that when -1 is returned, errno is set.
54582         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
54583         errno value in error message.
54585 2010-03-20  Bruno Haible  <bruno@clisp.org>
54586             Jim Meyering  <meyering@redhat.com>
54588         lchown: Avoid "unused variable" warning.
54589         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
54591 2010-03-20  Bruno Haible  <bruno@clisp.org>
54593         Work around unlink() bug on MacOS X 10.5.6.
54594         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
54595         attempting to unlink a parent directory.
54596         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
54597         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
54598         activate for the replacement function.
54599         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
54601 2010-03-20  Bruno Haible  <bruno@clisp.org>
54603         Fix link errors on Solaris 8.
54604         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
54605         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
54607 2010-03-19  Jim Meyering  <meyering@redhat.com>
54609         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
54610         The _LIBC implementation of build_range_exp correctly honors the
54611         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
54612         However, the non-_LIBC implementation would ignore that syntax-bit
54613         flag and return REG_ERANGE unconditionally.
54614         This change makes it honor that flag.
54615         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
54616         Make two pointer parameters "const".
54617         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
54618         (parse_bracket_exp): Update caller.
54620         regex.m4: correct the reversed range endpoint ([b-a]) test
54621         * m4/regex.m4: When requiring that [b-a] evoke failure,
54622         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
54623         test pass once again for x86-based systems.
54625 2010-03-19  Bruno Haible  <bruno@clisp.org>
54627         scandir: Fix link error on Solaris 8.
54628         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
54629         macros.
54631 2010-03-19  Bruno Haible  <bruno@clisp.org>
54633         getusershell: Fix documentation.
54634         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
54635         module.
54636         * doc/glibc-functions/setusershell.texi: Likewise.
54638         getusershell: Provide declaration, missing on Solaris 9.
54639         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
54640         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
54641         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
54642         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
54643         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
54644         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
54645         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
54646         HAVE_GETUSERSHELL.
54647         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
54649 2010-03-19  Bruno Haible  <bruno@clisp.org>
54651         wctype: Provide iswblank function.
54652         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
54653         exists and is fine.
54654         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
54655         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
54656         * tests/test-wctype.c (main): Re-enable the iswblank tests.
54657         * doc/posix-functions/iswblank.texi: Update.
54659 2010-03-19  Bruno Haible  <bruno@clisp.org>
54661         Tests of module 'pty' in C++ mode.
54662         * modules/pty-tests: New file.
54663         * tests/test-pty-c++.cc: New file.
54664         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
54666 2010-03-19  Eric Blake  <eblake@redhat.com>
54668         logb: fix documentation
54669         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
54670         1.5 declaration bug.
54672         forkpty, openpty: prefer glibc's const-safe prototype
54673         * lib/forkpty.c (rpl_forkpty): New file.
54674         * lib/openpty.c (rpl_openpty): Likewise.
54675         * modules/forkpty (Files): Distribute it.
54676         * modules/openpty (Files): Likewise.
54677         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
54678         check...
54679         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
54680         replacement for non-const BSD signature.
54681         * modules/pty (Makefile.am): Substitute witnesses.
54682         * lib/pty.in.h (forkpty, openpty): Declare replacements.
54683         * tests/test-forkpty.c: Update signature check.
54684         * tests/test-openpty.c: Likewise.
54685         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
54686         * doc/glibc-functions/openpty.texi (openpty): Likewise.
54688         forkpty, openpty: split functions into new modules
54689         * modules/pty (Makefile.am): Substitute new witnesses.
54690         (Libraries): Move library detection...
54691         * modules/forkpty: ...into new module.
54692         * modules/openpty: Another new module.
54693         * modules/pty-tests: Rename and split...
54694         * modules/forkpty-tests: ...to this...
54695         * modules/openpty-tests: ...and this.
54696         * tests/test-pty.c: Rename and split...
54697         * tests/test-forkpty.c: ...to this...
54698         * tests/test-openpty.c: ...and this.
54699         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
54700         (gl_PTY): Split library searching...
54701         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
54702         (gl_FORKPTY, gl_OPENPTY): New macros.
54703         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
54704         * NEWS: Mention the split.
54705         * MODULES.html.sh (Misc): Document the modules.
54706         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
54707         * doc/glibc-functions/openpty.texi (openpty): Likewise.
54709         pty: improve replacement header
54710         * lib/pty.in.h: New file.
54711         * modules/pty (Files): Ship it.
54712         (Makefile.am): Always build replacement.
54713         * m4/pty.m4: Rename...
54714         * m4/pty_h.m4: ...to this.
54715         (gl_PTY): Modernize setting of witness macros; update check of
54716         forkpty to take proper advantage of cache.
54717         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
54719         getopt: avoid compiler warning
54720         * lib/getopt.c (attribute_hidden): Remove unused macro.
54722 2010-03-18  Bruno Haible  <bruno@clisp.org>
54724         Fix link errors on Solaris 8.
54725         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
54726         * modules/search-tests (test_search_c___LDADD): Likewise.
54727         * modules/signal-tests (test_signal_c___LDADD): Likewise.
54728         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
54729         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
54730         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
54731         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
54732         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
54733         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
54735 2010-03-18  Bruno Haible  <bruno@clisp.org>
54737         Fix bug introduced on 2010-03-14.
54738         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
54739         (gl_SPAWN_H): Require it.
54740         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
54741         Reported by Simon Josefsson.
54743 2010-03-18  Bruno Haible  <bruno@clisp.org>
54745         Fix typo introduced on 2009-12-31.
54746         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
54747         posix_spawn_file_actions_adddup2.
54749 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
54750         and Eric Blake  <eblake@redhat.com>
54752         test-vc-list-files-git: make more robust
54753         * tests/test-vc-list-files-git.sh: Unset problematic environment
54754         variables.  Chain commands together.
54756 2010-03-17  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
54758         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
54759         `AC_CHECK_DECL' invocation.
54761 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
54763         * lib/inttostr.c (inttostr): Make sure the invocation of verify
54764         appears before executable statements. Suggested by Petr Sumbera
54765         <Petr.Sumbera@Sun.COM>.
54767 2010-03-14  Bruno Haible  <bruno@clisp.org>
54769         * tests/test-flock.c (test_exclusive): Comment out a test that causes
54770         portability problems. Instead use a simpler test.
54771         (main): Check that invalid arguments are rejected only on Linux.
54773 2010-03-14  Bruno Haible  <bruno@clisp.org>
54775         Fix bug introduced on 2009-12-31.
54776         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
54777         gl_PREREQ_SYS_H_WINSOCK2 always.
54778         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
54779         SYS_SOCKET_H variable.
54780         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
54781         Update comments.
54782         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
54783         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
54784         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
54785         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
54786         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
54788 2010-03-14  Bruno Haible  <bruno@clisp.org>
54790         Fix values returned by sinl, cosl.
54791         * lib/trigl.h: Add specification comments.
54792         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
54793         that combines the values from the precomputed table with the values of
54794         the Chebyshev polynomials.
54796 2010-03-14  Bruno Haible  <bruno@clisp.org>
54798         Fix compilation error when modules 'posix_spawn[p]' are not used.
54799         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
54800         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
54802 2010-03-14  Bruno Haible  <bruno@clisp.org>
54804         Fix compilation error on mingw when module 'time_r' is not used.
54805         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
54806         is 1.
54807         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
54808         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
54809         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
54810         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
54812 2010-03-14  Bruno Haible  <bruno@clisp.org>
54814         Fix compilation error with Sun C.
54815         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
54816         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
54817         instead of GCC specific ULONG_LONG_MAX.
54818         * lib/xstrtoll.c: Likewise.
54819         * lib/xstrtoull.c: Likewise.
54821 2010-03-13  Bruno Haible  <bruno@clisp.org>
54823         Allow the user to disable C++ code and tests.
54824         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
54825         (gl_PROG_ANSI_CXX): Require it.
54827 2010-03-13  Bruno Haible  <bruno@clisp.org>
54829         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
54830         cases.
54832 2010-03-13  Bruno Haible  <bruno@clisp.org>
54834         Test that gnulib does not break the standard C++ headers.
54835         * tests/test-locale-c++2.cc: New file.
54836         * modules/locale-tests (Files): Add it.
54837         (Makefile.am): Compile it for test-locale-c++.
54838         * tests/test-math-c++2.cc: New file.
54839         * modules/math-tests (Files): Add it.
54840         (Makefile.am): Compile it for test-math-c++.
54841         * tests/test-signal-c++2.cc: New file.
54842         * modules/signal-tests (Files): Add it.
54843         (Makefile.am): Compile it for test-signal-c++.
54844         * tests/test-stdio-c++2.cc: New file.
54845         * modules/stdio-tests (Files): Add it.
54846         (Makefile.am): Compile it for test-stdio-c++.
54847         * tests/test-stdlib-c++2.cc: New file.
54848         * modules/stdlib-tests (Files): Add it.
54849         (Makefile.am): Compile it for test-stdlib-c++.
54850         * tests/test-string-c++2.cc: New file.
54851         * modules/string-tests (Files): Add it.
54852         (Makefile.am): Compile it for test-string-c++.
54853         * tests/test-time-c++2.cc: New file.
54854         * modules/time-tests (Files): Add it.
54855         (Makefile.am): Compile it for test-time-c++.
54856         Reported by John W. Eaton <jwe@gnu.org>.
54858 2010-03-13  Bruno Haible  <bruno@clisp.org>
54860         * gnulib-tool (func_usage): Clarify which options are available for
54861         --create-testdir and --create-megatestdir.
54863 2010-03-13  Bruno Haible  <bruno@clisp.org>
54865         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
54866         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
54867         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
54868         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
54869         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
54870         when appropriate.
54871         Reported by Jim Meyering.
54873 2010-03-12  Simon Josefsson  <simon@josefsson.org>
54875         * gnulib-tool (func_import): Explain origin of code.
54877 2010-03-12  Bruno Haible  <bruno@clisp.org>
54879         Fix problem with automake's definition of CXXLINK.
54880         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
54881         Reported by Simon Josefsson and Ludovic Courtès.
54883 2010-03-12  Bruno Haible  <bruno@clisp.org>
54885         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
54886         stable releases.
54888 2010-03-11  Bruno Haible  <bruno@clisp.org>
54890         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
54891         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
54892         whether the system provides one variant or multiple variants of the
54893         function.
54894         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
54895         C++ compilers.
54896         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
54897         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
54898         Reported by Jim Meyering.
54900 2010-03-09  Simon Josefsson  <simon@josefsson.org>
54902         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
54904 2010-03-08  Bruno Haible  <bruno@clisp.org>
54906         gnulib-tool: Add support for --libtool in --create-testdir.
54907         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
54908         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
54910 2010-03-08  Eric Blake  <eblake@redhat.com>
54912         gnulib-tool.texi: mention possibility of git submodule
54913         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
54914         submodules.
54915         * doc/.gitignore: Ignore another generated file.
54917 2010-03-08  Karl Berry  <karl@gnu.org>
54919         * doc/gnulib-tool.texi (VCS Issues): Mention third option
54920         of committing gnulib files while skipping others.
54922 2010-03-07  Bruno Haible  <bruno@clisp.org>
54924         Tests of module 'wctype' in C++ mode.
54925         * tests/test-wctype-c++.cc: New file.
54926         * modules/wctype-tests (Files): Add it and tests/signature.h.
54927         (Depends-on): Add ansi-c++-opt.
54928         (Makefile.am): Arrange to compile and run test-wctype-c++.
54930         Tests of module 'wchar' in C++ mode.
54931         * tests/test-wchar-c++.cc: New file.
54932         * modules/wchar-tests (Files): Add it and tests/signature.h.
54933         (Depends-on): Add ansi-c++-opt.
54934         (Makefile.am): Arrange to compile and run test-wchar-c++.
54935         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
54936         gl_MODULE_INDICATOR.
54938         Tests of module 'unistd' in C++ mode.
54939         * tests/test-unistd-c++.cc: New file.
54940         * modules/unistd-tests (Files): Add it and tests/signature.h.
54941         (Depends-on): Add ansi-c++-opt.
54942         (Makefile.am): Arrange to compile and run test-unistd-c++.
54943         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
54944         gl_MODULE_INDICATOR.
54946         Tests of module 'time' in C++ mode.
54947         * tests/test-time-c++.cc: New file.
54948         * modules/time-tests (Files): Add it and tests/signature.h.
54949         (Depends-on): Add ansi-c++-opt.
54950         (Makefile.am): Arrange to compile and run test-time-c++.
54951         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
54953         Tests of module 'sys_time' in C++ mode.
54954         * tests/test-sys_time-c++.cc: New file.
54955         * modules/sys_time-tests (Files): Add it and tests/signature.h.
54956         (Depends-on): Add ansi-c++-opt.
54957         (Makefile.am): Arrange to compile and run test-sys_time-c++.
54958         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
54959         gl_MODULE_INDICATOR.
54961         Tests of module 'sys_stat' in C++ mode.
54962         * tests/test-sys_stat-c++.cc: New file.
54963         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
54964         (Depends-on): Add ansi-c++-opt.
54965         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
54966         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
54967         gl_MODULE_INDICATOR.
54969         Tests of module 'sys_socket' in C++ mode.
54970         * tests/test-sys_socket-c++.cc: New file.
54971         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
54972         (Depends-on): Add ansi-c++-opt.
54973         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
54974         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
54975         gl_MODULE_INDICATOR.
54977         Tests of module 'sys_select' in C++ mode.
54978         * tests/test-sys_select-c++.cc: New file.
54979         * modules/sys_select-tests (Files): Add it and tests/signature.h.
54980         (Depends-on): Add ansi-c++-opt.
54981         (Makefile.am): Arrange to compile and run test-sys_select-c++.
54982         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
54983         gl_MODULE_INDICATOR.
54985         Tests of module 'sys_ioctl' in C++ mode.
54986         * tests/test-sys_ioctl-c++.cc: New file.
54987         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
54988         (Depends-on): Add ansi-c++-opt.
54989         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
54990         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
54991         gl_MODULE_INDICATOR.
54993         Tests of module 'string' in C++ mode.
54994         * tests/test-string-c++.cc: New file.
54995         * modules/string-tests (Files): Add it and tests/signature.h.
54996         (Depends-on): Add ansi-c++-opt.
54997         (Makefile.am): Arrange to compile and run test-string-c++.
54998         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
54999         gl_MODULE_INDICATOR.
55001         Tests of module 'stdlib' in C++ mode.
55002         * tests/test-stdlib-c++.cc: New file.
55003         * modules/stdlib-tests (Files): Add it and tests/signature.h.
55004         (Depends-on): Add ansi-c++-opt.
55005         (Makefile.am): Arrange to compile and run test-stdlib-c++.
55006         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
55007         gl_MODULE_INDICATOR.
55009         Tests of module 'stdio' in C++ mode.
55010         * tests/test-stdio-c++.cc: New file.
55011         * modules/stdio-tests (Files): Add it and tests/signature.h.
55012         (Depends-on): Add ansi-c++-opt.
55013         (Makefile.am): Arrange to compile and run test-stdio-c++.
55014         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
55015         gl_MODULE_INDICATOR.
55017         Tests of module 'spawn' in C++ mode.
55018         * tests/test-spawn-c++.cc: New file.
55019         * modules/spawn-tests (Files): Add it and tests/signature.h.
55020         (Depends-on): Add ansi-c++-opt.
55021         (Makefile.am): Arrange to compile and run test-spawn-c++.
55022         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
55023         gl_MODULE_INDICATOR.
55025         Tests of module 'signal' in C++ mode.
55026         * tests/test-signal-c++.cc: New file.
55027         * modules/signal-tests (Files): Add it and tests/signature.h.
55028         (Depends-on): Add ansi-c++-opt.
55029         (Makefile.am): Arrange to compile and run test-signal-c++.
55030         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
55031         gl_MODULE_INDICATOR.
55033         Tests of module 'search' in C++ mode.
55034         * tests/test-search-c++.cc: New file.
55035         * modules/search-tests (Files): Add it and tests/signature.h.
55036         (Depends-on): Add ansi-c++-opt.
55037         (Makefile.am): Arrange to compile and run test-search-c++.
55038         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
55039         gl_MODULE_INDICATOR.
55041         Tests of module 'math' in C++ mode.
55042         * tests/test-math-c++.cc: New file.
55043         * modules/math-tests (Files): Add it and tests/signature.h.
55044         (Depends-on): Add ansi-c++-opt.
55045         (Makefile.am): Arrange to compile and run test-math-c++.
55046         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
55048         Tests of module 'locale' in C++ mode.
55049         * tests/test-locale-c++.cc: New file.
55050         * modules/locale-tests (Files): Add it and tests/signature.h.
55051         (Depends-on): Add ansi-c++-opt.
55052         (Makefile.am): Arrange to compile and run test-locale-c++.
55053         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
55054         gl_MODULE_INDICATOR.
55056         Tests of module 'langinfo' in C++ mode.
55057         * tests/test-langinfo-c++.cc: New file.
55058         * modules/langinfo-tests (Files): Add it and tests/signature.h.
55059         (Depends-on): Add ansi-c++-opt.
55060         (Makefile.am): Arrange to compile and run test-langinfo-c++.
55061         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
55062         gl_MODULE_INDICATOR.
55064         Tests of module 'iconv-h' in C++ mode.
55065         * tests/test-iconv-h-c++.cc: New file.
55066         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
55067         (Depends-on): Add ansi-c++-opt.
55068         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
55070         Tests of module 'glob' in C++ mode.
55071         * tests/test-glob-c++.cc: New file.
55072         * modules/glob-tests (Files): Add it.
55073         (Depends-on): Add ansi-c++-opt.
55074         (Makefile.am): Arrange to compile and run test-glob-c++.
55076         Tests of module 'fcntl-h' in C++ mode.
55077         * tests/test-fcntl-h-c++.cc: New file.
55078         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
55079         (Depends-on): Add ansi-c++-opt.
55080         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
55081         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
55082         gl_MODULE_INDICATOR.
55084         Tests of module 'dirent' in C++ mode.
55085         * tests/test-dirent-c++.cc: New file.
55086         * modules/dirent-tests (Files): Add it and tests/signature.h.
55087         (Depends-on): Add ansi-c++-opt.
55088         (Makefile.am): Arrange to compile and run test-dirent-c++.
55089         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
55090         gl_MODULE_INDICATOR.
55092         New module 'ansi-c++-opt'.
55093         * modules/ansi-c++-opt: New file.
55094         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
55096         Document C++ namespace mode.
55097         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
55099         wctype: Avoid #define replacements in C++ mode.
55100         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
55101         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
55102         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
55103         In C++, define a namespaced alias symbol.
55104         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
55105         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
55106         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
55107         rule.
55109         wchar: Avoid #define replacements in C++ mode.
55110         * lib/wchar.in.h: Include c++defs.h.
55111         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
55112         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
55113         symbol.
55114         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
55115         * modules/wchar (Depends-on): Add c++defs.
55116         (Makefile.am): Update wchar.h rule.
55118         unistd: Avoid #define replacements in C++ mode.
55119         * lib/unistd.in.h: Include c++defs.h.
55120         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
55121         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
55122         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
55123         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
55124         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
55125         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
55126         symbol.
55127         (environ): Update.
55128         * modules/unistd (Depends-on): Add c++defs.
55129         (Makefile.am): Update unistd.h rule.
55131         time: Avoid #define replacements in C++ mode.
55132         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
55133         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
55134         define a namespaced alias symbol.
55135         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
55136         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
55137         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
55138         * modules/time (Depends-on): Add c++defs, warn-on-use.
55139         (Makefile.am): Update time.h rule.
55140         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
55141         * modules/nanosleep (configure.ac): Likewise.
55142         * modules/strptime (configure.ac): Likewise.
55143         * modules/timegm (configure.ac): Likewise.
55145         sys_time: Avoid #define replacements in C++ mode.
55146         * lib/sys_time.in.h: Include c++defs.h.
55147         (gettimeofday): In C++, define a namespaced alias symbol.
55148         * modules/sys_time (Depends-on): Add c++defs.
55149         (Makefile.am): Update sys/time.h rule.
55151         sys_stat: Avoid #define replacements in C++ mode.
55152         * lib/sys_stat.in.h: Include c++defs.h.
55153         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
55154         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
55155         namespaced alias symbol.
55156         In C++, define a namespaced alias symbol.
55157         * modules/sys_stat (Depends-on): Add c++defs.
55158         (Makefile.am): Update sys/stat.h rule.
55160         sys_socket: Avoid #define replacements in C++ mode.
55161         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
55162         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
55163         definitions also when the system has a <sys/socket.h>.
55164         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
55165         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
55166         In C++, define a namespaced alias symbol.
55167         * modules/sys_socket (Depends-on): Add c++defs.
55168         (Makefile.am): Update sys/socket.h rule.
55170         sys_select: Avoid #define replacements in C++ mode.
55171         * lib/sys_select.in.h: Include c++defs.h. Enable the function
55172         definitions also when the system has a <sys/select.h>.
55173         (select): In C++, define a namespaced alias symbol.
55174         * modules/sys_select (Depends-on): Add c++defs.
55175         (Makefile.am): Update sys/select.h rule.
55177         sys_ioctl: Avoid #define replacements in C++ mode.
55178         * lib/sys_ioctl.in.h: Include c++defs.h.
55179         (ioctl): In C++, define a namespaced alias symbol.
55180         * modules/sys_ioctl (Depends-on): Add c++defs.
55181         (Makefile.am): Update sys/ioctl.h rule.
55183         string: Avoid #define replacements in C++ mode.
55184         * lib/string.in.h: Include c++defs.h.
55185         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
55186         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
55187         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
55188         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
55189         strsignal, strverscmp): In C++, define a namespaced alias symbol.
55190         * modules/string (Depends-on): Add c++defs.
55191         (Makefile.am): Update string.h rule.
55193         stdlib: Avoid #define replacements in C++ mode.
55194         * lib/stdlib.in.h: Include c++defs.h.
55195         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
55196         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
55197         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
55198         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
55199         symbol.
55200         * modules/stdlib (Depends-on): Add c++defs.
55201         (Makefile.am): Update stdlib.h rule.
55203         stdio: Avoid #define replacements in C++ mode.
55204         * lib/stdio.in.h: Include c++defs.h.
55205         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
55206         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
55207         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
55208         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
55209         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
55210         namespaced alias symbol.
55211         * modules/stdio (Depends-on): Add c++defs.
55212         (Makefile.am): Update stdio.h rule.
55214         spawn: Avoid #define replacements in C++ mode.
55215         * lib/spawn.in.h: Include c++defs.h.
55216         (posix_spawn, posix_spawnp, posix_spawnattr_init,
55217         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
55218         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
55219         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
55220         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
55221         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
55222         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
55223         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
55224         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
55225         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
55226         In C++, define a namespaced alias symbol.
55227         * modules/spawn (Depends-on): Add c++defs.
55228         (Makefile.am): Update spawn.h rule.
55230         signal: Avoid #define replacements in C++ mode.
55231         * lib/signal.in.h: Include c++defs.h.
55232         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
55233         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
55234         namespaced alias symbol.
55235         * modules/signal (Depends-on): Add c++defs.
55236         (Makefile.am): Update signal.h rule.
55238         search: Avoid #define replacements in C++ mode.
55239         * lib/search.in.h: Include c++defs.h.
55240         (_gl_search_compar_fn, _gl_search_action_fn): New types.
55241         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
55242         symbol.
55243         * modules/search (Depends-on): Add c++defs.
55244         (Makefile.am): Update search.h rule.
55246         math: Avoid #define replacements in C++ mode.
55247         * lib/math.in.h: Include c++defs.h.
55248         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
55249         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
55250         trunc, truncl): In C++, define a namespaced alias symbol.
55251         * modules/math (Depends-on): Add c++defs.
55252         (Makefile.am): Update math.h rule.
55254         locale: Avoid #define replacements in C++ mode.
55255         * lib/locale.in.h: Include c++defs.h.
55256         (duplocale): In C++, define a namespaced alias symbol.
55257         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
55258         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
55259         * modules/locale (Depends-on): Add c++defs.
55260         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
55262         langinfo: Avoid #define replacements in C++ mode.
55263         * lib/langinfo.in.h: Include c++defs.h.
55264         (nl_langinfo): In C++, define a namespaced alias symbol.
55265         * modules/langinfo (Depends-on): Add c++defs.
55266         (Makefile.am): Update langinfo.h rule.
55268         iconv-h: Avoid #define replacements in C++ mode.
55269         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
55270         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
55271         symbol.
55272         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
55273         whenever iconv is present.
55274         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
55275         (Makefile.am): Update iconv.h rule.
55277         glob: Avoid #define replacements in C++ mode.
55278         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
55279         (_gl_glob_errfunc_fn): New type.
55280         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
55281         symbol.
55282         * modules/glob (Depends-on): Add c++defs, warn-on-use.
55283         (Makefile.am): Update glob.h rule.
55285         fcntl-h: Avoid #define replacements in C++ mode.
55286         * lib/fcntl.in.h: Include c++defs.h.
55287         (fcntl, open, openat): In C++, define a namespaced alias symbol.
55288         * modules/fcntl-h (Depends-on): Add c++defs.
55289         (Makefile.am): Update fcntl.h rule.
55291         dirent: Avoid #define replacements in C++ mode.
55292         * lib/dirent.in.h: Include c++defs.h.
55293         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
55294         namespaced alias symbol.
55295         (dirfd): Update declaration.
55296         * modules/dirent (Depends-on): Add c++defs.
55297         (Makefile.am): Update dirent.h rule.
55299         ctype: Make it usable in C++ code.
55300         * lib/ctype.in.h: Include c++defs.h.
55301         (isblank): Declare as extern "C".
55302         * modules/ctype (Depends-on): Add c++defs.
55303         (Makefile.am): Update ctype.h rule.
55305         New module 'c++defs'.
55306         * modules/c++defs: New file.
55307         * build-aux/c++defs.h: New file.
55308         Reported by John W. Eaton <jwe@gnu.org>.
55310 2010-03-07  Bruno Haible  <bruno@clisp.org>
55312         logb: Provide missing declaration for Cygwin.
55313         * lib/math.in.h (logb): New declaration.
55314         * m4/logb.m4: New file.
55315         * modules/logb (Files): Add m4/logb.m4.
55316         (Depends-on): Add math.
55317         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
55318         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
55319         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
55320         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
55321         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
55323 2010-03-07  Bruno Haible  <bruno@clisp.org>
55325         Fix test-cond link error.
55326         * tests/test-cond.c: Include <stdio.h>.
55328 2010-03-07  Bruno Haible  <bruno@clisp.org>
55330         Fix test-dirent-safer link error.
55331         * modules/dirent-safer-tests (Makefile.am): Define
55332         test_dirent_safer_LDADD.
55334 2010-03-07  Bruno Haible  <bruno@clisp.org>
55336         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
55337         among default module list.
55339 2010-03-07  Bruno Haible  <bruno@clisp.org>
55341         Fix link error on platforms with GNU libiconv.
55342         * modules/unistr/u8-strcoll-tests (Makefile): Define
55343         test_u8_strcoll_LDADD.
55344         * modules/unistr/u16-strcoll-tests (Makefile): Define
55345         test_u16_strcoll_LDADD.
55346         * modules/unistr/u32-strcoll-tests (Makefile): Define
55347         test_u32_strcoll_LDADD.
55349 2010-03-07  Bruno Haible  <bruno@clisp.org>
55351         Use POSIX declarations for socket functions.
55352         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
55353         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
55354         rpl_sendto): Change declaration to match POSIX.
55355         * lib/connect.c (rpl_connect): Likewise.
55356         * lib/accept.c (rpl_accept): Likewise.
55357         * lib/bind.c (rpl_bind): Likewise.
55358         * lib/getpeername.c (rpl_getpeername): Likewise.
55359         * lib/getsockname.c (rpl_getsockname): Likewise.
55360         * lib/recv.c (rpl_recv): Likewise.
55361         * lib/send.c (rpl_send): Likewise.
55362         * lib/recvfrom.c (rpl_recvfrom): Likewise.
55363         * lib/sendto.c (rpl_sendto): Likewise.
55365 2010-03-06  Bruno Haible  <bruno@clisp.org>
55367         Clarify access, euidaccess, faccessat.
55368         * doc/posix-functions/faccessat.texi: Mention security problem under
55369         "Other problems", not "Portability problems".
55370         * doc/posix-functions/access.texi: Likewise. Mention a related security
55371         problem.
55372         * doc/glibc-functions/euidaccess.texi: Mention security problems.
55373         * lib/euidaccess.c: Add comments about platforms.
55374         * lib/unistd.in.h (access, euidaccess): Add warnings.
55376 2010-03-07  Bruno Haible  <bruno@clisp.org>
55378         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
55379         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
55380         (POSIX_SPAWN_SETSCHEDULER): Likewise.
55381         (POSIX_SPAWN_USEVFORK): Define in a way that works when
55382         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
55383         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
55384         declare when POSIX_SPAWN_SETSCHEDULER is zero.
55385         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
55386         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
55387         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
55388         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
55389         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
55390         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
55391         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
55392         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
55393         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
55394         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
55395         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
55396         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
55397         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
55398         Likewise.
55399         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
55400         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
55401         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
55402         Likewise.
55403         * tests/test-spawn.c (main): Make it work when
55404         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
55406 2010-03-07  Bruno Haible  <bruno@clisp.org>
55408         Fix incorrect Makefile.am generation in German locale.
55409         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
55410         Execute sed command with character range in C locale.
55412 2010-03-06  Bruno Haible  <bruno@clisp.org>
55414         Tests for module 'iconv-h'.
55415         * modules/iconv-h-tests: New file.
55416         * tests/test-iconv-h.c: New file.
55418         New module 'iconv-h'.
55419         * modules/iconv-h: New file.
55420         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
55421         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
55422         (configure.ac): Remove gl_ICONV_H.
55423         (Makefile.am): Remove rule for iconv.h.
55425 2010-03-06  Bruno Haible  <bruno@clisp.org>
55427         More consistent naming of *.m4 files.
55428         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
55429         * modules/wctype (Files): Update.
55431         More consistent naming of *.m4 files.
55432         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
55433         * modules/wchar (Files): Update.
55435 2010-03-06  Jim Meyering  <meyering@redhat.com>
55437         euidaccess: relax license to LGPLv2+
55438         * modules/euidaccess (License): Relax to LGPLv2+.
55440 2010-03-06  Bruno Haible  <bruno@clisp.org>
55442         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
55443         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
55444         (Makefile.am): Augment lib_SOURCES instead.
55446 2010-03-04  Jim Meyering  <meyering@redhat.com>
55448         utime: remove obsolete module
55449         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
55450         unnecessary for years, and has been marked as obsolete for 10 months.
55451         * modules/utime: Remove file.
55452         * lib/utime.c: Remove file.
55453         * m4/utime.m4: Remove file.
55454         * m4/utimes-null.m4: Remove file.
55455         * doc/posix-functions/utime.texi (utime): Remove reference to
55456         the module.  Move the sole "fixed by gnulib" item into the
55457         "problems not fixed by Gnulib" list.
55458         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
55460 2010-03-05  Simon Josefsson  <simon@josefsson.org>
55462         * modules/exit (License): Relax license to LGPLv2+.
55463         (Status): Mark as obsolete.
55464         * NEWS: Mention deprecated 'exit' module.
55465         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
55466         of now obsolete 'exit'.
55468 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55470         fts-lgpl: remove unused module
55471         * modules/fts-lgpl: Remove.
55472         * MODULES.html.sh (func_all_modules): Adjust.
55473         * check-module (find_included_lib_files): Adjust.
55474         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
55476 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
55478         copy-acl: enhance Solaris ACL error handling
55479         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
55480         * lib/set-mode-acl.c (qset_acl): Likewise.
55482 2010-03-02  Bruno Haible  <bruno@clisp.org>
55484         spawn: Don't override the system defined values on FreeBSD 8.
55485         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
55486         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
55487         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
55488         if HAVE_POSIX_SPAWN is 1.
55489         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
55491 2010-03-01  Bruno Haible  <bruno@clisp.org>
55493         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
55494         regarding Automake.
55496 2010-02-25  Bruno Haible  <bruno@clisp.org>
55498         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
55499         * gnulib-tool: Define 'echo' as a function only before the ksh alias
55500         setting, not afterwards.
55501         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
55503 2010-02-24  Eric Blake  <eblake@redhat.com>
55505         bootstrap, git-version-gen: use timestamp
55506         * build-aux/git-version-gen (scriptversion): Force UTC.
55507         * build-aux/bootstrap (scriptversion): New variable.
55509         bootstrap: allow older git
55510         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
55511         older than 1.6.4.  Requested by the libvirt project.
55513 2010-02-23  Eric Blake  <eblake@redhat.com>
55515         warn-on-use: work with old autoconf
55516         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
55517         AS_VAR semantics of autoconf 2.60.
55518         Reported by Bruno Haible.
55520         bootstrap: improve some comments
55521         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
55522         clarification comments.
55524         gettimeofday: provide correct function
55525         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
55526         when replacement is declared, otherwise provide gettimeofday.
55527         Reported by Michael Goffioul.
55529 2010-02-23  Jim Meyering  <meyering@redhat.com>
55531         lib-ignore: relax license to "unlimited", not LGPLv2+
55532         * modules/lib-ignore (License): Relax to "unlimited".
55534 2010-02-23  Jim Meyering  <meyering@redhat.com>
55536         lib-ignore: relax license to LGPLv2+
55537         * modules/lib-ignore (License): Relax to LGPLv2+.
55539 2010-02-22  Eric Blake  <eblake@redhat.com>
55541         lseek: avoid bash 3.2 broken pipe bug
55542         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
55543         warning from bash 3.2.
55544         Reported by Ben Pfaff, with analysis from Bruno Haible.
55546         bootstrap: support non-FSF copyright holder
55547         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
55548         bootstrap.conf override of COPYRIGHT_HOLDER.
55549         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
55551         bootstrap: interoperate with gettext 0.14.1
55552         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
55554         bootstrap: allow for alternate submodule location
55555         * build-aux/bootstrap (gnulib_path): New variable; use instead of
55556         hardcoding submodule location.
55557         (gnulib_mk): Allow direct use of Makefile.am.
55559         bootstrap: use GNULIB_SRCDIR to reduce disk usage
55560         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
55561         rather than reconfiguring where the submodule points.
55563         gettimeofday: restore support for platforms that lack function
55564         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
55565         replacement if function is missing.
55566         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
55567         * modules/sys_time (Makefile.am): Substitute it.
55568         * lib/sys_time.in.h (gettimeofday): Check it.
55569         Reported by Michael Goffioul.
55571 2010-02-21  Bruno Haible  <bruno@clisp.org>
55573         * lib/stdio.in.h (obstack_printf): Fix typo.
55575 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
55577         vc-list-files: use bzr ls's -R option
55578         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
55579         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
55581 2010-02-21  Jim Meyering  <meyering@redhat.com>
55583         init.sh: fix EXEEXT shims to work also for names like test-prog
55584         * tests/init.sh: Re-exec a better shell, when needed.
55585         If the current shell lacks support for posix $(...), an init.sh-using
55586         test will now try to find a shell that supports that.  If EXEEXT is
55587         nonempty, we also require support for hyphen-in-alias-name and shell
55588         substitutions like ${var#glob}.  Failure to find such a shell results
55589         in a skipped test.
55591 2010-02-21  Bruno Haible  <bruno@clisp.org>
55593         Really work around "broken pipe" error message from bash 3.2.
55594         * gnulib-tool (func_reset_sigpipe): Remove function.
55595         (echo): In bash 3.2, define to a function that uses printf.
55596         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
55598 2010-02-20  Bruno Haible  <bruno@clisp.org>
55600         Restore support for automake 1.9.6 with autoconf 2.61.
55601         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
55602         Reported by James Youngman <jay@gnu.org>.
55604 2010-02-20  Bruno Haible  <bruno@clisp.org>
55606         Improve *printf warning condition.
55607         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
55608         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
55609         and the function is overridden due to SIGPIPE emulation.
55611 2010-02-20  Bruno Haible  <bruno@clisp.org>
55613         * lib/stdio.in.h: Tweak comments.
55615 2010-02-19  Bruno Haible  <bruno@clisp.org>
55617         Make it easier to find modules. New gnulib-tool option '--find'.
55618         * gnulib-tool: New option --find.
55619         (func_usage): Document it.
55620         (func_sanitize_modulelist): New function, extracted from
55621         func_all_modules.
55622         (func_all_modules): Invoke it.
55623         * doc/gnulib-tool.texi (Which modules?): New node.
55625 2010-02-18  Markus Duft  <mduft@gentoo.org>  (tiny change)
55627         * lib/sys_select.in.h: Provide select replacement even if
55628         sys/select.h exists on a system, for Interix.
55630 2010-02-18  Jim Meyering  <meyering@redhat.com>
55632         init.sh: don't use $(...) just yet
55633         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
55634         to accommodate e.g., Solaris' /bin/sh.
55636 2010-02-17  Bruno Haible  <bruno@clisp.org>
55638         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
55639         Reported by Ludovic Courtès <ludo@gnu.org>.
55641 2010-02-16  Simon Josefsson  <simon@josefsson.org>
55643         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
55644         linking with -lintl.
55646 2010-02-17  Simon Josefsson  <simon@josefsson.org>
55648         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
55649         if not provided by the system's netdb.h.  Reported by
55650         ludo@gnu.org (Ludovic Courtès).
55652 2010-02-15  Jim Meyering  <meyering@redhat.com>
55654         init.sh: improve portability and efficiency
55655         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
55656         "dummy" in a for loop.
55657         Use '!', not '^' to select the complement of a character set used
55658         in a "case" statement.
55659         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
55660         Suggestions from Eric Blake.
55662         init.sh: automatically accommodate programs with the .exe suffix
55663         Automatically arrange for an invocation of "prog" to execute the
55664         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
55665         may use the simpler "prog", yet still work when built on a system
55666         that requires specifying the added suffix.
55667         Do this by constructing a function named "prog" that invokes
55668         "prog.exe" for each .exe file in selected directories.
55669         * tests/init.sh (find_exe_basenames_): New function.
55670         (create_exe_shim_functions_): New function.
55671         (path_prepend_): Use it.
55673         maint.mk: mark syntax-check sc_*.m rules as .PHONY
55674         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
55675         "make -t syntax-check" doesn't create a ton of sc_*.m files.
55677 2010-02-14  Jim Meyering  <meyering@redhat.com>
55679         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
55680         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
55681         (sc_prohibit_hash_pjw_without_use): New rule.
55683         maint.mk: allow the default upload destination dir to be overridden
55684         * top/maint.mk (upload_dest_dir_): Define with a default that
55685         preserves the status quo.
55686         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
55687         Reported by Peter Simons.
55689         maint.mk: prohibit inclusion of "hash.h" without_use
55690         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
55692 2010-02-10  Jim Meyering  <meyering@redhat.com>
55694         maint.mk: prohibit inclusion of "ignore-value.h" without_use
55695         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
55697 2010-02-09  Eric Blake  <ebb9@byu.net>
55698         and Bruno Haible  <bruno@clisp.org>
55700         obstack-printf-posix: ensure declaration
55701         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
55702         extracted from gl_FUNC_OBSTACK_PRINTF.
55703         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
55704         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
55705         Likewise.
55706         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
55707         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
55708         0.
55710 2010-02-08  Bruno Haible  <bruno@clisp.org>
55712         gnulib-tool: Fix typo in 2010-02-07 commit.
55713         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
55714         Reported by Eric Blake.
55716 2010-02-07  Bruno Haible  <bruno@clisp.org>
55718         gnulib-tool: Fix up caching patches.
55719         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
55720         option --no-cache. Use associative arrays when supported by the shell.
55721         (sed_comments): New variable.
55722         (modcache): Renamed from do_cache.
55723         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
55724         abbreviate unnecessarily.
55725         (have_associative): New variable.
55726         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
55727         way also for ksh and zsh.
55728         (func_init_sed_convert_to_cache_statements): New function, extracted
55729         from func_cache_lookup_module. Add support for associative arrays.
55730         Don't set the c_MODULE_cached variable here. Ignore all lines before
55731         the first field header. Remove only the final newline, not all trailing
55732         newlines. Support empty fields correctly. Limit the use of 'eval' to
55733         assignments.
55734         (func_get_description, func_get_status, func_get_notice,
55735         func_get_applicability, func_get_filelist, func_get_dependencies,
55736         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
55737         func_get_automake_snippet, func_get_include_directive,
55738         func_get_link_directive, func_get_license, func_get_maintainer):
55739         Update documentation. List the unoptimized code first. Add support for
55740         associative arrays. Limit the use of 'eval' to assignments.
55741         (func_get_applicability): Undo stylistic pessimisations.
55742         (func_get_automake_snippet, func_get_include_directive): Reduce code
55743         duplication.
55744         (func_modules_transitive_closure, func_modules_add_dummy,
55745         func_modules_notice, func_modules_to_filelist, func_add_file,
55746         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
55747         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
55748         func_create_testdir, func_create_megatestdir): Update documentation.
55750 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55752         * gnulib-tool (func_cache_lookup_module): Store the module name
55753         belonging to the cache variable; error out if two different
55754         module names map to the same cache variable name.
55756 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55758         gnulib-tool: Make caching optional.
55759         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
55760         Update matching short versions of --no-changelog.
55761         (func_usage): Update.
55762         (sed_extract_cache_prog): Renamed from ...
55763         (sed_extract_prog): ... this; revert to old extraction script.
55764         (func_get_description, func_get_status)
55765         (func_get_notice, func_get_applicability, func_get_filelist)
55766         (func_get_dependencies, func_get_autoconf_early_snippet)
55767         (func_get_autoconf_snippet, func_get_automake_snippet)
55768         (func_get_include_directive, func_get_link_directive)
55769         (func_get_license, func_get_maintainer): If $do_cache is false,
55770         use old, non-caching extraction scripts.
55771         Suggestion by Bruno Haible.
55773 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55775         gnulib-tool: cache module metainformation.
55776         * gnulib-tool (sed_extract_prog): Match newline before each
55777         header, and rewrite header to a shell variable suffix.
55778         (func_cache_var, func_cache_lookup_module): New functions,
55779         to turn a module name into a cache variable prefix, and to
55780         look up and cache module metainformation.
55781         (func_get_description, func_get_status)
55782         (func_get_notice, func_get_applicability, func_get_filelist)
55783         (func_get_dependencies, func_get_autoconf_early_snippet)
55784         (func_get_autoconf_snippet, func_get_automake_snippet)
55785         (func_get_include_directive, func_get_link_directive)
55786         (func_get_license, func_get_maintainer): Use
55787         func_cache_lookup_module.
55789 2010-02-07  Bruno Haible  <bruno@clisp.org>
55791         fnctl: Fix missing dependency.
55792         * modules/fcntl (Depends-on): Add getdtablesize.
55793         Reported by John W. Eaton <jwe@gnu.org>.
55795 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
55797         Argp: fix recognition of short alias options.
55799         * lib/argp-parse.c (convert_options): Fix improper use of
55800         `|' between character values.
55801         * tests/test-argp.c (group1_option): New alias option
55802         --read (-r).
55803         (group1_parser): Special handling for 'r'.
55804         (test15): New test case.
55805         (test_fun): Add test15.
55806         * tests/test-argp-2.sh: Update expected --help and --usage
55807         outputs.
55809 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
55811         * tests/test-argp.c: Fix indentation.
55813 2010-02-04  Eric Blake  <ebb9@byu.net>
55815         gettimeofday: expose type of second argument
55816         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
55817         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
55818         * tests/test-gettimeofday.c: Use it to silence warning.
55819         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
55820         the issue.
55822 2010-02-03  Jim Meyering  <meyering@redhat.com>
55824         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
55825         * lib/regcomp.c (TYPE_SIGNED): Define.
55826         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
55828         regcomp.c: avoid a new -Wshadow warning
55829         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
55831 2010-02-01  Jim Meyering  <meyering@redhat.com>
55833         removing useless parentheses in cpp #define directives
55834         For motivation, see commit c0221df4, "define STREQ(a,b)
55835         consistently, removing useless parentheses"
55836         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
55837         * lib/mountlist.c (MNT_IGNORE): Likewise.
55838         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
55840 2010-02-01  Eric Blake  <ebb9@byu.net>
55842         sys_time: use link-warning
55843         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
55844         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
55845         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
55846         * modules/sys_time (Depends-on): Add warn-on-use.
55847         (Makefile.am): Always build replacement.
55848         (configure.ac): Update substitutions.
55849         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
55850         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
55851         bother with SYS_TIME_H.
55852         * modules/gettimeofday (configure.ac): Declare indicator.
55853         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
55854         in use.
55856         closein-tests: silence compiler warning
55857         * tests/test-closein.c (main): Ignore fread result.
55858         * modules/closein-tests (Depends-on): Add ignore-value.
55860         tests: silence warning about system return
55861         * tests/test-areadlink-with-size.c (main): Ignore system result.
55862         * tests/test-areadlink.c (main): Likewise.
55863         * tests/test-areadlinkat-with-size.c (main): Likewise.
55864         * tests/test-areadlinkat.c (main): Likewise.
55865         * tests/test-canonicalize-lgpl.c (main): Likewise.
55866         * tests/test-canonicalize.c (main): Likewise.
55867         * tests/test-chown.c (main): Likewise.
55868         * tests/test-fchownat.c (main): Likewise.
55869         * tests/test-fdutimensat.c (main): Likewise.
55870         * tests/test-fstatat.c (main): Likewise.
55871         * tests/test-futimens.c (main): Likewise.
55872         * tests/test-lchown.c (main): Likewise.
55873         * tests/test-link.c (main): Likewise.
55874         * tests/test-linkat.c (main): Likewise.
55875         * tests/test-lstat.c (main): Likewise.
55876         * tests/test-mkdir.c (main): Likewise.
55877         * tests/test-mkdirat.c (main): Likewise.
55878         * tests/test-mkfifo.c (main): Likewise.
55879         * tests/test-mkfifoat.c (main): Likewise.
55880         * tests/test-mknod.c (main): Likewise.
55881         * tests/test-readlink.c (main): Likewise.
55882         * tests/test-remove.c (main): Likewise.
55883         * tests/test-rename.c (main): Likewise.
55884         * tests/test-renameat.c (main): Likewise.
55885         * tests/test-rmdir.c (main): Likewise.
55886         * tests/test-symlink.c (main): Likewise.
55887         * tests/test-symlinkat.c (main): Likewise.
55888         * tests/test-unlink.c (main): Likewise.
55889         * tests/test-unlinkat.c (main): Likewise.
55890         * tests/test-utimens.c (main): Likewise.
55891         * tests/test-utimensat.c (main): Likewise.
55892         * modules/areadlink-tests (Depends-on): Add ignore-value.
55893         * modules/areadlink-with-size-tests (Depends-on): Likewise.
55894         * modules/areadlinkat-tests (Depends-on): Likewise.
55895         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
55896         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
55897         * modules/canonicalize-tests (Depends-on): Likewise.
55898         * modules/chown-tests (Depends-on): Likewise.
55899         * modules/fdutimensat-tests (Depends-on): Likewise.
55900         * modules/futimens-tests (Depends-on): Likewise.
55901         * modules/lchown-tests (Depends-on): Likewise.
55902         * modules/link-tests (Depends-on): Likewise.
55903         * modules/linkat-tests (Depends-on): Likewise.
55904         * modules/lstat-tests (Depends-on): Likewise.
55905         * modules/mkdir-tests (Depends-on): Likewise.
55906         * modules/mkfifo-tests (Depends-on): Likewise.
55907         * modules/mkfifoat-tests (Depends-on): Likewise.
55908         * modules/mknod-tests (Depends-on): Likewise.
55909         * modules/openat-tests (Depends-on): Likewise.
55910         * modules/readlink-tests (Depends-on): Likewise.
55911         * modules/remove-tests (Depends-on): Likewise.
55912         * modules/rename-tests (Depends-on): Likewise.
55913         * modules/renameat-tests (Depends-on): Likewise.
55914         * modules/rmdir-tests (Depends-on): Likewise.
55915         * modules/symlink-tests (Depends-on): Likewise.
55916         * modules/symlinkat-tests (Depends-on): Likewise.
55917         * modules/unlink-tests (Depends-on): Likewise.
55918         * modules/utimens-tests (Depends-on): Likewise.
55919         * modules/utimensat-tests (Depends-on): Likewise.
55921 2010-01-31  Bruno Haible  <bruno@clisp.org>
55923         Perform the same test for many <math.h> functions.
55924         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
55925         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
55926         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
55927         of gl_MATHFUNC.
55928         * modules/acos (configure.ac): Likewise.
55929         * modules/asin (configure.ac): Likewise.
55930         * modules/atan (configure.ac): Likewise.
55931         * modules/atan2 (configure.ac): Likewise.
55932         * modules/cbrt (configure.ac): Likewise.
55933         * modules/copysign (configure.ac): Likewise.
55934         * modules/cos (configure.ac): Likewise.
55935         * modules/cosh (configure.ac): Likewise.
55936         * modules/erf (configure.ac): Likewise.
55937         * modules/erfc (configure.ac): Likewise.
55938         * modules/exp (configure.ac): Likewise.
55939         * modules/fmod (configure.ac): Likewise.
55940         * modules/hypot (configure.ac): Likewise.
55941         * modules/j0 (configure.ac): Likewise.
55942         * modules/j1 (configure.ac): Likewise.
55943         * modules/jn (configure.ac): Likewise.
55944         * modules/lgamma (configure.ac): Likewise.
55945         * modules/log (configure.ac): Likewise.
55946         * modules/log10 (configure.ac): Likewise.
55947         * modules/log1p (configure.ac): Likewise.
55948         * modules/pow (configure.ac): Likewise.
55949         * modules/remainder (configure.ac): Likewise.
55950         * modules/sin (configure.ac): Likewise.
55951         * modules/sinh (configure.ac): Likewise.
55952         * modules/tan (configure.ac): Likewise.
55953         * modules/tanh (configure.ac): Likewise.
55954         * modules/y0 (configure.ac): Likewise.
55955         * modules/y1 (configure.ac): Likewise.
55956         * modules/yn (configure.ac): Likewise.
55957         Suggested by Paolo Bonzini.
55959 2010-01-31  Bruno Haible  <bruno@clisp.org>
55961         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
55963 2010-01-31  Bruno Haible  <bruno@clisp.org>
55965         Work around getdelim() bug on FreeBSD 8.0.
55966         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
55967         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
55968         not work.
55969         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
55970         is 1.
55971         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
55972         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
55973         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
55974         a non-zero size.
55975         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
55977 2010-01-31  Bruno Haible  <bruno@clisp.org>
55979         Work around getline() bug on FreeBSD 8.0.
55980         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
55981         and a non-zero size.
55982         * tests/test-getline.c (main): Likewise.
55983         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
55984         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
55986 2010-01-28  Eric Blake  <ebb9@byu.net>
55988         regex: fix build failure
55989         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
55990         platforms.
55992 2010-01-28  Jim Meyering  <meyering@redhat.com>
55994         regex: do not ignore memory allocation failure
55995         * lib/regex_internal.c (create_cd_newstate): Detect
55996         re_node_set_init_copy failure.   Extracted from glibc commit
55997         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
55999         regex: sync more white-space changes from libc
56000         * lib/regex_internal.c: White-space only changes.
56001         * lib/regexec.c: Likewise.
56003         regex: add many uses of __attribute_warn_unused_result__
56004         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
56005         * lib/regexec.c: Likewise.
56006         Extracted from a messy glibc commit.
56008         regcomp.c: spelling and merge-artifact from glibc
56009         * lib/regcomp.c: Merge remainder of glibc's
56010         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
56012         regcomp.c: sync white-space changes from glibc
56013         * lib/regcomp.c: Merge to accommodate white space
56014         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
56016         regcomp.c: do not ignore internal return values
56017         * lib/regcomp.c: Do not ignore internal return values.
56018         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
56019         but without its white-space changes and spelling fixes.
56021         regex_internal.h: define __attribute_warn_unused_result__
56022         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
56024         maint: add a syntax-check rule to check for vulnerable Makefile.in
56025         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
56027 2010-01-27  Jim Meyering  <meyering@redhat.com>
56029         ncftpput-ftp: clean up spaces
56030         * build-aux/ncftpput-ftp: Make Copyright line consistent.
56031         Remove trailing blanks.
56033 2010-01-27  Simon Josefsson  <simon@josefsson.org>
56035         * build-aux/git-version-gen: Fix copyright statement.
56036         * build-aux/gnupload: Likewise.
56037         * tests/test-arcfour.c: Likewise.
56038         * tests/test-arctwo.c: Likewise.
56039         * tests/test-count-one-bits.c: Likewise.
56040         * tests/test-crc.c: Likewise.
56041         * tests/test-des.c: Likewise.
56042         * tests/test-gc-arcfour.c: Likewise.
56043         * tests/test-gc-arctwo.c: Likewise.
56044         * tests/test-gc-des.c: Likewise.
56045         * tests/test-gc-hmac-md5.c: Likewise.
56046         * tests/test-gc-hmac-sha1.c: Likewise.
56047         * tests/test-gc-md2.c: Likewise.
56048         * tests/test-gc-md4.c: Likewise.
56049         * tests/test-gc-md5.c: Likewise.
56050         * tests/test-gc-pbkdf2-sha1.c: Likewise.
56051         * tests/test-gc-rijndael.c: Likewise.
56052         * tests/test-gc-sha1.c: Likewise.
56053         * tests/test-gc.c: Likewise.
56054         * tests/test-gethostname.c: Likewise.
56055         * tests/test-gettimeofday.c: Likewise.
56056         * tests/test-hash.c: Likewise.
56057         * tests/test-hmac-md5.c: Likewise.
56058         * tests/test-hmac-sha1.c: Likewise.
56059         * tests/test-md2.c: Likewise.
56060         * tests/test-md4.c: Likewise.
56061         * tests/test-md5.c: Likewise.
56062         * tests/test-memchr.c: Likewise.
56063         * tests/test-memchr2.c: Likewise.
56064         * tests/test-memcmp.c: Likewise.
56065         * tests/test-memmem.c: Likewise.
56066         * tests/test-memrchr.c: Likewise.
56067         * tests/test-rawmemchr.c: Likewise.
56068         * tests/test-read-file.c: Likewise.
56069         * tests/test-rijndael.c: Likewise.
56070         * tests/test-sockets.c: Likewise.
56071         * tests/test-strchrnul.c: Likewise.
56072         * tests/test-strstr.c: Likewise.
56073         * tests/test-strtod.c: Likewise.
56074         * build-aux/ncftpput-ftp: Likewise.
56076 2010-01-26  Eric Blake  <ebb9@byu.net>
56078         ignore-value: update recommended header name
56079         * modules/ignore-value (Include): Only use <> for headers that
56080         exist in glibc.
56082 2010-01-26  Jim Meyering  <meyering@redhat.com>
56084         test-userspec.c: avoid compiler warnings
56085         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
56086         and "initialization discards qualifiers..." warnings.
56087         Put the first "uid" in its own scope, and make char* members "const".
56089 2010-01-25  Bruno Haible  <bruno@clisp.org>
56091         gnulib-tool: Make warning diagnostics consistent.
56092         * gnulib-tool (func_warning): New function.
56093         Use it everywhere where gnulib-tool produces output to stderr and it is
56094         not a fatal error.
56096 2010-01-25  Bruno Haible  <bruno@clisp.org>
56098         Fix test dependencies.
56099         * modules/xstrtol-tests (Depends-on): Add inttypes.
56100         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
56102 2010-01-25  Pádraig Brady  <P@draigBrady.com>
56104         syntax-check: detect incorrect boolean macro values in config.h
56105         * modules/maintainer-makefile (configure.ac): Parameterize the location
56106         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
56107         The logic is from Eric Blake and the location indicated by Jim Meyering.
56108         Note the more natural CONFIG_HEADER name is prohibited by automake
56109         for backwards compatibility reasons.
56110         * top/maint.mk (sc_Wundef_boolean): New rule.
56112 2010-01-25  Jim Meyering  <meyering@redhat.com>
56114         bootstrap: detect MacOS 10.6's shasum, too
56115         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
56116         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
56118 2010-01-23  Jim Meyering  <meyering@redhat.com>
56120         xstrtoll: new module
56121         * modules/xstrtoll: New file.
56122         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
56123         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
56124         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
56125         ./configure fails if you use this module and lack "long long".
56126         * modules/xstrtoll-tests: New module.
56127         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
56128         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
56129         new init.sh-based test framework.
56131 2010-01-24  Bruno Haible  <bruno@clisp.org>
56133         Tests for module 'yn'.
56134         * modules/yn-tests: New file.
56135         * tests/test-yn.c: New file.
56137         Tests for module 'y1'.
56138         * modules/y1-tests: New file.
56139         * tests/test-y1.c: New file.
56141         Tests for module 'y0'.
56142         * modules/y0-tests: New file.
56143         * tests/test-y0.c: New file.
56145         Tests for module 'tanh'.
56146         * modules/tanh-tests: New file.
56147         * tests/test-tanh.c: New file.
56149         Tests for module 'tan'.
56150         * modules/tan-tests: New file.
56151         * tests/test-tan.c: New file.
56153         Tests for module 'sqrt'.
56154         * modules/sqrt-tests: New file.
56155         * tests/test-sqrt.c: New file.
56157         Tests for module 'sinh'.
56158         * modules/sinh-tests: New file.
56159         * tests/test-sinh.c: New file.
56161         Tests for module 'sin'.
56162         * modules/sin-tests: New file.
56163         * tests/test-sin.c: New file.
56165         Tests for module 'rint'.
56166         * modules/rint-tests: New file.
56167         * tests/test-rint.c: New file.
56169         Tests for module 'remainder'.
56170         * modules/remainder-tests: New file.
56171         * tests/test-remainder.c: New file.
56173         Tests for module 'pow'.
56174         * modules/pow-tests: New file.
56175         * tests/test-pow.c: New file.
56177         Tests for module 'nextafter'.
56178         * modules/nextafter-tests: New file.
56179         * tests/test-nextafter.c: New file.
56181         Tests for module 'modf'.
56182         * modules/modf-tests: New file.
56183         * tests/test-modf.c: New file.
56185         Tests for module 'logb'.
56186         * modules/logb-tests: New file.
56187         * tests/test-logb.c: New file.
56189         Tests for module 'log1p'.
56190         * modules/log1p-tests: New file.
56191         * tests/test-log1p.c: New file.
56193         Tests for module 'log10'.
56194         * modules/log10-tests: New file.
56195         * tests/test-log10.c: New file.
56197         Tests for module 'log'.
56198         * modules/log-tests: New file.
56199         * tests/test-log.c: New file.
56201         Tests for module 'lgamma'.
56202         * modules/lgamma-tests: New file.
56203         * tests/test-lgamma.c: New file.
56205         Tests for module 'ldexp'.
56206         * modules/ldexp-tests: New file.
56207         * tests/test-ldexp.c: New file.
56209         Tests for module 'jn'.
56210         * modules/jn-tests: New file.
56211         * tests/test-jn.c: New file.
56213         Tests for module 'j1'.
56214         * modules/j1-tests: New file.
56215         * tests/test-j1.c: New file.
56217         Tests for module 'j0'.
56218         * modules/j0-tests: New file.
56219         * tests/test-j0.c: New file.
56221         Tests for module 'hypot'.
56222         * modules/hypot-tests: New file.
56223         * tests/test-hypot.c: New file.
56225         Tests for module 'fmod'.
56226         * modules/fmod-tests: New file.
56227         * tests/test-fmod.c: New file.
56229         Tests for module 'fabs'.
56230         * modules/fabs-tests: New file.
56231         * tests/test-fabs.c: New file.
56233         Tests for module 'exp'.
56234         * modules/exp-tests: New file.
56235         * tests/test-exp.c: New file.
56237         Tests for module 'erfc'.
56238         * modules/erfc-tests: New file.
56239         * tests/test-erfc.c: New file.
56241         Tests for module 'erf'.
56242         * modules/erf-tests: New file.
56243         * tests/test-erf.c: New file.
56245         Tests for module 'cosh'.
56246         * modules/cosh-tests: New file.
56247         * tests/test-cosh.c: New file.
56249         Tests for module 'cos'.
56250         * modules/cos-tests: New file.
56251         * tests/test-cos.c: New file.
56253         Tests for module 'copysign'.
56254         * modules/copysign-tests: New file.
56255         * tests/test-copysign.c: New file.
56257         Tests for module 'cbrt'.
56258         * modules/cbrt-tests: New file.
56259         * tests/test-cbrt.c: New file.
56261         Tests for module 'atan2'.
56262         * modules/atan2-tests: New file.
56263         * tests/test-atan2.c: New file.
56265         Tests for module 'atan'.
56266         * modules/atan-tests: New file.
56267         * tests/test-atan.c: New file.
56269         Tests for module 'asin'.
56270         * modules/asin-tests: New file.
56271         * tests/test-asin.c: New file.
56273         Tests for module 'acos'.
56274         * modules/acos-tests: New file.
56275         * tests/test-acos.c: New file.
56277 2010-01-24  Bruno Haible  <bruno@clisp.org>
56279         Fix tests for common <math.h> functions.
56280         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
56281         code snippet that references the function pointer, rather than merely
56282         calling the function. Substitute the FUNC_LIBM variable.
56283         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
56284         * modules/acos (configure.ac): Likewise.
56285         * modules/asin (configure.ac): Likewise.
56286         * modules/atan (configure.ac): Likewise.
56287         * modules/atan2 (configure.ac): Likewise.
56288         * modules/cbrt (configure.ac): Likewise.
56289         * modules/copysign (configure.ac): Likewise.
56290         * modules/cos (configure.ac): Likewise.
56291         * modules/cosh (configure.ac): Likewise.
56292         * modules/erf (configure.ac): Likewise.
56293         * modules/erfc (configure.ac): Likewise.
56294         * modules/exp (configure.ac): Likewise.
56295         * modules/fabs (configure.ac): Likewise.
56296         * modules/fmod (configure.ac): Likewise.
56297         * modules/hypot (configure.ac): Likewise.
56298         * modules/j0 (configure.ac): Likewise.
56299         * modules/j1 (configure.ac): Likewise.
56300         * modules/jn (configure.ac): Likewise.
56301         * modules/ldexp (configure.ac): Likewise.
56302         * modules/lgamma (configure.ac): Likewise.
56303         * modules/log (configure.ac): Likewise.
56304         * modules/log10 (configure.ac): Likewise.
56305         * modules/log1p (configure.ac): Likewise.
56306         * modules/logb (configure.ac): Likewise.
56307         * modules/modf (configure.ac): Likewise.
56308         * modules/nextafter (configure.ac): Likewise.
56309         * modules/pow (configure.ac): Likewise.
56310         * modules/remainder (configure.ac): Likewise.
56311         * modules/rint (configure.ac): Likewise.
56312         * modules/sin (configure.ac): Likewise.
56313         * modules/sinh (configure.ac): Likewise.
56314         * modules/tan (configure.ac): Likewise.
56315         * modules/tanh (configure.ac): Likewise.
56316         * modules/y0 (configure.ac): Likewise.
56317         * modules/y1 (configure.ac): Likewise.
56318         * modules/yn (configure.ac): Likewise.
56320 2010-01-24  Bruno Haible  <bruno@clisp.org>
56322         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
56323         * tests/test-acosl.c (x): New variable.
56324         (main): Store argument in x and fetch it from x.
56325         * tests/test-asinl.c (x): New variable.
56326         (main): Store argument in x and fetch it from x.
56327         * tests/test-atanl.c (x): New variable.
56328         (main): Store argument in x and fetch it from x.
56329         * tests/test-cosl.c (x): New variable.
56330         (main): Store argument in x and fetch it from x.
56331         * tests/test-expl.c (x): New variable.
56332         (main): Store argument in x and fetch it from x.
56333         * tests/test-logl.c (x): New variable.
56334         (main): Store argument in x and fetch it from x.
56335         * tests/test-sinl.c (x): New variable.
56336         (main): Store argument in x and fetch it from x.
56337         * tests/test-sqrtl.c (x): New variable.
56338         (main): Store argument in x and fetch it from x.
56339         * tests/test-tanl.c (x): New variable.
56340         (main): Store argument in x and fetch it from x.
56342 2010-01-24  Bruno Haible  <bruno@clisp.org>
56344         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
56345         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
56346         assignments to the initial TESTS_ENVIRONMENT.
56347         * doc/gnulib.texi (Unit test modules): Document it.
56348         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
56349         TESTS_ENVIRONMENT.
56350         * modules/btowc-tests (Makefile.am): Likewise.
56351         * modules/c-stack-tests (Makefile.am): Likewise.
56352         * modules/c-strcase-tests (Makefile.am): Likewise.
56353         * modules/copy-file-tests (Makefile.am): Likewise.
56354         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
56355         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
56356         * modules/mbrtowc-tests (Makefile.am): Likewise.
56357         * modules/mbscasecmp-tests (Makefile.am): Likewise.
56358         * modules/mbscasestr-tests (Makefile.am): Likewise.
56359         * modules/mbschr-tests (Makefile.am): Likewise.
56360         * modules/mbscspn-tests (Makefile.am): Likewise.
56361         * modules/mbsinit-tests (Makefile.am): Likewise.
56362         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
56363         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
56364         * modules/mbspbrk-tests (Makefile.am): Likewise.
56365         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
56366         * modules/mbsrchr-tests (Makefile.am): Likewise.
56367         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
56368         * modules/mbsspn-tests (Makefile.am): Likewise.
56369         * modules/mbsstr-tests (Makefile.am): Likewise.
56370         * modules/nl_langinfo-tests (Makefile.am): Likewise.
56371         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
56372         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
56373         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
56374         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
56375         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
56376         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
56377         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
56378         * modules/wcrtomb-tests (Makefile.am): Likewise.
56379         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
56380         * modules/wcsrtombs-tests (Makefile.am): Likewise.
56381         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
56382         assignments from TESTS_ENVIRONMENT.
56383         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
56384         augmentation.
56385         * modules/argp-version-etc-tests (Makefile.am): Likewise.
56386         * modules/atexit-tests (Makefile.am): Likewise.
56387         * modules/binary-io-tests (Makefile.am): Likewise.
56388         * modules/closein-tests (Makefile.am): Likewise.
56389         * modules/dprintf-posix-tests (Makefile.am): Likewise.
56390         * modules/exclude-tests (Makefile.am): Likewise.
56391         * modules/fflush-tests (Makefile.am): Likewise.
56392         * modules/fpending-tests (Makefile.am): Likewise.
56393         * modules/fprintf-posix-tests (Makefile.am): Likewise.
56394         * modules/freadahead-tests (Makefile.am): Likewise.
56395         * modules/freadptr-tests (Makefile.am): Likewise.
56396         * modules/freadseek-tests (Makefile.am): Likewise.
56397         * modules/fseek-tests (Makefile.am): Likewise.
56398         * modules/fseeko-tests (Makefile.am): Likewise.
56399         * modules/ftell-tests (Makefile.am): Likewise.
56400         * modules/ftello-tests (Makefile.am): Likewise.
56401         * modules/idpriv-drop-tests (Makefile.am): Likewise.
56402         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
56403         * modules/lseek-tests (Makefile.am): Likewise.
56404         * modules/parse-duration-tests (Makefile.am): Likewise.
56405         * modules/perror-tests (Makefile.am): Likewise.
56406         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
56407         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
56408         * modules/pipe-tests (Makefile.am): Likewise.
56409         * modules/pread-tests (Makefile.am): Likewise.
56410         * modules/printf-posix-tests (Makefile.am): Likewise.
56411         * modules/select-tests (Makefile.am): Likewise.
56412         * modules/sigpipe-tests (Makefile.am): Likewise.
56413         * modules/tsearch-tests (Makefile.am): Likewise.
56414         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
56415         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
56416         * modules/uniname/uniname-tests (Makefile.am): Likewise.
56417         * modules/uniwidth/width-tests (Makefile.am): Likewise.
56418         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
56419         * modules/version-etc-tests (Makefile.am): Likewise.
56420         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
56421         * modules/vprintf-posix-tests (Makefile.am): Likewise.
56422         * modules/xalloc-die-tests (Makefile.am): Likewise.
56423         * modules/xprintf-posix-tests (Makefile.am): Likewise.
56424         * modules/xstrtoimax-tests (Makefile.am): Likewise.
56425         * modules/xstrtol-tests (Makefile.am): Likewise.
56426         * modules/xstrtoumax-tests (Makefile.am): Likewise.
56427         * modules/yesno-tests (Makefile.am): Likewise.
56428         Suggested by Jim Meyering.
56430 2010-01-24  Bruno Haible  <bruno@clisp.org>
56432         More documentation.
56433         * doc/gnulib.texi (Writing modules): New chapter.
56434         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
56435         the new chapter.
56437 2010-01-24  Jim Meyering  <meyering@redhat.com>
56439         maint.mk: do not prepend "./" after filtering
56440         * top/maint.mk (_prepend_srcdir_prefix): New variable
56441         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
56442         "./" when $(srcdir) is ".".
56444         define STREQ(a,b) consistently, removing useless parentheses
56445         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
56446         since the only risk is that "a" or "b" contains an unparenthesized
56447         comma, but if either did that, STREQ would have 3 or more arguments.
56448         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
56449         * lib/fts.c (STREQ): Remove unnecessary parentheses.
56450         * lib/hash-triple.c (STREQ): Likewise.
56451         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
56452         * lib/getugroups.c (STREQ): Likewise.
56454 2010-01-23  Jim Meyering  <meyering@redhat.com>
56456         maint.mk: fix syntax-check in a non-srcdir build directory
56457         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
56458         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
56460 2010-01-22  Jim Meyering  <meyering@redhat.com>
56462         userspec: add unit tests
56463         * tests/test-userspec.c: New file.
56464         * modules/userspec-tests: Likewise.
56466 2010-01-21  Jim Meyering  <meyering@redhat.com>
56468         maint.mk: handle source file names containing "." robustly
56469         * top/maint.mk (_dot_escaped_srcdir): Define.
56470         (VC_LIST): Use it in LHS of sed substitution.
56472 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
56474         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
56475         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
56476         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
56477         from a non-srcdir build.
56479 2010-01-20  Eric Blake  <ebb9@byu.net>
56481         warn-on-use: use instead of link-warning
56482         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
56483         * modules/unistd (Depends-on, Makefile.am): Likewise.
56484         * modules/arpa_inet (Depends-on): Replace link-warning with
56485         warn-on-use.
56486         (Makefile.am): Update rules accordingly.
56487         * modules/ctype (Depends-on, Makefile.am): Likewise.
56488         * modules/dirent (Depends-on, Makefile.am): Likewise.
56489         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
56490         * modules/inttypes (Depends-on, Makefile.am): Likewise.
56491         * modules/langinfo (Depends-on, Makefile.am): Likewise.
56492         * modules/locale (Depends-on, Makefile.am): Likewise.
56493         * modules/math (Depends-on, Makefile.am): Likewise.
56494         * modules/search (Depends-on, Makefile.am): Likewise.
56495         * modules/signal (Depends-on, Makefile.am): Likewise.
56496         * modules/spawn (Depends-on, Makefile.am): Likewise.
56497         * modules/stdlib (Depends-on, Makefile.am): Likewise.
56498         * modules/string (Depends-on, Makefile.am): Likewise.
56499         * modules/strings (Depends-on, Makefile.am): Likewise.
56500         * modules/sys_file (Depends-on, Makefile.am): Likewise.
56501         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
56502         * modules/sys_select (Depends-on, Makefile.am): Likewise.
56503         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
56504         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
56505         * modules/sys_times (Depends-on, Makefile.am): Likewise.
56506         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
56507         * modules/wchar (Depends-on, Makefile.am): Likewise.
56508         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
56509         should be poisoned.
56510         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
56511         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
56512         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
56513         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
56514         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
56515         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
56516         * m4/math_h.m4 (gl_MATH_H): Likewise.
56517         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
56518         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
56519         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
56520         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
56521         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
56522         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
56523         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
56524         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
56525         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
56526         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
56527         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
56528         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
56529         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
56530         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
56531         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
56532         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
56533         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
56534         GL_LINK_WARNING.
56535         * lib/ctype.in.h: Likewise.
56536         * lib/dirent.in.h: Likewise.
56537         * lib/fcntl.in.h: Likewise.
56538         * lib/inttypes.in.h: Likewise.
56539         * lib/langinfo.in.h: Likewise.
56540         * lib/locale.in.h: Likewise.
56541         * lib/math.in.h: Likewise.
56542         * lib/search.in.h: Likewise.
56543         * lib/signal.in.h: Likewise.
56544         * lib/spawn.in.h: Likewise.
56545         * lib/stdio.in.h: Likewise.
56546         * lib/stdlib.in.h: Likewise.
56547         * lib/string.in.h: Likewise.
56548         * lib/strings.in.h: Likewise.
56549         * lib/sys_file.in.h: Likewise.
56550         * lib/sys_ioctl.in.h: Likewise.
56551         * lib/sys_select.in.h: Likewise.
56552         * lib/sys_socket.in.h: Likewise.
56553         * lib/sys_stat.in.h: Likewise.
56554         * lib/sys_times.in.h: Likewise.
56555         * lib/sys_utsname.in.h: Likewise.
56556         * lib/unistd.in.h: Likewise.
56557         * lib/wchar.in.h: Likewise.
56559 2010-01-20  Bruno Haible  <bruno@clisp.org>
56561         Avoid duplicate -lm.
56562         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
56563         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
56564         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
56565         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
56566         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
56567         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
56568         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
56569         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
56570         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
56571         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
56572         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
56573         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
56574         Reported by Paolo Bonzini.
56576 2010-01-19  Bruno Haible  <bruno@clisp.org>
56578         langinfo, nl_langinfo: Relicense under LGPLv2+.
56579         * modules/langinfo (License): Change to LGPLv2+.
56580         * modules/nl_langinfo (License): Likewise.
56581         Patch by David Lutterkort <lutter@redhat.com>.
56583 2010-01-19  Bruno Haible  <bruno@clisp.org>
56585         Avoid compilation error with cc on OSF/1 5.1.
56586         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
56587         statement, not before.
56588         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56590 2010-01-18  Bruno Haible  <bruno@clisp.org>
56592         Avoid a link error due to the __printf__ symbol.
56593         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
56594         and 2.6.x.
56595         (__format__, __printf__): Remove definitions.
56596         * lib/argp-fmtstream.h: Likewise.
56597         * lib/argp.h: Likewise.
56598         * lib/error.h: Likewise.
56599         * lib/vasnprintf.h: Likewise.
56600         * lib/xprintf.h: Likewise.
56601         * lib/xvasprintf.h: Likewise.
56602         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56604 2010-01-18  Bruno Haible  <bruno@clisp.org>
56606         Tests for module 'tanl'.
56607         * modules/tanl-tests: New file.
56608         * tests/test-tanl.c: New file.
56610         Tests for module 'sqrtl'.
56611         * modules/sqrtl-tests: New file.
56612         * tests/test-sqrtl.c: New file.
56614         Tests for module 'sinl'.
56615         * modules/sinl-tests: New file.
56616         * tests/test-sinl.c: New file.
56618         Tests for module 'logl'.
56619         * modules/logl-tests: New file.
56620         * tests/test-logl.c: New file.
56622         Tests for module 'expl'.
56623         * modules/expl-tests: New file.
56624         * tests/test-expl.c: New file.
56626         Tests for module 'cosl'.
56627         * modules/cosl-tests: New file.
56628         * tests/test-cosl.c: New file.
56630         Tests for module 'atanl'.
56631         * modules/atanl-tests: New file.
56632         * tests/test-atanl.c: New file.
56634         Tests for module 'asinl'.
56635         * modules/asinl-tests: New file.
56636         * tests/test-asinl.c: New file.
56638         Tests for module 'acosl'.
56639         * modules/acosl-tests: New file.
56640         * tests/test-acosl.c: New file.
56642         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
56643         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
56644         tanl): Use the standard gnulib idiom.
56645         * lib/cosl.c: Don't include trigl.c and sincosl.c.
56646         * lib/sinl.c: Likewise.
56647         * lib/tanl.c: Don't include trigl.c.
56648         (kernel_tanl): Make static.
56649         * lib/sincosl.c: Include trigl.h first.
56650         * lib/trigl.c: Likewise.
56651         * m4/acosl.m4: New file.
56652         * m4/asinl.m4: New file.
56653         * m4/atanl.m4: New file.
56654         * m4/cosl.m4: New file.
56655         * m4/expl.m4: New file.
56656         * m4/logl.m4: New file.
56657         * m4/sinl.m4: New file.
56658         * m4/sqrtl.m4: New file.
56659         * m4/tanl.m4: New file.
56660         * m4/mathl.m4: Remove file.
56661         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
56662         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
56663         Don't initialize GNULIB_MATHL.
56664         * modules/acosl: New file.
56665         * modules/asinl: New file.
56666         * modules/atanl: New file.
56667         * modules/cosl: New file.
56668         * modules/expl: New file.
56669         * modules/logl: New file.
56670         * modules/sinl: New file.
56671         * modules/sqrtl: New file.
56672         * modules/tanl: New file.
56673         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
56674         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
56675         substitute GNULIB_MATHL.
56676         * modules/mathl: Rewritten.
56677         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
56678         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
56679         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
56680         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
56681         * doc/posix-functions/expl.texi: Mention the 'expl' module.
56682         * doc/posix-functions/logl.texi: Mention the 'logl' module.
56683         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
56684         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
56685         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
56687 2010-01-18  Bruno Haible  <bruno@clisp.org>
56689         sqrt: Make gl_FUNC_SQRT requirable.
56690         * m4/sqrt.m4: New file.
56691         * modules/sqrt (Files): Add it.
56692         (configure.ac): Invoke gl_FUNC_SQRT.
56694 2010-01-18  Bruno Haible  <bruno@clisp.org>
56696         New modules for common <math.h> functions.
56697         * m4/mathfunc.m4: New file.
56698         * modules/acos: New file.
56699         * modules/asin: New file.
56700         * modules/atan: New file.
56701         * modules/atan2: New file.
56702         * modules/cbrt: New file.
56703         * modules/copysign: New file.
56704         * modules/cos: New file.
56705         * modules/cosh: New file.
56706         * modules/erf: New file.
56707         * modules/erfc: New file.
56708         * modules/exp: New file.
56709         * modules/fabs: New file.
56710         * modules/fmod: New file.
56711         * modules/hypot: New file.
56712         * modules/j0: New file.
56713         * modules/j1: New file.
56714         * modules/jn: New file.
56715         * modules/ldexp: New file.
56716         * modules/lgamma: New file.
56717         * modules/log: New file.
56718         * modules/log10: New file.
56719         * modules/log1p: New file.
56720         * modules/logb: New file.
56721         * modules/modf: New file.
56722         * modules/nextafter: New file.
56723         * modules/pow: New file.
56724         * modules/remainder: New file.
56725         * modules/rint: New file.
56726         * modules/sin: New file.
56727         * modules/sinh: New file.
56728         * modules/sqrt: New file.
56729         * modules/tan: New file.
56730         * modules/tanh: New file.
56731         * modules/y0: New file.
56732         * modules/y1: New file.
56733         * modules/yn: New file.
56734         * doc/posix-functions/acos.texi: Mention the 'acos' module.
56735         * doc/posix-functions/asin.texi: Mention the 'asin' module.
56736         * doc/posix-functions/atan.texi: Mention the 'atan' module.
56737         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
56738         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
56739         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
56740         * doc/posix-functions/cos.texi: Mention the 'cos' module.
56741         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
56742         * doc/posix-functions/erf.texi: Mention the 'erf' module.
56743         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
56744         * doc/posix-functions/exp.texi: Mention the 'exp' module.
56745         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
56746         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
56747         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
56748         * doc/posix-functions/j0.texi: Mention the 'j0' module.
56749         * doc/posix-functions/j1.texi: Mention the 'j1' module.
56750         * doc/posix-functions/jn.texi: Mention the 'jn' module.
56751         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
56752         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
56753         * doc/posix-functions/log.texi: Mention the 'log' module.
56754         * doc/posix-functions/log10.texi: Mention the 'log10' module.
56755         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
56756         * doc/posix-functions/logb.texi: Mention the 'logb' module.
56757         * doc/posix-functions/modf.texi: Mention the 'modf' module.
56758         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
56759         * doc/posix-functions/pow.texi: Mention the 'pow' module.
56760         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
56761         * doc/posix-functions/rint.texi: Mention the 'rint' module.
56762         * doc/posix-functions/sin.texi: Mention the 'sin' module.
56763         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
56764         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
56765         * doc/posix-functions/tan.texi: Mention the 'tan' module.
56766         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
56767         * doc/posix-functions/y0.texi: Mention the 'y0' module.
56768         * doc/posix-functions/y1.texi: Mention the 'y1' module.
56769         * doc/posix-functions/yn.texi: Mention the 'yn' module.
56771 2010-01-18  Jim Meyering  <meyering@redhat.com>
56773         ignore-value: relax license to LGPLv2+
56774         * modules/ignore-value (License): Relax to LGPLv2+.
56776         getdate: don't leak when TZ contains two or more '"'s
56777         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
56778         double quote in TZ after the first one.
56780         readtokens: do not leak internal token_lengths buffer
56781         * lib/readtokens.c (readtokens): Free the local, lengths,
56782         when the supplied "token_lengths" parameter is NULL.
56784 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56786         Fix a couple of missing LIBTHREAD link failures on AIX.
56787         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
56788         $(LIBTHREAD).
56789         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
56791         Link test-poll against INET_PTON_LIB.
56792         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
56793         for inet_pton on Solaris 10.
56795 2010-01-17  Bruno Haible  <bruno@clisp.org>
56797         unistdio/*-sprintf: Fix typo in module description.
56798         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
56799         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
56800         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
56801         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
56802         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
56803         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
56804         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
56805         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56807 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56809         gnulib-tool: fix filelist for AIX, HP-UX ksh.
56810         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
56811         variables in shell case patterns, for AIX and HP-UX ksh.
56813         Split large sed scripts, for HP-UX sed.
56814         * modules/stdio: Split sed scripts around 50 sed commands,
56815         to avoid HP-UX limit of 99 commands, in the near future.
56816         * modules/string: Likewise.
56817         * modules/unistd: Likewise.
56819         gnulib-tool: avoid writing in the current directory.
56820         * gnulib-tool (func_emit_lib_Makefile_am)
56821         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
56822         not in the current directory, so concurrent gnulib-tool
56823         instances do not interfere.
56825 2010-01-16  Jim Meyering  <meyering@redhat.com>
56827         doc: update users.txt
56828         * users.txt: Add grep.
56829         (diffutils, gzip): Update URLs.
56831 2010-01-12  Bruno Haible  <bruno@clisp.org>
56833         posix_spawn: Avoid test failure on Cygwin.
56834         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
56835         characters.
56836         Reported by Simon Josefsson.
56838 2010-01-12  Bruno Haible  <bruno@clisp.org>
56840         * tests/test-cond.c (main): When skipping the test, show the reason.
56842 2010-01-12  Simon Josefsson  <simon@josefsson.org>
56844         * lib/striconv.c (str_cd_iconv): Avoid if before free.
56846 2010-01-12  Simon Josefsson  <simon@josefsson.org>
56848         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
56849         VC_LIST_ALWAYS_EXCLUDE_REGEX.
56851 2010-01-12  Eric Blake  <ebb9@byu.net>
56853         build: guarantee AS_VAR_IF
56854         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
56855         (gl_AS_VAR_IF): Move...
56856         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
56857         Reported by Simon Josefsson.
56859 2010-01-12  Simon Josefsson  <simon@josefsson.org>
56861         * lib/stdio.in.h: Fix typo.
56863 2010-01-12  Simon Josefsson  <simon@josefsson.org>
56865         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
56866         libgpg-error.
56868 2010-01-12  Simon Josefsson  <simon@josefsson.org>
56870         * tests/test-xalloc-die.sh: Use $EXEEXT.
56872 2010-01-12  Simon Josefsson  <simon@josefsson.org>
56873             Bruno Haible  <bruno@clisp.org>
56875         getlogin, getlogin_r: Avoid test failure.
56876         * tests/test-getlogin.c: Include <stdio.h>.
56877         (main): Skip the test when the function fails because stdin is not a
56878         tty.
56879         * tests/test-getlogin_r.c: Include <stdio.h>.
56880         (main): Skip the test when the function fails because stdin is not a
56881         tty.
56883 2010-01-11  Eric Blake  <ebb9@byu.net>
56885         tests: avoid more large file warnings
56886         * tests/test-fflush.c: Avoid warning about ftell use.
56887         * tests/test-fseek.c: Avoid warning about fseek use.
56889 2010-01-10  Bruno Haible  <bruno@clisp.org>
56891         nproc: Work better on Linux when /proc and /sys are not mounted.
56892         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
56893         as lower bound when, on glibc/Linux systems,
56894         sysconf (_SC_NPROCESSORS_CONF) returns 1.
56895         Suggested by Pádraig Brady <P@draigbrady.com>.
56896         Reported by Dmitry V. Levin <ldv@altlinux.org>.
56898         nproc: Refactor.
56899         * lib/nproc.c (num_processors_via_affinity_mask): New function,
56900         extracted from num_processors.
56901         (num_processors): Call it.
56903 2010-01-11  Jim Meyering  <meyering@redhat.com>
56905         utimecmp: avoid new warning from upcoming gcc-4.5.0
56906         * lib/utimecmp.c (BILLION): Define using #define rather than an
56907         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
56909 2010-01-11  Eric Blake  <ebb9@byu.net>
56911         math: add portability warnings for classification macros
56912         * modules/math (Depends-on): Add warn-on-use.
56913         (Makefile.am): Provide new substitutions.
56914         * m4/math_h.m4 (gl_MATH_H): Require inline.
56915         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
56916         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
56917         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
56918         implement warnings.
56920         unistd: warn on use of environ without module
56921         * modules/unistd (Depends-on): Add warn-on-use.
56922         (Makefile.am): Provide new substitutions.
56923         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
56924         * lib/unistd.in.h (environ): Wrap with a warning helper function.
56926         stdio: warn on suspicious uses
56927         * modules/stdio (Depends-on): Add warn-on-use.
56928         (Makefile.am): Provide new substitutions.
56929         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
56930         fseeko.
56931         * lib/stdio.in.h (gets): Always warn on use.
56932         (fseek, ftell): Adjust when warnings are issued, and honor
56933         _GL_NO_LARGE_FILES as a way to silence the warning.
56934         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
56935         any warning about large file offsets.
56936         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
56937         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
56938         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
56939         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
56940         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
56941         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
56942         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
56943         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
56945         warn-on-use: new module
56946         * modules/warn-on-use: New file.
56947         * build-aux/warn-on-use.h: Likewise.
56948         * m4/warn-on-use.m4: Likewise.
56949         * MODULES.html.sh (Support for building): Mention it.
56951 2010-01-10  Bruno Haible  <bruno@clisp.org>
56953         Tests for module 'unistr/u32-strdup'.
56954         * modules/unistr/u32-strdup-tests: New file.
56955         * tests/unistr/test-u32-strdup.c: New file.
56957         Tests for module 'unistr/u16-strdup'.
56958         * modules/unistr/u16-strdup-tests: New file.
56959         * tests/unistr/test-u16-strdup.c: New file.
56961         Tests for module 'unistr/u8-strdup'.
56962         * modules/unistr/u8-strdup-tests: New file.
56963         * tests/unistr/test-u8-strdup.c: New file.
56964         * tests/unistr/test-strdup.h: New file.
56966         Tests for module 'unistr/u32-strncmp'.
56967         * modules/unistr/u32-strncmp-tests: New file.
56968         * tests/unistr/test-u32-strncmp.c: New file.
56970         Tests for module 'unistr/u16-strncmp'.
56971         * modules/unistr/u16-strncmp-tests: New file.
56972         * tests/unistr/test-u16-strncmp.c: New file.
56974         Tests for module 'unistr/u8-strncmp'.
56975         * modules/unistr/u8-strncmp-tests: New file.
56976         * tests/unistr/test-u8-strncmp.c: New file.
56977         * tests/unistr/test-strncmp.h: New file.
56979         Tests for module 'unistr/u32-strcoll'.
56980         * modules/unistr/u32-strcoll-tests: New file.
56981         * tests/unistr/test-u32-strcoll.c: New file.
56983         Tests for module 'unistr/u16-strcoll'.
56984         * modules/unistr/u16-strcoll-tests: New file.
56985         * tests/unistr/test-u16-strcoll.c: New file.
56987         Tests for module 'unistr/u8-strcoll'.
56988         * modules/unistr/u8-strcoll-tests: New file.
56989         * tests/unistr/test-u8-strcoll.c: New file.
56991         Tests for module 'unistr/u32-strcmp'.
56992         * modules/unistr/u32-strcmp-tests: New file.
56993         * tests/unistr/test-u32-strcmp.c: New file.
56994         * tests/unistr/test-u32-strcmp.h: New file.
56996         Tests for module 'unistr/u16-strcmp'.
56997         * modules/unistr/u16-strcmp-tests: New file.
56998         * tests/unistr/test-u16-strcmp.c: New file.
56999         * tests/unistr/test-u16-strcmp.h: New file.
57001         Tests for module 'unistr/u8-strcmp'.
57002         * modules/unistr/u8-strcmp-tests: New file.
57003         * tests/unistr/test-u8-strcmp.c: New file.
57004         * tests/unistr/test-u8-strcmp.h: New file.
57005         * tests/unistr/test-strcmp.h: New file.
57007         Tests for module 'unistr/u32-strncat'.
57008         * modules/unistr/u32-strncat-tests: New file.
57009         * tests/unistr/test-u32-strncat.c: New file.
57011         Tests for module 'unistr/u16-strncat'.
57012         * modules/unistr/u16-strncat-tests: New file.
57013         * tests/unistr/test-u16-strncat.c: New file.
57015         Tests for module 'unistr/u8-strncat'.
57016         * modules/unistr/u8-strncat-tests: New file.
57017         * tests/unistr/test-u8-strncat.c: New file.
57018         * tests/unistr/test-strncat.h: New file.
57020         Tests for module 'unistr/u32-strcat'.
57021         * modules/unistr/u32-strcat-tests: New file.
57022         * tests/unistr/test-u32-strcat.c: New file.
57024         Tests for module 'unistr/u16-strcat'.
57025         * modules/unistr/u16-strcat-tests: New file.
57026         * tests/unistr/test-u16-strcat.c: New file.
57028         Tests for module 'unistr/u8-strcat'.
57029         * modules/unistr/u8-strcat-tests: New file.
57030         * tests/unistr/test-u8-strcat.c: New file.
57031         * tests/unistr/test-strcat.h: New file.
57033         Tests for module 'unistr/u32-stpncpy'.
57034         * modules/unistr/u32-stpncpy-tests: New file.
57035         * tests/unistr/test-u32-stpncpy.c: New file.
57037         Tests for module 'unistr/u16-stpncpy'.
57038         * modules/unistr/u16-stpncpy-tests: New file.
57039         * tests/unistr/test-u16-stpncpy.c: New file.
57041         Tests for module 'unistr/u8-stpncpy'.
57042         * modules/unistr/u8-stpncpy-tests: New file.
57043         * tests/unistr/test-u8-stpncpy.c: New file.
57044         * tests/unistr/test-stpncpy.h: New file.
57046         Tests for module 'unistr/u32-strncpy'.
57047         * modules/unistr/u32-strncpy-tests: New file.
57048         * tests/unistr/test-u32-strncpy.c: New file.
57050         Tests for module 'unistr/u16-strncpy'.
57051         * modules/unistr/u16-strncpy-tests: New file.
57052         * tests/unistr/test-u16-strncpy.c: New file.
57054         Tests for module 'unistr/u8-strncpy'.
57055         * modules/unistr/u8-strncpy-tests: New file.
57056         * tests/unistr/test-u8-strncpy.c: New file.
57057         * tests/unistr/test-strncpy.h: New file.
57059         Tests for module 'unistr/u32-stpcpy'.
57060         * modules/unistr/u32-stpcpy-tests: New file.
57061         * tests/unistr/test-u32-stpcpy.c: New file.
57063         Tests for module 'unistr/u16-stpcpy'.
57064         * modules/unistr/u16-stpcpy-tests: New file.
57065         * tests/unistr/test-u16-stpcpy.c: New file.
57067         Tests for module 'unistr/u8-stpcpy'.
57068         * modules/unistr/u8-stpcpy-tests: New file.
57069         * tests/unistr/test-u8-stpcpy.c: New file.
57070         * tests/unistr/test-stpcpy.h: New file.
57072         Tests for module 'unistr/u32-strcpy'.
57073         * modules/unistr/u32-strcpy-tests: New file.
57074         * tests/unistr/test-u32-strcpy.c: New file.
57076         Tests for module 'unistr/u16-strcpy'.
57077         * modules/unistr/u16-strcpy-tests: New file.
57078         * tests/unistr/test-u16-strcpy.c: New file.
57080         Tests for module 'unistr/u8-strcpy'.
57081         * modules/unistr/u8-strcpy-tests: New file.
57082         * tests/unistr/test-u8-strcpy.c: New file.
57083         * tests/unistr/test-strcpy.h: New file.
57085         Tests for module 'unistr/u32-strnlen'.
57086         * modules/unistr/u32-strnlen-tests: New file.
57087         * tests/unistr/test-u32-strnlen.c: New file.
57089         Tests for module 'unistr/u16-strnlen'.
57090         * modules/unistr/u16-strnlen-tests: New file.
57091         * tests/unistr/test-u16-strnlen.c: New file.
57093         Tests for module 'unistr/u8-strnlen'.
57094         * modules/unistr/u8-strnlen-tests: New file.
57095         * tests/unistr/test-u8-strnlen.c: New file.
57096         * tests/unistr/test-strnlen.h: New file.
57098         Tests for module 'unistr/u32-strlen'.
57099         * modules/unistr/u32-strlen-tests: New file.
57100         * tests/unistr/test-u32-strlen.c: New file.
57102         Tests for module 'unistr/u16-strlen'.
57103         * modules/unistr/u16-strlen-tests: New file.
57104         * tests/unistr/test-u16-strlen.c: New file.
57106         Tests for module 'unistr/u8-strlen'.
57107         * modules/unistr/u8-strlen-tests: New file.
57108         * tests/unistr/test-u8-strlen.c: New file.
57110         Tests for module 'unistr/u32-prev'.
57111         * modules/unistr/u32-prev-tests: New file.
57112         * tests/unistr/test-u32-prev.c: New file.
57114         Tests for module 'unistr/u16-prev'.
57115         * modules/unistr/u16-prev-tests: New file.
57116         * tests/unistr/test-u16-prev.c: New file.
57118         Tests for module 'unistr/u8-prev'.
57119         * modules/unistr/u8-prev-tests: New file.
57120         * tests/unistr/test-u8-prev.c: New file.
57122         Tests for module 'unistr/u32-next'.
57123         * modules/unistr/u32-next-tests: New file.
57124         * tests/unistr/test-u32-next.c: New file.
57126         Tests for module 'unistr/u16-next'.
57127         * modules/unistr/u16-next-tests: New file.
57128         * tests/unistr/test-u16-next.c: New file.
57130         Tests for module 'unistr/u8-next'.
57131         * modules/unistr/u8-next-tests: New file.
57132         * tests/unistr/test-u8-next.c: New file.
57134         Tests for module 'unistr/u32-strmbtouc'.
57135         * modules/unistr/u32-strmbtouc-tests: New file.
57136         * tests/unistr/test-u32-strmbtouc.c: New file.
57138         Tests for module 'unistr/u16-strmbtouc'.
57139         * modules/unistr/u16-strmbtouc-tests: New file.
57140         * tests/unistr/test-u16-strmbtouc.c: New file.
57142         Tests for module 'unistr/u8-strmbtouc'.
57143         * modules/unistr/u8-strmbtouc-tests: New file.
57144         * tests/unistr/test-u8-strmbtouc.c: New file.
57146         Tests for module 'unistr/u32-strmblen'.
57147         * modules/unistr/u32-strmblen-tests: New file.
57148         * tests/unistr/test-u32-strmblen.c: New file.
57150         Tests for module 'unistr/u16-strmblen'.
57151         * modules/unistr/u16-strmblen-tests: New file.
57152         * tests/unistr/test-u16-strmblen.c: New file.
57154         Tests for module 'unistr/u8-strmblen'.
57155         * modules/unistr/u8-strmblen-tests: New file.
57156         * tests/unistr/test-u8-strmblen.c: New file.
57158         Tests for module 'unistr/u32-cpy-alloc'.
57159         * modules/unistr/u32-cpy-alloc-tests: New file.
57160         * tests/unistr/test-u32-cpy-alloc.c: New file.
57162         Tests for module 'unistr/u16-cpy-alloc'.
57163         * modules/unistr/u16-cpy-alloc-tests: New file.
57164         * tests/unistr/test-u16-cpy-alloc.c: New file.
57166         Tests for module 'unistr/u8-cpy-alloc'.
57167         * modules/unistr/u8-cpy-alloc-tests: New file.
57168         * tests/unistr/test-u8-cpy-alloc.c: New file.
57169         * tests/unistr/test-cpy-alloc.h: New file.
57171         Tests for module 'unistr/u32-mbsnlen'.
57172         * modules/unistr/u32-mbsnlen-tests: New file.
57173         * tests/unistr/test-u32-mbsnlen.c: New file.
57175         Tests for module 'unistr/u16-mbsnlen'.
57176         * modules/unistr/u16-mbsnlen-tests: New file.
57177         * tests/unistr/test-u16-mbsnlen.c: New file.
57179         Tests for module 'unistr/u8-mbsnlen'.
57180         * modules/unistr/u8-mbsnlen-tests: New file.
57181         * tests/unistr/test-u8-mbsnlen.c: New file.
57183         Tests for module 'unistr/u32-chr'.
57184         * modules/unistr/u32-chr-tests: New file.
57185         * tests/unistr/test-u32-chr.c: New file.
57187         Tests for module 'unistr/u16-chr'.
57188         * modules/unistr/u16-chr-tests: New file.
57189         * tests/unistr/test-u16-chr.c: New file.
57191         Tests for module 'unistr/u8-chr'.
57192         * modules/unistr/u8-chr-tests: New file.
57193         * tests/unistr/test-u8-chr.c: New file.
57194         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
57196         Tests for module 'unistr/u32-cmp2'.
57197         * modules/unistr/u32-cmp2-tests: New file.
57198         * tests/unistr/test-u32-cmp2.c: New file.
57200         Tests for module 'unistr/u16-cmp2'.
57201         * modules/unistr/u16-cmp2-tests: New file.
57202         * tests/unistr/test-u16-cmp2.c: New file.
57204         Tests for module 'unistr/u8-cmp2'.
57205         * modules/unistr/u8-cmp2-tests: New file.
57206         * tests/unistr/test-u8-cmp2.c: New file.
57207         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
57209         Tests for module 'unistr/u32-cmp'.
57210         * modules/unistr/u32-cmp-tests: New file.
57211         * tests/unistr/test-u32-cmp.c: New file.
57213         Tests for module 'unistr/u16-cmp'.
57214         * modules/unistr/u16-cmp-tests: New file.
57215         * tests/unistr/test-u16-cmp.c: New file.
57217         Tests for module 'unistr/u8-cmp'.
57218         * modules/unistr/u8-cmp-tests: New file.
57219         * tests/unistr/test-u8-cmp.c: New file.
57220         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
57222         Tests for module 'unistr/u32-set'.
57223         * modules/unistr/u32-set-tests: New file.
57224         * tests/unistr/test-u32-set.c: New file.
57226         Tests for module 'unistr/u16-set'.
57227         * modules/unistr/u16-set-tests: New file.
57228         * tests/unistr/test-u16-set.c: New file.
57230         Tests for module 'unistr/u8-set'.
57231         * modules/unistr/u8-set-tests: New file.
57232         * tests/unistr/test-u8-set.c: New file.
57233         * tests/unistr/test-set.h: New file.
57235         Tests for module 'unistr/u32-move'.
57236         * modules/unistr/u32-move-tests: New file.
57237         * tests/unistr/test-u32-move.c: New file.
57239         Tests for module 'unistr/u16-move'.
57240         * modules/unistr/u16-move-tests: New file.
57241         * tests/unistr/test-u16-move.c: New file.
57243         Tests for module 'unistr/u8-move'.
57244         * modules/unistr/u8-move-tests: New file.
57245         * tests/unistr/test-u8-move.c: New file.
57246         * tests/unistr/test-move.h: New file.
57248         Tests for module 'unistr/u32-cpy'.
57249         * modules/unistr/u32-cpy-tests: New file.
57250         * tests/unistr/test-u32-cpy.c: New file.
57252         Tests for module 'unistr/u16-cpy'.
57253         * modules/unistr/u16-cpy-tests: New file.
57254         * tests/unistr/test-u16-cpy.c: New file.
57256         Tests for module 'unistr/u8-cpy'.
57257         * modules/unistr/u8-cpy-tests: New file.
57258         * tests/unistr/test-u8-cpy.c: New file.
57259         * tests/unistr/test-cpy.h: New file.
57261 2010-01-09  Bruno Haible  <bruno@clisp.org>
57263         Tests for module 'unistr/u32-uctomb'.
57264         * modules/unistr/u32-uctomb-tests: New file.
57265         * tests/unistr/test-u32-uctomb.c: New file.
57267         Tests for module 'unistr/u16-uctomb'.
57268         * modules/unistr/u16-uctomb-tests: New file.
57269         * tests/unistr/test-u16-uctomb.c: New file.
57271         Tests for module 'unistr/u8-uctomb'.
57272         * modules/unistr/u8-uctomb-tests: New file.
57273         * tests/unistr/test-u8-uctomb.c: New file.
57275         Tests for module 'unistr/u32-mbtoucr'.
57276         * modules/unistr/u32-mbtoucr-tests: New file.
57277         * tests/unistr/test-u32-mbtoucr.c: New file.
57279         Tests for module 'unistr/u16-mbtoucr'.
57280         * modules/unistr/u16-mbtoucr-tests: New file.
57281         * tests/unistr/test-u16-mbtoucr.c: New file.
57283         Tests for module 'unistr/u8-mbtoucr'.
57284         * modules/unistr/u8-mbtoucr-tests: New file.
57285         * tests/unistr/test-u8-mbtoucr.c: New file.
57287         Tests for module 'unistr/u32-mbtouc'.
57288         * modules/unistr/u32-mbtouc-tests: New file.
57289         * tests/unistr/test-u32-mbtouc.c: New file.
57291         Tests for module 'unistr/u16-mbtouc'.
57292         * modules/unistr/u16-mbtouc-tests: New file.
57293         * tests/unistr/test-u16-mbtouc.c: New file.
57295         Tests for module 'unistr/u8-mbtouc'.
57296         * modules/unistr/u8-mbtouc-tests: New file.
57297         * tests/unistr/test-u8-mbtouc.c: New file.
57299         Tests for module 'unistr/u32-mbtouc-unsafe'.
57300         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
57301         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
57302         * tests/unistr/test-u32-mbtouc.h: New file.
57304         Tests for module 'unistr/u16-mbtouc-unsafe'.
57305         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
57306         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
57307         * tests/unistr/test-u16-mbtouc.h: New file.
57309         Tests for module 'unistr/u8-mbtouc-unsafe'.
57310         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
57311         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
57312         * tests/unistr/test-u8-mbtouc.h: New file.
57314         Tests for module 'unistr/u32-mblen'.
57315         * modules/unistr/u32-mblen-tests: New file.
57316         * tests/unistr/test-u32-mblen.c: New file.
57318         Tests for module 'unistr/u16-mblen'.
57319         * modules/unistr/u16-mblen-tests: New file.
57320         * tests/unistr/test-u16-mblen.c: New file.
57322         Tests for module 'unistr/u8-mblen'.
57323         * modules/unistr/u8-mblen-tests: New file.
57324         * tests/unistr/test-u8-mblen.c: New file.
57326         Tests for module 'unistr/u32-to-u16'.
57327         * modules/unistr/u32-to-u16-tests: New file.
57328         * tests/unistr/test-u32-to-u16.c: New file.
57330         Tests for module 'unistr/u32-to-u8'.
57331         * modules/unistr/u32-to-u8-tests: New file.
57332         * tests/unistr/test-u32-to-u8.c: New file.
57334         Tests for module 'unistr/u16-to-u32'.
57335         * modules/unistr/u16-to-u32-tests: New file.
57336         * tests/unistr/test-u16-to-u32.c: New file.
57338         Tests for module 'unistr/u16-to-u8'.
57339         * modules/unistr/u16-to-u8-tests: New file.
57340         * tests/unistr/test-u16-to-u8.c: New file.
57342         Tests for module 'unistr/u8-to-u32'.
57343         * modules/unistr/u8-to-u32-tests: New file.
57344         * tests/unistr/test-u8-to-u32.c: New file.
57346         Tests for module 'unistr/u8-to-u16'.
57347         * modules/unistr/u8-to-u16-tests: New file.
57348         * tests/unistr/test-u8-to-u16.c: New file.
57350         Tests for module 'unistr/u32-check'.
57351         * modules/unistr/u32-check-tests: New file.
57352         * tests/unistr/test-u32-check.c: New file.
57354         Tests for module 'unistr/u16-check'.
57355         * modules/unistr/u16-check-tests: New file.
57356         * tests/unistr/test-u16-check.c: New file.
57358         Tests for module 'unistr/u8-check'.
57359         * modules/unistr/u8-check-tests: New file.
57360         * tests/unistr/test-u8-check.c: New file.
57362         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
57363         (category_equals): New function.
57364         (main): Add more tests.
57365         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
57367         * tests/unictype/test-bidi_byname.c (main): Add more tests.
57369 2010-01-10  Bruno Haible  <bruno@clisp.org>
57371         unistr/u*-strcoll: Try harder to distinguish different strings.
57372         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
57373         compare s1 and s2 to see if they are different.
57375 2010-01-10  Bruno Haible  <bruno@clisp.org>
57377         unistr/u*-stpncpy: Fix the return value.
57378         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
57379         description of the return value consistent with stpncpy in glibc.
57380         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
57381         written non-NUL unit.
57383 2010-01-10  Bruno Haible  <bruno@clisp.org>
57385         unistr/u*-next: Add missing dependencies.
57386         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
57387         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
57388         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
57390 2010-01-10  Bruno Haible  <bruno@clisp.org>
57392         unistr/u8-mbsnlen: Fix return value for incomplete character.
57393         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
57394         u8_mblen.
57395         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
57396         Remove unistr/u8-mblen.
57397         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
57398         u16_mblen.
57399         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
57400         Remove unistr/u16-mblen.
57402 2010-01-10  Bruno Haible  <bruno@clisp.org>
57404         wchar: Fix compilation error when <wchar.h> is used from coreutils.
57405         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
57406         Reported by Brian Gough <bjg@gnu.org> and
57407         Chris Clayton <chris2553@googlemail.com> via
57408         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
57410 2010-01-09  Bruno Haible  <bruno@clisp.org>
57412         unistr/u16-to-u32: Reject invalid input.
57413         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
57414         u16_mbtouc.
57415         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
57416         Remove unistr/u16-mbtouc.
57418         unistr/u16-to-u8: Reject invalid input.
57419         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
57420         u16_mbtouc.
57421         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
57422         Remove unistr/u16-mbtouc.
57424         unistr/u8-to-u32: Reject invalid input.
57425         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
57426         u8_mbtouc.
57427         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
57428         Remove unistr/u8-mbtouc.
57430         unistr/u8-to-u16: Reject invalid input.
57431         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
57432         u8_mbtouc.
57433         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
57434         Remove unistr/u8-mbtouc.
57436 2010-01-09  Bruno Haible  <bruno@clisp.org>
57438         Tests for module 'getlogin'.
57439         * modules/getlogin-tests: New file.
57440         * tests/test-getlogin.c: New file.
57442         New module 'getlogin'.
57443         * lib/unistd.in.h (getlogin): New declaration.
57444         * lib/getlogin.c: New file.
57445         * m4/getlogin.m4: New file.
57446         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
57447         HAVE_GETLOGIN.
57448         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
57449         HAVE_GETLOGIN.
57450         * modules/getlogin: New file.
57451         * doc/posix-functions/getlogin.texi: Mention the new module.
57452         Reported by John W. Eaton <jwe@gnu.org>.
57454 2010-01-09  Bruno Haible  <bruno@clisp.org>
57456         getlogin_r: Support for native Windows.
57457         * lib/getlogin_r.c: Include <windows.h>
57458         (getlogin_r): Implement for native Windows.
57459         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
57460         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
57461         via John W. Eaton <jwe@gnu.org>.
57463 2010-01-09  Bruno Haible  <bruno@clisp.org>
57465         getlogin_r: Small fixes.
57466         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
57467         succeeds.
57468         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
57469         before testing whether getlogin_r is declared. No need to set
57470         HAVE_DECL_GETLOGIN_R to 1.
57471         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
57473 2010-01-09  Bruno Haible  <bruno@clisp.org>
57475         * lib/unistd.in.h (getlogin_r): Add comment.
57477 2010-01-09  Bruno Haible  <bruno@clisp.org>
57479         Tests for module 'getlogin_r'.
57480         * modules/getlogin_r-tests: New file.
57481         * tests/test-getlogin_r.c: New file.
57483 2010-01-09  Jim Meyering  <meyering@redhat.com>
57485         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
57486         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
57487         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
57489 2010-01-08  Simon Josefsson  <simon@josefsson.org>
57491         * lib/dup2.c (rpl_dup2): Improve comment.
57493 2010-01-08  Eric Blake  <ebb9@byu.net>
57495         maint.mk: allow packages to add makefile @@ exceptions
57496         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
57497         (sc_makefile_check): Rename...
57498         (sc_makefile_at_at_check): ...to this, and use hook.
57500         dup2: work around mingw bug
57501         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
57502         Reported by Simon Josefsson.
57504 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
57506         glob: Fix C++ compilation.
57507         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
57508         C++.
57510 2010-01-07  Bruno Haible  <bruno@clisp.org>
57512         Fix indentation of wctype.in.h, broken since 2007-01-06.
57513         * lib/wctype.in.h: Fix indentation of preprocessor directives.
57515 2010-01-07  Bruno Haible  <bruno@clisp.org>
57517         mbslen: Avoid collision with system function.
57518         * lib/string.in.h [MirBSD]: Include <wchar.h>.
57519         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
57520         * m4/mbslen.m4: New file.
57521         * modules/mbslen (Files): Add it.
57522         (configure.ac): Invoke gl_MBSLEN.
57523         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
57524         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
57525         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
57526         via Ian Beckwith <ianb@erislabs.net>.
57528 2010-01-07  Bruno Haible  <bruno@clisp.org>
57530         dirent: Document the last fix.
57531         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
57533 2010-01-07  Bruno Haible  <bruno@clisp.org>
57535         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
57536         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
57537         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
57538         va_list are defined.
57539         * doc/posix-headers/stdio.texi: Document the bug of missing types.
57540         Reported by Eric Blake.
57542 2010-01-07  Bruno Haible  <bruno@clisp.org>
57544         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
57545         * modules/xlist (Depends-on): Add 'list',
57546         * modules/xoset (Depends-on): Add 'oset'.
57547         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57549 2010-01-07  Bruno Haible  <bruno@clisp.org>
57551         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
57552         * doc/posix-functions/strncasecmp.texi: Likewise.
57554 2010-01-07  Bruno Haible  <bruno@clisp.org>
57556         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
57558 2010-01-07  John W. Eaton  <jwe@octave.org>
57560         wctype: allow C++ use
57561         * lib/wctype.in.h: Add extern "C" block for C++.
57563 2010-01-06  Eric Blake  <ebb9@byu.net>
57565         maint.mk: detect incorrect GFDL usage
57566         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
57568 2010-01-06  Jim Meyering  <meyering@redhat.com>
57569         and Eric Blake  <ebb9@byu.net>
57571         maint.mk: ignore multi-line copyright in NEWS
57572         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
57574 2010-01-06  Eric Blake  <ebb9@byu.net>
57576         select: add missing dependency
57577         * modules/select-tests (Depends-on): Move sockets dependency...
57578         * modules/select (Depends-on): ...here.
57579         Reported by Ian Beckwith.
57581         doc: regenerate INSTALL
57582         * doc/INSTALL: Reflect recent autoconf update.
57583         * doc/INSTALL.ISO: Likewise.
57584         * doc/INSTALL.UTF-8: Likewise.
57586         pread: fix compilation on glibc
57587         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
57588         Reported by Ralf Wildenhues.
57590         dirent: fix test failure
57591         * lib/dirent.in.h (includes): Guarantee ino_t.
57592         Reported by Ralf Wildenhues.
57594 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
57596         linkat, renameat: avoid bad free
57597         * lib/at-func2.c (at_func2): Fix typo.
57598         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
57600 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57602         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
57603         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
57604         to avoid failure of symlink test later.
57606 2010-01-06  Eric Blake  <ebb9@byu.net>
57608         stdio, unistd: guarantee ssize_t
57609         * lib/unistd.in.h (includes): Ensure that types required by POSIX
57610         2008 are exposed when needed.
57611         * lib/stdio.in.h (includes): Likewise.
57612         Reported by Ralf Wildenhues.
57614 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
57616         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
57617         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
57618         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
57620 2010-01-06  Jim Meyering  <meyering@redhat.com>
57622         readtokens: this module *does* require xalloc.h
57623         It uses only functions that were omitted by the old syntax-check rule.
57624         * lib/readtokens.c: Include "xalloc.h" once again.
57625         * modules/readtokens (Depends-on): Add xalloc.
57626         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
57628 2010-01-05  Eric Blake  <ebb9@byu.net>
57630         maint: support 'make announcement' from a VPATH build
57631         * top/maint.mk (announcement): Look for correct NEWS file.
57633 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
57635         utimens (fdutimens): ignore a negative FD, per contract
57636         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
57637         when we have a valid file descriptor.  Otherwise, using a brand
57638         new glibc (with just-patched futimens that now fails with EBADF)
57639         would cause this function to fail with ENOSYS.
57640         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
57641         See also http://bugzilla.redhat.com/552320.
57643 2010-01-05  Eric Blake  <ebb9@byu.net>
57645         strcase: document what it provides
57646         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
57647         gnulib module.
57648         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
57649         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
57651 2010-01-05  Jim Meyering  <meyering@redhat.com>
57653         maint: remove useless inclusions of "xalloc.h"
57654         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
57655         * lib/readtokens.c: Likewise.
57656         * lib/same.c: Likewise.
57657         * modules/getloadavg (Depends-on): Remove xalloc.
57658         * modules/readtokens: Likewise.
57659         * modules/same: Likewise.
57661         maint.mk: include 4 more function names in alloca.h-checking regexp
57662         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
57663         regexp.  Before, we would give a false-positive (saying alloca.h
57664         is included unnecessarily) when the only uses involved omitted symbols.
57666         xalloc.h: use consistent formatting
57667         * lib/xalloc.h: Move declarations to start in the first column.
57669 2010-01-05  Eric Blake  <ebb9@byu.net>
57671         mkdir: avoid xalloc
57672         * lib/mkdir.c (includes): Drop unused header.
57673         Reported by John W. Eaton.
57675 2010-01-04  Jim Meyering  <meyering@redhat.com>
57677         nl_langinfo: avoid configure-time syntax error
57678         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
57679         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
57680         the empty string.  Don't let that provoke a shell syntax error.
57682         regcomp, regexec, fnmatch: avoid array bounds read error
57683         * lib/regcomp.c (build_equiv_class): From glibc:
57684         Use only the low 24 bits of a findidx return value as an index
57685         into the weights array.  Patch by Ulrich Drepper:
57686         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
57687         * lib/regexec.c (check_node_accept_bytes): Likewise.
57688         * lib/fnmatch_loop.c (FCT): Likewise.
57690         regcomp: skip collseq lookup when there are no rules
57691         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
57692         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
57694         regcomp: recognize ill-formed { } expressions
57695         * lib/regcomp.c (parse_dup_op): From glibc:
57696         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
57698         regcomp: fix typo in comment
57699         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
57700         s/satisfy/satisfies/.
57702         regcomp: sync from glibc: remove dead store
57703         * lib/regcomp.c (duplicate_node_closure): Remove useless
57704         search_duplicated_node call and dead store.
57706         regcomp: sync from glibc; always use nl_langinfo
57707         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
57708         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
57709         * modules/regex (Depends-on): Add nl_langinfo.
57711 2010-01-04  Eric Blake  <ebb9@byu.net>
57713         fdopendir: fix configure test
57714         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
57716 2010-01-01  Bruno Haible  <bruno@clisp.org>
57718         wchar: Remove unused configure check.
57719         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
57721 2010-01-01  Eric Blake  <ebb9@byu.net>
57723         headers: make check of system header explicit
57724         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
57725         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
57726         ourselves.
57727         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
57728         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
57729         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
57730         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
57731         internals.
57732         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
57733         missing.
57734         Suggested by Bruno Haible.
57736 2010-01-01  Jim Meyering  <meyering@redhat.com>
57738         ChangeLog: tweak to eliminate unnecessary copyright line
57739         * ChangeLog: Remove a copyright line that was mistakenly updated
57740         by today's update-copyright run.  Reported by Eric Blake.
57742         test-update-copyright: don't let envvar setting cause test failure
57743         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
57745 2010-01-01  Bruno Haible  <bruno@clisp.org>
57747         localename: Avoid gcc warning.
57748         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
57749         function if it is not used.
57751 2010-01-01  Jim Meyering  <meyering@redhat.com>
57753         update nearly all FSF copyright year lists to include 2010
57754         Use the same procedure as for 2009, outlined in
57755         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
57757         version-etc: set COPYRIGHT_YEAR to 2010
57758         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
57760 2009-12-31  Eric Blake  <ebb9@byu.net>
57762         doc: correct availability of cygwin 1.5.x getopt
57763         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
57764         variables.
57765         * doc/posix-functions/opterr.texi (opterr): Likewise.
57766         * doc/posix-functions/optind.texi (optind): Likewise.
57767         * doc/posix-functions/optopt.texi (optopt): Likewise.
57768         * doc/posix-functions/tzname.texi (tzname): Likewise.
57770         openat: update maintainer
57771         * modules/openat (Maintainer): Add myself.
57773         utimens: avoid shadowing warning
57774         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
57775         buffers into one, to avoid shadowing, as well as avoiding a
57776         redundant stat.
57777         Reported by Jim Meyering.
57779         test-dup2: avoid compiler warning
57780         * tests/test-dup2.c (is_inheritable): Only define if used.
57782 2010-01-01  Bruno Haible  <bruno@clisp.org>
57784         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
57785         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
57786         defined, use wctomb instead of wcrtomb.
57788 2010-01-01  Bruno Haible  <bruno@clisp.org>
57790         iconv: Reject native Solaris iconv.
57791         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
57792         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
57794 2009-12-31  Bruno Haible  <bruno@clisp.org>
57796         * tests/test-signal.c (main): Remove test of 'SIG'.
57798 2009-12-31  Bruno Haible  <bruno@clisp.org>
57800         spawn: Fix incomplete fix.
57801         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
57802         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
57803         warnings for GNULIB_POSIXCHECK again.
57804         Reported by Eric Blake.
57806 2009-12-31  Bruno Haible  <bruno@clisp.org>
57808         Avoid namespace pollution on glibc systems.
57809         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
57810         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
57811         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
57812         glibc systems.
57814 2009-12-31  Bruno Haible  <bruno@clisp.org>
57816         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
57817         (gl_REPLACE_WCHAR_H): Turn into a no-op.
57818         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
57819         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
57820         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
57821         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
57822         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
57824 2009-12-31  Bruno Haible  <bruno@clisp.org>
57826         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
57827         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
57828         afterwards.
57830 2009-12-31  Bruno Haible  <bruno@clisp.org>
57832         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
57833         SYS_UTSNAME_H.
57835 2009-12-31  Bruno Haible  <bruno@clisp.org>
57837         spawn: Fix misapplied patch.
57838         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
57839         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
57840         warnings for GNULIB_POSIXCHECK.
57842 2009-12-31  Bruno Haible  <bruno@clisp.org>
57844         times: Update after sys_times changed.
57845         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
57846         * modules/times (Files): Add it.
57847         (configure.ac): Invoke gl_FUNC_TIMES.
57849 2009-12-31  Bruno Haible  <bruno@clisp.org>
57851         Use AC_C_INLINE where necessary.
57852         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
57853         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
57854         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
57855         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
57856         * m4/mbfile.m4 (gl_MBFILE): Likewise.
57857         * m4/mbiter.m4 (gl_MBITER): Likewise.
57858         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
57859         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
57860         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
57861         * modules/u64 (configure.ac): Likewise.
57863 2009-12-31  Bruno Haible  <bruno@clisp.org>
57865         Use AC_C_INLINE instead of module 'inline' where possible.
57866         * modules/inline (Description): Clarify purpose.
57867         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
57868         * modules/count-one-bits (Depends-on): Remove inline.
57869         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
57870         * modules/openat (Depends-on): Remove inline.
57871         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
57872         instead of depending on module 'inline'.
57873         * modules/filevercmp (Depends-on, configure.ac): Likewise.
57874         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
57875         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
57876         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
57877         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
57878         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
57879         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
57880         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
57881         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
57882         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
57883         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
57884         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
57885         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
57886         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
57887         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
57888         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
57889         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
57890         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
57891         Likewise.
57892         * modules/unictype/property-ascii-hex-digit (Depends-on,
57893         configure.ac): Likewise.
57894         * modules/unictype/property-bidi-arabic-digit (Depends-on,
57895         configure.ac): Likewise.
57896         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
57897         configure.ac): Likewise.
57898         * modules/unictype/property-bidi-block-separator (Depends-on,
57899         configure.ac): Likewise.
57900         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
57901         configure.ac): Likewise.
57902         * modules/unictype/property-bidi-common-separator (Depends-on,
57903         configure.ac): Likewise.
57904         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
57905         Likewise.
57906         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
57907         configure.ac): Likewise.
57908         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
57909         configure.ac): Likewise.
57910         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
57911         configure.ac): Likewise.
57912         * modules/unictype/property-bidi-european-digit (Depends-on,
57913         configure.ac): Likewise.
57914         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
57915         configure.ac): Likewise.
57916         * modules/unictype/property-bidi-left-to-right (Depends-on,
57917         configure.ac): Likewise.
57918         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
57919         configure.ac): Likewise.
57920         * modules/unictype/property-bidi-other-neutral (Depends-on,
57921         configure.ac): Likewise.
57922         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
57923         Likewise.
57924         * modules/unictype/property-bidi-segment-separator (Depends-on,
57925         configure.ac): Likewise.
57926         * modules/unictype/property-bidi-whitespace (Depends-on,
57927         configure.ac): Likewise.
57928         * modules/unictype/property-combining (Depends-on, configure.ac):
57929         Likewise.
57930         * modules/unictype/property-composite (Depends-on, configure.ac):
57931         Likewise.
57932         * modules/unictype/property-currency-symbol (Depends-on,
57933         configure.ac): Likewise.
57934         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
57935         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
57936         Likewise.
57937         * modules/unictype/property-default-ignorable-code-point (Depends-on,
57938         configure.ac): Likewise.
57939         * modules/unictype/property-deprecated (Depends-on, configure.ac):
57940         Likewise.
57941         * modules/unictype/property-diacritic (Depends-on, configure.ac):
57942         Likewise.
57943         * modules/unictype/property-extender (Depends-on, configure.ac):
57944         Likewise.
57945         * modules/unictype/property-format-control (Depends-on, configure.ac):
57946         Likewise.
57947         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
57948         Likewise.
57949         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
57950         Likewise.
57951         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
57952         Likewise.
57953         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
57954         Likewise.
57955         * modules/unictype/property-hyphen (Depends-on, configure.ac):
57956         Likewise.
57957         * modules/unictype/property-id-continue (Depends-on, configure.ac):
57958         Likewise.
57959         * modules/unictype/property-id-start (Depends-on, configure.ac):
57960         Likewise.
57961         * modules/unictype/property-ideographic (Depends-on, configure.ac):
57962         Likewise.
57963         * modules/unictype/property-ids-binary-operator (Depends-on,
57964         configure.ac): Likewise.
57965         * modules/unictype/property-ids-trinary-operator (Depends-on,
57966         configure.ac): Likewise.
57967         * modules/unictype/property-ignorable-control (Depends-on,
57968         configure.ac): Likewise.
57969         * modules/unictype/property-iso-control (Depends-on, configure.ac):
57970         Likewise.
57971         * modules/unictype/property-join-control (Depends-on, configure.ac):
57972         Likewise.
57973         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
57974         Likewise.
57975         * modules/unictype/property-line-separator (Depends-on, configure.ac):
57976         Likewise.
57977         * modules/unictype/property-logical-order-exception (Depends-on,
57978         configure.ac): Likewise.
57979         * modules/unictype/property-lowercase (Depends-on, configure.ac):
57980         Likewise.
57981         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
57982         * modules/unictype/property-non-break (Depends-on, configure.ac):
57983         Likewise.
57984         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
57985         Likewise.
57986         * modules/unictype/property-numeric (Depends-on, configure.ac):
57987         Likewise.
57988         * modules/unictype/property-other-alphabetic (Depends-on,
57989         configure.ac): Likewise.
57990         * modules/unictype/property-other-default-ignorable-code-point
57991         (Depends-on, configure.ac): Likewise.
57992         * modules/unictype/property-other-grapheme-extend (Depends-on,
57993         configure.ac): Likewise.
57994         * modules/unictype/property-other-id-continue (Depends-on,
57995         configure.ac): Likewise.
57996         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
57997         Likewise.
57998         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
57999         Likewise.
58000         * modules/unictype/property-other-math (Depends-on, configure.ac):
58001         Likewise.
58002         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
58003         Likewise.
58004         * modules/unictype/property-paired-punctuation (Depends-on,
58005         configure.ac): Likewise.
58006         * modules/unictype/property-paragraph-separator (Depends-on,
58007         configure.ac): Likewise.
58008         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
58009         Likewise.
58010         * modules/unictype/property-pattern-white-space (Depends-on,
58011         configure.ac): Likewise.
58012         * modules/unictype/property-private-use (Depends-on, configure.ac):
58013         Likewise.
58014         * modules/unictype/property-punctuation (Depends-on, configure.ac):
58015         Likewise.
58016         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
58017         Likewise.
58018         * modules/unictype/property-radical (Depends-on, configure.ac):
58019         Likewise.
58020         * modules/unictype/property-sentence-terminal (Depends-on,
58021         configure.ac): Likewise.
58022         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
58023         Likewise.
58024         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
58025         * modules/unictype/property-terminal-punctuation (Depends-on,
58026         configure.ac): Likewise.
58027         * modules/unictype/property-titlecase (Depends-on, configure.ac):
58028         Likewise.
58029         * modules/unictype/property-unassigned-code-value (Depends-on,
58030         configure.ac): Likewise.
58031         * modules/unictype/property-unified-ideograph (Depends-on,
58032         configure.ac): Likewise.
58033         * modules/unictype/property-uppercase (Depends-on, configure.ac):
58034         Likewise.
58035         * modules/unictype/property-variation-selector (Depends-on,
58036         configure.ac): Likewise.
58037         * modules/unictype/property-white-space (Depends-on, configure.ac):
58038         Likewise.
58039         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
58040         Likewise.
58041         * modules/unictype/property-xid-start (Depends-on, configure.ac):
58042         Likewise.
58043         * modules/unictype/property-zero-width (Depends-on, configure.ac):
58044         Likewise.
58045         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
58046         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
58047         Likewise.
58049 2009-12-31  Bruno Haible  <bruno@clisp.org>
58051         Remove unnecessary AC_C_INLINE invocation.
58052         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
58053         since 2009-08-21.
58055 2009-12-31  Jim Meyering  <meyering@redhat.com>
58057         maint.mk: don't require explicit gpg_key_ID in cfg.mk
58058         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
58059         With this change, we can all remove the gpg_key_ID = ... definition
58060         from our respective cfg.mk files.
58062         maint.mk: create announcement template in ~/, not in /tmp
58063         * top/maint.mk (emit_upload_commands): Adjust.
58064         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
58065         Remove temporary file, .ci-msg.
58067 2009-12-31  Eric Blake  <ebb9@byu.net>
58069         link-warning: always build headers with link warnings
58070         * modules/arpa_inet (Makefile.am): Always build replacement
58071         header.
58072         * modules/ctype (Makefile.am): Likewise.
58073         * modules/dirent (Makefile.am): Likewise.
58074         * modules/inttypes (Makefile.am): Likewise.
58075         * modules/langinfo (Makefile.am): Likewise.
58076         * modules/locale (Makefile.am): Likewise.
58077         * modules/spawn (Makefile.am): Likewise.
58078         * modules/sys_file (Makefile.am): Likewise.
58079         * modules/sys_ioctl (Makefile.am): Likewise.
58080         * modules/sys_select (Makefile.am): Likewise.
58081         * modules/sys_socket (Makefile.am): Likewise.
58082         * modules/sys_times (Makefile.am): Likewise.
58083         * modules/sys_utsname (Makefile.am): Likewise.
58084         * modules/sys_wait (Makefile.am): Likewise.
58085         * modules/wchar (Makefile.am): Likewise.
58086         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
58087         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
58088         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
58089         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
58090         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
58091         Likewise.
58092         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
58093         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
58094         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
58095         Likewise.
58096         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
58097         Likewise.
58098         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
58099         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
58100         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
58101         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
58102         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
58103         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
58104         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
58105         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
58106         (gl_WCHAR_H_DEFAULTS): Likewise.
58108 2009-12-31  Eric Blake  <ebb9@byu.net>
58110         signal, spawn: use link warnings
58111         * lib/signal.in.h (sigset_t): Make unconditional.
58112         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
58113         (sigpending, sigprocmask, sigaction): Add link warnings.
58114         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
58115         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
58116         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
58117         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
58118         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
58119         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
58120         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
58121         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
58122         (posix_spawn_file_actions_destroy)
58123         (posix_spawn_file_actions_addopen)
58124         (posix_spawn_file_actions_addclose)
58125         (posix_spawn_file_actions_adddup2): Likewise.
58126         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
58127         * tests/test-signal.c (main): Enhance test.
58129         spawn: improve wrapper support
58130         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
58131         (gl_SPAWN_H_DEFAULTS): New defaults.
58132         * modules/spawn (Makefile.am): Substitute them.
58133         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
58134         Only declare if missing or broken.
58136         sys_times, sys_utsname: use include_next
58137         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
58138         header.
58139         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
58140         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
58141         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
58142         * modules/sys_times (Depends-on): Add include_next.
58143         (Makefile.am): Substitute additional values.
58144         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
58145         * lib/sys_times.in.h (includes): Include native header, if
58146         available.
58147         * lib/sys_utsname.in.h (includes): Likewise.
58148         * tests/test-sys_times.c (main): Enhance test.
58150         fdutimensat: revert prior patch
58151         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
58152         utimens.h.
58153         Reported by Bruno Haible.
58155 2009-12-30  Eric Blake  <ebb9@byu.net>
58157         sys_wait: drop link-warning dependency
58158         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
58159         link-warning efforts.
58160         * lib/sys_wait.in.h: Likewise.
58162         fdutimensat: remove bogus dependency
58163         * modules/fdutimensat (Depends-on): Drop inline.
58165         unistd: fix typo
58166         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
58168 2009-12-30  Bruno Haible  <bruno@clisp.org>
58170         Fix compilation error with Solaris cc.
58171         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
58172         * lib/unicase/u16-is-invariant.c: Likewise.
58173         * lib/unicase/u32-is-invariant.c: Likewise.
58174         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
58176 2009-12-30  Bruno Haible  <bruno@clisp.org>
58178         Fix test crash.
58179         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
58180         locales.
58181         Reported by Simon Josefsson <simon@josefsson.org>.
58183 2009-12-30  Bruno Haible  <bruno@clisp.org>
58185         Fix compilation error on most platforms.
58186         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
58187         Reported by Simon Josefsson <simon@josefsson.org>
58188         and Nelson H. F. Beebe <beebe@math.utah.edu>.
58190 2009-12-30  Eric Blake  <ebb9@byu.net>
58192         futimens, utimensat: work around ntfs-3g bug
58193         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
58194         a ctime bug is present, and expand workaround to cover ntfs-3g.
58195         * lib/utimens.c (fdutimens, lutimens): Likewise.
58196         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
58197         (validate_timespec): Adjust return value.
58198         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
58199         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
58200         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
58202 2009-12-29  Eric Blake  <ebb9@byu.net>
58204         link-warning: make usage consistent
58205         * modules/ctype (Depends-on): Add link-warning.
58206         (Makefile.am): Update rules accordingly.
58207         * modules/langinfo (Depends-on, Makefile.am): Likewise.
58208         * modules/locale (Depends-on, Makefile.am): Likewise.
58209         * modules/sys_file (Makefile.am): Likewise.
58210         * modules/getopt-posix (Makefile.am): Delete unused link warning
58211         efforts.
58212         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
58213         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
58214         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
58215         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
58217         stdio: remove unused variables
58218         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
58219         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
58220         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
58222         tests: test more substitute headers
58223         * modules/ctype-tests: New file.
58224         * modules/dirent-tests: Likewise.
58225         * modules/spawn-tests: Likewise.
58226         * modules/sys_file-tests: Likewise.
58227         * modules/sys_ioctl-tests: Likewise.
58228         * modules/sys_wait-tests: Likewise.
58229         * tests/test-ctype.c: Likewise.
58230         * tests/test-dirent.c: Likewise.
58231         * tests/test-spawn.c: Likewise.
58232         * tests/test-sys_file.c: Likewise.
58233         * tests/test-sys_ioctl.c: Likewise.
58234         * tests/test-sys_wait.c: Likewise.
58235         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
58236         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
58237         whether or not flock is in use.
58239         tests: remove License section from module
58240         * modules/arpa_inet-tests: Remove unneeded section.
58241         * modules/byteswap-tests: Likewise.
58242         * modules/ceilf-tests: Likewise.
58243         * modules/ceill-tests: Likewise.
58244         * modules/crypto/des-tests: Likewise.
58245         * modules/crypto/gc-arcfour-tests: Likewise.
58246         * modules/crypto/gc-arctwo-tests: Likewise.
58247         * modules/crypto/gc-des-tests: Likewise.
58248         * modules/crypto/gc-hmac-md5-tests: Likewise.
58249         * modules/crypto/gc-hmac-sha1-tests: Likewise.
58250         * modules/crypto/gc-md2-tests: Likewise.
58251         * modules/crypto/gc-md4-tests: Likewise.
58252         * modules/crypto/gc-md5-tests: Likewise.
58253         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
58254         * modules/crypto/gc-rijndael-tests: Likewise.
58255         * modules/crypto/gc-sha1-tests: Likewise.
58256         * modules/crypto/gc-tests: Likewise.
58257         * modules/crypto/md2-tests: Likewise.
58258         * modules/crypto/md4-tests: Likewise.
58259         * modules/fcntl-h-tests: Likewise.
58260         * modules/floorf-tests: Likewise.
58261         * modules/floorl-tests: Likewise.
58262         * modules/frexp-nolibm-tests: Likewise.
58263         * modules/frexp-tests: Likewise.
58264         * modules/frexpl-nolibm-tests: Likewise.
58265         * modules/frexpl-tests: Likewise.
58266         * modules/getaddrinfo-tests: Likewise.
58267         * modules/inttypes-tests: Likewise.
58268         * modules/isfinite-tests: Likewise.
58269         * modules/isinf-tests: Likewise.
58270         * modules/ldexpl-tests: Likewise.
58271         * modules/locale-tests: Likewise.
58272         * modules/math-tests: Likewise.
58273         * modules/netdb-tests: Likewise.
58274         * modules/netinet_in-tests: Likewise.
58275         * modules/printf-frexp-tests: Likewise.
58276         * modules/printf-frexpl-tests: Likewise.
58277         * modules/priv-set-tests: Likewise.
58278         * modules/random_r-tests: Likewise.
58279         * modules/round-tests: Likewise.
58280         * modules/roundf-tests: Likewise.
58281         * modules/roundl-tests: Likewise.
58282         * modules/search-tests: Likewise.
58283         * modules/select-tests: Likewise.
58284         * modules/signal-tests: Likewise.
58285         * modules/stdbool-tests: Likewise.
58286         * modules/stddef-tests: Likewise.
58287         * modules/stdint-tests: Likewise.
58288         * modules/stdio-tests: Likewise.
58289         * modules/stdlib-tests: Likewise.
58290         * modules/string-tests: Likewise.
58291         * modules/strings-tests: Likewise.
58292         * modules/sys_select-tests: Likewise.
58293         * modules/sys_socket-tests: Likewise.
58294         * modules/sys_stat-tests: Likewise.
58295         * modules/sys_time-tests: Likewise.
58296         * modules/sys_utsname-tests: Likewise.
58297         * modules/sysexits-tests: Likewise.
58298         * modules/time-tests: Likewise.
58299         * modules/trunc-tests: Likewise.
58300         * modules/truncf-tests: Likewise.
58301         * modules/truncl-tests: Likewise.
58302         * modules/tsearch-tests: Likewise.
58303         * modules/unistd-tests: Likewise.
58304         * modules/wchar-tests: Likewise.
58305         * modules/wctype-tests: Likewise.
58307         tests: fix license on several tests
58308         * tests/test-des.c: Update to GPLv3+.
58309         * tests/test-flock.c: Likewise.
58310         * tests/test-fsync.c: Likewise.
58311         * tests/test-futimens.h: Likewise.
58312         * tests/test-gc-arcfour.c: Likewise.
58313         * tests/test-gc-arctwo.c: Likewise.
58314         * tests/test-gc-des.c: Likewise.
58315         * tests/test-gc-hmac-md5.c: Likewise.
58316         * tests/test-gc-hmac-sha1.c: Likewise.
58317         * tests/test-gc-md2.c: Likewise.
58318         * tests/test-gc-md4.c: Likewise.
58319         * tests/test-gc-md5.c: Likewise.
58320         * tests/test-gc-pbkdf2-sha1.c: Likewise.
58321         * tests/test-gc-rijndael.c: Likewise.
58322         * tests/test-gc-sha1.c: Likewise.
58323         * tests/test-gc.c: Likewise.
58324         * tests/test-getcwd.c: Likewise.
58325         * tests/test-link.c: Likewise.
58326         * tests/test-link.h: Likewise.
58327         * tests/test-lutimens.h: Likewise.
58328         * tests/test-md2.c: Likewise.
58329         * tests/test-md4.c: Likewise.
58330         * tests/test-mkdir.h: Likewise.
58331         * tests/test-rename.c: Likewise.
58332         * tests/test-rename.h: Likewise.
58333         * tests/test-safe-alloc.c: Likewise.
58334         * tests/test-utimens-common.h: Likewise.
58335         * tests/test-utimens.h: Likewise.
58337         maint: sync license texts
58338         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
58339         * doc/gpl-3.0.texi: Revert copyright year update.
58340         * doc/lgpl-3.0.texi: Likewise.
58342 2009-12-29  Jim Meyering  <meyering@redhat.com>
58344         update nearly all FSF copyright year lists to include 2009
58345         The files named by the following are exempted:
58346             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
58347               test -f "$dst" && { echo "$dst"; continue; }
58348               test -d "$dst" || continue
58349               echo "$dst"/$(basename "$src")
58350             done > exempt
58351             git ls-files tests/unictype >> exempt
58352         In the remaining files, convert to all-interval notation if
58353         - there is already at least one year interval like 2000-2003
58354         - the file is maintained by me
58355         - the file is in lib/uni*/, where that style already prevails
58356         Otherwise, use update-copyright's default.
58358 2009-12-29  Simon Josefsson  <simon@josefsson.org>
58359         and Eric Blake  <ebb9@byu.net>
58361         tests: don't require debug system() to pass
58362         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
58363         * tests/test-rmdir.h (test_rmdir_func): Likewise.
58364         * tests/test-unlink.h (test_unlink_func): Likewise.
58365         * tests/test-fstatat.c (main): ...into callers.
58366         * tests/test-lstat.c (main): Likewise.
58367         * tests/test-rmdir.c (main): Likewise.
58368         * tests/test-unlink.c (main): Likewise.
58369         * tests/test-unlinkat.c (main): Likewise.
58370         * tests/test-areadlink-with-size.c (main): Don't require a
58371         debug-only system call to pass, aiding cross-testing to mingw.
58372         * tests/test-areadlink.c (main): Likewise.
58373         * tests/test-areadlinkat-with-size.c (main): Likewise.
58374         * tests/test-areadlinkat.c (main): Likewise.
58375         * tests/test-canonicalize-lgpl.c (main): Likewise.
58376         * tests/test-canonicalize.c (main): Likewise.
58377         * tests/test-chown.c (main): Likewise.
58378         * tests/test-fchownat.c (main): Likewise.
58379         * tests/test-lchown.c (main): Likewise.
58380         * tests/test-fdutimensat.c (main): Likewise.
58381         * tests/test-futimens.c (main): Likewise.
58382         * tests/test-link.c (main): Likewise.
58383         * tests/test-linkat.c (main): Likewise.
58384         * tests/test-mkdir.c (main): Likewise.
58385         * tests/test-mkdirat.c (main): Likewise.
58386         * tests/test-mkfifo.c (main): Likewise.
58387         * tests/test-mkfifoat.c (main): Likewise.
58388         * tests/test-mknod.c (main): Likewise.
58389         * tests/test-readlink.c (main): Likewise.
58390         * tests/test-remove.c (main): Likewise.
58391         * tests/test-rename.c (main): Likewise.
58392         * tests/test-renameat.c (main): Likewise.
58393         * tests/test-symlink.c (main): Likewise.
58394         * tests/test-symlinkat.c (main): Likewise.
58395         * tests/test-utimens.c (main): Likewise.
58396         * tests/test-utimensat.c (main): Likewise.
58398 2009-12-29  Simon Josefsson  <simon@josefsson.org>
58400         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
58401         on $(UNUSED_PARAMETER_H) to avoid build failure.
58403 2009-12-28  Jim Meyering  <meyering@redhat.com>
58405         update-copyright: you may specify a max. line length other than 72
58406         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
58408         maint: use consistent FSF copyright line syntax
58409         * lib/posixtm.c: Add missing comma in FSF copyright line.
58410         * lib/posixtm.h: Likewise.
58411         * lib/getugroups.c: Add missing ", Inc.".
58413         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
58414         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
58415         FSF copyright line.  Remove trailing blanks.
58417 2009-12-28  Eric Blake  <ebb9@byu.net>
58419         test-dup2: reduce dependencies
58420         * modules/cloexec (Configure.ac): Set witness.
58421         * modules/dup2-tests (Depends-on): Drop cloexec.
58422         * tests/test-dup2.c (main): Skip portion of test if cloexec module
58423         not present.
58424         Suggested by Bruno Haible.
58426 2009-12-26  Bruno Haible  <bruno@clisp.org>
58428         Remove an unneeded dependency.
58429         * modules/fseterr (Depends-on): Remove dup2.
58431 2009-12-26  Eric Blake  <ebb9@byu.net>
58433         tests: use macros.h in more places
58434         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
58435         (ASSERT_STREAM): Provide default of stderr.
58436         * tests/test-dirent-safer.c: Include macros.h, using alternate
58437         stream for assertions.
58438         * tests/test-dup-safer.c: Likewise.
58439         * tests/test-freopen-safer.c: Likewise.
58440         * tests/test-getopt.c: Likewise.
58441         * tests/test-openat-safer.c: Likewise.
58442         * tests/test-pipe.c: Likewise.
58443         * tests/test-popen-safer.c: Likewise.
58444         * modules/dirent-safer-tests (Files): Include macros.h.
58445         * modules/unistd-safer-tests (Files): Likewise.
58446         * modules/freopen-safer-tests (Files): Likewise.
58447         * modules/getopt-posix-tests (Files): Likewise.
58448         * modules/openat-safer-tests (Files): Likewise.
58449         * modules/pipe-tests (Files): Likewise.
58451 2009-12-26  Bruno Haible  <bruno@clisp.org>
58453         javacomp-script: Portability fix.
58454         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
58455         that it also works on Solaris.
58457 2009-12-26  Bruno Haible  <bruno@clisp.org>
58459         localename: Fix storage allocation of gl_locale_name_thread's result.
58460         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
58461         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
58462         all platforms that have 'uselocale'.
58463         (gl_locale_name_thread_unsafe): New function, extracted from
58464         gl_locale_name_thread.
58465         (gl_locale_name_thread): Call struniq on all platforms that have
58466         'uselocale'.
58467         * tests/test-localename.c (test_locale_name_thread): Check that the
58468         resulting strings are permanently allocated.
58469         * modules/localename-tests (Depends-on): Add strdup.
58471 2009-12-26  Bruno Haible  <bruno@clisp.org>
58473         * tests/test-localename.c (categories): Fill in the strings.
58475 2009-12-26  Jim Meyering  <meyering@redhat.com>
58477         isdir: complete the removal of m4/isdir.m4
58478         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
58480         isdir: clean up, since at least grep still uses it
58481         * lib/isdir.c: Include "isdir.h".
58482         (S_ISDIR): Remove now-unneeded definition.
58483         * modules/isdir (Files): Add lib/isdir.h.
58484         * lib/isdir.h: New file, with declaration.
58485         * m4/isdir.m4: Remove file -- unneeded.
58487 2009-12-25  Bruno Haible  <bruno@clisp.org>
58489         selinux-h: Make generated .h files standalone.
58490         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
58491         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
58492         * lib/se-selinux.in.h: Likewise.
58493         * modules/selinux-h (Depends-on): Add unused-parameter.
58494         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
58495         selinux/selinux.h and selinux/context.h.
58496         Suggested by Eric Blake.
58498 2009-12-25  Bruno Haible  <bruno@clisp.org>
58500         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
58501         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
58502         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
58503         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
58504         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
58506 2009-12-24  Bruno Haible  <bruno@clisp.org>
58508         openat: Fix warning.
58509         * lib/openat-proc.c: Include <unistd.h>.
58511 2009-12-24  Bruno Haible  <bruno@clisp.org>
58513         New module 'unused-parameter'.
58514         * build-aux/unused-parameter.h: New file, extracted from earlier
58515         gnulib-common.m4.
58516         * modules/unused-parameter: New file.
58517         * lib/unistr.h: Include unused-parameter.h.
58518         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
58519         _GL_UNUSED.
58520         * modules/unistr/base (Depends-on): Add unused-parameter.
58522 2009-12-24  Bruno Haible  <bruno@clisp.org>
58524         Add missing dependencies to 'extensions' module.
58525         * m4/extensions.m4: Add comment.
58526         * modules/accept4 (Depends-on): Add extensions.
58527         * modules/dup3 (Depends-on): Likewise.
58528         * modules/fcntl (Depends-on): Likewise.
58529         * modules/futimens (Depends-on): Likewise.
58530         * modules/mknod (Depends-on): Likewise.
58531         * modules/pipe2 (Depends-on): Likewise.
58532         * modules/stat-time (Depends-on): Likewise.
58533         * modules/strcasestr-simple (Depends-on): Likewise.
58534         * modules/strsignal (Depends-on): Likewise.
58535         * modules/utimensat (Depends-on): Likewise.
58536         * modules/localcharset (Depends-on): Likewise. Needed because of
58537         gl_FCNTL_O_FLAGS.
58538         * modules/wcrtomb (Depends-on): Likewise. Needed because of
58539         AC_TYPE_MBSTATE_T.
58540         * modules/wcsnrtombs (Depends-on): Likewise.
58541         * modules/wcsrtombs (Depends-on): Likewise.
58543 2009-12-24  Bruno Haible  <bruno@clisp.org>
58545         binary-io: Avoid gcc warning due to SET_BINARY.
58546         * lib/binary-io.h (SET_BINARY): Cast the result to void.
58547         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
58549 2009-12-24  Bruno Haible  <bruno@clisp.org>
58551         Avoid future namespace pollution on glibc systems.
58552         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
58553         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
58554         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
58555         glibc systems.
58557 2009-12-24  Bruno Haible  <bruno@clisp.org>
58559         Refactor common macros used in tests.
58560         * tests/macros.h: New file.
58561         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
58562         and/or <stdlib.h>, if appropriate.
58563         (ASSERT, SIZEOF): Remove macros.
58564         * tests/test-areadlink-with-size.c: Likewise.
58565         * tests/test-areadlinkat.c: Likewise.
58566         * tests/test-areadlinkat-with-size.c: Likewise.
58567         * tests/test-argmatch.c: Likewise.
58568         * tests/test-argv-iter.c: Likewise.
58569         * tests/test-array-mergesort.c: Likewise.
58570         * tests/test-array_list.c: Likewise.
58571         * tests/test-array_oset.c: Likewise.
58572         * tests/test-avltree_list.c: Likewise.
58573         * tests/test-avltree_oset.c: Likewise.
58574         * tests/test-avltreehash_list.c: Likewise.
58575         * tests/test-base64.c: Likewise.
58576         * tests/test-binary-io.c: Likewise.
58577         * tests/test-bitrotate.c: Likewise.
58578         * tests/test-btowc.c: Likewise.
58579         * tests/test-byteswap.c: Likewise.
58580         * tests/test-c-ctype.c: Likewise.
58581         * tests/test-c-stack.c: Likewise.
58582         * tests/test-c-strcasecmp.c: Likewise.
58583         * tests/test-c-strcasestr.c: Likewise.
58584         * tests/test-c-strncasecmp.c: Likewise.
58585         * tests/test-c-strstr.c: Likewise.
58586         * tests/test-canonicalize-lgpl.c: Likewise.
58587         * tests/test-canonicalize.c: Likewise.
58588         * tests/test-carray_list.c: Likewise.
58589         * tests/test-ceilf1.c: Likewise.
58590         * tests/test-ceilf2.c: Likewise.
58591         * tests/test-ceill.c: Likewise.
58592         * tests/test-chown.c: Likewise.
58593         * tests/test-cloexec.c: Likewise.
58594         * tests/test-copy-acl.c: Likewise.
58595         * tests/test-copy-file.c: Likewise.
58596         * tests/test-count-one-bits.c: Likewise.
58597         * tests/test-dprintf-posix.c: Likewise.
58598         * tests/test-dup2.c: Likewise.
58599         * tests/test-dup3.c: Likewise.
58600         * tests/test-duplocale.c: Likewise.
58601         * tests/test-fbufmode.c: Likewise.
58602         * tests/test-fchdir.c: Likewise.
58603         * tests/test-fchownat.c: Likewise.
58604         * tests/test-fcntl-safer.c: Likewise.
58605         * tests/test-fcntl.c: Likewise.
58606         * tests/test-fdopendir.c: Likewise.
58607         * tests/test-fdutimensat.c: Likewise.
58608         * tests/test-fflush2.c: Likewise.
58609         * tests/test-file-has-acl.c: Likewise.
58610         * tests/test-filevercmp.c: Likewise.
58611         * tests/test-flock.c: Likewise.
58612         * tests/test-floorf1.c: Likewise.
58613         * tests/test-floorf2.c: Likewise.
58614         * tests/test-floorl.c: Likewise.
58615         * tests/test-fnmatch.c: Likewise.
58616         * tests/test-fopen.h: Likewise.
58617         * tests/test-fpending.c: Likewise.
58618         * tests/test-fprintf-posix.c: Likewise.
58619         * tests/test-fpurge.c: Likewise.
58620         * tests/test-freadable.c: Likewise.
58621         * tests/test-freadahead.c: Likewise.
58622         * tests/test-freading.c: Likewise.
58623         * tests/test-freadptr.c: Likewise.
58624         * tests/test-freadptr2.c: Likewise.
58625         * tests/test-freadseek.c: Likewise.
58626         * tests/test-freopen.c: Likewise.
58627         * tests/test-frexp.c: Likewise.
58628         * tests/test-frexpl.c: Likewise.
58629         * tests/test-fseek.c: Likewise.
58630         * tests/test-fseeko.c: Likewise.
58631         * tests/test-fstatat.c: Likewise.
58632         * tests/test-fstrcmp.c: Likewise.
58633         * tests/test-fsync.c: Likewise.
58634         * tests/test-ftell.c: Likewise.
58635         * tests/test-ftello.c: Likewise.
58636         * tests/test-func.c: Likewise.
58637         * tests/test-futimens.c: Likewise.
58638         * tests/test-fwritable.c: Likewise.
58639         * tests/test-fwriting.c: Likewise.
58640         * tests/test-getcwd.c: Likewise.
58641         * tests/test-getdate.c: Likewise.
58642         * tests/test-getdelim.c: Likewise.
58643         * tests/test-getdtablesize.c: Likewise.
58644         * tests/test-getgroups.c: Likewise.
58645         * tests/test-getline.c: Likewise.
58646         * tests/test-getndelim2.c: Likewise.
58647         * tests/test-glob.c: Likewise.
58648         * tests/test-hash.c: Likewise.
58649         * tests/test-i-ring.c: Likewise.
58650         * tests/test-iconv-utf.c: Likewise.
58651         * tests/test-iconv.c: Likewise.
58652         * tests/test-idpriv-drop.c: Likewise.
58653         * tests/test-idpriv-droptemp.c: Likewise.
58654         * tests/test-inet_ntop.c: Likewise.
58655         * tests/test-inet_pton.c: Likewise.
58656         * tests/test-isblank.c: Likewise.
58657         * tests/test-isfinite.c: Likewise.
58658         * tests/test-isinf.c: Likewise.
58659         * tests/test-isnan.c: Likewise.
58660         * tests/test-isnand.h: Likewise.
58661         * tests/test-isnanf.h: Likewise.
58662         * tests/test-isnanl.h: Likewise.
58663         * tests/test-lchown.c: Likewise.
58664         * tests/test-ldexpl.c: Likewise.
58665         * tests/test-link.c: Likewise.
58666         * tests/test-linkat.c: Likewise.
58667         * tests/test-linked_list.c: Likewise.
58668         * tests/test-linkedhash_list.c: Likewise.
58669         * tests/test-localename.c: Likewise.
58670         * tests/test-lseek.c: Likewise.
58671         * tests/test-lstat.c: Likewise.
58672         * tests/test-mbmemcasecmp.c: Likewise.
58673         * tests/test-mbmemcasecoll.c: Likewise.
58674         * tests/test-mbrtowc.c: Likewise.
58675         * tests/test-mbscasecmp.c: Likewise.
58676         * tests/test-mbscasestr1.c: Likewise.
58677         * tests/test-mbscasestr2.c: Likewise.
58678         * tests/test-mbscasestr3.c: Likewise.
58679         * tests/test-mbscasestr4.c: Likewise.
58680         * tests/test-mbschr.c: Likewise.
58681         * tests/test-mbscspn.c: Likewise.
58682         * tests/test-mbsinit.c: Likewise.
58683         * tests/test-mbsncasecmp.c: Likewise.
58684         * tests/test-mbsnrtowcs.c: Likewise.
58685         * tests/test-mbspbrk.c: Likewise.
58686         * tests/test-mbspcasecmp.c: Likewise.
58687         * tests/test-mbsrchr.c: Likewise.
58688         * tests/test-mbsrtowcs.c: Likewise.
58689         * tests/test-mbsspn.c: Likewise.
58690         * tests/test-mbsstr1.c: Likewise.
58691         * tests/test-mbsstr2.c: Likewise.
58692         * tests/test-mbsstr3.c: Likewise.
58693         * tests/test-memchr.c: Likewise.
58694         * tests/test-memchr2.c: Likewise.
58695         * tests/test-memcmp.c: Likewise.
58696         * tests/test-memmem.c: Likewise.
58697         * tests/test-memrchr.c: Likewise.
58698         * tests/test-mkdir.c: Likewise.
58699         * tests/test-mkdirat.c: Likewise.
58700         * tests/test-mkfifo.c: Likewise.
58701         * tests/test-mkfifoat.c: Likewise.
58702         * tests/test-mknod.c: Likewise.
58703         * tests/test-nanosleep.c: Likewise.
58704         * tests/test-nl_langinfo.c: Likewise.
58705         * tests/test-obstack-printf.c: Likewise.
58706         * tests/test-open.c: Likewise.
58707         * tests/test-openat.c: Likewise.
58708         * tests/test-pipe-filter-gi1.c: Likewise.
58709         * tests/test-pipe-filter-gi2-main.c: Likewise.
58710         * tests/test-pipe-filter-ii1.c: Likewise.
58711         * tests/test-pipe-filter-ii2-main.c: Likewise.
58712         * tests/test-pipe2.c: Likewise.
58713         * tests/test-popen.h: Likewise.
58714         * tests/test-posixtm.c: Likewise.
58715         * tests/test-pread.c: Likewise.
58716         * tests/test-printf-frexp.c: Likewise.
58717         * tests/test-printf-frexpl.c: Likewise.
58718         * tests/test-printf-posix.c: Likewise.
58719         * tests/test-priv-set.c: Likewise.
58720         * tests/test-quotearg.c: Likewise.
58721         * tests/test-random_r.c: Likewise.
58722         * tests/test-rawmemchr.c: Likewise.
58723         * tests/test-rbtree_list.c: Likewise.
58724         * tests/test-rbtree_oset.c: Likewise.
58725         * tests/test-rbtreehash_list.c: Likewise.
58726         * tests/test-readlink.c: Likewise.
58727         * tests/test-remove.c: Likewise.
58728         * tests/test-rename.c: Likewise.
58729         * tests/test-renameat.c: Likewise.
58730         * tests/test-rmdir.c: Likewise.
58731         * tests/test-round1.c: Likewise.
58732         * tests/test-roundf1.c: Likewise.
58733         * tests/test-roundl.c: Likewise.
58734         * tests/test-safe-alloc.c: Likewise.
58735         * tests/test-sameacls.c: Likewise.
58736         * tests/test-set-mode-acl.c: Likewise.
58737         * tests/test-setenv.c: Likewise.
58738         * tests/test-sigaction.c: Likewise.
58739         * tests/test-signbit.c: Likewise.
58740         * tests/test-sleep.c: Likewise.
58741         * tests/test-snprintf-posix.c: Likewise.
58742         * tests/test-snprintf.c: Likewise.
58743         * tests/test-sprintf-posix.c: Likewise.
58744         * tests/test-stat-time.c: Likewise.
58745         * tests/test-stat.c: Likewise.
58746         * tests/test-strcasestr.c: Likewise.
58747         * tests/test-strchrnul.c: Likewise.
58748         * tests/test-strerror.c: Likewise.
58749         * tests/test-striconv.c: Likewise.
58750         * tests/test-striconveh.c: Likewise.
58751         * tests/test-striconveha.c: Likewise.
58752         * tests/test-strsignal.c: Likewise.
58753         * tests/test-strstr.c: Likewise.
58754         * tests/test-strtod.c: Likewise.
58755         * tests/test-strverscmp.c: Likewise.
58756         * tests/test-symlink.c: Likewise.
58757         * tests/test-symlinkat.c: Likewise.
58758         * tests/test-trunc1.c: Likewise.
58759         * tests/test-trunc2.c: Likewise.
58760         * tests/test-truncf1.c: Likewise.
58761         * tests/test-truncf2.c: Likewise.
58762         * tests/test-truncl.c: Likewise.
58763         * tests/test-uname.c: Likewise.
58764         * tests/test-unlink.c: Likewise.
58765         * tests/test-unlinkat.c: Likewise.
58766         * tests/test-unsetenv.c: Likewise.
58767         * tests/test-usleep.c: Likewise.
58768         * tests/test-utimens.c: Likewise.
58769         * tests/test-utimensat.c: Likewise.
58770         * tests/test-vasnprintf-posix.c: Likewise.
58771         * tests/test-vasnprintf-posix2.c: Likewise.
58772         * tests/test-vasnprintf.c: Likewise.
58773         * tests/test-vasprintf-posix.c: Likewise.
58774         * tests/test-vasprintf.c: Likewise.
58775         * tests/test-vdprintf-posix.c: Likewise.
58776         * tests/test-vfprintf-posix.c: Likewise.
58777         * tests/test-vprintf-posix.c: Likewise.
58778         * tests/test-vsnprintf-posix.c: Likewise.
58779         * tests/test-vsnprintf.c: Likewise.
58780         * tests/test-vsprintf-posix.c: Likewise.
58781         * tests/test-wcrtomb.c: Likewise.
58782         * tests/test-wcsnrtombs.c: Likewise.
58783         * tests/test-wcsrtombs.c: Likewise.
58784         * tests/test-wctype.c: Likewise.
58785         * tests/test-wcwidth.c: Likewise.
58786         * tests/test-xfprintf-posix.c: Likewise.
58787         * tests/test-xmemdup0.c: Likewise.
58788         * tests/test-xprintf-posix.c: Likewise.
58789         * tests/test-xvasprintf.c: Likewise.
58790         * tests/unicase/test-locale-language.c: Likewise.
58791         * tests/unicase/test-mapping-part1.h: Likewise.
58792         * tests/unicase/test-predicate-part1.h: Likewise.
58793         * tests/unicase/test-u8-casecmp.c: Likewise.
58794         * tests/unicase/test-u8-casecoll.c: Likewise.
58795         * tests/unicase/test-u8-casefold.c: Likewise.
58796         * tests/unicase/test-u8-is-cased.c: Likewise.
58797         * tests/unicase/test-u8-is-casefolded.c: Likewise.
58798         * tests/unicase/test-u8-is-lowercase.c: Likewise.
58799         * tests/unicase/test-u8-is-titlecase.c: Likewise.
58800         * tests/unicase/test-u8-is-uppercase.c: Likewise.
58801         * tests/unicase/test-u8-tolower.c: Likewise.
58802         * tests/unicase/test-u8-totitle.c: Likewise.
58803         * tests/unicase/test-u8-toupper.c: Likewise.
58804         * tests/unicase/test-u16-casecmp.c: Likewise.
58805         * tests/unicase/test-u16-casecoll.c: Likewise.
58806         * tests/unicase/test-u16-casefold.c: Likewise.
58807         * tests/unicase/test-u16-is-cased.c: Likewise.
58808         * tests/unicase/test-u16-is-casefolded.c: Likewise.
58809         * tests/unicase/test-u16-is-lowercase.c: Likewise.
58810         * tests/unicase/test-u16-is-titlecase.c: Likewise.
58811         * tests/unicase/test-u16-is-uppercase.c: Likewise.
58812         * tests/unicase/test-u16-tolower.c: Likewise.
58813         * tests/unicase/test-u16-totitle.c: Likewise.
58814         * tests/unicase/test-u16-toupper.c: Likewise.
58815         * tests/unicase/test-u32-casecmp.c: Likewise.
58816         * tests/unicase/test-u32-casecoll.c: Likewise.
58817         * tests/unicase/test-u32-casefold.c: Likewise.
58818         * tests/unicase/test-u32-is-cased.c: Likewise.
58819         * tests/unicase/test-u32-is-casefolded.c: Likewise.
58820         * tests/unicase/test-u32-is-lowercase.c: Likewise.
58821         * tests/unicase/test-u32-is-titlecase.c: Likewise.
58822         * tests/unicase/test-u32-is-uppercase.c: Likewise.
58823         * tests/unicase/test-u32-tolower.c: Likewise.
58824         * tests/unicase/test-u32-totitle.c: Likewise.
58825         * tests/unicase/test-u32-toupper.c: Likewise.
58826         * tests/unicase/test-ulc-casecmp.c: Likewise.
58827         * tests/unicase/test-ulc-casecoll.c: Likewise.
58828         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
58829         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
58830         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
58831         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
58832         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
58833         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
58834         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
58835         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
58836         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
58837         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
58838         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
58839         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
58840         * tests/unictype/test-bidi_byname.c: Likewise.
58841         * tests/unictype/test-bidi_name.c: Likewise.
58842         * tests/unictype/test-bidi_of.c: Likewise.
58843         * tests/unictype/test-bidi_test.c: Likewise.
58844         * tests/unictype/test-block_list.c: Likewise.
58845         * tests/unictype/test-block_of.c: Likewise.
58846         * tests/unictype/test-block_test.c: Likewise.
58847         * tests/unictype/test-categ_and.c: Likewise.
58848         * tests/unictype/test-categ_and_not.c: Likewise.
58849         * tests/unictype/test-categ_byname.c: Likewise.
58850         * tests/unictype/test-categ_name.c: Likewise.
58851         * tests/unictype/test-categ_none.c: Likewise.
58852         * tests/unictype/test-categ_of.c: Likewise.
58853         * tests/unictype/test-categ_or.c: Likewise.
58854         * tests/unictype/test-categ_test_withtable.c: Likewise.
58855         * tests/unictype/test-combining.c: Likewise.
58856         * tests/unictype/test-decdigit.c: Likewise.
58857         * tests/unictype/test-digit.c: Likewise.
58858         * tests/unictype/test-mirror.c: Likewise.
58859         * tests/unictype/test-numeric.c: Likewise.
58860         * tests/unictype/test-pr_byname.c: Likewise.
58861         * tests/unictype/test-pr_test.c: Likewise.
58862         * tests/unictype/test-predicate-part1.h: Likewise.
58863         * tests/unictype/test-scripts.c: Likewise.
58864         * tests/unictype/test-sy_c_ident.c: Likewise.
58865         * tests/unictype/test-sy_java_ident.c: Likewise.
58866         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
58867         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
58868         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
58869         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
58870         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
58871         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
58872         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
58873         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
58874         * tests/uninorm/test-canonical-decomposition.c: Likewise.
58875         * tests/uninorm/test-compat-decomposition.c: Likewise.
58876         * tests/uninorm/test-composition.c: Likewise.
58877         * tests/uninorm/test-decomposing-form.c: Likewise.
58878         * tests/uninorm/test-decomposition.c: Likewise.
58879         * tests/uninorm/test-u8-nfc.c: Likewise.
58880         * tests/uninorm/test-u8-nfd.c: Likewise.
58881         * tests/uninorm/test-u8-nfkc.c: Likewise.
58882         * tests/uninorm/test-u8-nfkd.c: Likewise.
58883         * tests/uninorm/test-u8-normcmp.c: Likewise.
58884         * tests/uninorm/test-u8-normcoll.c: Likewise.
58885         * tests/uninorm/test-u16-nfc.c: Likewise.
58886         * tests/uninorm/test-u16-nfd.c: Likewise.
58887         * tests/uninorm/test-u16-nfkc.c: Likewise.
58888         * tests/uninorm/test-u16-nfkd.c: Likewise.
58889         * tests/uninorm/test-u16-normcmp.c: Likewise.
58890         * tests/uninorm/test-u16-normcoll.c: Likewise.
58891         * tests/uninorm/test-u32-nfc.c: Likewise.
58892         * tests/uninorm/test-u32-nfd.c: Likewise.
58893         * tests/uninorm/test-u32-nfkc.c: Likewise.
58894         * tests/uninorm/test-u32-nfkd.c: Likewise.
58895         * tests/uninorm/test-u32-normalize-big.c: Likewise.
58896         * tests/uninorm/test-u32-normcmp.c: Likewise.
58897         * tests/uninorm/test-u32-normcoll.c: Likewise.
58898         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
58899         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
58900         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
58901         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
58902         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
58903         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
58904         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
58905         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
58906         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
58907         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
58908         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
58909         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
58910         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
58911         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
58912         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
58913         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
58914         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
58915         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
58916         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
58917         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
58918         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
58919         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
58920         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
58921         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
58922         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
58923         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
58924         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
58925         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
58926         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
58927         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
58928         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
58929         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
58930         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
58931         * tests/uniwidth/test-u8-strwidth.c: Likewise.
58932         * tests/uniwidth/test-u8-width.c: Likewise.
58933         * tests/uniwidth/test-u16-strwidth.c: Likewise.
58934         * tests/uniwidth/test-u16-width.c: Likewise.
58935         * tests/uniwidth/test-u32-strwidth.c: Likewise.
58936         * tests/uniwidth/test-u32-width.c: Likewise.
58937         * tests/uniwidth/test-uc_width.c: Likewise.
58938         * tests/uniwidth/test-uc_width2.c: Likewise.
58939         * modules/acl-tests (Files): Add tests/macros.h.
58940         * modules/areadlink-tests (Files): Likewise.
58941         * modules/areadlink-with-size-tests (Files): Likewise.
58942         * modules/areadlinkat-tests (Files): Likewise.
58943         * modules/areadlinkat-with-size-tests (Files): Likewise.
58944         * modules/argmatch-tests (Files): Likewise.
58945         * modules/argv-iter-tests (Files): Likewise.
58946         * modules/array-list-tests (Files): Likewise.
58947         * modules/array-mergesort-tests (Files): Likewise.
58948         * modules/array-oset-tests (Files): Likewise.
58949         * modules/avltree-list-tests (Files): Likewise.
58950         * modules/avltree-oset-tests (Files): Likewise.
58951         * modules/avltreehash-list-tests (Files): Likewise.
58952         * modules/base64-tests (Files): Likewise.
58953         * modules/binary-io-tests (Files): Likewise.
58954         * modules/bitrotate-tests (Files): Likewise.
58955         * modules/btowc-tests (Files): Likewise.
58956         * modules/byteswap-tests (Files): Likewise.
58957         * modules/c-ctype-tests (Files): Likewise.
58958         * modules/c-stack-tests (Files): Likewise.
58959         * modules/c-strcase-tests (Files): Likewise.
58960         * modules/c-strcasestr-tests (Files): Likewise.
58961         * modules/c-strstr-tests (Files): Likewise.
58962         * modules/canonicalize-lgpl-tests (Files): Likewise.
58963         * modules/canonicalize-tests (Files): Likewise.
58964         * modules/carray-list-tests (Files): Likewise.
58965         * modules/ceilf-tests (Files): Likewise.
58966         * modules/ceill-tests (Files): Likewise.
58967         * modules/chown-tests (Files): Likewise.
58968         * modules/cloexec-tests (Files): Likewise.
58969         * modules/copy-file-tests (Files): Likewise.
58970         * modules/count-one-bits-tests (Files): Likewise.
58971         * modules/dprintf-posix-tests (Files): Likewise.
58972         * modules/dup2-tests (Files): Likewise.
58973         * modules/dup3-tests (Files): Likewise.
58974         * modules/duplocale-tests (Files): Likewise.
58975         * modules/fbufmode-tests (Files): Likewise.
58976         * modules/fchdir-tests (Files): Likewise.
58977         * modules/fcntl-safer-tests (Files): Likewise.
58978         * modules/fcntl-tests (Files): Likewise.
58979         * modules/fdopendir-tests (Files): Likewise.
58980         * modules/fdutimensat-tests (Files): Likewise.
58981         * modules/fflush-tests (Files): Likewise.
58982         * modules/filevercmp-tests (Files): Likewise.
58983         * modules/flock-tests (Files): Likewise.
58984         * modules/floorf-tests (Files): Likewise.
58985         * modules/floorl-tests (Files): Likewise.
58986         * modules/fnmatch-tests (Files): Likewise.
58987         * modules/fopen-safer-tests (Files): Likewise.
58988         * modules/fopen-tests (Files): Likewise.
58989         * modules/fpending-tests (Files): Likewise.
58990         * modules/fprintf-posix-tests (Files): Likewise.
58991         * modules/fpurge-tests (Files): Likewise.
58992         * modules/freadable-tests (Files): Likewise.
58993         * modules/freadahead-tests (Files): Likewise.
58994         * modules/freading-tests (Files): Likewise.
58995         * modules/freadptr-tests (Files): Likewise.
58996         * modules/freadseek-tests (Files): Likewise.
58997         * modules/freopen-tests (Files): Likewise.
58998         * modules/frexp-nolibm-tests (Files): Likewise.
58999         * modules/frexp-tests (Files): Likewise.
59000         * modules/frexpl-nolibm-tests (Files): Likewise.
59001         * modules/frexpl-tests (Files): Likewise.
59002         * modules/fseek-tests (Files): Likewise.
59003         * modules/fseeko-tests (Files): Likewise.
59004         * modules/fstrcmp-tests (Files): Likewise.
59005         * modules/fsync-tests (Files): Likewise.
59006         * modules/ftell-tests (Files): Likewise.
59007         * modules/ftello-tests (Files): Likewise.
59008         * modules/func-tests (Files): Likewise.
59009         * modules/futimens-tests (Files): Likewise.
59010         * modules/fwritable-tests (Files): Likewise.
59011         * modules/fwriting-tests (Files): Likewise.
59012         * modules/getcwd-tests (Files): Likewise.
59013         * modules/getdate-tests (Files): Likewise.
59014         * modules/getdelim-tests (Files): Likewise.
59015         * modules/getdtablesize-tests (Files): Likewise.
59016         * modules/getgroups-tests (Files): Likewise.
59017         * modules/getline-tests (Files): Likewise.
59018         * modules/getndelim2-tests (Files): Likewise.
59019         * modules/glob-tests (Files): Likewise.
59020         * modules/hash-tests (Files): Likewise.
59021         * modules/i-ring-tests (Files): Likewise.
59022         * modules/iconv-tests (Files): Likewise.
59023         * modules/iconv_open-utf-tests (Files): Likewise.
59024         * modules/idpriv-drop-tests (Files): Likewise.
59025         * modules/idpriv-droptemp-tests (Files): Likewise.
59026         * modules/inet_ntop-tests (Files): Likewise.
59027         * modules/inet_pton-tests (Files): Likewise.
59028         * modules/isblank-tests (Files): Likewise.
59029         * modules/isfinite-tests (Files): Likewise.
59030         * modules/isinf-tests (Files): Likewise.
59031         * modules/isnan-tests (Files): Likewise.
59032         * modules/isnand-nolibm-tests (Files): Likewise.
59033         * modules/isnand-tests (Files): Likewise.
59034         * modules/isnanf-nolibm-tests (Files): Likewise.
59035         * modules/isnanf-tests (Files): Likewise.
59036         * modules/isnanl-nolibm-tests (Files): Likewise.
59037         * modules/isnanl-tests (Files): Likewise.
59038         * modules/lchown-tests (Files): Likewise.
59039         * modules/ldexpl-tests (Files): Likewise.
59040         * modules/link-tests (Files): Likewise.
59041         * modules/linkat-tests (Files): Likewise.
59042         * modules/linked-list-tests (Files): Likewise.
59043         * modules/linkedhash-list-tests (Files): Likewise.
59044         * modules/localename-tests (Files): Likewise.
59045         * modules/lseek-tests (Files): Likewise.
59046         * modules/lstat-tests (Files): Likewise.
59047         * modules/mbmemcasecmp-tests (Files): Likewise.
59048         * modules/mbmemcasecoll-tests (Files): Likewise.
59049         * modules/mbrtowc-tests (Files): Likewise.
59050         * modules/mbscasecmp-tests (Files): Likewise.
59051         * modules/mbscasestr-tests (Files): Likewise.
59052         * modules/mbschr-tests (Files): Likewise.
59053         * modules/mbscspn-tests (Files): Likewise.
59054         * modules/mbsinit-tests (Files): Likewise.
59055         * modules/mbsncasecmp-tests (Files): Likewise.
59056         * modules/mbsnrtowcs-tests (Files): Likewise.
59057         * modules/mbspbrk-tests (Files): Likewise.
59058         * modules/mbspcasecmp-tests (Files): Likewise.
59059         * modules/mbsrchr-tests (Files): Likewise.
59060         * modules/mbsrtowcs-tests (Files): Likewise.
59061         * modules/mbsspn-tests (Files): Likewise.
59062         * modules/mbsstr-tests (Files): Likewise.
59063         * modules/memchr-tests (Files): Likewise.
59064         * modules/memchr2-tests (Files): Likewise.
59065         * modules/memcmp-tests (Files): Likewise.
59066         * modules/memmem-tests (Files): Likewise.
59067         * modules/memrchr-tests (Files): Likewise.
59068         * modules/mkdir-tests (Files): Likewise.
59069         * modules/mkfifo-tests (Files): Likewise.
59070         * modules/mkfifoat-tests (Files): Likewise.
59071         * modules/mknod-tests (Files): Likewise.
59072         * modules/nanosleep-tests (Files): Likewise.
59073         * modules/nl_langinfo-tests (Files): Likewise.
59074         * modules/obstack-printf-tests (Files): Likewise.
59075         * modules/open-tests (Files): Likewise.
59076         * modules/openat-tests (Files): Likewise.
59077         * modules/pipe-filter-gi-tests (Files): Likewise.
59078         * modules/pipe-filter-ii-tests (Files): Likewise.
59079         * modules/pipe2-tests (Files): Likewise.
59080         * modules/popen-safer-tests (Files): Likewise.
59081         * modules/popen-tests (Files): Likewise.
59082         * modules/posixtm-tests (Files): Likewise.
59083         * modules/pread-tests (Files): Likewise.
59084         * modules/printf-frexp-tests (Files): Likewise.
59085         * modules/printf-frexpl-tests (Files): Likewise.
59086         * modules/printf-posix-tests (Files): Likewise.
59087         * modules/priv-set-tests (Files): Likewise.
59088         * modules/quotearg-tests (Files): Likewise.
59089         * modules/random_r-tests (Files): Likewise.
59090         * modules/rawmemchr-tests (Files): Likewise.
59091         * modules/rbtree-list-tests (Files): Likewise.
59092         * modules/rbtree-oset-tests (Files): Likewise.
59093         * modules/rbtreehash-list-tests (Files): Likewise.
59094         * modules/readlink-tests (Files): Likewise.
59095         * modules/remove-tests (Files): Likewise.
59096         * modules/rename-tests (Files): Likewise.
59097         * modules/renameat-tests (Files): Likewise.
59098         * modules/rmdir-tests (Files): Likewise.
59099         * modules/round-tests (Files): Likewise.
59100         * modules/roundf-tests (Files): Likewise.
59101         * modules/roundl-tests (Files): Likewise.
59102         * modules/safe-alloc-tests (Files): Likewise.
59103         * modules/setenv-tests (Files): Likewise.
59104         * modules/sigaction-tests (Files): Likewise.
59105         * modules/signbit-tests (Files): Likewise.
59106         * modules/sleep-tests (Files): Likewise.
59107         * modules/snprintf-posix-tests (Files): Likewise.
59108         * modules/snprintf-tests (Files): Likewise.
59109         * modules/sprintf-posix-tests (Files): Likewise.
59110         * modules/stat-tests (Files): Likewise.
59111         * modules/stat-time-tests (Files): Likewise.
59112         * modules/strcasestr-tests (Files): Likewise.
59113         * modules/strchrnul-tests (Files): Likewise.
59114         * modules/strerror-tests (Files): Likewise.
59115         * modules/striconv-tests (Files): Likewise.
59116         * modules/striconveh-tests (Files): Likewise.
59117         * modules/striconveha-tests (Files): Likewise.
59118         * modules/strsignal-tests (Files): Likewise.
59119         * modules/strstr-tests (Files): Likewise.
59120         * modules/strtod-tests (Files): Likewise.
59121         * modules/strverscmp-tests (Files): Likewise.
59122         * modules/symlink-tests (Files): Likewise.
59123         * modules/symlinkat-tests (Files): Likewise.
59124         * modules/trunc-tests (Files): Likewise.
59125         * modules/truncf-tests (Files): Likewise.
59126         * modules/truncl-tests (Files): Likewise.
59127         * modules/uname-tests (Files): Likewise.
59128         * modules/unicase/cased-tests (Files): Likewise.
59129         * modules/unicase/ignorable-tests (Files): Likewise.
59130         * modules/unicase/locale-language-tests (Files): Likewise.
59131         * modules/unicase/tolower-tests (Files): Likewise.
59132         * modules/unicase/totitle-tests (Files): Likewise.
59133         * modules/unicase/toupper-tests (Files): Likewise.
59134         * modules/unicase/u8-casecmp-tests (Files): Likewise.
59135         * modules/unicase/u8-casecoll-tests (Files): Likewise.
59136         * modules/unicase/u8-casefold-tests (Files): Likewise.
59137         * modules/unicase/u8-is-cased-tests (Files): Likewise.
59138         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
59139         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
59140         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
59141         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
59142         * modules/unicase/u8-tolower-tests (Files): Likewise.
59143         * modules/unicase/u8-totitle-tests (Files): Likewise.
59144         * modules/unicase/u8-toupper-tests (Files): Likewise.
59145         * modules/unicase/u16-casecmp-tests (Files): Likewise.
59146         * modules/unicase/u16-casecoll-tests (Files): Likewise.
59147         * modules/unicase/u16-casefold-tests (Files): Likewise.
59148         * modules/unicase/u16-is-cased-tests (Files): Likewise.
59149         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
59150         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
59151         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
59152         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
59153         * modules/unicase/u16-tolower-tests (Files): Likewise.
59154         * modules/unicase/u16-totitle-tests (Files): Likewise.
59155         * modules/unicase/u16-toupper-tests (Files): Likewise.
59156         * modules/unicase/u32-casecmp-tests (Files): Likewise.
59157         * modules/unicase/u32-casecoll-tests (Files): Likewise.
59158         * modules/unicase/u32-casefold-tests (Files): Likewise.
59159         * modules/unicase/u32-is-cased-tests (Files): Likewise.
59160         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
59161         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
59162         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
59163         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
59164         * modules/unicase/u32-tolower-tests (Files): Likewise.
59165         * modules/unicase/u32-totitle-tests (Files): Likewise.
59166         * modules/unicase/u32-toupper-tests (Files): Likewise.
59167         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
59168         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
59169         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
59170         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
59171         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
59172         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
59173         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
59174         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
59175         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
59176         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
59177         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
59178         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
59179         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
59180         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
59181         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
59182         * modules/unictype/bidicategory-name-tests (Files): Likewise.
59183         * modules/unictype/bidicategory-of-tests (Files): Likewise.
59184         * modules/unictype/bidicategory-test-tests (Files): Likewise.
59185         * modules/unictype/block-list-tests (Files): Likewise.
59186         * modules/unictype/block-of-tests (Files): Likewise.
59187         * modules/unictype/block-test-tests (Files): Likewise.
59188         * modules/unictype/category-C-tests (Files): Likewise.
59189         * modules/unictype/category-Cc-tests (Files): Likewise.
59190         * modules/unictype/category-Cf-tests (Files): Likewise.
59191         * modules/unictype/category-Cn-tests (Files): Likewise.
59192         * modules/unictype/category-Co-tests (Files): Likewise.
59193         * modules/unictype/category-Cs-tests (Files): Likewise.
59194         * modules/unictype/category-L-tests (Files): Likewise.
59195         * modules/unictype/category-Ll-tests (Files): Likewise.
59196         * modules/unictype/category-Lm-tests (Files): Likewise.
59197         * modules/unictype/category-Lo-tests (Files): Likewise.
59198         * modules/unictype/category-Lt-tests (Files): Likewise.
59199         * modules/unictype/category-Lu-tests (Files): Likewise.
59200         * modules/unictype/category-M-tests (Files): Likewise.
59201         * modules/unictype/category-Mc-tests (Files): Likewise.
59202         * modules/unictype/category-Me-tests (Files): Likewise.
59203         * modules/unictype/category-Mn-tests (Files): Likewise.
59204         * modules/unictype/category-N-tests (Files): Likewise.
59205         * modules/unictype/category-Nd-tests (Files): Likewise.
59206         * modules/unictype/category-Nl-tests (Files): Likewise.
59207         * modules/unictype/category-No-tests (Files): Likewise.
59208         * modules/unictype/category-P-tests (Files): Likewise.
59209         * modules/unictype/category-Pc-tests (Files): Likewise.
59210         * modules/unictype/category-Pd-tests (Files): Likewise.
59211         * modules/unictype/category-Pe-tests (Files): Likewise.
59212         * modules/unictype/category-Pf-tests (Files): Likewise.
59213         * modules/unictype/category-Pi-tests (Files): Likewise.
59214         * modules/unictype/category-Po-tests (Files): Likewise.
59215         * modules/unictype/category-Ps-tests (Files): Likewise.
59216         * modules/unictype/category-S-tests (Files): Likewise.
59217         * modules/unictype/category-Sc-tests (Files): Likewise.
59218         * modules/unictype/category-Sk-tests (Files): Likewise.
59219         * modules/unictype/category-Sm-tests (Files): Likewise.
59220         * modules/unictype/category-So-tests (Files): Likewise.
59221         * modules/unictype/category-Z-tests (Files): Likewise.
59222         * modules/unictype/category-Zl-tests (Files): Likewise.
59223         * modules/unictype/category-Zp-tests (Files): Likewise.
59224         * modules/unictype/category-Zs-tests (Files): Likewise.
59225         * modules/unictype/category-and-not-tests (Files): Likewise.
59226         * modules/unictype/category-and-tests (Files): Likewise.
59227         * modules/unictype/category-byname-tests (Files): Likewise.
59228         * modules/unictype/category-name-tests (Files): Likewise.
59229         * modules/unictype/category-none-tests (Files): Likewise.
59230         * modules/unictype/category-of-tests (Files): Likewise.
59231         * modules/unictype/category-or-tests (Files): Likewise.
59232         * modules/unictype/category-test-withtable-tests (Files): Likewise.
59233         * modules/unictype/combining-class-tests (Files): Likewise.
59234         * modules/unictype/ctype-alnum-tests (Files): Likewise.
59235         * modules/unictype/ctype-alpha-tests (Files): Likewise.
59236         * modules/unictype/ctype-blank-tests (Files): Likewise.
59237         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
59238         * modules/unictype/ctype-digit-tests (Files): Likewise.
59239         * modules/unictype/ctype-graph-tests (Files): Likewise.
59240         * modules/unictype/ctype-lower-tests (Files): Likewise.
59241         * modules/unictype/ctype-print-tests (Files): Likewise.
59242         * modules/unictype/ctype-punct-tests (Files): Likewise.
59243         * modules/unictype/ctype-space-tests (Files): Likewise.
59244         * modules/unictype/ctype-upper-tests (Files): Likewise.
59245         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
59246         * modules/unictype/decimal-digit-tests (Files): Likewise.
59247         * modules/unictype/digit-tests (Files): Likewise.
59248         * modules/unictype/mirror-tests (Files): Likewise.
59249         * modules/unictype/numeric-tests (Files): Likewise.
59250         * modules/unictype/property-alphabetic-tests (Files): Likewise.
59251         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
59252         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
59253         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
59254         Likewise.
59255         * modules/unictype/property-bidi-block-separator-tests (Files):
59256         Likewise.
59257         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
59258         Likewise.
59259         * modules/unictype/property-bidi-common-separator-tests (Files):
59260         Likewise.
59261         * modules/unictype/property-bidi-control-tests (Files): Likewise.
59262         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
59263         Likewise.
59264         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
59265         Likewise.
59266         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
59267         Likewise.
59268         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
59269         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
59270         Likewise.
59271         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
59272         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
59273         Likewise.
59274         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
59275         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
59276         * modules/unictype/property-bidi-segment-separator-tests (Files):
59277         Likewise.
59278         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
59279         * modules/unictype/property-byname-tests (Files): Likewise.
59280         * modules/unictype/property-combining-tests (Files): Likewise.
59281         * modules/unictype/property-composite-tests (Files): Likewise.
59282         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
59283         * modules/unictype/property-dash-tests (Files): Likewise.
59284         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
59285         * modules/unictype/property-default-ignorable-code-point-tests (Files):
59286         Likewise.
59287         * modules/unictype/property-deprecated-tests (Files): Likewise.
59288         * modules/unictype/property-diacritic-tests (Files): Likewise.
59289         * modules/unictype/property-extender-tests (Files): Likewise.
59290         * modules/unictype/property-format-control-tests (Files): Likewise.
59291         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
59292         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
59293         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
59294         * modules/unictype/property-hex-digit-tests (Files): Likewise.
59295         * modules/unictype/property-hyphen-tests (Files): Likewise.
59296         * modules/unictype/property-id-continue-tests (Files): Likewise.
59297         * modules/unictype/property-id-start-tests (Files): Likewise.
59298         * modules/unictype/property-ideographic-tests (Files): Likewise.
59299         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
59300         * modules/unictype/property-ids-trinary-operator-tests (Files):
59301         Likewise.
59302         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
59303         * modules/unictype/property-iso-control-tests (Files): Likewise.
59304         * modules/unictype/property-join-control-tests (Files): Likewise.
59305         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
59306         * modules/unictype/property-line-separator-tests (Files): Likewise.
59307         * modules/unictype/property-logical-order-exception-tests (Files):
59308         Likewise.
59309         * modules/unictype/property-lowercase-tests (Files): Likewise.
59310         * modules/unictype/property-math-tests (Files): Likewise.
59311         * modules/unictype/property-non-break-tests (Files): Likewise.
59312         * modules/unictype/property-not-a-character-tests (Files): Likewise.
59313         * modules/unictype/property-numeric-tests (Files): Likewise.
59314         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
59315         * modules/unictype/property-other-default-ignorable-code-point-tests
59316         (Files): Likewise.
59317         * modules/unictype/property-other-grapheme-extend-tests (Files):
59318         Likewise.
59319         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
59320         * modules/unictype/property-other-id-start-tests (Files): Likewise.
59321         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
59322         * modules/unictype/property-other-math-tests (Files): Likewise.
59323         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
59324         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
59325         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
59326         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
59327         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
59328         * modules/unictype/property-private-use-tests (Files): Likewise.
59329         * modules/unictype/property-punctuation-tests (Files): Likewise.
59330         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
59331         * modules/unictype/property-radical-tests (Files): Likewise.
59332         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
59333         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
59334         * modules/unictype/property-space-tests (Files): Likewise.
59335         * modules/unictype/property-terminal-punctuation-tests (Files):
59336         Likewise.
59337         * modules/unictype/property-test-tests (Files): Likewise.
59338         * modules/unictype/property-titlecase-tests (Files): Likewise.
59339         * modules/unictype/property-unassigned-code-value-tests (Files):
59340         Likewise.
59341         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
59342         * modules/unictype/property-uppercase-tests (Files): Likewise.
59343         * modules/unictype/property-variation-selector-tests (Files): Likewise.
59344         * modules/unictype/property-white-space-tests (Files): Likewise.
59345         * modules/unictype/property-xid-continue-tests (Files): Likewise.
59346         * modules/unictype/property-xid-start-tests (Files): Likewise.
59347         * modules/unictype/property-zero-width-tests (Files): Likewise.
59348         * modules/unictype/scripts-tests (Files): Likewise.
59349         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
59350         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
59351         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
59352         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
59353         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
59354         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
59355         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
59356         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
59357         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
59358         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
59359         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
59360         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
59361         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
59362         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
59363         * modules/uninorm/composition-tests (Files): Likewise.
59364         * modules/uninorm/decomposing-form-tests (Files): Likewise.
59365         * modules/uninorm/decomposition-tests (Files): Likewise.
59366         * modules/uninorm/filter-tests (Files): Likewise.
59367         * modules/uninorm/nfc-tests (Files): Likewise.
59368         * modules/uninorm/nfd-tests (Files): Likewise.
59369         * modules/uninorm/nfkc-tests (Files): Likewise.
59370         * modules/uninorm/nfkd-tests (Files): Likewise.
59371         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
59372         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
59373         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
59374         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
59375         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
59376         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
59377         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
59378         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
59379         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
59380         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
59381         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
59382         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
59383         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
59384         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
59385         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
59386         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
59387         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
59388         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
59389         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
59390         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
59391         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
59392         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
59393         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
59394         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
59395         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
59396         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
59397         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
59398         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
59399         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
59400         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
59401         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
59402         * modules/uniwidth/u8-width-tests (Files): Likewise.
59403         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
59404         * modules/uniwidth/u16-width-tests (Files): Likewise.
59405         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
59406         * modules/uniwidth/u32-width-tests (Files): Likewise.
59407         * modules/uniwidth/width-tests (Files): Likewise.
59408         * modules/unlink-tests (Files): Likewise.
59409         * modules/unsetenv-tests (Files): Likewise.
59410         * modules/usleep-tests (Files): Likewise.
59411         * modules/utimens-tests (Files): Likewise.
59412         * modules/utimensat-tests (Files): Likewise.
59413         * modules/vasnprintf-posix-tests (Files): Likewise.
59414         * modules/vasnprintf-tests (Files): Likewise.
59415         * modules/vasprintf-posix-tests (Files): Likewise.
59416         * modules/vasprintf-tests (Files): Likewise.
59417         * modules/vdprintf-posix-tests (Files): Likewise.
59418         * modules/vfprintf-posix-tests (Files): Likewise.
59419         * modules/vprintf-posix-tests (Files): Likewise.
59420         * modules/vsnprintf-posix-tests (Files): Likewise.
59421         * modules/vsnprintf-tests (Files): Likewise.
59422         * modules/vsprintf-posix-tests (Files): Likewise.
59423         * modules/wcrtomb-tests (Files): Likewise.
59424         * modules/wcsnrtombs-tests (Files): Likewise.
59425         * modules/wcsrtombs-tests (Files): Likewise.
59426         * modules/wctype-tests (Files): Likewise.
59427         * modules/wcwidth-tests (Files): Likewise.
59428         * modules/xmemdup0-tests (Files): Likewise.
59429         * modules/xprintf-posix-tests (Files): Likewise.
59430         * modules/xvasprintf-tests (Files): Likewise.
59432 2009-12-24  Eric Blake  <ebb9@byu.net>
59434         test-nanosleep: fix typo
59435         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
59436         patch.
59437         Reported by Bruno Haible.
59439 2009-12-24  Bruno Haible  <bruno@clisp.org>
59441         Reduce namespace pollution on glibc systems.
59442         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
59443         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
59444         systems.
59445         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
59446         <getopt.h> on glibc systems.
59447         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
59448         systems.
59449         * lib/fcntl.c: Include <unistd.h> here instead.
59451 2009-12-24  Bruno Haible  <bruno@clisp.org>
59453         * lib/stdlib.in.h (includes): Fix typo in today's commit.
59455 2009-12-24  Eric Blake  <ebb9@byu.net>
59457         tests: add signature checks
59458         * tests/signature.h (SIGNATURE_CHECK): New file.
59459         * modules/atexit-tests (Files): Use it.
59460         * modules/btowc-tests (Files): Likewise.
59461         * modules/canonicalize-lgpl-tests (Files): Likewise.
59462         * modules/ceilf-tests (Files): Likewise.
59463         * modules/ceill-tests (Files): Likewise.
59464         * modules/chown-tests (Files): Likewise.
59465         * modules/dprintf-posix-tests (Files): Likewise.
59466         * modules/dup2-tests (Files): Likewise.
59467         * modules/dup3-tests (Files): Likewise.
59468         * modules/duplocale-tests (Files): Likewise.
59469         * modules/fchdir-tests (Files): Likewise.
59470         * modules/fcntl-tests (Files): Likewise.
59471         * modules/fdopendir-tests (Files): Likewise.
59472         * modules/fflush-tests (Files): Likewise.
59473         * modules/flock-tests (Files): Likewise.
59474         * modules/floorf-tests (Files): Likewise.
59475         * modules/floorl-tests (Files): Likewise.
59476         * modules/fnmatch-tests (Files): Likewise.
59477         * modules/fopen-tests (Files): Likewise.
59478         * modules/fprintf-posix-tests (Files): Likewise.
59479         * modules/freopen-tests (Files): Likewise.
59480         * modules/frexp-nolibm-tests (Files): Likewise.
59481         * modules/frexp-tests (Files): Likewise.
59482         * modules/frexpl-nolibm-tests (Files): Likewise.
59483         * modules/frexpl-tests (Files): Likewise.
59484         * modules/fseek-tests (Files): Likewise.
59485         * modules/fseeko-tests (Files): Likewise.
59486         * modules/fsync-tests (Files): Likewise.
59487         * modules/ftell-tests (Files): Likewise.
59488         * modules/ftello-tests (Files): Likewise.
59489         * modules/futimens-tests (Files): Likewise.
59490         * modules/getaddrinfo-tests (Files): Likewise.
59491         * modules/getcwd-tests (Files): Likewise.
59492         * modules/getdelim-tests (Files): Likewise.
59493         * modules/getdtablesize-tests (Files): Likewise.
59494         * modules/getgroups-tests (Files): Likewise.
59495         * modules/gethostname-tests (Files): Likewise.
59496         * modules/getline-tests (Files): Likewise.
59497         * modules/getopt-posix-tests (Files): Likewise.
59498         * modules/gettimeofday-tests (Files): Likewise.
59499         * modules/glob-tests (Files): Likewise.
59500         * modules/iconv-tests (Files): Likewise.
59501         * modules/inet_ntop-tests (Files): Likewise.
59502         * modules/inet_pton-tests (Files): Likewise.
59503         * modules/isblank-tests (Files): Likewise.
59504         * modules/lchown-tests (Files): Likewise.
59505         * modules/ldexpl-tests (Files): Likewise.
59506         * modules/link-tests (Files): Likewise.
59507         * modules/linkat-tests (Files): Likewise.
59508         * modules/lseek-tests (Files): Likewise.
59509         * modules/lstat-tests (Files): Likewise.
59510         * modules/mbrtowc-tests (Files): Likewise.
59511         * modules/mbsinit-tests (Files): Likewise.
59512         * modules/mbsnrtowcs-tests (Files): Likewise.
59513         * modules/mbsrtowcs-tests (Files): Likewise.
59514         * modules/memchr-tests (Files): Likewise.
59515         * modules/memcmp-tests (Files): Likewise.
59516         * modules/memmem-tests (Files): Likewise.
59517         * modules/memrchr-tests (Files): Likewise.
59518         * modules/mkdir-tests (Files): Likewise.
59519         * modules/mkfifo-tests (Files): Likewise.
59520         * modules/mkfifoat-tests (Files): Likewise.
59521         * modules/mknod-tests (Files): Likewise.
59522         * modules/nanosleep-tests (Files): Likewise.
59523         * modules/nl_langinfo-tests (Files): Likewise.
59524         * modules/obstack-printf-tests (Files): Likewise.
59525         * modules/open-tests (Files): Likewise.
59526         * modules/openat-tests (Files): Likewise.
59527         * modules/perror-tests (Files): Likewise.
59528         * modules/pipe2-tests (Files): Likewise.
59529         * modules/poll-tests (Files): Likewise.
59530         * modules/popen-tests (Files): Likewise.
59531         * modules/posix_spawn-tests (Files): Likewise.
59532         * modules/posix_spawnp-tests (Files): Likewise.
59533         * modules/pread-tests (Files): Likewise.
59534         * modules/printf-posix-tests (Files): Likewise.
59535         * modules/pty-tests (Files): Likewise.
59536         * modules/random_r-tests (Files): Likewise.
59537         * modules/rawmemchr-tests (Files): Likewise.
59538         * modules/readlink-tests (Files): Likewise.
59539         * modules/remove-tests (Files): Likewise.
59540         * modules/rename-tests (Files): Likewise.
59541         * modules/renameat-tests (Files): Likewise.
59542         * modules/rmdir-tests (Files): Likewise.
59543         * modules/round-tests (Files): Likewise.
59544         * modules/roundf-tests (Files): Likewise.
59545         * modules/roundl-tests (Files): Likewise.
59546         * modules/select-tests (Files): Likewise.
59547         * modules/setenv-tests (Files): Likewise.
59548         * modules/sigaction-tests (Files): Likewise.
59549         * modules/sleep-tests (Files): Likewise.
59550         * modules/snprintf-posix-tests (Files): Likewise.
59551         * modules/snprintf-tests (Files): Likewise.
59552         * modules/sprintf-posix-tests (Files): Likewise.
59553         * modules/stat-tests (Files): Likewise.
59554         * modules/strcasestr-tests (Files): Likewise.
59555         * modules/strchrnul-tests (Files): Likewise.
59556         * modules/strerror-tests (Files): Likewise.
59557         * modules/strsignal-tests (Files): Likewise.
59558         * modules/strstr-tests (Files): Likewise.
59559         * modules/strtod-tests (Files): Likewise.
59560         * modules/strverscmp-tests (Files): Likewise.
59561         * modules/symlink-tests (Files): Likewise.
59562         * modules/symlinkat-tests (Files): Likewise.
59563         * modules/times-tests (Files): Likewise.
59564         * modules/trunc-tests (Files): Likewise.
59565         * modules/truncf-tests (Files): Likewise.
59566         * modules/truncl-tests (Files): Likewise.
59567         * modules/tsearch-tests (Files): Likewise.
59568         * modules/uname-tests (Files): Likewise.
59569         * modules/unlink-tests (Files): Likewise.
59570         * modules/unsetenv-tests (Files): Likewise.
59571         * modules/usleep-tests (Files): Likewise.
59572         * modules/utimensat-tests (Files): Likewise.
59573         * modules/vasprintf-tests (Files): Likewise.
59574         * modules/vdprintf-posix-tests (Files): Likewise.
59575         * modules/vfprintf-posix-tests (Files): Likewise.
59576         * modules/vprintf-posix-tests (Files): Likewise.
59577         * modules/vsnprintf-posix-tests (Files): Likewise.
59578         * modules/vsnprintf-tests (Files): Likewise.
59579         * modules/vsprintf-posix-tests (Files): Likewise.
59580         * modules/wcrtomb-tests (Files): Likewise.
59581         * modules/wcsnrtombs-tests (Files): Likewise.
59582         * modules/wcsrtombs-tests (Files): Likewise.
59583         * modules/wcwidth-tests (Files): Likewise.
59584         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
59585         * tests/test-isinf.c (isinf): Likewise.
59586         * tests/test-isnan.c (isnan): Likewise.
59587         * tests/test-signbit.c (signbit): Likewise.
59588         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
59589         declaration, either as macro or with correct signature.
59590         (select): Ensure function under test is declared with correct
59591         signature in correct header.
59592         * tests/test-atexit.c (atexit): Likewise.
59593         * tests/test-btowc.c (btowc): Likewise.
59594         * tests/test-canonicalize-lgpl.c (realpath)
59595         (canonicalize_file_name): Likewise.
59596         * tests/test-ceilf1.c (ceilf): Likewise.
59597         * tests/test-ceill.c (ceill): Likewise.
59598         * tests/test-chown.c (chown): Likewise.
59599         * tests/test-dprintf-posix.c (dprintf): Likewise.
59600         * tests/test-dup2.c (dup2): Likewise.
59601         * tests/test-dup3.c (dup3): Likewise.
59602         * tests/test-duplocale.c (duplocale): Likewise.
59603         * tests/test-fchdir.c (fchdir): Likewise.
59604         * tests/test-fchownat.c (fchownat): Likewise.
59605         * tests/test-fcntl.c (fcntl): Likewise.
59606         * tests/test-fdopendir.c (fdopendir): Likewise.
59607         * tests/test-fflush.c (fflush): Likewise.
59608         * tests/test-flock.c (flock): Likewise.
59609         * tests/test-floorf1.c (floorf): Likewise.
59610         * tests/test-floorl.c (floorl): Likewise.
59611         * tests/test-fnmatch.c (fnmatch): Likewise.
59612         * tests/test-fopen.c (fopen): Likewise.
59613         * tests/test-fprintf-posix.c (fprintf): Likewise.
59614         * tests/test-freopen.c (freopen): Likewise.
59615         * tests/test-frexp.c (frexp): Likewise.
59616         * tests/test-frexpl.c (frexpl): Likewise.
59617         * tests/test-fseek.c (fseek): Likewise.
59618         * tests/test-fseeko.c (fseeko): Likewise.
59619         * tests/test-fstatat.c (fstatat): Likewise.
59620         * tests/test-fsync.c (fsync): Likewise.
59621         * tests/test-ftell.c (ftell): Likewise.
59622         * tests/test-ftello.c (ftello): Likewise.
59623         * tests/test-futimens.c (futimens): Likewise.
59624         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
59625         (gai_strerror): Likewise.
59626         * tests/test-getcwd.c (getcwd): Likewise.
59627         * tests/test-getdelim.c (getdelim): Likewise.
59628         * tests/test-getdtablesize.c (getdtablesize): Likewise.
59629         * tests/test-getgroups.c (getgroups): Likewise.
59630         * tests/test-gethostname.c (gethostname): Likewise.
59631         * tests/test-getline.c (getline): Likewise.
59632         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
59633         Likewise.
59634         * tests/test-gettimeofday.c (gettimeofday): Likewise.
59635         * tests/test-glob.c (glob, globfree): Likewise.
59636         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
59637         * tests/test-inet_ntop.c (inet_ntop): Likewise.
59638         * tests/test-inet_pton.c (inet_pton): Likewise.
59639         * tests/test-isblank.c (isblank): Likewise.
59640         * tests/test-lchown.c (lchown): Likewise.
59641         * tests/test-ldexpl.c (ldexpl): Likewise.
59642         * tests/test-link.c (link): Likewise.
59643         * tests/test-linkat.c (linkat): Likewise.
59644         * tests/test-lseek.c (lseek): Likewise.
59645         * tests/test-lstat.c (lstat): Likewise.
59646         * tests/test-mbrtowc.c (mbrtowc): Likewise.
59647         * tests/test-mbsinit.c (mbsinit): Likewise.
59648         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
59649         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
59650         * tests/test-memchr.c (memchr): Likewise.
59651         * tests/test-memcmp.c (memcmp): Likewise.
59652         * tests/test-memmem.c (memmem): Likewise.
59653         * tests/test-memrchr.c (memrchr): Likewise.
59654         * tests/test-mkdir.c (mkdir): Likewise.
59655         * tests/test-mkdirat.c (mkdirat): Likewise.
59656         * tests/test-mkfifo.c (mkfifo): Likewise.
59657         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
59658         * tests/test-mknod.c (mknod): Likewise.
59659         * tests/test-nanosleep.c (nanosleep): Likewise.
59660         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
59661         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
59662         Likewise.
59663         * tests/test-open.c (open): Likewise.
59664         * tests/test-openat.c (openat): Likewise.
59665         * tests/test-perror.c (perror): Likewise.
59666         * tests/test-pipe2.c (pipe2): Likewise.
59667         * tests/test-poll.c (poll): Likewise.
59668         * tests/test-popen.c (popen, pclose): Likewise.
59669         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
59670         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
59671         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
59672         (posix_spawn_file_actions_destroy)
59673         (posix_spawn_file_actions_addclose)
59674         (posix_spawn_file_actions_addopen)
59675         (posix_spawn_file_actions_adddup2): Likewise.
59676         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
59677         * tests/test-pread.c (pread): Likewise.
59678         * tests/test-printf-posix.c (printf): Likewise.
59679         * tests/test-pty.c (openpty, forkpty): Likewise.
59680         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
59681         (random_r): Likewise.
59682         * tests/test-rawmemchr.c (rawmemchr): Likewise.
59683         * tests/test-readlink.c (readlink): Likewise.
59684         * tests/test-remove.c (remove): Likewise.
59685         * tests/test-rename.c (rename): Likewise.
59686         * tests/test-renameat.c (renameat): Likewise.
59687         * tests/test-rmdir.c (rmdir): Likewise.
59688         * tests/test-round1.c (round): Likewise.
59689         * tests/test-roundf1.c (roundf): Likewise.
59690         * tests/test-roundl.c (roundl): Likewise.
59691         * tests/test-setenv.c (setenv): Likewise.
59692         * tests/test-sigaction.c (sigaction): Likewise.
59693         * tests/test-sleep.c (sleep): Likewise.
59694         * tests/test-snprintf.c (snprintf): Likewise.
59695         * tests/test-sprintf-posix.c (sprintf): Likewise.
59696         * tests/test-stat.c (stat): Likewise.
59697         * tests/test-stpncpy.c (stpncpy): Likewise.
59698         * tests/test-strcasestr.c (strcasestr): Likewise.
59699         * tests/test-strchrnul.c (strchrnul): Likewise.
59700         * tests/test-strerror.c (strerror): Likewise.
59701         * tests/test-strsignal.c (strsignal): Likewise.
59702         * tests/test-strstr.c (strstr): Likewise.
59703         * tests/test-strtod.c (strtod): Likewise.
59704         * tests/test-strverscmp.c (strverscmp): Likewise.
59705         * tests/test-symlink.c (symlink): Likewise.
59706         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
59707         * tests/test-times.c (times): Likewise.
59708         * tests/test-trunc1.c (trunc): Likewise.
59709         * tests/test-truncf1.c (truncf): Likewise.
59710         * tests/test-truncl.c (truncl): Likewise.
59711         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
59712         Likewise.
59713         * tests/test-uname.c (uname): Likewise.
59714         * tests/test-unlink.c (unlink): Likewise.
59715         * tests/test-unlinkat.c (unlinkat): Likewise.
59716         * tests/test-unsetenv.c (unsetenv): Likewise.
59717         * tests/test-usleep.c (usleep): Likewise.
59718         * tests/test-utimensat.c (utimensat): Likewise.
59719         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
59720         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
59721         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
59722         * tests/test-vprintf-posix.c (vprintf): Likewise.
59723         * tests/test-vsnprintf.c (vsnprintf): Likewise.
59724         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
59725         * tests/test-wcrtomb.c (wcrtomb): Likewise.
59726         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
59727         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
59728         * tests/test-wcwidth.c (wcwidth): Likewise.
59730         build: pull in conditional headers during GNULIB_POSIXCHECK
59731         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
59732         definitions from any conditionally-included headers.
59733         * lib/stdlib.in.h (includes): Likewise.
59734         * lib/unistd.in.h (includes): Likewise.
59736 2009-12-24  Bruno Haible  <bruno@clisp.org>
59738         * tests/test-argv-iter.c: Include header file being tested immediately
59739         after config.h.
59740         * tests/test-base64.c: Likewise.
59741         * tests/test-flock.c: Likewise.
59742         * tests/test-fsync.c: Likewise.
59743         * tests/test-getdate.c: Likewise.
59744         * tests/test-getndelim2.c: Likewise.
59745         * tests/test-isfinite.c: Likewise.
59746         * tests/test-isinf.c: Likewise.
59747         * tests/test-strerror.c: Likewise.
59748         * tests/test-strsignal.c: Likewise.
59750 2009-12-23  Eric Blake  <ebb9@byu.net>
59752         unistd: work around cygwin bug
59753         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
59754         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
59755         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
59757 2009-12-23  Bruno Haible  <bruno@clisp.org>
59759         localename: More tests.
59760         * tests/test-localename.c (SIZEOF): New macro.
59761         (categories): New variable.
59762         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
59763         test_locale_name_default): Add test w.r.t. thread locale.
59764         (test_locale_name_thread): New function.
59765         (main): Invoke it.
59767         localename: Make aware of thread locale.
59768         * lib/localename.h (gl_locale_name_thread): New declaration.
59769         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
59770         behaviour with respect to thread locale.
59771         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
59772         <langinfo.h>, glthread/lock.h.
59773         (SIZE_BITS): New macro.
59774         (string_hash): New function.
59775         (struct hash_node): New type.
59776         (HASH_TABLE_SIZE): New macro.
59777         (struniq_hash_table, struniq_lock): New variables.
59778         (struniq): New function.
59779         (gl_locale_name_thread): New function.
59780         (gl_locale_name): Invoke it.
59781         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
59782         * modules/localename (Depends-on): Add lock.
59783         Reported by Mike Gran <spk121@yahoo.com>.
59785 2009-12-23  Eric Blake  <ebb9@byu.net>
59787         va-args: new module
59788         * modules/va-args: New file.
59789         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
59790         * MODULES.html.sh (Core language properties): Mention it.
59792         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
59793         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
59794         named alias for __attribute__((__unused__)).
59795         * lib/chown.c: Update client.
59796         * lib/fchmodat.c: Likewise.
59797         * lib/fts.c: Likewise.
59798         * lib/getdate.y: Likewise.
59799         * lib/getgroups.c: Likewise.
59800         * lib/getopt.c: Likewise.
59801         * lib/getugroups.c: Likewise.
59802         * lib/mkdir.c: Likewise.
59803         * lib/mkfifo.c: Likewise.
59804         * lib/mkfifoat.c: Likewise.
59805         * lib/mknod.c: Likewise.
59806         * lib/mknodat.c: Likewise.
59807         * lib/readlink.c: Likewise.
59808         * lib/se-context.in.h: Likewise.
59809         * lib/se-selinux.in.h: Likewise.
59810         * lib/sockets.c: Likewise.
59811         * lib/symlink.c: Likewise.
59812         * lib/symlinkat.c: Likewise.
59813         * lib/unicodeio.c: Likewise.
59814         * lib/unistr.h: Likewise.
59815         * tests/test-areadlink.c: Likewise.
59816         * tests/test-areadlinkat.c: Likewise.
59817         * tests/test-filenamecat.c: Likewise.
59818         * tests/test-fseeko.c: Likewise.
59819         * tests/test-ftello.c: Likewise.
59820         * tests/test-getdate.c: Likewise.
59821         * tests/test-getgroups.c: Likewise.
59822         * tests/test-gethostname.c: Likewise.
59823         * tests/test-quotearg.c: Likewise.
59824         * tests/test-version-etc.c: Likewise.
59825         * tests/test-xalloc-die.c: Likewise.
59826         * tests/test-xfprintf-posix.c: Likewise.
59827         * tests/test-xprintf-posix.c: Likewise.
59828         * tests/test-xvasprintf.c: Likewise.
59830         tests: avoid compiler warnings
59831         * tests/test-fcntl.c (main): Delete unused parameters.
59832         * tests/test-freopen-safer.c (main): Likewise.
59833         * tests/test-xalloc-die.c (main): Mark unused parameters.
59834         * tests/test-fseeko.c (main): Likewise.
59835         * tests/test-ftello.c (main): Likewise.
59836         * tests/test-nanosleep.c (main): Avoid declaration warning.
59837         * tests/test-sleep.c (main): Likewise.
59838         * tests/test-unsetenv.c (main): Silence warning about string
59839         literal.
59840         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
59842 2009-12-23  Bruno Haible  <bruno@clisp.org>
59844         * tests/test-localename.c (test_locale_name): New function, extracted
59845         from main. Also test mixed situations.
59846         (test_locale_name_posix, test_locale_name_environ,
59847         test_locale_name_default): New functions.
59848         (main): Invoke them all.
59849         * modules/localename-tests (configure.ac): Test for newlocale.
59851 2009-12-23  Bruno Haible  <bruno@clisp.org>
59853         unistd: Ensure getcwd gets declared before being overridden.
59854         * lib/unistd.in.h: Conditionally include <io.h>.
59856 2009-12-22  Bruno Haible  <bruno@clisp.org>
59858         wchar: Diagnose broken combination of glibc and gcc versions and flags.
59859         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
59860         (gl_WCHAR_H): Invoke it.
59861         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
59862         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
59863         Reported by Karl Berry <karl@freefriends.org>.
59865 2009-12-22  Eric Blake  <ebb9@byu.net>
59867         math, unistd: avoid redundant includes
59868         * lib/math.in.h (isnan): No need to re-include <math.h>.
59869         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
59871         getsubopt: work around cygwin bug
59872         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
59873         avoid conflicting with system getsubopt.
59874         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
59875         bug.
59877         getopt: synchronize from glibc
59878         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
59879         parameter order.  Adjust all callers.
59880         (_getopt_internal_r, main): Adjust quoting in error messages.
59881         Drop considerations for outdated POSIX 1003.2 error message.
59882         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
59883         callers.
59884         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
59886         test-getopt: test stderr behavior
59887         * modules/getopt-posix-tests (Depends-on): Add dup2.
59888         * tests/test-getopt.c (ASSERT): Avoid stderr.
59889         (main): Move stderr to a temporary file.
59890         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
59891         Instead, add parameter to inform caller if output occurred.
59892         (test_getopt): Adjust all existing tests to expect silence, and
59893         add new tests of leading ":".
59894         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
59895         glibc shortcomings with leading "-:" or "+:" in optstring.
59896         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
59897         Likewise.
59898         * doc/posix-functions/getopt.texi (getopt): Likewise.
59900         test-getopt: enhance test
59901         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
59902         supports optind=0.
59903         * tests/test-getopt.c (OPTIND_MIN): Move...
59904         * tests/test-getopt.h (OPTIND_MIN): ...here.
59905         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
59906         Require that optind=0 works, since modern BSD supports it in
59907         addition to optreset, and since coreutils expects it.
59908         (test_getopt_long_only): New test.
59909         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
59910         glibc shortcomings with 'W;', and enforcement of optind=0.
59911         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
59912         Likewise.
59914 2009-12-21  Bruno Haible  <bruno@clisp.org>
59916         localename: Improvements for MacOS X and Cygwin.
59917         * lib/localename.h (gl_locale_name_environ): New declaration.
59918         * lib/localename.c (gl_locale_name_environ): New function, extracted from
59919         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
59920         (gl_locale_name_posix): Invoke it.
59921         (gl_locale_name_default): Add comments. Use Windows native API also on
59922         Cygwin.
59924 2009-12-21  Bruno Haible  <bruno@clisp.org>
59926         Update list of Win32 locale ids.
59927         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
59928         (LANG_SAMI): Renamed from LANG_SAAMI.
59929         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
59930         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
59931         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
59932         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
59933         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
59934         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
59935         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
59936         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
59937         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
59938         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
59939         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
59940         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
59941         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
59942         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
59943         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
59944         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
59945         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
59946         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
59947         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
59948         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
59949         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
59950         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
59951         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
59952         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
59953         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
59954         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
59955         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
59956         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
59957         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
59958         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
59959         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
59960         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
59961         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
59962         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
59963         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
59964         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
59965         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
59966         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
59967         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
59968         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
59969         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
59970         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
59971         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
59972         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
59973         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
59974         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
59975         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
59976         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
59977         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
59978         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
59979         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
59980         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
59981         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
59982         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
59983         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
59984         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
59985         Add more languages and countries for Sami, Sorbian. Add more countries
59986         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
59987         for Pashto. Change country for Syriac, Tswana.
59989 2009-12-21  Eric Blake  <ebb9@byu.net>
59991         test-utimens: avoid spurious failure
59992         * tests/test-chown.h (nap): Factor...
59993         * tests/nap.h: ...into new file.
59994         * tests/test-lchown.h (nap): Avoid duplication.
59995         * tests/test-utimens-common.h (nap): Use shared implementation,
59996         necessary on file systems with 1-second resolution.
59997         * modules/chown-tests (Files): Include new file.
59998         * modules/fdutimensat-tests (Files): Likewise.
59999         * modules/futimens-tests (Files): Likewise.
60000         * modules/lchown-tests (Files): Likewise.
60001         * modules/openat-tests (Files): Likewise.
60002         * modules/utimens-tests (Files): Likewise.
60003         * modules/utimensat-tests (Files): Likewise.
60005 2009-12-19  Eric Blake  <ebb9@byu.net>
60007         futimens, utimensat: work around Linux bug
60008         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
60009         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
60010         * lib/utimensat.c (rpl_utimensat): Work around it.
60011         * lib/futimens.c (rpl_futimens): Adjust comment.
60013         utimens: work around Linux ctime bug
60014         * lib/utimens.c (detect_ctime_bug): New helper function.
60015         (update_timespec): Differentiate between workaround needed for
60016         this bug vs. what is needed for systems that lack utimensat.
60017         (fdutimens, lutimens): Work around bug.
60019         utimens: check for ctime update
60020         * tests/test-utimens-common.h (check_ctime): Define.
60021         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
60022         * tests/test-futimens.h (test_futimens): Likewise.
60023         * tests/test-lutimens.h (test_lutimens): Likewise.
60024         * doc/posix-functions/futimens.texi (futimens): Document the bug.
60025         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
60027 2009-12-19  Bruno Haible  <bruno@clisp.org>
60029         dprintf-posix: Check against memory leak fixed on 2009-12-15.
60030         * tests/test-dprintf-posix2.sh: New file.
60031         * tests/test-dprintf-posix2.c: New file.
60032         * modules/dprintf-posix-tests (Files): Add them.
60033         (configure.ac): Check for getrlimit and setrlimit.
60034         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
60036 2009-12-19  Bruno Haible  <bruno@clisp.org>
60038         fprintf-posix: Check against memory leak fixed on 2009-12-15.
60039         * tests/test-fprintf-posix3.sh: New file.
60040         * tests/test-fprintf-posix3.c: New file.
60041         * modules/fprintf-posix-tests (Files): Add them.
60042         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
60044 2009-12-19  Eric Blake  <ebb9@byu.net>
60046         dirfd: fix prototype
60047         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
60048         * lib/dirfd.c (dirfd): Likewise.
60050         canonicalize: reduce memory usage
60051         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
60052         allocation to size.
60053         Reported by Solar Designer <solar@openwall.com>.
60055 2009-12-19  Bruno Haible  <bruno@clisp.org>
60057         New module attribute 'Applicability'.
60058         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
60059         * gnulib-tool: New option --extract-applicability.
60060         (func_usage): Document it.
60061         (sed_extract_prog): Recognize it.
60062         (func_get_applicability): New function.
60063         (func_import): Generalize handling of 'link-warning' module.
60064         * modules/link-warning (Applicability): New section.
60065         * modules/arg-nonnull (Applicability): New section.
60066         Repoted by Simon Josefsson <simon@josefsson.org>.
60068 2009-12-19  Bruno Haible  <bruno@clisp.org>
60070         fflush: tweak
60071         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
60072         * lib/fseeko.c (rpl_fseeko): Likewise.
60074 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
60076         * lib/gl_list.h: Fix typo in comment.
60078 2009-12-16  Eric Blake  <ebb9@byu.net>
60080         fcntl: use to simplify other modules
60081         * modules/cloexec (Depends-on): Add fcntl.
60082         * modules/fchdir (Depends-on): Likewise.
60083         * modules/fd-safer-flag (Depends-on): Likewise.
60084         * modules/unistd-safer (Depends-on): Likewise.
60085         * modules/dup3 (configure.ac): Set module indicator.
60086         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
60087         missing.
60088         * lib/fchdir.c (_gl_register_dup): Fix comment.
60089         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
60090         * lib/dup-safer.c (dup_safer): Likewise.
60091         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
60092         * lib/dup3.c (dup3): Likewise.
60093         * tests/test-fchdir.c (main): Enhance test.
60094         Fixes a dup_cloexec bug reported by Ondřej Vašík.
60096         fcntl: port portions of fcntl to mingw
60097         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
60098         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
60099         replacement for mingw.
60100         * modules/fcntl (Description): Update.
60101         (Depends-on): Add dup2.
60102         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
60103         * modules/fcntl-h (Makefile.am): Substitute it.
60104         * lib/fcntl.in.h (fcntl): Update declaration.
60105         (F_DUPFD, F_GETFD): New macros, when needed.
60106         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
60107         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
60108         * tests/test-fcntl.c (check_flags, main): Enhance test for items
60109         we now guarantee.
60111         fcntl: work around cygwin bug in F_DUPFD
60112         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
60113         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
60114         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
60115         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
60116         * doc/posix-functions/fcntl.texi (fcntl): Document it.
60118         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
60119         * modules/fcntl (Files): List new files.
60120         (configure.ac): Run a test.
60121         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
60122         * lib/fcntl.c (rpl_fcntl): Likewise.
60123         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
60124         (gl_FCNTL_H): Always replace fcntl.h.
60125         * modules/fcntl-h (Makefile.am): Substitute witnesses.
60126         * lib/fcntl.in.h (fcntl): Declare replacement.
60127         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
60128         needed, plus a witness.
60129         * doc/posix-functions/fcntl.texi (fcntl): Document this.
60130         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
60131         * tests/test-fcntl.c: New file.
60132         * modules/fcntl-tests: Likewise.
60134         binary-io: avoid potential compilation warning
60135         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
60136         directives.
60138         fflush: avoid compilation error on NetBSD
60139         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
60140         between off_t and fpos_t, since the latter is sometimes a struct.
60141         * lib/fseeko.c (rpl_fseeko): Likewise.
60142         Reported by Alexander Nasonov <alnsn@yandex.ru>.
60144 2009-12-15  Eric Blake  <ebb9@byu.net>
60146         fcntl-h, stdio, sys_ioctl: fix declarations
60147         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
60148         function must not take arguments.
60149         * lib/sys_ioctl.in.h (ioctl): Likewise.
60150         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
60151         (open): Add a link warning.
60153 2009-12-15  Jim Meyering  <meyering@redhat.com>
60155         areadlink, areadlink-with-size: relax license to LGPLv2+
60156         * modules/areadlink (License): Relax to LGPLv2+.
60157         * modules/areadlink-with-size (License): Likewise.
60159 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
60160             Bruno Haible  <bruno@clisp.org>
60162         *printf: Fix memory leak.
60163         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
60164         * lib/vfprintf.c (vfprintf): Likewise.
60165         * lib/dprintf.c (dprintf): Likewise.
60166         * lib/vdprintf.c (vdprintf): Likewise.
60168 2009-12-14  Eric Blake  <ebb9@byu.net>
60170         accept4: adjust module dependencies
60171         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
60173         utimens: one more try at avoiding compiler warning
60174         * lib/utimens.c (lutimens): Lower scope of result.
60176 2009-12-13  Bruno Haible  <bruno@clisp.org>
60178         Move the malloc checking from module 'list' to new module 'xlist'.
60179         * modules/xlist: New file.
60180         * lib/gl_xlist.h: New file.
60181         * lib/gl_xlist.c: New file.
60182         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
60183         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
60184         gl_list_add_last, gl_list_add_before, gl_list_add_after,
60185         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
60186         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
60187         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
60188         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
60189         gl_sortedlist_nx_add): New declarations.
60190         (struct gl_list_implementation): Rename and change methods accordingly.
60191         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
60192         (gl_list_nx_create): Renamed from gl_list_create.
60193         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
60194         (gl_list_nx_set_at): Renamed from gl_list_set_at.
60195         (gl_list_nx_add_first): Renamed from gl_list_add_first.
60196         (gl_list_nx_add_last): Renamed from gl_list_add_last.
60197         (gl_list_nx_add_before): Renamed from gl_list_add_before.
60198         (gl_list_nx_add_after): Renamed from gl_list_add_after.
60199         (gl_list_nx_add_at): Renamed from gl_list_add_at.
60200         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
60201         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
60202         gl_list_create_empty.
60203         (gl_list_nx_create): Renamed from gl_list_create.
60204         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
60205         (gl_list_nx_set_at): Renamed from gl_list_set_at.
60206         (gl_list_nx_add_first): Renamed from gl_list_add_first.
60207         (gl_list_nx_add_last): Renamed from gl_list_add_last.
60208         (gl_list_nx_add_before): Renamed from gl_list_add_before.
60209         (gl_list_nx_add_after): Renamed from gl_list_add_after.
60210         (gl_list_nx_add_at): Renamed from gl_list_add_at.
60211         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
60212         * lib/gl_array_list.c: Don't include xalloc.h.
60213         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
60214         NULL upon out-of-memory.
60215         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
60216         out-of-memory.
60217         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
60218         Change return type to 'int'.
60219         (gl_array_nx_set_at): Renamed from gl_array_set_at.
60220         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
60221         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
60222         upon out-of-memory.
60223         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
60224         upon out-of-memory.
60225         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
60226         upon out-of-memory.
60227         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
60228         upon out-of-memory.
60229         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
60230         out-of-memory.
60231         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
60232         Update.
60233         (gl_array_list_implementation): Update.
60234         * lib/gl_carray_list.c: Don't include xalloc.h.
60235         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
60236         Return NULL upon out-of-memory.
60237         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
60238         out-of-memory.
60239         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
60240         Change return type to 'int'.
60241         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
60242         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
60243         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
60244         upon out-of-memory.
60245         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
60246         upon out-of-memory.
60247         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
60248         out-of-memory.
60249         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
60250         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
60251         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
60252         Update.
60253         (gl_carray_list_implementation): Update.
60254         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
60255         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
60256         gl_linked_create_empty. Return NULL upon out-of-memory.
60257         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
60258         out-of-memory.
60259         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
60260         Change return type to 'int'. Return -1 upon out-of-memory.
60261         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
60262         out-of-memory.
60263         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
60264         upon out-of-memory.
60265         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
60266         upon out-of-memory.
60267         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
60268         NULL upon out-of-memory.
60269         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
60270         upon out-of-memory.
60271         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
60272         out-of-memory.
60273         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
60274         Update.
60275         * lib/gl_linked_list.c: Don't include xalloc.h.
60276         (gl_linked_list_implementation): Update.
60277         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
60278         (add_to_bucket): Change return type to 'int'.
60279         (gl_linkedhash_list_implementation): Update.
60280         * lib/gl_anytree_list1.h (free_subtree): New function.
60281         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
60282         gl_tree_create_empty. Return NULL upon out-of-memory.
60283         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
60284         Change return type to 'int'. Return -1 upon out-of-memory.
60285         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
60286         out-of-memory.
60287         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
60288         (gl_tree_remove_node): New function, moved here from
60289         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
60290         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
60291         Update.
60292         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
60293         malloc, not xmalloc. Return NULL upon out-of-memory.
60294         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
60295         out-of-memory.
60296         (gl_tree_remove_node_from_tree): New function, extracted from
60297         gl_tree_remove_node.
60298         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
60299         upon out-of-memory.
60300         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
60301         out-of-memory.
60302         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
60303         upon out-of-memory.
60304         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
60305         upon out-of-memory.
60306         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
60307         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
60308         not xmalloc. Return NULL upon out-of-memory.
60309         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
60310         out-of-memory.
60311         (gl_tree_remove_node_from_tree): New function, extracted from
60312         gl_tree_remove_node.
60313         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
60314         upon out-of-memory.
60315         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
60316         out-of-memory.
60317         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
60318         upon out-of-memory.
60319         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
60320         upon out-of-memory.
60321         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
60322         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
60323         gl_anytree_list1.h before gl_anyavltree_list2.h.
60324         (gl_avltree_list_implementation): Update.
60325         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
60326         gl_anytree_list1.h before gl_anyavltree_list2.h.
60327         (gl_rbtree_list_implementation): Update.
60328         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
60329         Change return type to 'int'. Return -1 upon out-of-memory. Use
60330         __builtin_expect.
60331         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
60332         (gl_avltreehash_list_implementation): Update.
60333         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
60334         (gl_rbtreehash_list_implementation): Update.
60335         * modules/array-list (Depends-on): Remove xalloc.
60336         * modules/carray-list (Depends-on): Likewise.
60337         * modules/linked-list (Depends-on): Likewise.
60338         * modules/linkedhash-list (Depends-on): Likewise.
60339         * modules/avltree-list (Depends-on): Likewise.
60340         * modules/rbtree-list (Depends-on): Likewise.
60341         * modules/avltreehash-list (Depends-on): Likewise.
60342         * modules/rbtreehash-list (Depends-on): Likewise.
60344         * modules/xsublist: New file.
60345         * lib/gl_xsublist.h: New file.
60346         * lib/gl_xsublist.c: New file.
60347         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
60348         (gl_sublist_nx_create): New declaration.
60349         * lib/gl_sublist.c: Don't include xalloc.h.
60350         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
60351         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
60352         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
60353         Change return type to 'int'. Return -1 upon out-of-memory.
60354         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
60355         upon out-of-memory.
60356         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
60357         NULL upon out-of-memory.
60358         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
60359         upon out-of-memory.
60360         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
60361         NULL upon out-of-memory.
60362         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
60363         NULL upon out-of-memory.
60364         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
60365         upon out-of-memory.
60366         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
60367         (gl_sublist_list_implementation): Update.
60368         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
60369         upon out-of-memory.
60370         * modules/sublist (Depends-on): Remove xalloc.
60372         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
60373         * tests/test-carray_list.c: Likewise.
60374         * tests/test-linked_list.c: Likewise.
60375         * tests/test-linkedhash_list.c: Likewise.
60376         * tests/test-avltree_list.c: Likewise.
60377         * tests/test-rbtree_list.c: Likewise.
60378         * tests/test-avltreehash_list.c: Likewise.
60379         * tests/test-rbtreehash_list.c: Likewise.
60380         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
60381         * modules/carray-list-tests (Makefile.am): Likewise.
60382         * modules/linked-list-tests (Makefile.am): Likewise.
60383         * modules/linkedhash-list-tests (Makefile.am): Likewise.
60384         * modules/avltree-list-tests (Makefile.am): Likewise.
60385         * modules/rbtree-list-tests (Makefile.am): Likewise.
60386         * modules/avltreehash-list-tests (Makefile.am): Likewise.
60387         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
60389         * NEWS: Mention the changes.
60391         * lib/clean-temp.c: Include gl_xlist.h.
60392         * modules/clean-temp (Depends-on): Add xlist.
60394         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
60395         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
60397         * tests/test-array_oset.c: Include gl_xlist.h.
60398         * modules/array-oset-tests (Depends-on): Add xlist.
60400         Reported by José E. Marchesi <jemarch@gnu.org>.
60402 2009-12-13  Bruno Haible  <bruno@clisp.org>
60404         Move the malloc checking from module 'oset' to new module 'xoset'.
60405         * modules/xoset: New file.
60406         * lib/gl_xoset.h: New file.
60407         * lib/gl_xoset.c: New file.
60408         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
60409         declarations.
60410         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
60411         (struct gl_oset_implementation): Rename and change methods accordingly.
60412         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
60413         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
60414         'int'. Mark as __warn_unused_result__.
60415         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
60416         gl_oset_create_empty.
60417         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
60418         'int'.
60419         * lib/gl_array_oset.c: Don't include xalloc.h.
60420         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
60421         malloc, not xmalloc.
60422         (grow): Change return type to 'int'. Don't call xalloc_die.
60423         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
60424         to 'int'.
60425         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
60426         'int'.
60427         (gl_array_oset_implementation): Update.
60428         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
60429         gl_tree_create_empty.
60430         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
60431         'int'.
60432         * lib/gl_avltree_oset.c: Don't include xalloc.h.
60433         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
60434         xmalloc.
60435         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
60436         not xmalloc.
60437         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
60438         xmalloc.
60439         (gl_avltree_oset_implementation): Update.
60440         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
60441         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
60442         xmalloc.
60443         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
60444         not xmalloc.
60445         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
60446         xmalloc.
60447         (gl_rbtree_oset_implementation): Update.
60448         * modules/array-oset (Depends-on): Remove xalloc.
60449         * modules/avltree-oset (Depends-on): Likewise.
60450         * modules/rbtree-oset (Depends-on): Likewise.
60451         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
60452         * tests/test-avltree_oset.c: Likewise.
60453         * tests/test-rbtree_oset.c: Likewise.
60454         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
60455         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
60456         * modules/rbtree-oset-tests (Makefile.am): Likewise.
60457         * NEWS: Mention the change.
60459 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
60461         maint.mk: allow a project to override release-prep commands
60462         * top/maint.mk (alpha, beta, stable): Move release-preparatory
60463         commands into a new rule.
60464         (release-prep): New rule.
60465         (release-prep-hook): New overridable variable.
60467 2009-12-13  Bruno Haible  <bruno@clisp.org>
60469         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
60471 2009-12-13  Jim Meyering  <meyering@redhat.com>
60473         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
60474         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
60476 2009-12-12  Bruno Haible  <bruno@clisp.org>
60478         duplocale: Tweak.
60479         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
60481 2009-12-12  Karl Berry  <karl@gnu.org>
60483         * config/srclist.txt (strtoll.c): tab changes, no more sync.
60485 2009-12-12  Bruno Haible  <bruno@clisp.org>
60487         * m4/po.m4: Undo incorrect untabification.
60489 2009-12-12  Bruno Haible  <bruno@clisp.org>
60491         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
60492         * modules/c-strtod (Depends-on): Add locale.
60493         * modules/c-strtold (Depends-on): Likewise.
60495 2009-12-12  Bruno Haible  <bruno@clisp.org>
60497         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
60499 2009-12-11  Eric Blake  <ebb9@byu.net>
60501         setenv: relax requirement in light of POSIX ruling
60502         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
60503         not NULL.
60504         * tests/test-setenv.c (main): Relax test.
60505         * tests/test-unsetenv.c (main): Likewise.
60506         * doc/posix-functions/setenv.texi (setenv): Document this.
60507         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
60509 2009-12-11  Bruno Haible  <bruno@clisp.org>
60511         New module 'fd-safer-flag'.
60512         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
60513         * lib/dup-safer.c (dup_safer_flag): Remove function.
60514         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
60515         * lib/fd-safer.c (fd_safer_flag): Remove function.
60516         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
60517         * modules/cloexec (configure.ac): Drop indicator macro.
60518         * modules/fd-safer-flag: New file.
60519         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
60520         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
60521         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
60523 2009-12-11  Bruno Haible  <bruno@clisp.org>
60525         Tests for module 'nl_langinfo'.
60526         * modules/nl_langinfo-tests: New file.
60527         * tests/test-nl_langinfo.sh: New file.
60528         * tests/test-nl_langinfo.c: New file.
60530         New module 'nl_langinfo'.
60531         * lib/nl_langinfo.c: New file.
60532         * m4/nl_langinfo.m4: New file.
60533         * modules/nl_langinfo: New file.
60534         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
60536 2009-12-11  Bruno Haible  <bruno@clisp.org>
60538         Tests for module 'langinfo'.
60539         * modules/langinfo-tests: New file.
60540         * tests/test-langinfo.c: New file.
60542         New module 'langinfo'.
60543         * lib/langinfo.in.h: New file.
60544         * m4/langinfo_h.m4: New file.
60545         * modules/langinfo: New file.
60546         * doc/posix-headers/langinfo.texi: Mention the new module.
60548 2009-12-11  Bruno Haible  <bruno@clisp.org>
60550         * lib/config.charset: Untabify.
60552 2009-12-11  Bruno Haible  <bruno@clisp.org>
60554         * modules/unistd-safer (configure.ac): Drop indicator macro.
60556 2009-12-11  Bruno Haible  <bruno@clisp.org>
60558         Move pipe2-safer code to its own file.
60559         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
60560         * lib/pipe-safer.c (pipe2_safer): Remove function.
60561         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
60562         (Makefile.am): Add it to lib_SOURCES.
60564 2009-12-10  Bruno Haible  <bruno@clisp.org>
60566         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
60568 2009-12-10  Bruno Haible  <bruno@clisp.org>
60570         Declare which arguments expect non-NULL values, for GCC and clang.
60571         * build-aux/arg-nonnull.h: New file.
60572         * modules/arg-nonnull: New file.
60573         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
60574         (inet_ntop, inet_pton): Use it.
60575         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
60576         (closedir, dirfd, opendir, scandir, alphasort): Use it.
60577         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
60578         (open, openat): Use it.
60579         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
60580         (fnmatch): Use it.
60581         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
60582         (getopt, getopt_long, getopt_long_only): Use it.
60583         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
60584         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
60585         Use it.
60586         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
60587         (iconv_open): Use it.
60588         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
60589         (strtoimax, strtoumax): Use it.
60590         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
60591         (duplocale): Use it.
60592         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
60593         (frexp, frexpl): Use it.
60594         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
60595         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
60596         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
60597         (tsearch, tfind, tdelete, twalk): Use it.
60598         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
60599         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
60600         sigpending): Use it.
60601         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
60602         (posix_spawn, posix_spawnp, posix_spawnattr_init,
60603         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
60604         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
60605         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
60606         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
60607         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
60608         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
60609         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
60610         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
60611         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
60612         Use it.
60613         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
60614         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
60615         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
60616         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
60617         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
60618         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
60619         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
60620         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
60621         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
60622         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
60623         strtoull, unsetenv): Use it.
60624         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
60625         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
60626         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
60627         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
60628         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
60629         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
60630         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
60631         (strcasecmp, strncasecmp): Use it.
60632         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
60633         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
60634         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
60635         rpl_setsockopt): Use it.
60636         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
60637         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
60638         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
60639         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
60640         (gettimeofday): Use it.
60641         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
60642         (times): Use it.
60643         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
60644         (uname): Use it.
60645         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
60646         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
60647         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
60648         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
60649         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
60650         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
60651         unlinkat, write): Use it.
60652         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
60653         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
60654         * lib/argv-iter.h: Include arg-nonnull.h.
60655         (_ATTRIBUTE_NONNULL_): Remove macro.
60656         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
60657         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
60658         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
60659         optimization.
60660         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
60661         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
60662         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
60663         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
60664         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
60665         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
60666         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
60667         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
60668         * modules/arpa_inet (Depends-on): Add arg-nonnull.
60669         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
60670         * modules/dirent (Depends-on): Add arg-nonnull.
60671         (Makefile.am): Insert arg-nonnull.h into dirent.h.
60672         * modules/fcntl-h (Depends-on): Add arg-nonnull.
60673         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
60674         * modules/fnmatch (Depends-on): Add arg-nonnull.
60675         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
60676         * modules/getopt-posix (Depends-on): Add arg-nonnull.
60677         (Makefile.am): Insert arg-nonnull.h into getopt.h.
60678         * modules/glob (Depends-on): Add arg-nonnull.
60679         (Makefile.am): Insert arg-nonnull.h into glob.h.
60680         * modules/iconv_open (Depends-on): Add arg-nonnull.
60681         (Makefile.am): Insert arg-nonnull.h into iconv.h.
60682         * modules/inttypes (Depends-on): Add arg-nonnull.
60683         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
60684         * modules/locale (Depends-on): Add arg-nonnull.
60685         (Makefile.am): Insert arg-nonnull.h into locale.h.
60686         * modules/math (Depends-on): Add arg-nonnull.
60687         (Makefile.am): Insert arg-nonnull.h into math.h.
60688         * modules/netdb (Depends-on): Add arg-nonnull.
60689         (Makefile.am): Insert arg-nonnull.h into netdb.h.
60690         * modules/search (Depends-on): Add arg-nonnull.
60691         (Makefile.am): Insert arg-nonnull.h into search.h.
60692         * modules/signal (Depends-on): Add arg-nonnull.
60693         (Makefile.am): Insert arg-nonnull.h into signal.h.
60694         * modules/spawn (Depends-on): Add arg-nonnull.
60695         (Makefile.am): Insert arg-nonnull.h into spawn.h.
60696         * modules/stdio (Depends-on): Add arg-nonnull.
60697         (Makefile.am): Insert arg-nonnull.h into stdio.h.
60698         * modules/stdlib (Depends-on): Add arg-nonnull.
60699         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
60700         * modules/string (Depends-on): Add arg-nonnull.
60701         (Makefile.am): Insert arg-nonnull.h into string.h.
60702         * modules/strings (Depends-on): Add arg-nonnull.
60703         (Makefile.am): Insert arg-nonnull.h into strings.h.
60704         * modules/sys_socket (Depends-on): Add arg-nonnull.
60705         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
60706         * modules/sys_stat (Depends-on): Add arg-nonnull.
60707         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
60708         * modules/sys_time (Depends-on): Add arg-nonnull.
60709         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
60710         * modules/sys_times (Depends-on): Add arg-nonnull.
60711         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
60712         * modules/sys_utsname (Depends-on): Add arg-nonnull.
60713         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
60714         * modules/time (Depends-on): Add arg-nonnull.
60715         (Makefile.am): Insert arg-nonnull.h into time.h.
60716         * modules/unistd (Depends-on): Add arg-nonnull.
60717         (Makefile.am): Insert arg-nonnull.h into unistd.h.
60718         * modules/wchar (Depends-on): Add arg-nonnull.
60719         (Makefile.am): Insert arg-nonnull.h into wchar.h.
60720         * modules/argv-iter (Depends-on): Add arg-nonnull.
60721         * tests/test-canonicalize.c (null_ptr): New function.
60722         (main): Use it.
60723         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
60724         (main): Use it.
60725         * tests/test-memmem.c (null_ptr): New function.
60726         (main): Use it.
60727         Reported by Jim Meyering.
60729 2009-12-10  Bruno Haible  <bruno@clisp.org>
60731         Use spaces for indentation, not tabs.
60732         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
60733         * m4/*.m4: Untabify.
60734         * build-aux/*.h: Untabify.
60735         * tests/**/*.[hc]: Untabify.
60736         * README: New section "Indent with spaces, not TABs", based on
60737         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
60738         * NEWS: Mention the change.
60740 2009-12-10  Bruno Haible  <bruno@clisp.org>
60742         pty test: Fix link error.
60743         * modules/pty-tests (Makefile.am): Add the default LDADD value to
60744         test_pty_LDADD.
60746 2009-12-07  Simon Josefsson  <simon@josefsson.org>
60748         * modules/pty: New file.
60749         * modules/pty-tests: New file.
60750         * m4/pty.m4: New file.
60751         * tests/test-pty.c: New file.
60752         * doc/glibc-headers/pty.texi: Modified.
60753         * doc/glibc-functions/forkpty.texi: Modified.
60754         * doc/glibc-functions/openpty.texi: Modified.
60756 2009-12-10  Bruno Haible  <bruno@clisp.org>
60758         Avoid syntax error in C++ mode.
60759         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
60761 2009-12-10  Bruno Haible  <bruno@clisp.org>
60763         Use sed with option -e.
60764         * gnulib-tool (func_version, func_emit_copyright_notice,
60765         func_emit_initmacro_end, func_import, func_create_testdir): Pass
60766         option -e to sed.
60767         * modules/link-warning (Makefile.am): Likewise.
60769 2009-12-10  Jim Meyering  <meyering@redhat.com>
60771         mgetgroups: do not write bytes beyond end of malloc'd buffer
60772         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
60773         username, we call getgroups with a one-element-shorter buffer,
60774         but still told it the length was original, max_n_groups.
60776 2009-12-09  Eric Blake  <ebb9@byu.net>
60778         cloexec: relax license
60779         * modules/cloexec (Maintainer): Add myself.
60780         (License): Use LGPL, not GPL.
60782         link-warning: optimize generation
60783         * modules/link-warning (Makefile.am): Reduce process usage.
60785 2009-12-09  Bruno Haible  <bruno@clisp.org>
60787         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
60788         workaround was added on 2009-11-17.
60790 2009-12-09  Jim Meyering  <meyering@redhat.com>
60791             Bruno Haible  <bruno@clisp.org>
60793         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
60794         * modules/link-warning (Makefile.am): Make the comment-removing sed
60795         command more robust in the face of bootstrap-prepended comment lines.
60797 2009-12-09  Bruno Haible  <bruno@clisp.org>
60799         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
60800         most one group.
60802 2009-12-09  Simon Josefsson  <simon@josefsson.org>
60803             Bruno Haible  <bruno@clisp.org>
60805         * build-aux/link-warning.h: Add copyright notice.
60806         * modules/link-warning (Makefile.am): Generate link-warning.h from
60807         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
60808         * NEWS: Mention change in link-warning module.
60809         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
60810         * modules/dirent (Makefile.am): Add dependency to dirent.h.
60811         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
60812         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
60813         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
60814         * modules/math (Makefile.am): Add dependency to math.h.
60815         * modules/search (Makefile.am): Add dependency to search.h.
60816         * modules/signal (Makefile.am): Add dependency to signal.h.
60817         * modules/spawn (Makefile.am): Add dependency to spawn.h.
60818         * modules/stdio (Makefile.am): Add dependency to stdio.h.
60819         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
60820         * modules/string (Makefile.am): Add dependency to string.h.
60821         * modules/strings (Makefile.am): Add dependency to strings.h.
60822         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
60823         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
60824         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
60825         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
60826         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
60827         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
60828         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
60829         * modules/unistd (Makefile.am): Add dependency to unistd.h.
60830         * modules/wchar (Makefile.am): Add dependency to wchar.h.
60832 2009-12-09  Bruno Haible  <bruno@clisp.org>
60834         fchdir: Optimize away rpl_fstat when possible.
60835         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
60836         REPLACE_OPEN_DIRECTORY.
60837         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
60839 2009-12-09  Bruno Haible  <bruno@clisp.org>
60841         * lib/fchdir.c: Update comment.
60843 2009-12-09  Bruno Haible  <bruno@clisp.org>
60845         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
60847 2009-12-08  Eric Blake  <ebb9@byu.net>
60849         fchdir: avoid memory leak on re-registration.
60850         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
60852 2009-12-08  Jim Meyering  <meyering@redhat.com>
60854         init.sh: avoid Solaris 10 /bin/sh portability problem
60855         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
60856         sourced script:
60857           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
60858           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
60859           bar
60860         tests/init.sh relied on that, accepting a --set-path=DIR argument,
60861         and two tests used that idiom.
60862         * tests/init.sh: Update suggested usage comments.
60863         (path_prepend_): New function, to be used in place
60864         of the --src-path=DIR option.
60865         (setup_): Move PATH-prepending code into path_prepend_.
60866         * tests/test-pread.sh: Adapt to new usage.
60867         * tests/test-xalloc-die.sh: Likewise.
60869 2009-12-08  Simon Josefsson  <simon@josefsson.org>
60871         * doc/gnulib.texi (Glibc pty.h): Add.
60872         * doc/glibc-functions/forkpty.texi: Add.
60873         * doc/glibc-functions/openpty.texi: Add.
60874         Suggested by Bruno Haible.
60876 2009-12-08  Eric Blake  <ebb9@byu.net>
60878         fchdir: fix logic bugs
60879         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
60880         * tests/test-fchdir.c (main): Enhance test.
60881         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
60882         is in use.
60884         dup2: fix logic bugs
60885         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
60886         REPLACE_DUP2 to decide when rpl_dup2 is needed.
60887         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
60888         exists.
60889         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
60891 2009-12-07  Eric Blake  <ebb9@byu.net>
60893         unlink: fix m4 detection
60894         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
60896         unistd-safer: add unit test
60897         * modules/unistd-safer-tests: New file.
60898         * tests/test-dup-safer.c: Likewise.
60899         * tests/test-cloexec.c (setmode): Avoid compiler warning.
60900         * tests/test-dup2.c (setmode): Likewise.
60901         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
60903         cloexec: preserve text vs. binary across dup_cloexec
60904         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
60905         mode.
60906         * modules/dup2-tests (Depends-on): Add binary-io.
60907         * modules/cloexec-tests (Depends-on): Likewise.
60908         * tests/test-dup2.c (setmode, is_mode): New helpers.
60909         (main): Add tests that translation mode is preserved.
60910         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
60911         Reported by Bruno Haible.
60913         mgetgroups: reduce duplicate listings
60914         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
60915         resulting array.
60916         * tests/test-chown.h (test_chown): Simplify client.
60917         * tests/test-lchown.h (test_lchown): Likewise.
60919 2009-12-06  Bruno Haible  <bruno@clisp.org>
60921         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
60922         value.
60924 2009-12-06  Bruno Haible  <bruno@clisp.org>
60926         * lib/progname.c: Include stdio.h, stdlib.h.
60927         (set_program_name): Reject a NULL argument.
60929 2009-12-05  Eric Blake  <ebb9@byu.net>
60931         pipe2-safer: new module
60932         * modules/pipe2-safer: New file.
60933         * lib/unistd-safer.h (pipe2_safer): New prototype.
60934         * lib/unistd--.h (pipe2): New wrapper.
60935         * lib/pipe-safer.c (pipe2_safer): New function.
60936         * modules/pipe (Depends-on): Add pipe2-safer.
60937         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
60939         stdlib-safer: preserve cloexec flag for mkostemp[s]
60940         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
60941         fd_safer_flag.
60943         unistd-safer: allow preservation of cloexec status via flag
60944         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
60945         prototypes.
60946         * lib/dup-safer.c (dup_safer_flag): New function.
60947         * lib/fd-safer.c (fd_safer_flag): Likewise.
60948         * modules/cloexec (configure.ac): Set witness.
60950         test-dup2: enhance test
60951         * modules/dup2-tests (Depends-on): Add cloexec.
60952         * tests/test-dup2.c (main): Enhance test.
60954         cloexec: add dup_cloexec
60955         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
60956         header and comments.
60957         * lib/cloexec.c (set_cloexec_flag): Add comments.
60958         (dup_cloexec): New function, with mingw implementation borrowed
60959         from...
60960         * lib/w32spawn.h (dup_noinherit): ...here.
60961         * modules/execute (Depends-on): Add cloexec.
60962         * modules/pipe (Depends-on): Likewise.
60963         * modules/cloexec (Depends-on): Add dup2.
60964         * modules/cloexec-tests (Files): New file.
60965         * tests/test-cloexec.c: Likewise.
60967         test-xalloc-die: fix test for mingw
60968         * modules/xalloc-die-tests (Files): Add tests/init.sh.
60969         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
60970         directory and .exe suffix off argv[0] output.
60972         test-fseeko: fix test for mingw
60973         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
60974         than undefining fseek, so test will pass on mingw.
60976 2009-12-05  Bruno Haible  <bruno@clisp.org>
60978         * lib/progname.h (set_program_name): Clarify specification.
60979         * lib/progname.c (set_program_name): Likewise.
60980         Reported by Jim Meyering.
60982 2009-12-05  Jim Meyering  <meyering@redhat.com>
60984         maint.mk: backslash-escape parens in default regexp
60985         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
60986         backslash-escape the literal parentheses.
60988         maint.mk: news-date-check: use grep -E
60989         * top/maint.mk (today): Define a Make variable, not a...
60990         (news-date-check): ...shell variable.
60991         (news-date-regexp): Use the Make variable.
60992         Use grep's -E option.  Change the failing diagnostic to mention
60993         the variable, $(news-date-regexp).
60995 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
60997         maintainer-makefile: allow customization of NEWS entry format
60998         * top/maint.mk (news-date-regexp): New overridable variable.
60999         (news-date-check): Use it.
61001 2009-12-04  Eric Blake  <ebb9@byu.net>
61003         mgetgroups: add xgetgroups, and avoid ENOSYS failures
61004         * lib/mgetgroups.h (xgetgroups): New prototype.
61005         * lib/mgetgroups.c (xgetgroups): New wrapper.
61006         (mgetgroups): Handle ENOSYS.
61007         * modules/mgetgroups (Depends-on): Add realloc.
61008         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
61010         mgetgroups: avoid argument promotion issues with -1
61011         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
61012         for invalid gid_t.
61013         * tests/test-chown.h (getegid, test_chown): Likewise.
61014         * tests/test-lchown.h (getegid, test_lchown): Likewise.
61016 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
61018         exclude: Fix header file problems.
61019         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
61021 2009-12-01  Jim Meyering  <meyering@redhat.com>
61023         fts: fts_open: do not let an empty string cause immediate failure
61024         This is required in support of GNU rm, for which the command
61025         "rm A '' B" must process and remove both A and B, in spite of
61026         the empty string argument.
61027         * lib/fts.c (fts_open): Do not let the presence of an empty string
61028         cause fts_open to fail immediately.  Most fts-using tools must be
61029         able to process all arguments, in order, and can be expected to
61030         diagnose such arguments themselves.
61032 2009-11-30  Eric Blake  <ebb9@byu.net>
61034         utimens: fix compilation error
61035         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
61036         Declare variable at right scope.
61038 2009-11-29  Jim Meyering  <meyering@redhat.com>
61040         bootstrap: handle perl-5.11's changed --version output
61041         * build-aux/bootstrap (get_version): Handle perl separately,
61042         since perl-5.11's --version output is different.
61044 2009-11-28  Jim Meyering  <meyering@redhat.com>
61046         userspec: depend on the inttostr module, too
61047         * modules/userspec (Depends-on): Add inttostr.
61049         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
61050         * lib/userspec.c (parse_with_separator): Do not accept a user ID
61051         number of MAXUID when it evaluates to (uid_t) -1.
61052         Likewise for group ID.  Reported by Matt McCutchen in
61053         <http://savannah.gnu.org/bugs/?28113>
61055         userspec: reformat to use spaces, not TABs
61056         * lib/userspec.c: Expand TABs to spaces.
61057         Add Emacs' "indent-tabs-mode: nil" hint.
61059 2009-11-27  Eric Blake  <ebb9@byu.net>
61061         getopt-gnu: flush out another BSD bug
61062         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
61063         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
61064         flush out BSD bug.
61065         * tests/test-getopt.h (test_getopt): End lists with NULL.
61066         * tests/test-getopt_long.h (test_getopt_long): Likewise.
61067         (test_getopt_long_posix): Enhance test.
61068         * modules/getopt-posix-tests (Depends-on): Add stdbool.
61069         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
61070         getopt-gnu.
61071         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
61072         Likewise.
61074 2009-11-27  Simon Josefsson  <simon@josefsson.org>
61076         * modules/idpriv-droptemp-tests (Notice): Fix text.
61078 2009-11-27  Jim Meyering  <meyering@redhat.com>
61080         test-xalloc-die: avoid spurious failure due to libtool argv difference
61081         In a libtool-enabled project, this test would fail due to a difference
61082         in the emitted program name, e.g.,
61083         -test-xalloc-die: memory exhausted
61084         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
61085         Use program to avoid that.
61086         * modules/xalloc-die-tests (Depends-on): Add progname.
61087         * tests/test-xalloc-die.c: Include progname.h".
61088         (program_name): Remove decl.
61089         (main): Call set_program_name.
61090         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
61092 2009-11-26  Richard Jones  <rjones@redhat.com>
61094         w32sock: leave win32 error in place.
61095         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
61097 2009-11-26  Eric Blake  <ebb9@byu.net>
61099         init.sh: suggest to use skip_ and fail_ functions in comments
61100         * tests/init.sh: Add a sentence.
61102 2009-11-25  Bruno Haible  <bruno@clisp.org>
61104         init.sh: add documentation in comments
61105         * tests/init.sh: Add some developer and user documentation.
61107 2009-11-26  Jim Meyering  <meyering@redhat.com>
61109         init.sh: accommodate even those who specify bogus srcdir manually
61110         * tests/init.sh: Normally, srcdir is guaranteed by automake and
61111         configure-time tests to be sanitized, so that there is no need to
61112         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
61113         (with no double quotes) suffices.  However, since tests may be
61114         invoked manually, and since you may explicitly set srcdir to the
61115         name of a directory containing spaces, do quote its uses here.
61116         * tests/test-pread.sh: Likewise.
61117         Suggested by Bruno Haible.
61119         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
61120         * tests/test-pread.sh: Write no data into the pipe, because
61121         test-pread actually reads none.  This avoids a diagnostic,
61122         "bash: echo: write error: Broken pipe", that arises in the unusual
61123         event something is ignoring SIGPIPE, and might be interpreted
61124         as some sort of failure.  Reported by Bruno Haible.
61126 2009-11-25  Jim Meyering  <meyering@redhat.com>
61128         test-pread: cover failure with ESPIPE and EINVAL
61129         * tests/test-pread.c (main): Test for failure, too.
61130         * tests/test-pread.sh: Invoke with stdin on a pipe.
61131         Suggested by Eric Blake.
61133         pread: improvement and fix
61134         * modules/pread (Depends-on): Depend on lseek, for portability to
61135         e.g., mingw.  Suggested by Eric Blake.
61136         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
61138         unistd.in.h: correct declaration of pread
61139         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
61140         Reported by Richard W.M. Jones.
61142         test-pread.sh: distribute the test script
61143         * modules/pread-tests (Files): Include test-pread.sh.
61145         test-pread.sh: clean up
61146         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
61147         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
61148         That is unnecessary, since it's always ".".
61149         Suggestion from Eric Blake.
61151         test-pread.sh: make executable
61152         * tests/test-pread.sh: Set executable bit.
61153         Reported by Eric Blake.
61155         correct typo in test-pread.sh
61156         * tests/test-pread.sh: Add #! line.
61158         test pread
61159         * tests/test-pread.c: New file.
61160         * tests/test-pread.sh: Likewise.
61161         * modules/pread-tests: Likewise.
61163         pread: new module
61164         * modules/pread: New file.
61165         * lib/unistd.in.h (pread): Define/declare.
61166         * lib/pread.c (pread): New file.
61167         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
61168         * modules/unistd (Makefile.am): Substitute witnesses.
61169         * doc/posix-functions/pread.texi (pread): Update.
61170         * MODULES.html.sh: Add pread.
61172 2009-11-25  Jim Meyering  <meyering@redhat.com>
61174         tests/init.sh: new file to be used via most *.sh tests
61175         * tests/init.sh: New file.
61177 2009-11-25  Eric Blake  <ebb9@byu.net>
61179         utimens: work around older Linux failure with symlinks
61180         * lib/utimens.c (lutimensat_works_really): New variable.
61181         (fdutimens, lutimens): Use it to manage kernels that support
61182         nanosecond times on files, but not on symlinks.
61183         Reported by Ondřej Vašík.
61185         utimes: fix configure grammar
61186         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
61188 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
61190         regex: Fix fastmap for multibyte character ranges.
61191         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
61192         characters when a multibyte character range is included.
61194 2009-11-22  Andy Wingo  <wingo@pobox.com>
61196         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
61197         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
61199 2009-11-24  Bruno Haible  <bruno@clisp.org>
61201         doc: Most *_l functions exist in MacOS X 10.5.
61202         * doc/posix-functions/duplocale.texi: Update platforms list.
61203         * doc/posix-functions/freelocale.texi: Likewise.
61204         * doc/posix-functions/newlocale.texi: Likewise.
61205         * doc/posix-functions/uselocale.texi: Likewise.
61206         * doc/posix-functions/isalnum_l.texi: Likewise.
61207         * doc/posix-functions/isalpha_l.texi: Likewise.
61208         * doc/posix-functions/isblank_l.texi: Likewise.
61209         * doc/posix-functions/iscntrl_l.texi: Likewise.
61210         * doc/posix-functions/isdigit_l.texi: Likewise.
61211         * doc/posix-functions/isgraph_l.texi: Likewise.
61212         * doc/posix-functions/islower_l.texi: Likewise.
61213         * doc/posix-functions/isprint_l.texi: Likewise.
61214         * doc/posix-functions/ispunct_l.texi: Likewise.
61215         * doc/posix-functions/isspace_l.texi: Likewise.
61216         * doc/posix-functions/isupper_l.texi: Likewise.
61217         * doc/posix-functions/iswalnum_l.texi: Likewise.
61218         * doc/posix-functions/iswalpha_l.texi: Likewise.
61219         * doc/posix-functions/iswblank_l.texi: Likewise.
61220         * doc/posix-functions/iswcntrl_l.texi: Likewise.
61221         * doc/posix-functions/iswctype_l.texi: Likewise.
61222         * doc/posix-functions/iswdigit_l.texi: Likewise.
61223         * doc/posix-functions/iswgraph_l.texi: Likewise.
61224         * doc/posix-functions/iswlower_l.texi: Likewise.
61225         * doc/posix-functions/iswprint_l.texi: Likewise.
61226         * doc/posix-functions/iswpunct_l.texi: Likewise.
61227         * doc/posix-functions/iswspace_l.texi: Likewise.
61228         * doc/posix-functions/iswupper_l.texi: Likewise.
61229         * doc/posix-functions/iswxdigit_l.texi: Likewise.
61230         * doc/posix-functions/isxdigit_l.texi: Likewise.
61231         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
61232         * doc/posix-functions/strcasecmp_l.texi: Likewise.
61233         * doc/posix-functions/strcoll_l.texi: Likewise.
61234         * doc/posix-functions/strfmon_l.texi: Likewise.
61235         * doc/posix-functions/strftime_l.texi: Likewise.
61236         * doc/posix-functions/strncasecmp_l.texi: Likewise.
61237         * doc/posix-functions/strxfrm_l.texi: Likewise.
61238         * doc/posix-functions/tolower_l.texi: Likewise.
61239         * doc/posix-functions/toupper_l.texi: Likewise.
61240         * doc/posix-functions/towctrans_l.texi: Likewise.
61241         * doc/posix-functions/towlower_l.texi: Likewise.
61242         * doc/posix-functions/towupper_l.texi: Likewise.
61243         * doc/posix-functions/wcscoll_l.texi: Likewise.
61244         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
61245         * doc/posix-functions/wctrans_l.texi: Likewise.
61246         * doc/posix-functions/wctype_l.texi: Likewise.
61247         * doc/glibc-functions/strptime_l.texi: Likewise.
61248         * doc/glibc-functions/strtod_l.texi: Likewise.
61249         * doc/glibc-functions/strtof_l.texi: Likewise.
61250         * doc/glibc-functions/strtol_l.texi: Likewise.
61251         * doc/glibc-functions/strtold_l.texi: Likewise.
61252         * doc/glibc-functions/strtoll_l.texi: Likewise.
61253         * doc/glibc-functions/strtoul_l.texi: Likewise.
61254         * doc/glibc-functions/strtoull_l.texi: Likewise.
61255         * doc/glibc-functions/wcsftime_l.texi: Likewise.
61256         * doc/glibc-functions/wcstod_l.texi: Likewise.
61257         * doc/glibc-functions/wcstof_l.texi: Likewise.
61258         * doc/glibc-functions/wcstol_l.texi: Likewise.
61259         * doc/glibc-functions/wcstold_l.texi: Likewise.
61260         * doc/glibc-functions/wcstoll_l.texi: Likewise.
61261         * doc/glibc-functions/wcstoul_l.texi: Likewise.
61262         * doc/glibc-functions/wcstoull_l.texi: Likewise.
61264 2009-11-24  Bruno Haible  <bruno@clisp.org>
61266         duplocale: Fix logic bug.
61267         * lib/duplocale.c: Don't include <langinfo.h>.
61268         (_NL_LOCALE_NAME): Remove macro.
61269         (rpl_duplocale): Use setlocale instead of nl_langinfo.
61270         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
61272 2009-11-23  Jim Meyering  <meyering@redhat.com>
61274         test-update-copyright: don't hard-code /usr/bin/perl
61275         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
61276         perl to print the current year.  Gilles Espinasse reported that
61277         the replaced use of perl was hard-coded as /usr/bin/perl.
61279 2009-11-23  Bruno Haible  <bruno@clisp.org>
61281         duplocale: Add support for glibc 2.3.x.
61282         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
61284 2009-11-22  Bruno Haible  <bruno@clisp.org>
61286         vasnprintf: Tiny optimization.
61287         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
61288         MacOS X.
61290 2009-11-22  Bruno Haible  <bruno@clisp.org>
61292         Tests for module 'duplocale'.
61293         * modules/duplocale-tests: New file.
61294         * tests/test-duplocale.c: New file.
61296         New module 'duplocale'.
61297         * m4/duplocale.m4: New file.
61298         * lib/locale.in.h (duplocale): New declaration.
61299         * lib/duplocale.c: New file.
61300         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
61301         gl_LOCALE_H_DEFAULTS): New macros.
61302         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
61303         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
61304         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
61305         REPLACE_DUPLOCALE.
61306         * modules/duplocale: New file.
61307         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
61309 2009-11-22  Bruno Haible  <bruno@clisp.org>
61311         * modules/locale-tests (configure.ac): Test for newlocale function.
61312         * tests/test-locale.c: When the system has extended locale functions,
61313         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
61315         locale: Make locale_t available when possible.
61316         * lib/locale.in.h: Include <xlocale.h> when it exists.
61317         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
61318         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
61319         * modules/locale (Depends-on): Add extensions.
61320         (Makefile.am): Also substitute HAVE_XLOCALE_H.
61321         * doc/posix-headers/locale.texi: Document the problem with locale_t.
61323 2009-11-22  Bruno Haible  <bruno@clisp.org>
61325         Add comments.
61326         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
61327         invocation.
61328         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
61329         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
61330         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
61332 2009-11-22  Bruno Haible  <bruno@clisp.org>
61334         error: account for the possibility of freopen (stdout).
61335         * lib/error.c: Include <unistd.h>.
61336         (flush_stdout): New function, extracted from error and error_at_line.
61337         Determine stdout's fd dynamically.
61338         (error, error_at_line): Invoke flush_stdout.
61339         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
61340         * modules/error (Depends-on): Add unistd.
61342 2009-11-22  Bruno Haible  <bruno@clisp.org>
61344         diffseq: Add comment.
61345         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
61347 2009-11-22  Jim Meyering  <meyering@redhat.com>
61349         c-stack: avoid defining an unused static function
61350         * lib/c-stack.c (find_stack_direction): Do not define this function
61351         when it will not be used.
61353         diffseq: avoid spurious gcc warnings
61354         * lib/diffseq.h (IF_LINT2): Define.
61355         (compareseq): Use it to initialize two members of "part".
61356         This avoids two used-uninitialized warnings.
61358 2009-11-21  Jim Meyering  <meyering@redhat.com>
61360         c-stack: avoid "ignoring return value of `write'" warning
61361         * lib/c-stack.c: Include "ignore-value.h".
61362         (die): Explicitly ignore each write return value.
61363         * modules/c-stack (Depends-on): Add ignore-value.
61365 2009-11-21  Bruno Haible  <bruno@clisp.org>
61367         diffseq: reduce scope of variable 'best'.
61368         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
61369         variable, earlier used for two different purposes.
61371 2009-11-21  Jim Meyering  <meyering@redhat.com>
61373         diffseq: remove useless assignment to "best"
61374         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
61375         assignment.  At that point "best" is already guaranteed to be zero.
61377 2009-11-20  Eric Blake  <ebb9@byu.net>
61379         build: mention ftp redirector in release announcements
61380         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
61381         values that used to come from cfg.mk; mention FTP redirect URL.
61382         * build-aux/announce-gen: Mention the mirror list.
61383         Suggested by Karl Berry.
61385         nanosleep: improve port to mingw
61386         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
61387         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
61388         LIB_NANOSLEEP, but only when needed.
61389         * modules/select (Link): Document LIBSOCKET.
61390         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
61391         enough.
61393         nanosleep: work around cygwin bug
61394         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
61395         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
61396         bug.
61397         (getnow): Delete, not needed.
61398         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
61399         LIB_CLOCK_GETTIME.
61400         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
61401         clock-time, gettime.
61402         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
61403         bug.
61404         * modules/nanosleep-tests: New test.
61405         * tests/test-nanosleep.c: New file.
61407         sleep: work around cygwin bug
61408         * lib/sleep.c (rpl_sleep): Work around the bug.
61409         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
61410         (gl_PREREQ_SLEEP): Delete unused macro.
61411         * modules/sleep (Depends-on): Add verify.
61412         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
61413         * modules/unistd (Makefile.am): Substitute witness.
61414         * lib/unistd.in.h (sleep): Update prototype.
61415         * doc/posix-functions/sleep.texi (sleep): Document the bug.
61416         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
61417         * modules/sleep-tests (Depends-on): Check for alarm.
61419 2009-11-20  Jim Meyering  <meyering@redhat.com>
61421         maint.mk: improve sc_prohibit_magic_number_exit
61422         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
61423         so it does not match uses like System.exit(1).
61424         Add comments showing how to correct all offenders.
61426 2009-11-19  Eric Blake  <ebb9@byu.net>
61428         xalloc-die-tests: add missing library
61429         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
61431         test-xvasprintf: silence compiler warnings
61432         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
61433         empty string from gcc.
61435 2009-11-19  Jim Meyering  <meyering@redhat.com>
61437         xfreopen: new module, from coreutils
61438         * modules/xfreopen: New module.
61439         * lib/xfreopen.c: New file.
61440         * lib/xfreopen.h: New file.
61441         * MODULES.html.sh (File stream based Input/Output"): Add it.
61443 2009-11-19  Eric Blake  <ebb9@byu.net>
61445         manywarnings: depend on warnings
61446         * modules/manywarnings (Depends-on): Add warnings.
61448         build: avoid compiler warnings
61449         * lib/select.c (rpl_select): Delete unused variable.
61450         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
61452 2009-11-18  Eric Blake  <ebb9@byu.net>
61454         tests: avoid false negative with --with-packager
61455         * tests/test-version-etc.sh: Discard packager information.
61456         * tests/test-argp-version-etc-1.sh: Likewise.
61457         Reported by Mike Frysinger.
61459         utimens: fix regression on Solaris
61460         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
61461         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
61462         can only change fd timestamps via futimesat.  Instead, use an
61463         additional witness macro to avoid BSD bug.
61464         Reported by Jim Meyering.
61466 2009-11-17  Eric Blake  <ebb9@byu.net>
61468         usleep: use it to simplify tests
61469         * modules/stat-time-tests (Depends-on): Add usleep.
61470         (configure.ac): Drop usleep check.
61471         * modules/chown-tests (Depends-on, configure.ac): Likewise.
61472         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
61473         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
61474         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
61475         * modules/openat-tests (Depends-on, configure.ac): Likewise.
61476         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
61477         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
61478         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
61479         Likewise.
61480         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
61481         * tests/test-lchown.h (nap): Likewise.
61482         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
61483         * tests/test-stat-time.c (nap): Likewise.
61484         * tests/test-utimens-common.h (nap): Update comments.
61486         usleep: new module
61487         * modules/usleep: New file.
61488         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
61489         * lib/usleep.c (usleep): Likewise.
61490         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
61491         * modules/unistd (Makefile.am): Substitute witnesses.
61492         * lib/unistd.in.h (usleep): Add declaration.
61493         * doc/pastposix-functions/usleep.texi (usleep): Document this.
61494         * MODULES.html.sh (Date and time): Likewise.
61495         * modules/usleep-tests (Depends-on): New test.
61496         * tests/test-usleep.c: New file.
61498         chown: work around OpenBSD bug
61499         * lib/chown.c (rpl_chown): Work around the bug.
61500         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
61501         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
61502         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
61503         * modules/chown (Depends-on): Add stdbool.
61504         * modules/lchown (Depends-on): Likewise.
61505         * doc/posix-functions/chown.texi (chown): Document the bug.
61506         * doc/posix-functions/lchown.texi (lchown): Likewise.
61507         * tests/test-lchown.h (test_chown): Relax test.
61509         mkstemp: avoid conflict with C++ keyword template
61510         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
61511         * lib/mkostemp.c (mkostemp): Likewise.
61512         * lib/mkostemps.c (mkostemps): Likewise.
61513         * lib/mkstemp.c (mkstemp): Likewise.
61514         * lib/mkstemps.c (mkstemps): Likewise.
61516         xalloc-die-tests: optimize
61517         * tests/test-xalloc-die.sh: Reduce number of processes.
61519 2009-11-17  Simon Josefsson  <simon@josefsson.org>
61521         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
61522         patch from ludo@gnu.org (Ludovic Courtès).
61524 2009-11-17  Jim Meyering  <meyering@redhat.com>
61526         version-etc: use proper license string
61527         * modules/version-etc (License): Use LGPL, not LGPLv3+.
61528         * modules/version-etc-fsf: Likewise.
61530 2009-11-17  Simon Josefsson  <simon@josefsson.org>
61532         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
61533         printed to stdout.  Deal with EOL differences.
61535 2009-11-17  Eric Blake  <ebb9@byu.net>
61537         unsetenv: work around Solaris bug
61538         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
61539         * lib/unsetenv.c (rpl_unsetenv): Work around it.
61540         Reported by Jim Meyering.
61542         vasnprintf: avoid compiler warnings
61543         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
61544         variables.
61545         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
61547 2009-11-17  Simon Josefsson  <simon@josefsson.org>
61549         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
61550         settings since xalloc-die is no longer the self test,
61551         xalloc-die.sh is.
61553 2009-11-17  Jim Meyering  <meyering@redhat.com>
61555         test-xalloc-die.sh: make the code agree with the commit log
61556         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
61557         at the end, just in case you happen to have a test-xalloc-die
61558         program in some other PATH directory.
61560         test-xalloc-die.sh: fix a portability bug
61561         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
61562         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
61563         Otherwise, argv[0] (as often seen in diagnostics) would be too
61564         system-dependent, sometimes with, and sometimes without the leading "./".
61566         version-etc-fsf: relax license to LGPLv3+
61567         * modules/version-etc-fsf (License): Relax license.
61569 2009-11-16  Eric Blake  <ebb9@byu.net>
61571         xalloc-die-tests: avoid printing null pointer
61572         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
61573         shell script.
61574         * tests/test-xalloc-die.c (program_name): Declare.
61575         * tests/test-xalloc-die.sh (tmpfiles): New file.
61577         setenv, unsetenv: work around various bugs
61578         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
61579         (setenv) [HAVE_SETENV]: Work around bugs.
61580         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
61581         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
61582         for bugs.
61583         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
61584         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
61585         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
61586         * modules/stdlib (Makefile.am): Update substitutions.
61587         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
61588         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
61589         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
61590         * modules/setenv-tests: New test.
61591         * modules/unsetenv-tests: Likewise.
61592         * tests/test-setenv.c: New file.
61593         * tests/test-unsetenv.c: Likewise.
61595 2009-11-16  Jim Meyering  <meyering@redhat.com>
61597         version-etc: relax license to LGPLv3+
61598         * modules/version-etc (License): Relax license.
61600         better AC_REQUIRE expanded-before-required-warning avoidance
61601         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
61602         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
61603         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
61604         which is no longer needed.
61606 2009-11-16  Eric Blake  <ebb9@byu.net>
61608         test-freading: clean up temporary file
61609         * tests/test-freading.c (main): Remove file on success, and use
61610         ASSERT more liberally.
61611         Reported by Jim Meyering.
61613 2009-11-16  Jim Meyering  <meyering@redhat.com>
61615         avoid new AC_REQUIRE expanded-before-required warnings
61616         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
61617         merely using it.
61618         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
61619         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
61621 2009-11-15  Simon Josefsson  <simon@josefsson.org>
61623         * tests/test-xalloc-die.c: New file.
61624         * modules/xalloc-die-tests: New file.
61625         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
61626         XFAIL_TESTS so it can be appended by modules.
61628 2009-11-15  Simon Josefsson  <simon@josefsson.org>
61630         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
61631         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
61633 2009-11-14  Eric Blake  <ebb9@byu.net>
61635         fnmatch: avoid compiler warning
61636         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
61637         to silence compiler warning about mismatch signedness in ?:.
61638         Reported by Robert Millan.
61640         intprops: add double-inclusion guard
61641         * lib/intprops.h: Allow idempotent includes.
61642         Suggested by Bruce Korb.
61644         openat: detect Solaris fchownat bug
61645         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
61646         penalizing glibc chownat when only lchownat is broken.
61647         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
61648         trailing slash bugs.
61649         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
61650         * modules/openat-tests (Files): Include more files.
61651         (Depends-on): Add mgetgroups, sleep, stat-time.
61652         (configure.ac): Add additional checks.
61653         (Makefile.am): Build new test.
61654         * tests/test-fchownat.c: New file.
61656         lchown: detect Solaris and FreeBSD bug
61657         * lib/lchown.c (rpl_lchown): Work around bug.
61658         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
61659         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
61660         * modules/unistd (Makefile.am): Populate it.
61661         * lib/unistd.in.h (lchown): Update declaration.
61662         * doc/posix-functions/lchown.texi (lchown): Document the bug.
61663         * modules/lchown-tests: New file.
61664         * tests/test-lchown.h (test_lchown): Likewise.
61665         * tests/test-lchown.c (main): Likewise.
61667         chown: detect Solaris and FreeBSD bug
61668         * lib/chown.c (rpl_chown): Work around bug.
61669         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
61670         (gl_PREREQ_CHOWN): Delete.
61671         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
61672         * modules/unistd (Makefile.am): Populate it.
61673         * lib/unistd.in.h (chown): Update declaration.
61674         * lib/lchown.c (chown): Update client.
61675         * modules/lchown (Depends-on): Add lstat.
61676         * doc/posix-functions/chown.texi (chown): Document the bug.
61677         * doc/posix-functions/getgroups.texi (getgroups): Document
61678         getgroups pitfall.
61679         * modules/chown-tests: New file.
61680         * tests/test-chown.h (test_chown): Likewise.
61681         * tests/test-chown.c (main): Likewise.
61683 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
61685         gnulib-tool: correctly detect absence of m4 directories
61686         * gnulib-tool: Avoid extra newline on data passed to wc -l.
61688 2009-11-14  Jim Meyering  <meyering@redhat.com>
61690         maint.mk: Prohibit inclusion of "xalloc.h" without use.
61691         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
61693 2009-11-14  John W. Eaton  <jwe@gnu.org>
61695         strftime.h: wrap function declaration in extern "C" block
61696         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
61698 2009-11-13  Eric Blake  <ebb9@byu.net>
61700         getgroups: avoid compiler warning
61701         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
61703         getgroups: work around FreeBSD bug
61704         * lib/getgroups.c (rpl_getgroups): Work around the bug.
61705         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
61706         * doc/posix-functions/getgroups.texi (getgroups): Document it.
61707         * tests/test-getgroups.c (main): Fix buffer overrun.
61709         getgroups: avoid compilation failure
61710         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
61711         * modules/getgroups (Depends-on): Add stdint.
61713 2009-11-13  Jim Meyering  <meyering@redhat.com>
61715         test-getgroups: avoid compilation failure
61716         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
61718 2009-11-13  Eric Blake  <ebb9@byu.net>
61720         mgetgroups: new module, taken from coreutils
61721         * modules/mgetgroups: New file.
61722         * lib/mgetgroups.h: Likewise.
61723         * lib/mgetgroups.c (mgetgroups): Likewise.
61724         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
61725         * MODULES.html.sh (Users and groups): Mention it.
61727         getgroups: don't expose GETGROUPS_T to user
61728         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
61729         an element at a time if GETGROUPS_T is wrong size.
61730         * lib/getugroups.h (getugroups): Change signature.
61731         * lib/unistd.in.h (getgroups): Likewise.
61732         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
61733         signature needs fixing.
61734         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
61735         AC_TYPE_GETGROUPS.
61736         * modules/group-member (Depends-on): Add getgroups.
61737         * lib/group-member.c (group_info, get_group_info): Use gid_t.
61738         (group_member): Rely on getgroups replacement.
61739         * lib/getugroups.c (getugroups): Use gid_t.
61740         * tests/test-getgroups.c (main): Likewise.
61741         * NEWS: Mention the signature change.
61742         * doc/posix-functions/getgroups.texi (getgroups): Mention the
61743         problem with signature.
61744         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
61745         GETGROUPS_T is still useful for setgroups.
61747         getgroups, getugroups: provide stubs for mingw
61748         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
61749         * lib/getugroups.c (getugroups): Likewise.
61750         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
61751         function.  Modernize replacement scheme.
61752         (gl_PREREQ_GETGROUPS): Delete.
61753         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
61754         * modules/getgroups (configure.ac): Declare witness.
61755         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
61756         * modules/unistd (Depends-on): Substitute witness.
61757         * lib/unistd.in.h (getgroups): Declare replacement.
61759         getgroups: avoid calling exit
61760         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
61761         drop xalloc.
61762         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
61763         dependencies.
61764         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
61765         exiting, in the rare case of malloc failure.
61767         getgroups: fix logic error
61768         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
61769         has more than 20 groups.
61770         * modules/getgroups-tests: New test.
61771         * tests/test-getgroups.c: New file.
61773 2009-11-13  Simon Josefsson  <simon@josefsson.org>
61775         * tests/test-base64.c: Improve.
61777 2009-11-13  Simon Josefsson  <simon@josefsson.org>
61779         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
61780         Blake <ebb9@byu.net>.
61782 2009-11-13  Simon Josefsson  <simon@josefsson.org>
61784         * tests/test-xvasprintf.c: Add %s%s related checks.
61786 2009-11-12  Eric Blake  <ebb9@byu.net>
61788         version-etc: match standards.texi style
61789         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
61790         and use <> only for URLs.
61792 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
61794         fts: do not fail on a submount during traversal
61795         * lib/fts.c (fts_build): Read the stat info again after opening
61796         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
61797         Original report at http://bugzilla.redhat.com/501848.
61799 2009-11-12  Jim Meyering  <meyering@redhat.com>
61801         bootstrap: sync from coreutils
61802         * build-aux/bootstrap (bootstrap_epilogue): New function.
61803         Use git_modules_config in one more place.  This make bootstrap's
61804         --gnulib-srcdir option more useful for testing.
61806         bootstrap: generalize autoheader check
61807         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
61808         AC_CONFIG_HEADERS.
61810 2009-11-11  Eric Blake  <ebb9@byu.net>
61812         mkfifoat: use new modules for Solaris and BSD bugs
61813         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
61814         * lib/mkfifoat.c (mknodat): Split...
61815         * lib/mknodat.c (mknodat): ...into new file.
61816         * modules/mkfifoat (Files): Ship new file.
61817         (Depends-on): Add mkfifo, mknod.
61818         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
61819         (Depends-on): Add symlink.
61820         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
61821         redundant with test_mkfifo.h.
61822         (do_mkfifoat, do_mknodat): New helpers.
61824         mknod: new module
61825         * modules/mknod: New file.
61826         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
61827         * lib/mknod.c (mknod): Likewise.
61828         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
61829         defaults.
61830         * modules/sys_stat (Makefile.am): Substitute them.
61831         * lib/sys_stat.in.h (mknod): Declare replacement.
61832         * MODULES.html.sh (Support for systems lacking POSIX:2008):
61833         Document it.
61834         * doc/posix-functions/mknod.texi (mknod): Likewise.
61835         * modules/mknod-tests: New test.
61836         * tests/test-mknod.c: Likewise.
61838         mkfifo: new module
61839         * modules/mkfifo: New file.
61840         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
61841         * lib/mkfifo.c (mkfifo): Likewise.
61842         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
61843         defaults.
61844         * modules/sys_stat (Makefile.am): Substitute them.
61845         * lib/sys_stat.in.h (mkfifo): Declare replacement.
61846         * MODULES.html.sh (Support for systems lacking POSIX:2008):
61847         Document it.
61848         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
61849         * modules/mkfifo-tests: New test.
61850         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
61851         from test-mkfifoat.c.
61852         * tests/test-mkfifo.c: New file.
61854         readlink: detect FreeBSD bug
61855         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
61856         slash on symlink.
61857         * doc/posix-functions/readlink.texi (readlink): Document the bug.
61858         * tests/test-readlink.h (test_readlink): Enhance test.
61860         symlink: detect FreeBSD bug
61861         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
61862         slash on symlink.
61863         * doc/posix-functions/symlink.texi (symlink): Document the bug.
61864         * tests/test-symlink.h (test_symlink): Enhance test.
61866 2009-11-10  Eric Blake  <ebb9@byu.net>
61868         link: detect FreeBSD bug
61869         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
61870         symlink.
61871         * doc/posix-functions/link.texi (link): Document the bug.
61872         * tests/test-link.h (test_link): Enhance test.
61873         * tests/test-linkat.c (main): Update caller.
61875         unlink, remove: detect FreeBSD bug
61876         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
61877         slash on symlink.
61878         * doc/posix-functions/unlink.texi (unlink): Document the bug.
61879         * doc/posix-functions/remove.texi (remove): Likewise.
61880         * tests/test-unlink.h (test_unlink): Enhance test.
61881         * tests/test-remove.c (main): Likewise.
61883 2009-11-09  Eric Blake  <ebb9@byu.net>
61885         rename: detect FreeBSD bug
61886         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
61887         slash on symlink.
61888         * modules/renameat-tests (Depends-on): Add filenamecat.
61889         * tests/test-rename.h (test_rename): Allow one more errno.
61890         * tests/test-renameat.c (main): Likewise.
61891         * doc/posix-functions/rename.texi (rename): Document the bug.
61893         open: detect FreeBSD bug
61894         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
61895         symlink.
61896         * doc/posix-functions/open.texi (open): Document the bug.
61897         * doc/posix-functions/utimes.texi (utimes): Likewise.
61898         * tests/test-open.h (test_open): Add parameters, and test symlink
61899         handling.
61900         * tests/test-open.c (main): Adjust caller.
61901         * tests/test-fcntl-safer.c (main): Likewise.
61902         * modules/open-tests (Depends-on): Add stdbool, symlink.
61903         * modules/fcntl-safer-tests (Depends-on): Likewise.
61904         * tests/test-openat.c (main): Add test-open tests.
61906         stat: detect FreeBSD bug
61907         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
61908         symlink.
61909         * doc/posix-functions/stat.texi (stat): Document the bug.
61910         * tests/test-stat.h (test_stat_func): Add argument.
61911         * tests/test-stat.c (main): Adjust caller.
61912         * tests/test-fstatat.c (main): Likewise.
61913         * modules/stat-tests (Depends-on): Add stdbool, symlink.
61914         Reported by Jim Meyering.
61916 2009-11-09  James Youngman  <jay@gnu.org>
61918         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
61919         * lib/strftime.c: Correct placement of #include "ignore-value.h".
61921 2009-11-08  Jim Meyering  <meyering@redhat.com>
61923         utimens: remove invalid futimesat call
61924         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
61925         It used the file descriptor of the target file as the DIR_FD
61926         parameter and NULL as the file name.  That caused failure with
61927         errno == EFAULT on FreeBSD-8.0-rc2
61929 2009-11-07  Eric Blake  <ebb9@byu.net>
61931         fflush, freadseek: use fseeko, not fseek
61932         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
61933         (clear_ungetc_buffer): Avoid potential problems on large files.
61934         * lib/freadseek.c (freadseek): Likewise.
61935         * modules/freadseek (Depends-on): Add fseeko.
61936         * modules/fseek (configure.ac): Set a witness.
61937         * tests/test-fflush.c (main): Use fseeko.
61938         * tests/test-fpurge.c (fseek): Disable link warning.
61939         * tests/test-freadable.c (fseek): Likewise.
61940         * tests/test-freading.c (fseek): Likewise.
61941         * tests/test-fseeko.c (fseek): Likewise.
61942         * tests/test-ftell.c (fseek): Likewise.
61943         * tests/test-ftello.c (fseek): Likewise.
61944         * tests/test-fwritable.c (fseek): Likewise.
61945         * tests/test-fwriting.c (fseek): Likewise.
61947 2009-11-06  Simon Josefsson  <simon@josefsson.org>
61949         * modules/memchr (Depends-on): Drop getpagesize dependency.
61951 2009-11-06  Simon Josefsson  <simon@josefsson.org>
61953         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
61954         Reported by Ludovic Courtès.
61955         * build-aux/pmccabe2html: Improve example usage.
61956         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
61958 2009-11-06  Jim Meyering  <meyering@redhat.com>
61960         do-release-commit-and-tag: New module.
61961         Automate the release-commit and tag process.
61962         * build-aux/do-release-commit-and-tag: New script, from coreutils.
61963         * modules/do-release-commit-and-tag: New file.
61964         * MODULES.html.sh (Support for maintaining and releasing): Add it.
61966 2009-11-06  Simon Josefsson  <simon@josefsson.org>
61968         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
61969         because test-select.c uses inet_pton.
61971 2009-11-06  Simon Josefsson  <simon@josefsson.org>
61973         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
61974         GETADDRINFO_LIB.  Bump serial number.
61975         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
61976         Suggested by Eric Blake <ebb9@byu.net>.
61978 2009-11-05  Eric Blake  <ebb9@byu.net>
61980         strtod: detect darwin bug
61981         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
61982         Reported by Leo Davis.
61984         freopen-safer: new module
61985         * modules/freopen-safer: New module.
61986         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
61987         * lib/freopen-safer.c (freopen_safer): New file.
61988         * lib/stdio-safer.h (freopen_safer): New declaration.
61989         * lib/stdio--.h (freopen): New override.
61990         * MODULES.html.sh (File stream based Input/Output): Mention it.
61991         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
61992         freopen-safer module.
61993         * doc/posix-functions/stderr.texi (stderr): Likewise.
61994         * doc/posix-functions/stdin.texi (stdin): Likewise.
61995         * doc/posix-functions/stdout.texi (stdout): Likewise.
61996         * modules/freopen-safer-tests: New test.
61997         * tests/test-reopen-safer.c: New file.
61999 2009-11-05  Jim Meyering  <meyering@redhat.com>
62001         maint.mk: Prohibit inclusion of "close-stream.h" without use.
62002         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
62004 2009-11-05  Simon Josefsson  <simon@josefsson.org>
62006         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
62008 2009-11-05  Simon Josefsson  <simon@josefsson.org>
62010         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
62012 2009-11-05  Simon Josefsson  <simon@josefsson.org>
62014         Fix link error.
62015         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
62016         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
62018 2009-11-05  Simon Josefsson  <simon@josefsson.org>
62020         * tests/test-func.c: Also test value of __func__.
62022 2009-11-05  Simon Josefsson  <simon@josefsson.org>
62024         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
62025         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
62027 2009-11-05  Bruno Haible  <bruno@clisp.org>
62029         Fix link error.
62030         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
62031         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
62032         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
62034 2009-11-05  Bruno Haible  <bruno@clisp.org>
62036         Tests for module 'inet_pton'.
62037         * modules/inet_pton-tests: New file.
62038         * tests/test-inet_pton.c: New file.
62040 2009-11-05  Bruno Haible  <bruno@clisp.org>
62042         Tests for module 'inet_ntop'.
62043         * modules/inet_ntop-tests: New file.
62044         * tests/test-inet_ntop.c: New file.
62046 2009-11-04  Eric Blake  <ebb9@byu.net>
62048         stdlib-safer: wrap all mkstemp variants
62049         * modules/mkostemp (configure.ac): Set witness.
62050         * modules/mkostemps (configure.ac): Likewise.
62051         * modules/mkstemps (configure.ac): Likewise.
62052         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
62053         (mkstemps_safer): Wrap more functions.
62054         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
62055         wrapping.
62056         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
62057         (mkstemps_safer): Implement the wrappers.
62059         mkstemps, mkostemps: new modules
62060         * modules/mkostemps: New module.
62061         * modules/mkstemps: Likewise.
62062         * lib/mkostemps.c (mkostemps): New file.
62063         * lib/mkstemps.c (mkstemps): Likewise.
62064         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
62065         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
62066         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
62067         * modules/stdlib (Makefile.am): Substitute them.
62068         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
62069         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
62070         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
62071         * doc/gnulib.texi (Glibc stdlib.h): Include them.
62072         * MODULES.html.sh (File system functions): Mention them.
62074         tempname: resync from glibc
62075         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
62076         same values for __GT_FILE as glibc.  Abort even when assertions
62077         are disabled.
62078         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
62079         match its value otherwise.  Allow idempotent inclusion.
62080         * lib/mkdtemp.c (mkdtemp): Adjust caller.
62081         * lib/mkostemp.c (mkostemp): Likewise.
62082         * lib/mkstemp.c (mkstemp): Likewise.
62083         * lib/tmpfile.c (tmpfile): Likewise.
62084         * NEWS: Document this.
62086         utimens: fix use of futimens on older Linux
62087         * lib/utimens.c (fdutimens): Use updated, rather than original,
62088         timespec to avoid bug in older Linux kernel.
62089         Reported by Simon Josefsson.
62091 2009-11-04  Bruno Haible  <bruno@clisp.org>
62093         Make num_processors more flexible and consistent.
62094         * lib/nproc.h (enum nproc_query): New type.
62095         (num_processors): Add a 'query' argument.
62096         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
62097         (num_processors): Add a 'query' argument. Test the value of the
62098         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
62099         mingw, count the number of CPUs available for the current process.
62100         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
62101         Check for sched_getaffinity and sched_getaffinity_np.
62102         * modules/nproc (Depends-on): Add c-ctype, extensions.
62103         * NEWS: Mention the change.
62105 2009-11-03  Bruno Haible  <bruno@clisp.org>
62107         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
62109 2009-11-03  Jim Meyering  <meyering@redhat.com>
62111         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
62112         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
62113         if it is defined.
62115 2009-11-02  Eric Blake  <ebb9@byu.net>
62117         mktime, timegm: share common declaration
62118         * lib/mktime-internal.h: New file.
62119         * lib/mktime.c: Use it rather than open-coding a declaration.
62120         * lib/timegm.c: Likewise.
62121         * modules/mktime (Files): Ship it.
62122         * modules/timegm (Files): Likewise.
62123         Suggested by Bruno Haible.
62125         test-update-copyright: update test to match script changes
62126         * tests/test-update-copyright.sh: Avoid hard-coding perl
62127         location.  Don't update *.bak created by earlier runs.
62129 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
62130             Simon Josefsson  <simon@josefsson.org>
62131             Bruno Haible  <bruno@clisp.org>
62133         Fix link error on Solaris 8.
62134         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
62135         also in libnsl. Define also INET_PTON_LIB.
62136         * modules/inet_pton (Link): New section.
62138 2009-11-02  Simon Josefsson  <simon@josefsson.org>
62139             Bruno Haible  <bruno@clisp.org>
62141         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
62142         * modules/inet_ntop (Link): New section.
62143         Reported by Boyan Kasarov <bkasarov@gmail.com>.
62145 2009-11-02  Eric Blake  <ebb9@byu.net>
62147         maint: avoid compiler warnings in m4 macros
62148         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
62149         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
62151 2009-11-02  Simon Josefsson  <simon@josefsson.org>
62153         * m4/pmccabe2html.m4: Remove file.
62154         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
62155         function.  Change maintainer.
62156         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
62157         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
62158         Courtès).
62160 2009-10-31  Eric Blake  <ebb9@byu.net>
62162         fseeko: fix m4 regression
62163         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
62164         regression from 2009-10-27.
62165         Reported by Ralf Wildenhues.
62167 2009-10-31  Jim Meyering  <meyering@redhat.com>
62169         inttostr: aesthetics and improved (compile-time) safety
62170         Define inttype_is_signed rather than inttype_is_unsigned,
62171         since the sole use is via "#if inttype_is_signed".
62172         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
62173         inttype_is_unsigned.
62174         * lib/offtostr.c (inttype_is_signed): Likewise.
62175         * lib/uinttostr.c (inttype_is_signed): Likewise.
62176         * lib/umaxtostr.c (inttype_is_signed): Likewise.
62177         * lib/inttostr.c (inttostr): Use verify to cross-check the
62178         inttype_is_signed value and the signedness of the actual type.
62179         * modules/inttostr (Depends-on): Add verify.
62181 2009-10-30  Eric Blake  <ebb9@byu.net>
62183         build: avoid compiler warnings
62184         * lib/fchmodat.c (lchmod): Mark unused variables.
62185         * lib/getopt.c (_getopt_initialize): Likewise.
62186         * lib/mktime.c (__mktime_internal): Provide prototype.
62187         * lib/inttostr.c (inttostr): Avoid compiler warning even with
62188         older gcc that do not understand #pragma GCC diagnostic.
62189         * lib/uinttostr.c (inttype_is_unsigned): Define.
62190         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
62192 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
62194         stat: fix compilation on AIX
62195         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
62196         only see struct stat64.
62198 2009-10-30  Eric Blake  <ebb9@byu.net>
62200         exclude: make more robust
62201         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
62202         rather than masking a coding bug.
62203         Suggested by Bruno Haible.
62205 2009-10-30  Jim Meyering  <meyering@redhat.com>
62207         perl scripts: remove #!/usr/bin/perl in favor of more portable...
62208         Rather than putting #!/usr/bin/perl on the first line,
62209         start with a variant of what's recommended by "man perlrun" that
62210         invokes the first "perl" program from your shell's search path.
62211         * build-aux/gitlog-to-changelog: Replace #!... as above.
62212         Add a "Local Variables" perl mode setting.
62213         Prompted by a patch from Ludovic Courtès.
62214         Improved by Eric Blake.
62215         * build-aux/useless-if-before-free: Likewise.
62216         * build-aux/announce-gen: Likewise.
62217         * build-aux/update-copyright: Likewise.
62219 2009-10-29  Eric Blake  <ebb9@byu.net>
62221         filenamecat-lgpl: adjust clients
62222         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
62223         filenamecat.
62224         * modules/renameat (Depends-on): Likewise.
62226         filenamecat: split into filenamecat-lgpl
62227         * modules/filenamecat-lgpl: New module.
62228         * modules/filenamecat (Files): Move library-safe files into
62229         filenamecat-lgpl.
62230         (Depends-on): Add filenamecat-lgpl.
62231         (configure.ac): Declare witness.
62232         * lib/filenamecat.h (file_name_concat): Only declare when using
62233         GPL module.
62234         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
62235         Move...
62236         * lib/filenamecat-lgpl.c: ...into new file.
62237         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
62238         (gl_FILE_NAME_CONCAT): Use it.
62239         * MODULES.html.sh (File system functions): Mention new module.
62241         argp: avoid memory leak
62242         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
62243         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
62244         base_name, since the latter malloc()s and can call exit().
62245         Leak introduced 2006-07-03.
62247         dirname-lgpl: adjust clients that don't need full dirname
62248         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
62249         * modules/filenamecat (Depends-on): Likewise.
62250         * modules/linkat (Depends-on): Likewise.
62251         * modules/mkancesdirs (Depends-on): Likewise.
62252         * modules/mkdir (Depends-on): Likewise.
62253         * modules/openat (Depends-on): Likewise.
62254         * modules/savewd (Depends-on): Likewise.
62255         * modules/rename (Depends-on): Likewise.
62256         (License): Relax license.
62257         * modules/mkdir-tests (Depends-on): Drop progname.
62258         (Makefile.am): Delete unneeded LDADD.
62259         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
62261         dirname: split into dirname-lgpl
62262         * modules/dirname-lgpl: New module.
62263         * modules/dirname (Files): Move library-safe files into
62264         dirname-lgpl.
62265         (Depends-on): Add dirname-lgpl.
62266         (configure.ac): Declare witness.
62267         * modules/double-slash-root (License): Relax license.
62268         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
62269         module.
62270         * lib/dirname.c (dir_len, mdir_name): Move...
62271         * lib/dirname-lgpl.c: ...into new file.
62272         * lib/basename.c (last_component, base_len): Move...
62273         * lib/basename-lgpl.c: ...into new file.
62274         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
62275         (gl_DIRNAME): Use it.
62276         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
62277         Mention new module.
62278         * modules/dirname-tests (Depends-on): Add progname.
62279         * tests/test-dirname.c (program_name): Delete.
62281         mkdir: make safe for libraries
62282         * modules/mkdir (Depends-on): Drop xalloc.
62283         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
62284         exit.
62286         tests: avoid some compiler warnings
62287         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
62288         literals.
62289         * tests/test-memchr.c (main): Avoid type mismatch.
62290         * tests/test-arpa_inet.c (main): Avoid unused parameters.
62291         * tests/test-base64.c (main): Likewise.
62292         * tests/test-getdelim.c (main): Likewise.
62293         * tests/test-gethostname.c (main): Likewise.
62294         * tests/test-getline.c (main): Likewise.
62295         * tests/test-netinet_in.c (main): Likewise.
62296         * tests/test-select.c (open_server_socket, main): Likewise.
62297         * tests/test-select-stdin.c (main): Likewise.
62298         * tests/test-sockets.c (main): Likewise.
62299         * tests/test-strsignal.c (main): Likewise.
62300         * tests/test-sys_select.c (main): Likewise.
62301         * tests/test-sys_socket.c (main): Likewise.
62302         * tests/test-u64.c (main): Likewise.
62303         * tests/test-xfprintf-posix.c (main): Likewise.
62304         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
62306         sockets: avoid compiler warning
62307         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
62309         maint: detect usage(1) and other suspicious exits
62310         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
62312 2009-10-29  Jim Meyering  <meyering@redhat.com>
62314         timespec: long-to-int truncation could make timespec_cmp malfunction
62315         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
62316         a multiple of 2^32 nanoseconds as no difference.
62318 2009-10-28  Jim Meyering  <meyering@redhat.com>
62320         fprintftime: wrap macro code argument in "do {...} while(0)"
62321         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
62322         cpy macro must be a statement that can be followed by a semicolon.
62323         Now that the else clause contains a comment and is hence longer
62324         than one line, I require curly braces.  That in turn requires
62325         that we wrap this code block in the standard do...while(0).
62327         fprintftime: remove stray semicolon from previous change
62328         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
62330         fprintftime: avoid a warning about ignored fwrite return value
62331         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
62332         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
62333         that is unsafe.
62334         * modules/fprintftime (Depends-on): Add ignore-value.
62336         exclude: avoid an unwarranted warning
62337         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
62339 2009-10-27  Eric Blake  <ebb9@byu.net>
62341         fseek: avoid compilation failure when fflush is replaced
62342         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
62343         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
62344         module is in use.
62345         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
62346         module is not in use; since REPLACE_FSEEK worked otherwise.
62347         (GNULIB_FTELLO): Likewise for ftell.
62348         Reported by Ian Beckwith and others.
62350 2009-10-27  Bruno Haible  <bruno@clisp.org>
62352         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
62353         Reported by Jim Meyering.
62355 2009-10-27  Jim Meyering  <jim@meyering.net>
62356             Bruno Haible  <bruno@clisp.org>
62358         Avoid warning despite dropping the return value of fwrite.
62359         * lib/unicodeio.c: Include ignore-value.h.
62360         (fwrite_success_callback): Explicitly ignore fwrite's return value.
62361         * modules/unicodeio (Depends-on): Add ignore-value.
62363 2009-10-26  Eric Blake  <ebb9@byu.net>
62365         areadlinkat: fix fallback path
62366         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
62367         pointer and zero.
62369 2009-10-22  Pádraig Brady  <P@draigBrady.com>
62371         Use a better IO block size for modern systems
62372         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
62373         * lib/md2.c: Likewise.
62374         * lib/md4.c: Likewise.
62375         * lib/md5.c: Likewise.
62376         * lib/sha1.c: Likewise.
62377         * lib/sha256.c: Likewise.
62378         * lib/sha512.c: Likewise.
62380 2009-10-22  Eric Blake  <ebb9@byu.net>
62382         tests: avoid several compiler warnings
62383         * tests/test-getcwd.c (main): Avoid buffer underflow.
62384         * tests/test-getdate.c (main): String literals are not safe with
62385         putenv, so use setenv.  Declare unused argument.
62386         * modules/getdate-tests (Depends-on): Add setenv.
62387         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
62388         problems with string literals in char *.
62389         * tests/test-hash.c (main): Avoid shadowing declaration.
62390         (insert_new): Treat string literals as char const *.
62391         * tests/test-getopt.h (test_getopt): Likewise.
62392         (getopt_loop): Alter types to minimize casting elsewhere.
62393         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
62394         (test_getopt_long_posix): Likewise.
62395         (do_getopt_long): Add wrapper to minimize casting.
62396         * tests/test-atexit.c (clear_temp_file): Use void.
62397         * tests/test-areadlink-with-size.c (main): Declare unused
62398         arguments.
62399         * tests/test-areadlink.c (main): Likewise.
62400         * tests/test-areadlinkat-with-size.c (main): Likewise.
62401         * tests/test-areadlinkat.c (main): Likewise.
62402         * tests/test-canonicalize-lgpl.c (main): Likewise.
62403         * tests/test-canonicalize.c (main): Likewise.
62404         * tests/test-dirent-safer.c (main): Likewise.
62405         * tests/test-dirname.c (main): Likewise.
62406         * tests/test-dup2.c (main): Likewise.
62407         * tests/test-fchdir.c (main): Likewise.
62408         * tests/test-fcntl-h.c (main): Likewise.
62409         * tests/test-fcntl-safer.c (main): Likewise.
62410         * tests/test-fdopendir.c (main): Likewise.
62411         * tests/test-fdutimensat.c (main): Likewise.
62412         * tests/test-fflush.c (main): Likewise.
62413         * tests/test-filenamecat.c (main): Likewise.
62414         * tests/test-filevercmp.c (main): Likewise.
62415         * tests/test-fopen-safer.c (main): Likewise.
62416         * tests/test-fopen.c (main): Likewise.
62417         * tests/test-fpending.c (main): Likewise.
62418         * tests/test-fpurge.c (main): Likewise.
62419         * tests/test-freading.c (main): Likewise.
62420         * tests/test-fstatat.c (main): Likewise.
62421         * tests/test-fsync.c (main): Likewise.
62422         * tests/test-futimens.c (main): Likewise.
62423         * tests/test-getndelim2.c (main): Likewise.
62424         * tests/test-gettimeofday.c (main): Likewise.
62425         * tests/test-getopt.c (main): Likewise.
62426         * tests/test-i-ring.c (main): Likewise.
62427         * tests/test-inttypes.c (main): Likewise.
62428         * tests/test-link.c (main): Likewise.
62429         * tests/test-lstat.c (main): Likewise.
62430         * tests/test-math.c (main): Likewise.
62431         * tests/test-md5.c (main): Likewise.
62432         * tests/test-memchr2.c (main): Likewise.
62433         * tests/test-memrchr.c (main): Likewise.
62434         * tests/test-mkdir.c (main): Likewise.
62435         * tests/test-mkdirat.c (main): Likewise.
62436         * tests/test-mkfifoat.c (main): Likewise.
62437         * tests/test-open.c (main): Likewise.
62438         * tests/test-openat-safer.c (main): Likewise.
62439         * tests/test-openat.c (main): Likewise.
62440         * tests/test-quotearg.c (main): Likewise.
62441         * tests/test-rawmemchr.c (main): Likewise.
62442         * tests/test-readlink.c (main): Likewise.
62443         * tests/test-remove.c (main): Likewise.
62444         * tests/test-rename.c (main): Likewise.
62445         * tests/test-renameat.c (main): Likewise.
62446         * tests/test-rmdir.c (main): Likewise.
62447         * tests/test-sha1.c (main): Likewise.
62448         * tests/test-signal.c (main): Likewise.
62449         * tests/test-sigaction.c (main): Likewise.
62450         * tests/test-stat.c (main): Likewise.
62451         * tests/test-stat-time.c (main): Likewise.
62452         * tests/test-stddef.c (main): Likewise.
62453         * tests/test-stdint.c (main): Likewise.
62454         * tests/test-stdio.c (main): Likewise.
62455         * tests/test-stdlib.c (main): Likewise.
62456         * tests/test-strchrnul.c (main): Likewise.
62457         * tests/test-strerror.c (main): Likewise.
62458         * tests/test-string.c (main): Likewise.
62459         * tests/test-strtod.c (main): Likewise.
62460         * tests/test-strverscmp.c (main): Likewise.
62461         * tests/test-symlink.c (main): Likewise.
62462         * tests/test-symlinkat.c (main): Likewise.
62463         * tests/test-sys_stat.c (main): Likewise.
62464         * tests/test-sys_time.c (main): Likewise.
62465         * tests/test-time.c (main): Likewise.
62466         * tests/test-unistd.c (main): Likewise.
62467         * tests/test-unlink.c (main): Likewise.
62468         * tests/test-unlinkat.c (main): Likewise.
62469         * tests/test-utimens.c (main): Likewise.
62470         * tests/test-utimensat.c (main): Likewise.
62471         * tests/test-version-etc.c (main): Likewise.
62472         * tests/test-wchar.c (main): Likewise.
62473         * tests/test-wctype.c (main): Likewise.
62474         * tests/test-xprintf-posix.c (main): Likewise.
62475         * tests/test-posixtm.c (main): Likewise.
62476         (STREQ): Delete unused macro.
62477         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
62478         shadowed variables.
62479         * tests/test-memchr.c (main): Likewise.
62481 2009-10-21  Eric Blake  <ebb9@byu.net>
62483         areadlinkat: avoid failure on older glibc
62484         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
62485         rather than mis-comparing 0 against FUNC_RESULT of char*.
62487 2009-10-21  Bruno Haible  <bruno@clisp.org>
62489         * modules/stpncpy (License): Relicense under LGPLv2+.
62490         Reported by David Lutterkort <lutter@redhat.com>.
62492 2009-10-20  Eric Blake  <ebb9@byu.net>
62494         utimensat: work around Solaris 9 bug
62495         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
62496         has trailing slash bugs.
62497         * tests/test-lutimens.h (test_lutimens): Enhance test.
62498         * tests/test-utimens.h (test_utimens): Likewise.
62499         * doc/posix-functions/utime.texi (utime): Enhance documentation.
62500         * doc/posix-functions/utimes.texi (utimes): Likewise.
62501         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
62502         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
62503         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
62504         * doc/posix-functions/futimens.texi (futimens): Likewise.
62506         fdutimensat: new module
62507         * modules/fdutimensat: New file.
62508         * lib/fdutimensat.c (fdutimensat): Likewise.
62509         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
62510         * MODULES.html.sh (File system functions): Mention module.
62511         * modules/fdutimensat-tests: New test.
62512         * tests/test-fdutimensat.c: Likewise.
62514         doc: regenerate INSTALL
62515         * doc/INSTALL: Reflect recent autoconf update.
62516         * doc/INSTALL.ISO: Likewise.
62517         * doc/INSTALL.UTF-8: Likewise.
62519 2009-10-20  Pádraig Brady  <P@draigBrady.com>
62521         acl: warn if ACL support is not detected
62522         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
62524 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
62526         * lib/nproc.h: Add extern "C" block for C++.
62528 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
62529             Bruno Haible  <bruno@clisp.org>
62531         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
62532         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
62533         * doc/posix-functions/isalpha.texi: Likewise.
62534         * doc/posix-functions/isblank.texi: Likewise.
62535         * doc/posix-functions/iscntrl.texi: Likewise.
62536         * doc/posix-functions/isdigit.texi: Likewise.
62537         * doc/posix-functions/isgraph.texi: Likewise.
62538         * doc/posix-functions/islower.texi: Likewise.
62539         * doc/posix-functions/isprint.texi: Likewise.
62540         * doc/posix-functions/ispunct.texi: Likewise.
62541         * doc/posix-functions/isspace.texi: Likewise.
62542         * doc/posix-functions/isupper.texi: Likewise.
62543         * doc/posix-functions/isxdigit.texi: Likewise.
62545 2009-10-18  Bruno Haible  <bruno@clisp.org>
62547         Tests for module 'isblank'.
62548         * modules/isblank-tests: New file.
62549         * tests/test-isblank.c: New file.
62551         New module 'isblank'.
62552         * lib/isblank.c: New file.
62553         * m4/isblank.m4: New file.
62554         * modules/isblank: New file.
62555         * doc/posix-functions/isblank.texi: Mention the new module.
62557 2009-10-18  Bruno Haible  <bruno@clisp.org>
62559         New module 'ctype'.
62560         * lib/ctype.in.h: New file.
62561         * m4/ctype.m4: New file.
62562         * modules/ctype: New file.
62563         * doc/posix-headers/ctype.texi: Mention the new module.
62565 2009-10-18  Jim Meyering  <meyering@redhat.com>
62567         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
62568         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
62569         right after its initialization, rather than farther down.
62570         Keeping these in close proximity makes it easier to ensure
62571         that each such variable is initialized.  E.g.,
62573             LIB_CLOCK_GETTIME=
62574             AC_SUBST([LIB_CLOCK_GETTIME])
62576         This change also increments these serial numbers.
62577         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
62578         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
62579         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
62581 2009-10-18  Bruno Haible  <bruno@clisp.org>
62583         Don't let environment variables perturb build.
62584         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
62585         (gl_PREREQ_GETHRXTIME): ... not here.
62587 2009-10-18  Bruno Haible  <bruno@clisp.org>
62589         Avoid symlink attack in localcharset module.
62590         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
62591         (O_NOFOLLOW): Define fallback.
62592         (get_charset_aliases): Don't open the file if it is a symbolic link.
62593         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
62594         gl_FCNTL_H.
62595         (gl_FCNTL_H): Require it.
62596         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
62597         * modules/localcharset (Files): Add m4/fcntl_h.m4.
62598         Reported by Fergal Glynn <fglynn@veracode.com>.
62600 2009-10-18  Bruno Haible  <bruno@clisp.org>
62602         Implement nproc for mingw.
62603         * lib/nproc.c: Include <windows.h>
62604         (num_processors): On native Windows platforms, try GetSystemInfo.
62606 2009-10-18  Bruno Haible  <bruno@clisp.org>
62608         Implement nproc for IRIX.
62609         * lib/nproc.c: Include <sys/sysmp.h>.
62610         (num_processors): On IRIX systems, try sysmp.
62611         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
62613 2009-10-18  Bruno Haible  <bruno@clisp.org>
62615         Implement nproc for HP-UX.
62616         * lib/nproc.c: Include <sys/pstat.h>
62617         (num_processors): On HP-UX systems, try pstat_getdynamic.
62618         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
62619         pstat_getdynamic.
62621 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
62622             Bruno Haible  <bruno@clisp.org>
62624         Implement nproc for NetBSD, OpenBSD.
62625         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
62626         (ARRAY_SIZE): New macro.
62627         (num_processors): On BSD systems, try sysctl of HW_NCPU.
62628         * m4/nproc.m4: New file.
62629         * modules/nproc (Files): Add m4/nproc.m4.
62630         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
62631         (Makefile.am): Instead, augment lib_SOURCES.
62633 2009-10-18  Bruno Haible  <bruno@clisp.org>
62635         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
62636         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
62637         sys/param.h.
62639 2009-10-16  Eric Blake  <ebb9@byu.net>
62641         utimensat: new module
62642         * modules/utimensat: New file.
62643         * lib/utimensat.c (utimensat): Likewise.
62644         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
62645         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
62646         so we can work around Linux bugs.
62647         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
62648         * modules/sys_stat (Makefile.am): Substitute them.
62649         * lib/sys_stat.in.h (utimensat): Declare it.
62650         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
62651         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
62652         * modules/utimensat-tests: New test.
62653         * tests/test-utimensat.c: Likewise.
62655         utimens: let lutimens work on non-symlinks
62656         * lib/utimens.c (lutimens): Fall back to utimens rather than
62657         failing with ENOSYS, when file is not a symlink.
62658         (utimens): Reduce redirection.
62659         * tests/test-lutimens.h (test_lutimens): Update test to cover
62660         non-symlinks.
62661         * tests/test-utimens.h (test_utimens): Update test to cover
62662         symlinks.
62663         * tests/test-utimens.c (main): Update caller.
62665         utimens: cache whether utimensat syscall works
62666         * lib/utimens.c (utimensat_works_really): New cache variable.
62667         (fdutimens, lutimens): Use it to avoid failing syscall.
62669         test-stat-time, test-utimens: improve portability
62670         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
62671         ext4 on alpha, and for cygwin.
62672         * tests/test-utimens-common.h: New file.
62673         (nap): Factor delays into single function.
62674         * tests/test-lutimens.h (test_lutimens): Use new header.
62675         * tests/test-futimens.h (test_futimens): Likewise.
62676         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
62677         timestamps to occur from same machine, as was done previously for
62678         test_utimens.
62679         * modules/utimens-tests (Files): Ship new file.
62680         * modules/futimens-tests (Files): Likewise.
62681         Reported in part by Jim Meyering.
62683         sys_stat: sort replacement declarations
62684         * lib/sys_stat.in.h: Sort declarations.
62685         * lib/futimens.c (futimens): Fix typo.
62687 2009-10-15  Jim Meyering  <meyering@redhat.com>
62689         don't let environment settings perturb build
62690         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
62691         could cause a configure-time and/or build-time malfunction.
62692         Typically, a configure-time function-in-library test is performed
62693         via code like this:
62695           LIB_VAR=
62696           AC_SUBST([LIB_VAR])
62697           prefix_saved_LIBS=$LIBS
62698             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
62699                        [test "$ac_cv_search_FUNC" = "none required" ||
62700                         LIB_VAR=$ac_cv_search_FUNC])
62701           LIBS=$prefix_saved_LIBS
62703         However, in each of the files affected by this change, the LIB_VAR=
62704         initialization was omitted.  Thus, when set in the environment, its
62705         value would propagate into generated Makefiles when FUNC is not found
62706         in LIB_NAME.
62707         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
62708         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
62709         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
62711 2009-10-14  Eric Blake  <ebb9@byu.net>
62713         fchdir: avoid infinite recursion in mingw
62714         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
62715         recursing.
62717         test-stat-time: port to mingw
62718         * tests/test-stat-time.c (force_unlink): Return a value.
62719         (test_ctime) [W32]: Fix compilation error.
62720         (nap): Don't call usleep with too large an argument.  Use
62721         force_unlink.
62722         * doc/pastposix-functions/usleep.texi (usleep): Document the
62723         portability issue.
62725 2009-10-13  Jim Meyering  <meyering@redhat.com>
62727         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
62728         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
62729         * modules/pipe-filter-ii: Likewise.
62730         * modules/sys_socket-tests: Likewise.
62731         * modules/tsearch-tests: Likewise.
62732         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
62733         (check): Depend on it.
62735 2009-10-12  Eric Blake  <ebb9@byu.net>
62737         utimens-tests: port to NFS file systems
62738         * tests/test-utimens.h (test_utimens): Refactor utimecmp
62739         comparisons to avoid spurious failures from timestamp drift
62740         between NFS machines.
62742 2009-10-12  Eric Blake  <ebb9@byu.net>
62744         stat-time-tests: minor cleanups
62745         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
62746         * tests/test-stat-time.c (nap): Separate assignment from call.
62747         Suggested by Paolo Bonzini and Bruno Haible.
62749         sys_stat: guarantee struct timespec
62750         * lib/sys_stat.in.h (includes): Always include <time.h>
62751         * modules/sys_stat (Depends-on): Add time.
62752         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
62753         mode_t permission values.
62754         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
62755         get at subsecond timestamps.
62757 2009-10-10  Eric Blake  <ebb9@byu.net>
62759         futimens: new module
62760         * modules/futimens: New file.
62761         * lib/futimens.c (futimens): Likewise.
62762         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
62763         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
62764         we can work around Linux bugs.
62765         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
62766         * modules/sys_stat (Makefile.am): Substitute them.
62767         * lib/sys_stat.in.h (futimens): Declare it.
62768         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
62769         * doc/posix-functions/futimens.texi (futimens): Likewise.
62770         * modules/futimens-tests: New test.
62771         * tests/test-futimens.c: Likewise.
62773         utimens: introduce fdutimens
62774         * lib/utimens.h (fdutimens): New prototype.
62775         * lib/utimens.c (gl_futimens): Move guts...
62776         (fdutimens): ...to new interface.
62777         * tests/test-utimens.c (do_fdutimens): Use it.
62779         utimens: add UTIME_NOW and UTIME_OMIT support
62780         * lib/utimens.c (validate_timespec, update_timespec): New helper
62781         functions.
62782         (gl_futimens, lutimens): Use them.
62783         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
62784         stdbool, sys_stat.
62785         (Link): Mention resulting library dependency.
62786         * modules/utimecmp (Link): Likewise.
62787         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
62788         (Makefile.am): Pick up library dependency.
62789         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
62790         definition.
62791         * tests/test-sys_stat.c: Test the definitions.
62792         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
62793         * NEWS: Document library dependency.
62795         utimecmp: support symlink timestamps
62796         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
62797         hashing when possible.  Use pathconf when available.
62798         (SYSCALL_RESOLUTION): Recognize tighter resolution.
62799         * modules/utimecmp (Depends-on): Add lstat.
62801         utimens: add lutimens interface
62802         * lib/utimens.c (lutimens): New function.
62803         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
62804         * lib/utimens.h (lutimens): Declare new interface.
62805         * tests/test-utimens.c (main): Enhance test.
62806         * tests/test-lutimens.h (test_lutimens): New file.
62807         * modules/utimens-tests (Files): Distribute it.
62808         (Depends-on): Add symlink.
62809         (configure.ac): Check for usleep.
62811         utimens: validate futimens usage
62812         * lib/utimens.c (gl_futimens): Require valid fd up front, using
62813         fewer syscalls on failure later on.  Avoid compiler warning on
62814         mingw.
62815         * modules/utimens (Depends-on): Add dup2.
62817         utimens: add test
62818         * modules/utimens-tests: New test.
62819         * tests/test-utimens.h: New file.
62820         * tests/test-futimens.h: Likewise.
62821         * tests/test-utimens.c: Likewise.
62823         doc: mention timestamp portability issues
62824         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
62825         instead.
62826         * doc/posix-functions/utime.texi (utime): Likewise.
62827         * doc/posix-functions/utimes.texi (utimes): Likewise.
62828         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
62829         instead.
62830         * doc/posix-functions/futimens.texi (futimens): Mention utimens
62831         module.
62832         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
62833         Mention weakness with symlink timestamps.
62834         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
62835         to utimensat/futimens instead.
62836         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
62838         test-dup2: enhance test
62839         * tests/test-dup2.c (main): Also check AT_FDCWD.
62841         test-stat-time: avoid more spurious failures
62842         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
62843         xfs; and avoid race if the two timestamps cross quantization edge.
62845         relocatable: prefer 'file system' over 'filesystem'
62846         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
62847         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
62848         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
62849         * doc/relocatable.texi (Enabling Relocatability): Likewise.
62850         * lib/relocatable.c (compute_curr_prefix): Likewise.
62852 2009-10-10  Jim Meyering  <meyering@redhat.com>
62854         stat-time-tests: check for the usleep function
62855         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
62857 2009-10-10  Bruno Haible  <bruno@clisp.org>
62859         * modules/xnanosleep: Put the Link section after the Include section.
62861 2009-10-09  Eric Blake  <ebb9@byu.net>
62863         dup2: work around FreeBSD 6.1 bug
62864         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
62865         * doc/posix-functions/dup2.texi (dup2): Document it.
62866         Reported by Nelson H. F. Beebe and Jim Meyering.
62868         test-stat-time: port to buggy NFS clients
62869         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
62870         (test_ctime): Also skip test if mtime and ctime are skewed.
62872         maint: prefer 'file system' over 'filesystem'
62873         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
62874         * doc/posix-functions/lstat.texi (lstat): Likewise.
62875         * lib/file-has-acl.c (file_has_acl): Likewise.
62876         * lib/fwriteerror.c [TEST]: Likewise.
62877         * tests/test-areadlink.h (test_areadlink): Likewise.
62878         * tests/test-areadlinkat-with-size.c (main): Likewise.
62879         * tests/test-areadlinkat.c (main): Likewise.
62880         * tests/test-canonicalize-lgpl.c (main): Likewise.
62881         * tests/test-canonicalize.c (main): Likewise.
62882         * tests/test-fstatat.c (main): Likewise.
62883         * tests/test-linkat.c (main): Likewise.
62884         * tests/test-lstat.h (test_lstat_func): Likewise.
62885         * tests/test-mkdir.h (test_mkdir): Likewise.
62886         * tests/test-readlink.h (test_readlink): Likewise.
62887         * tests/test-remove.c (main): Likewise.
62888         * tests/test-rename.h (test_rename): Likewise.
62889         * tests/test-renameat.c (main): Likewise.
62890         * tests/test-rmdir.h (test_rmdir_func): Likewise.
62891         * tests/test-symlink.h (test_symlink): Likewise.
62892         * tests/test-symlinkat.c (main): Likewise.
62893         * tests/test-unlink.h (test_unlink_func): Likewise.
62894         * tests/test-unlinkat.c (main): Likewise.
62896         maint: make realtime library usage explicit
62897         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
62898         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
62899         * modules/settime (Link): Likewise.
62900         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
62902         test-stat-time: speed up execution
62903         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
62904         warning on mingw.
62905         (nap): New helper function.
62906         (prepare_test): Use it to reduce sleep time.
62907         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
62908         execution.
62909         * modules/stat-time-tests (configure.ac): Check for usleep.
62911 2009-10-09  Jim Meyering  <meyering@redhat.com>
62913         selinux-h: always use getfilecon wrappers
62914         * lib/getfilecon.c: New file.
62915         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
62916         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
62917         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
62918         (fgetfilecon): Provide a stub.
62919         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
62920         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
62921         file unconditionally.
62922         When <selinux/selinux.h> is found, arrange to use wrappers.
62923         * modules/selinux-h (Files): Add getfilecon.c.
62924         (Makefile.am): Substitute include-next-related bits
62925         into the now-always-generated selinux/selinux.h file.
62926         * doc/glibc-functions/lgetfilecon.texi: New file.
62927         * doc/glibc-functions/fgetfilecon.texi: New file.
62928         * doc/glibc-functions/getfilecon.texi: New file.
62929         * doc/glibc-functions/getfilecon-desc.texi: New file.
62930         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
62931         which to pull in the new files.
62932         * MODULES.html.sh (Misc): Add selinux-h.
62934 2009-10-08  Jim Meyering  <meyering@redhat.com>
62936         unistd: fix comment typo
62937         * lib/unistd.in.h (euidaccess): Fix a comment typo.
62939 2009-10-08  Eric Blake  <ebb9@byu.net>
62941         areadlink: use SIZE_MAX consistently
62942         * modules/areadlink (Depends-on): Add stdint.
62943         * modules/areadlink-with-size (Depends-on): Likewise.
62944         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
62945         gives NULL; drop sys/types, since unistd gives size_t; and add
62946         stdint for SIZE_MAX.
62947         (SIZE_MAX): Rely on headers.
62948         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
62949         and add stdint.
62950         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
62951         (SIZE_MAX): Likewise.
62952         (INITIAL_BUF_SIZE): Turn into enum.
62953         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
62955 2009-10-08  Jim Meyering  <meyering@redhat.com>
62957         areadlinkat: avoid compilation failure
62958         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
62959         Fix typo in comment.
62961 2009-10-07  Eric Blake  <ebb9@byu.net>
62963         areadlinkat-with-size: new module
62964         * modules/areadlinkat-with-size: New module.
62965         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
62966         * lib/areadlink.h (areadlinkat): Declare it.
62967         * MODULES.html.sh (File system functions): Mention it.
62968         * modules/areadlinkat-with-size-tests: New test.
62969         * tests/test-areadlinkat-with-size.c: New file.
62971         xreadlinkat: new module
62972         * modules/xreadlinkat: New module.
62973         * lib/xreadlinkat.c (xreadlinkat): New file.
62974         * lib/xreadlink.h (xreadlinkat): Declare it.
62975         * MODULES.html.sh (File system functions): Mention it.
62977         areadlinkat: new module
62978         * lib/at-func.c (FUNC_FAIL): New define.
62979         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
62980         * modules/areadlinkat: New module.
62981         * lib/linkat.c (areadlinkat): Move...
62982         * lib/areadlinkat.c (areadlinkat): ...to new file.
62983         * lib/areadlink.h (areadlinkat): Declare it.
62984         * modules/linkat (Depends-on): Add areadlinkat.
62985         * MODULES.html.sh (File system functions): Mention it.
62986         * modules/areadlinkat-tests: New test.
62987         * tests/test-areadlinkat.c: New file.
62989         areadlink, areadlink-with-size: add tests
62990         * modules/areadlink-tests: New test.
62991         * modules/areadlink-with-size-tests: Likewise.
62992         * tests/test-areadlink.h: New file.
62993         * tests/test-areadlink.c: Likewise.
62994         * tests/test-areadlink-with-size.c: Likewise.
62996         maint: minor cleanups
62997         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
62998         _UNUSED_PARAMETER_ instead.
62999         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
63000         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
63001         * modules/linkat-tests (Files): Distribute test-link.h.
63003         openat, utimens: whitespace cleanup
63004         * lib/openat.c: Prefer space throughout, rather than mix of 8
63005         spaces vs. tabs.
63006         * lib/at-func.c: Likewise.
63007         * lib/utimens.c: Likewise.
63009         openat: avoid using wrong fd
63010         * lib/openat.c (openat_permissive): Reject user's fd if saving the
63011         working directory chooses same fd.
63012         * lib/at-func.c (AT_FUNC_NAME): Likewise.
63014         mkdir, mkdirat: fix cygwin 1.5.x bug
63015         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
63016         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
63017         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
63018         bug.
63019         (gl_PREREQ_MKDIR): Delete unused macro.
63020         * modules/mkdir (Files): Track file rename.
63021         (configure.ac): Update macro name.
63022         * modules/openat (Depends-on): Add mkdir.
63023         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
63025         mkdir, mkdirat: add tests
63026         * modules/mkdir-tests: New test.
63027         * tests/test-mkdir.h: New file.
63028         * tests/test-mkdir.c: Likewise.
63029         * tests/test-mkdirat.c: Likewise.
63030         * modules/openat-tests (Files): Add new files.
63031         (Makefile.am): Run new test.
63033 2009-10-06  Eric Blake  <ebb9@byu.net>
63035         doc: tweak *at function documentation
63036         * doc/posix-functions/faccessat.texi (faccessat): Mention
63037         known issue with replacement.
63038         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
63039         * doc/posix-functions/linkat.texi (linkat): Likewise.
63040         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
63041         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
63042         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
63043         * doc/posix-functions/renameat.texi (renameat): Likewise.
63044         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
63046         openat: fix GNU/Hurd bug in unlinkat
63047         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
63048         broken.
63049         * doc/posix-functions/unlink.texi (unlink): Document this.
63050         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
63052         fdopendir: fix GNU/Hurd bug
63053         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
63054         allowing non-directory fds.
63055         * lib/fdopendir.c (rpl_fdopendir): Work around it.
63056         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
63057         * modules/dirent (Makefile.am): Substitute it.
63058         * lib/dirent.in.h (fdopendir): Declare replacement.
63059         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
63060         * tests/test-fdopendir.c (main): Test something other than
63061         /dev/null, since on Hurd that behaves like a directory.
63063         test-symlink: port to GNU/Hurd
63064         * tests/test-symlink.h (test_symlink): Relax expected errno.
63066         doc: tweak more cygwin information
63067         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
63068         now compatible with glibc.
63069         * doc/posix-functions/getopt.texi (getopt): Likewise.
63071         getopt-gnu: add another test
63072         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
63073         guarantee behavior relied on by m4.
63074         * tests/test-getopt.c (main): Use it.
63075         * modules/getopt-posix-tests (Depends-on): Add setenv.
63076         See http://lists.gnu.org/r/bug-m4/2006-09/msg00028.html.
63078         getopt: fix compilation on darwin
63079         * lib/getopt.in.h (includes): Leave breadcrumbs during system
63080         include.
63081         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
63082         Reported by Ludovic Courtès.
63084 2009-10-06  Bruno Haible  <bruno@clisp.org>
63086         * modules/size_max (Description): Discourage its use.
63087         Reported by Simon Josefsson.
63089 2009-10-06  Jim Meyering  <meyering@redhat.com>
63091         linkat: avoid compilation failure
63092         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
63094 2009-10-05  Eric Blake  <ebb9@byu.net>
63096         linkat: support Linux 2.6.17
63097         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
63098         linkat on Linux, but allow cache variable override.
63099         * lib/linkat.c (rpl_linkat): Define override.
63100         * modules/linkat (Depends-on): Add symlinkat.
63101         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
63102         * modules/unistd (Makefile.am): Substitute it.
63103         * lib/unistd.in.h (linkat): Declare replacement.
63104         Reported by Pádraig Brady.
63106         quotearg: port test to systems with C.UTF-8 locale
63107         * tests/test-quotearg.c (struct result_strings): Add another
63108         member, differentiating between C.ASCII and C.UTF-8 handling.
63109         (compare_strings): Add parameter.
63110         (main): Adjust all callers.
63112         getopt: avoid clash with FreeBSD _getopt_internal
63113         * lib/getopt.in.h (_getopt_internal): Override the name.
63114         * lib/getopt_int.h (includes): Pick up any overrides.
63115         Reported by Reuben Thomas.
63117         hash: allow C89 compilation
63118         * lib/hash.c (check_tuning): Move declaration before statement.
63119         Reported by Reuben Thomas.
63121 2009-10-05  Karl Berry  <karl@gnu.org>
63123         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
63125 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
63126             Bruno Haible  <bruno@clisp.org>
63128         * lib/uname.c (uname): Use a table-driven algorithm to compute
63129         Windows NT versions.
63131 2009-10-04  Bruno Haible  <bruno@clisp.org>
63133         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
63134         program_invocation_short_name.
63135         * modules/progname (configure.ac): Test for presence of
63136         program_invocation_short_name.
63137         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
63139 2009-10-04  Bruno Haible  <bruno@clisp.org>
63141         * lib/progname.c (set_program_name): Fix comment.
63142         Reported by Jim Meyering.
63144 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
63145             Bruno Haible  <bruno@clisp.org>
63147         * lib/uname.c: Include <string.h>.
63148         (uname): Do only one call to GetVersionEx in the common case.
63150 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
63151             Bruno Haible  <bruno@clisp.org>
63153         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
63154         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
63155         (uname): Add support for Windows CE and various non-x86 CPU types.
63157 2009-10-03  Bruno Haible  <bruno@clisp.org>
63159         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
63160         invocation to tests/configure.ac.
63161         Reported by Ian Beckwith <ianb@erislabs.net>.
63163 2009-10-02  Eric Blake  <ebb9@byu.net>
63165         fchdir: avoid compiler warning
63166         * lib/fchdir.c (canonicalize_file_name)
63167         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
63169         test-open: support mingw errno values
63170         * tests/test-open.h (test_open): Relax test.
63171         * tests/test-fopen.h (test_fopen): Likewise.
63172         * tests/test-openat-safer.c (main): Likewise.
63174         open: fix opening directory on mingw
63175         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
63177         test-open: on GNU/Hurd, /dev/null is a directory
63178         * tests/test-fopen.h (main): Rename...
63179         (test_fopen): ...to this.  Use a guaranteed non-directory when
63180         confirming open behavior on trailing slash.
63181         * tests/test-openat-safer.c (main): Likewise.
63182         * tests/test-open.h (main): Likewise....
63183         (test_open): ...to this.
63184         * tests/test-fopen.c (main): Adjust caller.
63185         * tests/test-fopen-safer.c (main): Likewise.
63186         * tests/test-open.c (main): Likewise.
63187         * tests/test-fcntl-safer.c (main): Likewise.
63188         Reported by Samuel Thibault.
63190         rename, fchdir: don't ignore chdir failure
63191         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
63192         * lib/rename.c (rpl_rename) [W32]: Likewise.
63193         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
63194         an empty destination directory if source cannot be renamed,
63195         although there is still possibility for failure.
63196         * doc/posix-functions/rename.texi (rename): Document the race.
63197         Reported by Jim Meyering.
63199         maint: cleanup whitespace in recent commits
63200         * lib/rename.c (rpl_rename): Remove tabs.
63201         * tests/test-link.h (test_link): Likewise.
63202         * lib/fchdir.c (get_name): Likewise.
63203         Reported by Jim Meyering.
63205 2009-10-02  Ben Pfaff  <blp@gnu.org>
63207         relocatable-prog-wrapper: Add missing dependency on
63208         double-slash-root.
63209         * modules/relocatable-prog-wrapper: Add dependency.
63210         Reported by Ian Beckwith <ianb@erislabs.net>.
63212 2009-10-02  Eric Blake  <ebb9@byu.net>
63214         renameat: fix Solaris bugs
63215         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
63216         needed fixing.
63217         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
63218         * modules/stdio (Makefile.am): Substitute it.
63219         * lib/stdio.in.h (renameat): Declare replacement.
63220         * lib/renameat.c (rpl_renameat): Implement fix.
63222         renameat: new module
63223         * modules/renameat: New file.
63224         * lib/renameat.c (renameat): Likewise.
63225         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
63226         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
63227         * modules/stdio (Makefile.am): Substitute them.
63228         * lib/stdio.in.h (renameat): Declare it.
63229         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
63230         * doc/posix-functions/renameat.texi (renameat): Likewise.
63231         * modules/renameat-tests: New test.
63232         * tests/test-renameat.c: Likewise.
63234         rename: fix mingw bugs
63235         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
63236         directory overwrite bugs.
63238         rename: fix another cygwin 1.5 bug
63239         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
63240         checks.
63241         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
63242         unnecessary cygwin workarounds.  Also work around bug with moving
63243         full directory onto an empty one.
63244         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
63246         rename-dest-slash: merge into rename module
63247         * modules/rename-dest-slash (Status): Mark obsolete.
63248         (Depends-on): Add rename.
63249         (Files): Let rename do it all.
63250         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
63251         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
63252         * m4/rename-dest-slash.m4: ...so this file can be deleted.
63253         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
63254         * lib/rename.c (rpl_rename): Update comments.
63256         rename: fix cygwin 1.5.x bugs
63257         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
63258         * lib/rename.c (rpl_rename): Work around them.
63259         * modules/rename (Depends-on): Add same-inode.
63261         rename: fix Solaris 10 bug
63262         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
63263         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
63264         was the only bug.
63266         rename: fix Solaris 9 bug
63267         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
63268         on non-directory.  Avoid calling exit.
63269         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
63270         strdup.
63271         * modules/rename-tests (Depends-on): Drop lstat.
63272         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
63273         (gl_PREREQ_RENAME): Delete unused macro.
63275         rename-dest-slash: fix NetBSD bug
63276         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
63277         links.
63278         * modules/rename-dest-slash (Depends-on): Add same-inode.
63280         rename-tests: new test, exposes several platform bugs
63281         * modules/rename-tests: New file.
63282         * tests/test-rename.h: Likewise.
63283         * tests/test-rename.c: Likewise.
63284         * doc/posix-functions/rename.texi (rename): Improve documentation,
63285         including bugs that will eventually be fixed in gnulib.
63287 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
63289         * lib/uname.c: Include <stdlib.h>
63290         (uname): Assume version info is available.
63292 2009-10-02  Jim Meyering  <meyering@redhat.com>
63294         gnu-web-doc-update: correct --help output
63295         * build-aux/gnu-web-doc-update: Make --help output relevant.
63297         gnu-web-doc-update: add standard options
63298         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
63300         gnu-web-doc-update: New module.
63301         Use this script to automatically update the on-line web documentation
63302         for your GNU project at http://www.gnu.org/software/$pkg/manual/
63303         * modules/gnu-web-doc-update: New file, from coreutils.
63304         * build-aux/gnu-web-doc-update: New script.
63306 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
63308         link: LoadLibrary is not needed.
63309         * lib/link.c: Use GetModuleHandle.
63311 2009-10-01  Eric Blake  <ebb9@byu.net>
63313         getopt: bump serial number
63314         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
63315         change.
63317         tests: tighten link, rmdir, and remove tests
63318         * tests/test-link.h (includes): No need to use <config.h> here.
63319         Clean up if directory hard link was created, otherwise test for
63320         trailing '.'.
63321         * tests/test-linkat.c (main): Simplify.
63322         * tests/test-remove.c (main): Enhance test for trailing '.'.
63323         * tests/test-rmdir.h (test_rmdir_func): Likewise.
63325 2009-10-01  Jim Meyering  <meyering@redhat.com>
63327         maint.mk: requiring "make major" was annoying, for a "minor" release.
63328         What is intended is "stable", to contrast with alpha and beta,
63329         so require "make stable", not "make major".
63330         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
63331         (get_tool_versions): Likewise.
63332         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
63334 2009-09-30  Ben Pfaff  <blp@gnu.org>
63336         Fix broken build of replacement for Windows tmpfile().
63337         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
63338         flags argument added along with the 'mkostemp' module.
63340 2009-09-28  Bruno Haible  <bruno@clisp.org>
63342         Avoid identifier clash with POSIX function 'remove' defined as a macro.
63343         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
63344         to 'remove_elt'.
63345         (gl_list_remove): Update.
63346         * lib/gl_list.c (gl_list_remove): Update.
63347         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
63348         to 'remove_elt'.
63349         (gl_oset_remove): Update.
63350         * lib/gl_list.c (gl_oset_remove): Update.
63351         Reported by Eric Blake.
63353 2009-09-28  Eric Blake  <ebb9@byu.net>
63355         doc: mention yet more cygwin 1.7 status
63356         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
63357         cygwin.
63358         * doc/glibc-functions/execvpe.texi (execvpe): New file.
63359         * doc/gnulib.texi (Glibc unistd.h): Mention it.
63361         argp: fix test failure
63362         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
63363         that are not upper-case.  Pass correct range to tolower.
63365 2009-09-27  Jim Meyering  <meyering@redhat.com>
63367         test-yesno: work around sparc-dash here-document infelicity
63368         Without this change, the literal \177 byte in a here document
63369         would make dash 0.5.5.1-3 access uninitialized memory.
63370         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
63371         Instead, use a marker, "@", and filter through tr to create the desired
63372         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
63374 2009-09-27  Bruno Haible  <bruno@clisp.org>
63376         Disable untested support for new flavours of ACLs on AIX.
63377         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
63378         progress.
63379         * lib/set-mode-acl.c (qset_acl): Likewise.
63381 2008-12-07  Bruno Haible  <bruno@clisp.org>
63383         Add support for new flavours of ACLs on AIX. (Untested.)
63384         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
63385         (file_has_acl): Add support for newer AIX.
63386         * lib/set-mode-acl.c (qset_acl): Likewise.
63387         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
63388         Rainer Tammer <tammer@tammer.net>.
63390 2009-09-26  Eric Blake  <ebb9@byu.net>
63392         argp: fix compilation of getopt
63393         * lib/getopt.in.h (includes): Use different guard than glibc.
63394         Reported by Sergey Poznyakoff.
63396         doc: mention more cygwin 1.7 status
63397         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
63398         bug.
63399         * doc/posix-functions/execl.texi (execl): Likewise.
63400         * doc/posix-functions/execle.texi (execle): Likewise.
63401         * doc/posix-functions/execlp.texi (execlp): Likewise.
63402         * doc/posix-functions/execv.texi (execv): Likewise.
63403         * doc/posix-functions/execve.texi (execve): Likewise.
63404         * doc/posix-functions/execvp.texi (execvp): Likewise.
63405         * doc/glibc-functions/canonicalize_file_name.texi
63406         (canonicalize_file_name): Cygwin 1.7 now provides this.
63407         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
63408         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
63409         on AT_SYMLINK_NOFOLLOW.
63411 2009-09-24  Eric Blake  <ebb9@byu.net>
63413         test-linkat: make test more robust
63414         * tests/test-linkat.c (main): Avoid collision with EEXIST.
63416         getopt: fix inclusion guards for cygwin
63417         * modules/getopt-posix (Depends-on): Add include-next.
63418         (Makefile.am): Substitute more items in replacement header.
63419         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
63420         <getopt.h>.
63421         * lib/getopt.in.h (includes): Use split inclusion guard, and
63422         prefer <getopt.h> over include <unistd.h> when one is present.
63423         (option): Also override name of 'struct option'.
63425         same-inode: revert prior change; it is not yet ready
63426         * NEWS: Undo mention of this change.
63427         * lib/same-inode.h (same-inode.h): Undo tri-state change.
63428         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
63429         * lib/cycle-check.c (cycle_check): Likewise.
63430         * lib/same.c (same_name): Likewise.
63431         * lib/at-func2.c (at_func2): Likewise.
63433 2009-09-23  Eric Blake  <ebb9@byu.net>
63435         linkat: new module
63436         * modules/linkat: New file.
63437         * lib/at-func2.c (at_func2): Likewise.
63438         * lib/linkat.c (linkat): Likewise.
63439         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
63440         * lib/openat-priv.h (at_func2): Add declaration.
63441         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
63442         * modules/unistd (Makefile.am): Substitute them.
63443         * lib/unistd.in.h (linkat): Declare it.
63444         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
63445         * doc/posix-functions/linkat.texi (linkat): Likewise.
63446         * doc/posix-functions/link.texi (link): Tweak wording.
63447         * tests/test-link.c (main): Move guts...
63448         * tests/test-link.h (test_link): ...into new file.
63449         * modules/linkat-tests: New test.
63450         * tests/test-linkat.c: Likewise.
63451         * modules/link-tests (Files): Ship new file.
63452         (Depends-on): Add stdbool.
63454         dirname: add library-safe mdir_name
63455         * lib/dirname.h (mdir_name): New prototype.
63456         * lib/dirname.c (dir_name): Move guts...
63457         (mdir_name): ...to new function that avoids xalloc_die.
63459         fchdir: another mingw fix
63460         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
63461         * lib/fchdir.c (get_name): New helper method; skips canonicalize
63462         on mingw (where it has not yet been ported), and make it optional
63463         elsewhere.
63464         (_gl_register_fd): Use it.
63466         same-inode: make SAME_INODE tri-state, to port to mingw
63467         * NEWS: Mention this change.
63468         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
63469         st_ino always being 0.
63470         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
63471         * lib/cycle-check.c (cycle_check): Likewise.
63472         * lib/same.c (same_name): Likewise.
63474         lstat: avoid mingw compilation error
63475         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
63476         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
63477         lstat ourselves.
63478         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
63479         was adequate.
63480         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
63481         the checks for lstat.
63482         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
63484         link: fix test failure on Solaris 9
63485         * lib/link.c (rpl_link): Don't assume link will catch bogus
63486         trailing slash on source.
63488         test-symlinkat: enhance test
63489         * tests/test-readlink.c (main): Move guts...
63490         * tests/test-readlink.h (test_readlink): ...into new file.
63491         * tests/test-symlink.c (main): Move guts...
63492         * tests/test-symlink.h (test_symlink): ...into new file.
63493         * tests/test-symlinkat.c (main): Use new files for further
63494         coverage.
63495         (do_symlink, do_readlink): New helper functions.
63496         * modules/symlink-tests (Files): Ship new file.
63497         (Depends-on): Add stdbool.
63498         * modules/readlink-tests (Files): Ship new file.
63499         (Depends-on): Add stdbool.
63500         * modules/symlinkat-tests (Files): Use new files.
63502 2009-09-23  Eric Blake  <ebb9@byu.net>
63504         readlink: document portability issue with symlink length
63505         * doc/posix-functions/lstat.texi (lstat): Mention that some file
63506         systems have bogus st_size on symlinks, and mention the
63507         areadlink-with-size module.
63508         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
63509         * doc/posix-functions/readlink.texi (readlink): Mention the
63510         areadlink module, and ERANGE failure.
63511         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
63512         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
63514         readlink: fix Solaris 9 bug with trailing slash
63515         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
63516         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
63517         * doc/posix-functions/readlink.texi (readlink): Document this.
63518         * modules/readlink-tests: New test.
63519         * tests/test-readlink.c: Likewise.
63521         readlink: fix cygwin 1.5.x bug with return type
63522         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
63523         * lib/unistd.in.h (readlink): Use ssize_t.
63524         * lib/readlink.c (readlink): Likewise.
63525         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
63526         * modules/unistd (Makefile.am): Substitute it.
63527         * lib/unistd.in.h (readlink): Declare replacement.
63528         * doc/posix-functions/readlink.texi (readlink): Document this.
63530         symlink: use throughout gnulib
63531         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
63532         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
63533         symlink is not used.
63534         * modules/symlinkat (Depends-on): Add symlink.
63535         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
63536         * modules/canonicalize-tests (Depends-on): Likewise.
63537         * modules/lstat-tests (Depends-on): Likewise.
63538         * modules/openat-tests (Depends-on): Likewise.
63539         * modules/remove-tests (Depends-on): Likewise.
63540         * modules/rmdir-tests (Depends-on): Likewise.
63541         * modules/unlink-tests (Depends-on): Likewise.
63542         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
63543         * tests/test-canonicalize.c (symlink): Likewise.
63544         * tests/test-fstatat.c (symlink): Likewise.
63545         * tests/test-lstat.c (symlink): Likewise.
63546         * tests/test-remove.c (symlink): Likewise.
63547         * tests/test-rmdir.c (symlink): Likewise.
63548         * tests/test-unlink.c (symlink): Likewise.
63549         * tests/test-unlinkat.c (symlink): Likewise.
63551         symlink: new module, for Solaris 9 bug
63552         * modules/symlink: New file.
63553         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
63554         * lib/symlink.c: Likewise.
63555         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
63556         * modules/unistd (Makefile.am): Substitute them.
63557         * lib/unistd.in.h (symlink): Declare replacement.
63558         * MODULES.html.sh (File system functions): Mention it.
63559         * doc/posix-functions/symlink.texi (symlink): Likewise.
63560         * modules/symlink-tests: New test.
63561         * tests/test-symlink.c: Likewise.
63563 2009-09-23  Bruno Haible  <bruno@clisp.org>
63565         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
63566         when needed.
63567         Test case: gnulib-tool --import --with-tests atexit inttypes.
63568         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
63570 2009-09-23  Bruno Haible  <bruno@clisp.org>
63572         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
63573         subcommand, not in a subshell.
63575 2009-09-22  Eric Blake  <ebb9@byu.net>
63577         unistd: sort replacement declarations
63578         * lib/unistd.in.h: Sort declarations.
63580         open, openat: minor optimization
63581         * lib/open.c (open): If open succeeded, len is non-zero.
63582         * lib/openat.c (rpl_openat): Likewise.
63584         link-follow: ensure correct result
63585         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
63586         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
63587         distinguish between possible failures.
63589 2009-09-21  Eric Blake  <ebb9@byu.net>
63591         fts: avoid compiler warning
63592         * lib/fts.c (dirent_inode_sort_may_be_useful)
63593         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
63595 2009-09-19  Bruno Haible  <bruno@clisp.org>
63597         * lib/progreloc.c (canonicalize_file_name): New declaration.
63599 2009-09-19  Eric Blake  <ebb9@byu.net>
63601         link: fix quoting
63602         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
63604         openat: fix openat bugs on Solaris 9
63605         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
63606         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
63607         * modules/openat (Depends-on): Add open.
63608         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
63609         * modules/fcntl-h (Makefile.am): Substitute it.
63610         * lib/fcntl.in.h (openat): Declare replacement.
63611         * doc/posix-functions/openat.texi (openat): Document this.
63613         openat: move fstatat and unlinkat into correct files
63614         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
63615         compiled.
63616         * lib/openat.c (fstatat, unlinkat): Move...
63617         * lib/fstatat.c (fstatat): ...into correct files.
63618         * lib/unlinkat.c (unlinkat): Likewise.
63620         openat: fix unlinkat bugs on Solaris 9
63621         * lib/unlinkat.c (unlinkat): New file.
63622         * modules/openat (Depends-on): Add unlink.
63623         (Files): Distribute it.
63624         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
63625         trailing slash behavior is broken.
63626         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
63627         * modules/unistd (Makefile.am): Substitute it.
63628         * lib/unistd.in.h (unlinkat): Declare replacement.
63629         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
63631         openat: fix fstatat bugs on Solaris 9
63632         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
63633         stat.
63634         * doc/posix-functions/fstatat.texi (fstatat): Document this.
63636         test-unlinkat: enhance test, to expose Solaris 9 bug
63637         * tests/test-unlink.c (main): Factor guts...
63638         * tests/test-unlink.h (test_rmdir_func): ...into new file.
63639         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
63640         * tests/test-rmdir.c (main): Adjust caller.
63641         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
63642         (unlinker): New helper function.
63643         (rmdirat): Enhance check.
63644         * modules/rmdir-tests (Depends-on): Add stdbool.
63645         * modules/unlink-tests (Depends-on): Likewise.
63646         (Files): Add test-unlink.h.
63647         * modules/openat-tests (Files): Likewise.
63648         (Depends-on): Add unlinkdir.
63650         test-fstatat: new test, to expose Solaris 9 bugs
63651         * tests/test-stat.c (main): Factor guts...
63652         * tests/test-stat.h (test_stat_func): ...into new file.
63653         * tests/test-lstat.c (main): Factor guts...
63654         * tests/test-lstat.h (test_lstat_func): ...into new file.
63655         * tests/test-fstatat.c: New file.
63656         * modules/stat-tests (Files): Add test-stat.h.
63657         * modules/lstat-tests (Files): Add test-lstat.h.
63658         (Depends-on): Add stdbool.
63659         * modules/openat-tests (Depends-on): Add pathmax.
63660         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
63661         (Makefile.am): Run new test.
63663         remove: new module, for mingw and Solaris 9 bugs
63664         * modules/remove: New file.
63665         * lib/remove.c: Likewise.
63666         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
63667         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
63668         * modules/stdio (Makefile.am): Use them.
63669         * lib/stdio.in.h (remove): Declare replacement.
63670         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
63671         * doc/posix-functions/remove.texi (remove): Likewise.
63672         * modules/remove-tests: New test.
63673         * tests/test-remove.c: Likewise.
63675         unlink: new module, for Solaris 9 bug
63676         * modules/unlink: New file.
63677         * lib/unlink.c: Likewise.
63678         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
63679         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
63680         * modules/unistd (Makefile.am): Use them.
63681         * lib/unistd.in.h (stat): Declare replacement.
63682         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
63683         * doc/posix-functions/unlink.texi (unlink): Likewise.
63684         * modules/unlink-tests: New test.
63685         * tests/test-unlink.c: Likewise.
63687         lstat: fix Solaris 9 bug
63688         * lib/lstat.c (lstat): Also check for trailing slash on
63689         non-symlink, non-directories.  Use stat module to simplify logic.
63690         * doc/posix-functions/lstat.texi (lstat): Document it.
63691         * modules/lstat-tests (Depends-on): Add errno, same-inode.
63692         (configure.ac): Check for symlink.
63693         * tests/test-lstat.c (main): Add more tests.
63695         stat: add as dependency to other modules
63696         * modules/chown (Depends-on): Add stat.
63697         * modules/euidaccess (Depends-on): Likewise.
63698         * modules/fchdir (Depends-on): Likewise.
63699         * modules/isdir (Depends-on): Likewise.
63700         * modules/link (Depends-on): Likewise.
63701         * modules/lstat (Depends-on): Likewise.
63702         * modules/mkdir-p (Depends-on): Likewise.
63703         * modules/modechange (Depends-on): Likewise.
63704         * modules/open (Depends-on): Likewise.
63705         * modules/readlink (Depends-on): Likewise.
63706         * modules/same (Depends-on): Likewise.
63708         stat: fix Solaris 9 bug
63709         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
63710         slash.
63711         * lib/stat.c (rpl_stat): Work around it.
63712         * doc/posix-functions/stat.texi (stat): Update documentation.
63714         stat: new module, for mingw bug
63715         * modules/stat: New file.
63716         * lib/stat.c: Likewise.
63717         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
63718         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
63719         * modules/sys_stat (Makefile.am): Use them.
63720         * lib/sys_stat.in.h (stat): Declare replacement.
63721         * lib/openat.c (fstatat): Deal with lstat and stat being function
63722         macros.
63723         * modules/openat (Depends-on): Add inline.
63724         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
63725         * doc/posix-functions/stat.texi (stat): Likewise.
63726         * modules/stat-tests: New test.
63727         * tests/test-stat.c: Likewise.
63729 2009-09-19  Jim Meyering  <meyering@redhat.com>
63731         syntax-check: detect unnecessary inclusion of canonicalize.h
63732         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
63734 2009-09-19  Eric Blake  <ebb9@byu.net>
63736         canonicalize-lgpl: adjust clients to use correct header
63737         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
63738         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
63739         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
63740         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
63741         * lib/progreloc.c (includes): Likewise.
63743 2009-09-19  Jim Meyering  <meyering@redhat.com>
63745         test-posixtm.c: correct a comment
63746         * tests/test-posixtm.c: Correct first-line comment.
63747         Spotted by Eric Blake.
63749 2009-09-16  Jim Meyering  <meyering@redhat.com>
63751         posixtm-tests: make T const-correct; add a test case
63752         * tests/test-posixtm.c (T): Declare const.
63753         Add a test for -(2^31+1).
63754         Remove useless can-succeed-only-in-2002 test.
63756         posixtm-tests: adjust the sole failing test
63757         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
63758         expected output matches what mktime now produces.  Cross-checked via
63759         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
63761         posixtm: move #ifdef'd tests into a new module
63762         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
63763         * tests/test-posixtm.c: ... this new file.
63764         * modules/posixtm-tests: New module.
63766 2009-09-19  Eric Blake  <ebb9@byu.net>
63768         openat: simplify use of at-func.c
63769         * lib/at-func.c (includes): Include prerequisites here, to
63770         simplify requirements on client files.
63771         * lib/openat-priv.h: Add double-inclusion guard.
63772         * lib/faccessat.c (includes): Simplify.
63773         * lib/fchmodat.c (includes): Likewise.
63774         * lib/fchownat.c (includes): Likewise.
63775         * lib/mkdirat.c (includes): Likewise.
63776         * lib/mkfifoat.c (includes): Likewise.
63777         * lib/symlinkat.c (includes): Likewise.
63779         openat: allow return of fd 0
63780         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
63781         * modules/save-cwd (Depends-on): Replace fcntl-safer with
63782         unistd-safer.
63783         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
63784         <fcntl.h>; this module does not leak fds.
63785         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
63786         must be allowed to return 0, leaving openat_safer to add the
63787         safety.
63788         (openat_permissive): Avoid writing to just-opened fd 2 if
63789         restoring the current directory fails.
63790         * lib/openat-die.c (openat_restore_fail): Add comment.
63791         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
63792         (save_cwd): Guarantee safe fd, but without use of open_safer.
63793         * tests/test-openat.c: New test.
63794         * modules/openat-tests (Files, Makefile.am): Distribute and build
63795         new file.
63797         relocatable-prog-wrapper: fix build
63798         * modules/relocatable-prog-wrapper (Files): Update name of
63799         canonicalize m4 file, broken on 2009-09-17.
63800         Reported by emad hajjar <aleppos@hotmail.com>.
63802 2009-09-19  Bruno Haible  <bruno@clisp.org>
63804         * lib/safe-alloc.h: Use the standard header with GPL copyright.
63805         * lib/safe-alloc.c: Likewise.
63806         Reported by Ian Beckwith <ianb@erislabs.net>.
63808 2009-09-18  Bruno Haible  <bruno@clisp.org>
63810         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
63811         Reported by <erobles@sensacd.com.mx>.
63813 2009-09-17  Eric Blake  <ebb9@byu.net>
63815         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
63816         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
63817         slashes when checking if last component is missing.
63818         * tests/test-canonicalize.c (main): Test this.
63820         canonicalize, canonicalize-lgpl: honor // if distinct from /
63821         * modules/canonicalize (Files): Add double-slash-root.m4.
63822         * modules/canonicalize-lgpl (Files): Likewise.
63823         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
63824         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
63825         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
63826         fallback definition.
63827         (canonicalize_filename_mode): Use it to protect //.
63828         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
63829         (__realpath): Likewise.
63830         * tests/test-canonicalize.c (main): Test this.
63831         * tests/test-canonicalize-lgpl.c (main): Likewise.
63832         * modules/canonicalize-tests (Depends-on): Add same-inode.
63833         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
63835         canonicalize-lgpl: fix glibc bug with trailing slash
63836         * m4/canonicalize-lgpl.m4: Move contents...
63837         * m4/canonicalize.m4: ...here.
63838         (gl_CANONICALIZE_LGPL): Factor realpath check...
63839         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
63840         glibc 2.3.5 bug, fixed 2005-04-27.
63841         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
63842         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
63843         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
63844         * modules/canonicalize-lgpl (Files): Manage file rename.
63845         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
63846         * modules/stdlib (Makefile.am): Substitute witness.
63847         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
63848         is needed.
63849         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
63850         replacement is required.
63851         * lib/canonicalize.c (canonicalize_file_name): Likewise.
63852         * doc/glibc-functions/canonicalize_file_name.texi
63853         (canonicalize_file_name): Document this.
63854         * doc/posix-functions/realpath.texi (realpath): Likewise.
63856         canonicalize-lgpl: reject non-directory with trailing slash
63857         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
63858         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
63859         catches failures in glibc 2.3.5.
63860         * tests/test-canonicalize.c (main): Likewise.
63862         canonicalize-lgpl: use native realpath if it works
63863         * lib/canonicalize-lgpl.c (realpath): Guard with
63864         FUNC_REALPATH_WORKS.
63865         * lib/stdlib.in.h (realpath): Make declaration optional based on
63866         HAVE_REALPATH.
63867         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
63868         native realpath works.
63869         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
63870         * modules/stdlib (Makefile.am): Substitute witness.
63872         canonicalize, canonicalize-lgpl: use <stdlib.h>
63873         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
63874         (Include): Mention <stdlib.h>.
63875         (configure.ac): Mention functions we provide.
63876         * modules/canonicalize (configure.ac): Likewise.
63877         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
63878         realpath if canonicalize_file_name is missing.
63879         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
63880         * modules/stdlib (Makefile.am): Substitute witnesses.
63881         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
63882         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
63883         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
63884         * NEWS: Document this.
63885         * doc/glibc-functions/canonicalize_file_name.texi
63886         (canonicalize_file_name): Likewise.
63887         * doc/posix-functions/realpath.texi (realpath): Likewise.
63888         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
63890         test-canonicalize: consolidate into single C program
63891         * tests/test-canonicalize.sh: Delete; move setup into...
63892         * tests/test-canonicalize.c (main): ...the program, making it
63893         easier to run in debugger.  Add some tests.
63894         * modules/canonicalize-tests (Files): Remove unused file.
63895         (Depends-on): Add progname.
63896         (configure.ac, Makefile.am): Simplify.
63898         test-canonicalize-lgpl: consolidate into single C program
63899         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
63900         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
63901         easier to run in debugger.  Add some tests.
63902         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
63903         (configure.ac, Makefile.am): Simplify.
63905         canonicalize: avoid resolvepath
63906         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
63907         unnecessary checks.
63908         * lib/canonicalize.c (includes): Simplify.
63909         (canonicalize_file_name): Drop resolvepath implementation.
63910         * modules/canonicalize (Depends-on): Drop filenamecat.
63912         canonicalize: don't lose errno
63913         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
63914         over calls to free.
63916         canonicalize: simplify errno handling
63917         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
63918         assignment.
63920         canonicalize, canonicalize-lgpl: update module dependencies
63921         * modules/canonicalize (Depends-on): Add extensions, lstat,
63922         pathmax, stdlib.
63923         (Files): Drop pathmax.h.
63924         (configure.ac): Adjust macro name.
63925         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
63926         lstat, stdlib, sys_stat.
63927         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
63928         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
63929         extensions.
63930         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
63931         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
63932         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
63933         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
63934         declaration, if available.
63935         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
63936         we can rely on the readlink module.
63937         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
63938         (includes): Use <unistd.h> unconditionally.
63940 2009-09-17  Eric Blake  <ebb9@byu.net>
63942         maint: make Include sections of modules consistent
63943         * modules/alloca: Use only header name; no need to list #include.
63944         * modules/alloca-opt: Likewise.
63945         * modules/arpa_inet: Likewise.
63946         * modules/canon-host: Likewise.
63947         * modules/configmake: Likewise.
63948         * modules/dirent: Likewise.
63949         * modules/eealloc: Likewise.
63950         * modules/environ: Likewise.
63951         * modules/fchdir: Likewise.
63952         * modules/fcntl: Likewise.
63953         * modules/fcntl-h: Likewise.
63954         * modules/gethrxtime: Likewise.
63955         * modules/gettime: Likewise.
63956         * modules/ignore-value: Likewise.
63957         * modules/inet_ntop: Likewise.
63958         * modules/inet_pton: Likewise.
63959         * modules/inttypes: Likewise.
63960         * modules/isnand-nolibm: Likewise.
63961         * modules/isnanf-nolibm: Likewise.
63962         * modules/mbchar: Likewise.
63963         * modules/mbfile: Likewise.
63964         * modules/mbiter: Likewise.
63965         * modules/mbuiter: Likewise.
63966         * modules/netdb: Likewise.
63967         * modules/netinet_in: Likewise.
63968         * modules/nproc: Likewise.
63969         * modules/pagealign_alloc: Likewise.
63970         * modules/poll: Likewise.
63971         * modules/printf-frexp: Likewise.
63972         * modules/pthread: Likewise.
63973         * modules/putenv: Likewise.
63974         * modules/random_r: Likewise.
63975         * modules/relocatable-prog: Likewise.
63976         * modules/search: Likewise.
63977         * modules/select: Likewise.
63978         * modules/selinux-h: Likewise.
63979         * modules/settime: Likewise.
63980         * modules/signal: Likewise.
63981         * modules/size_max: Likewise.
63982         * modules/socklen: Likewise.
63983         * modules/ssize_t: Likewise.
63984         * modules/stdarg: Likewise.
63985         * modules/stdbool: Likewise.
63986         * modules/stddef: Likewise.
63987         * modules/stdint: Likewise.
63988         * modules/stdio: Likewise.
63989         * modules/stdlib: Likewise.
63990         * modules/string: Likewise.
63991         * modules/strings: Likewise.
63992         * modules/sys_file: Likewise.
63993         * modules/sys_ioctl: Likewise.
63994         * modules/sys_select: Likewise.
63995         * modules/sys_socket: Likewise.
63996         * modules/sys_stat: Likewise.
63997         * modules/sys_time: Likewise.
63998         * modules/sys_times: Likewise.
63999         * modules/sys_utsname: Likewise.
64000         * modules/sys_wait: Likewise.
64001         * modules/sysexits: Likewise.
64002         * modules/time: Likewise.
64003         * modules/times: Likewise.
64004         * modules/tmpfile: Likewise.
64005         * modules/trim: Likewise.
64006         * modules/unistd: Likewise.
64007         * modules/wchar: Likewise.
64008         * modules/wctype: Likewise.
64010 2009-09-17  Bruno Haible  <bruno@clisp.org>
64012         Make getdate.y compile on QNX and NetBSD 5 / i386.
64013         * m4/getdate.m4 (gl_GETDATE): Conditionally define
64014         TIME_T_FITS_IN_LONG_INT.
64015         * lib/getdate.y (long_time_t): New type.
64016         (relative_time): Change type of 'seconds' field to long_time_t.
64017         (get_date): Update types of local variables. Check against overflow
64018         during conversion from long_time_t to time_t.
64019         Reported by Matt Kraai <kraai@ftbfs.org>
64020         and Hasso Tepper <hasso@netbsd.org>.
64022 2009-09-17  Bruno Haible  <bruno@clisp.org>
64024         * modules/COPYING: Update copyright years.
64025         * modules/README: Likeiwse.
64026         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
64027         Reported by Ian Beckwith <ianb@erislabs.net>.
64029 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
64031         * users.txt: Update references for gnuit package.
64033 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
64035         * m4/getdelim.m4: Fix typo in copyright line.
64037 2009-09-17  Bruno Haible  <bruno@clisp.org>
64039         * lib/atoll.c: Use the standard header with GPL copyright.
64040         * lib/argz.in.h: Likewise.
64041         * lib/glob.c: Likewise.
64042         * lib/glob-libc.h: Likewise.
64043         * lib/random_r.c: Likewise.
64044         * lib/siglist.h: Likewise.
64045         * lib/strsignal.c: Likewise.
64046         Reported by Ian Beckwith <ianb@erislabs.net>.
64048 2009-09-17  Eric Blake  <ebb9@byu.net>
64050         rmdir: ensure correct dependency order
64051         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
64053 2009-09-17  Bruno Haible  <bruno@clisp.org>
64055         Disable assertion that fails on NetBSD 5 / i386.
64056         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
64057         Reported by Sam Steingold <sds@gnu.org>
64058         and Hasso Tepper <hasso@netbsd.org>.
64060 2009-09-16  Eric Blake  <ebb9@byu.net>
64062         unlinkdir: port to mingw
64063         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
64064         on which no one can unlink a directory.
64066         stdlib: sort witness names
64067         * modules/stdlib (Makefile.am): Sort replacements.
64068         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
64069         * lib/stdlib.in.h: Likewise.
64071         parse-duration-tests: avoid link failure
64072         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
64073         LIBINTL.
64074         Reported by Tom G. Christensen.
64076         openat-tests: ensure unlinkat behaves like rmdir
64077         * tests/test-rmdir.c (main): Factor guts...
64078         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
64079         * modules/rmdir-tests (Files): Ship new file.
64080         * modules/openat-tests: New test.
64081         * tests/test-unlinkat.c: Likewise.
64083         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
64084         * modules/rmdir-errno (Status, Notice): Now obsolete.
64086         rmdir: work around cygwin 1.5.x and mingw bugs
64087         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
64088         * lib/rmdir.c (rmdir): Work around it.
64089         * modules/rmdir (Status, Notice): No longer obsolete.
64090         (Files): Add dos.m4.
64091         (Depends-on): Add unistd.
64092         (configure.ac): Set witnesses.
64093         (License): Relax to LGPLv2+.
64094         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
64095         * modules/unistd (Makefile.am): Substitute witnesses.
64096         * lib/unistd.in.h (rmdir): Declare replacement.
64097         * doc/posix-functions/rmdir.texi (rmdir): Document this.
64098         * modules/rmdir-tests: New tests.
64099         * tests/test-rmdir.c: Likewise.
64101 2009-09-15  Eric Blake  <ebb9@byu.net>
64103         fchdir: improve use of replacement functions
64104         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
64105         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
64106         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
64107         REPLACE_CLOSEDIR.
64108         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
64109         * modules/sys_stat (Makefile.am): Substitute correct witness.
64110         * modules/dirent (Makefile.am): Likewise.
64111         * modules/unistd (Makefile.am): Likewise.
64112         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
64113         * lib/unistd.in.h (dup): Likewise.
64114         * lib/sys_stat.in.h (fstat): Likewise.
64116         maint: ignore gnulib-tool temp files
64117         * .gitignore: Ignore files created during gnulib-tool --test.
64119 2009-09-13  Jim Meyering  <meyering@redhat.com>
64121         posixtm: don't reject a time that specify "60" as the number of seconds
64122         * lib/posixtm.c (posixtime): The code to reject invalid dates
64123         would also reject a time specified with the .60 suffix.
64124         But POSIX allows that, in order to accommodate leap seconds.
64125         So don't reject it.
64126         (main): Adjust tests accordingly.
64127         * modules/posixtm (Depends-on): Add stpcpy.
64129 2009-09-11  Jim Meyering  <meyering@redhat.com>
64131         announce-gen: include [$release_type] in emitted Subject:
64132         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
64133         e.g., [stable] in the emitted Subject: line.
64135 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64137         Remove obsolete macros from several modules.
64138         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
64139         obsolete Autoconf macros with their modern counterparts.
64140         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
64141         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
64142         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
64143         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
64144         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
64145         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
64146         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
64147         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
64148         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
64149         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
64150         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
64151         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
64152         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
64153         * m4/sockets.m4 (gl_SOCKETS): Likewise.
64154         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
64155         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
64156         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
64157         * m4/time_r.m4 (gl_TIME_R): Likewise.
64158         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
64159         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
64160         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
64162         Fix copyright header in build-aux scripts.
64163         * build-aux/git-version-gen: Fix copyright header to match GPLv3
64164         recommendation.
64165         * build-aux/ncftpput-ftp: Likewise.
64166         * build-aux/update-copyright: Likewise.
64168 2009-09-09  Eric Blake  <ebb9@byu.net>
64170         test-link: allow Linux choice of errno
64171         * tests/test-link.c (main): Relax test for alternate error.
64173         strndup: fix improper m4 caching
64174         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
64175         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
64176         (gl_PREREQ_STRNDUP): Delete.
64177         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
64178         * modules/string (Makefile.am): Substitute it.
64179         * lib/string.in.h (strndup): Modernize prototype.
64181         getcwd: port to mingw
64182         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
64183         different from the POSIX assumptions made throughout the getcwd
64184         module; fortunately, the mingw getcwd does not need replacement.
64185         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
64186         * modules/getcwd-tests: New test.
64187         * tests/test-getcwd.c: Likewise.
64189         link: fix platform bugs
64190         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
64191         * lib/link.c (link): Work around them.  Fix related mingw bug.
64192         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
64193         * modules/unistd (Makefile.am): Substitute it.
64194         * lib/unistd.in.h (link): Declare replacement.
64195         * doc/posix-functions/link.texi (link): Document this.
64196         * modules/link (Depends-on): Add strdup-posix, sys_stat.
64198         test-link: consolidate into single C program, test more cases
64199         * tests/test-link.sh: Delete.
64200         * tests/test-link.c: Test more error conditions.  Exposes bugs on
64201         at least Cygwin and Solaris.
64202         * modules/link-tests (Files): Remove unused file.
64203         (Depends-on): Add errno, sys_stat.
64204         (Makefile.am): Simplify.
64206 2009-09-08  Bruno Haible  <bruno@clisp.org>
64208         Work around towlower, towupper bug on mingw.
64209         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
64210         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
64211         * doc/posix-functions/towlower.texi: Mention the mingw bug.
64212         * doc/posix-functions/towupper.texi: Likewise.
64213         Reported by Eric Blake.
64215 2009-09-08  Jim Meyering  <meyering@redhat.com>
64217         build: don't try to run autoheader if we don't use it
64218         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
64219         is not used in configure.ac.
64221 2009-09-08  Eric Blake  <ebb9@byu.net>
64223         euidaccess: fix compilation error
64224         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
64226         rawmemchr: relax license
64227         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
64228         okay.
64229         Reported by Jim Meyering.
64231         mkfifoat: new module
64232         * modules/mkfifoat: New file.
64233         * lib/mkfifoat.c: Likewise.
64234         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
64235         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
64236         * modules/sys_stat (Makefile.am): Use them.
64237         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
64238         * MODULES.html.sh (File system functions): Mention module.
64239         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
64240         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
64241         * modules/mkfifoat-tests: New test.
64242         * tests/test-mkfifoat.c: Likewise.
64244         strchrnul: relax license
64245         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
64246         okay.
64247         Reported by Jim Meyering.
64249 2009-09-08  Eric Blake  <ebb9@byu.net>
64251         fstatat: fix compilation on Solaris
64252         * lib/fstatat.c (includes): Add fcntl.h.
64253         Reported by Pádraig Brady.
64255 2009-09-07  Eric Blake  <ebb9@byu.net>
64257         rename: modernize replacement
64258         * modules/rename (Depends-on): Add stdio.
64259         (configure.ac): Declare witness.
64260         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
64261         stdio take care of replacement.
64262         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
64263         * modules/stdio (Makefile.am): Substitute them.
64264         * lib/stdio.in.h (rename): Declare replacement.
64265         * lib/rename.c (includes): Allow cross-compilation to non-windows
64266         machines.
64267         * doc/posix-functions/rename.texi (rename): Improve
64268         documentation.
64270         stdio: sort witness names
64271         * modules/stdio (Makefile.am): Sort replacements.
64272         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
64273         * lib/stdio.in.h: Likewise.
64275         getcwd: minor cleanups
64276         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
64277         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
64279         openat: provide more convenience names
64280         * modules/faccessat (configure.ac): Add C witness.
64281         * lib/unistd.in.h (readlinkat): Fix typo.
64282         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
64283         convenience wrappers.
64284         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
64285         wrappers in syntax checks.
64287 2009-09-06  Eric Blake  <ebb9@byu.net>
64289         doc: fix comments in recent patches
64290         * lib/faccessat.c: Mention correct function.
64291         * lib/fchmodat.c: Likewise.
64292         * lib/fchownat.c: Likewise.
64293         * lib/symlinkat.c: Likewise.
64294         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
64295         constants.
64297         faccessat, symlinkat: continue cleanup of previous patch
64298         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
64299         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
64300         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
64301         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
64302         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
64303         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
64304         set.
64306 2009-09-06  Bruno Haible  <bruno@clisp.org>
64308         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
64309         (fstatat): Declare if GNULIB_FSTATAT is set.
64310         (mkdirat): Declare if GNULIB_MKDIRAT is set.
64311         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
64312         (unlinkat): Declare if GNULIB_UNLINKAT is set.
64313         * modules/fcntl-h (Files): Remove m4/openat.m4.
64314         * modules/sys_stat (Files): Remove m4/openat.m4.
64315         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
64316         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
64317         * modules/unistd (Files): Remove m4/openat.m4.
64318         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
64319         GNULIB_OPENAT.
64320         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
64321         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
64322         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
64323         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
64324         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
64325         gl_OPENAT_DEFAULTS.
64326         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
64327         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
64328         Don't require gl_OPENAT_DEFAULTS.
64329         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
64330         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
64331         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
64332         (gl_OPENAT_DEFAULTS): Remove macro.
64334 2009-09-06  Bruno Haible  <bruno@clisp.org>
64336         * modules/openat (configure.ac): Remove unneeded witness.
64338 2009-09-06  Bruno Haible  <bruno@clisp.org>
64340         Set errno to ENOSYS when a function is entirely unsupported.
64341         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
64342         EOPNOTSUPP.
64343         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
64344         * modules/chown (Depends-on): Remove errno.
64346 2009-09-06  Bruno Haible  <bruno@clisp.org>
64348         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
64350 2009-09-06  Bruno Haible  <bruno@clisp.org>
64352         * lib/sys_stat.in.h: Fix preprocessor command indentation.
64354 2009-09-06  Ben Pfaff  <blp@gnu.org>
64355             Bruno Haible  <bruno@clisp.org>
64357         Work around a glibc bug in strtok_r.
64358         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
64359         Undefine if UNDEFINE_STRTOK_R is set.
64360         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
64361         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
64362         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
64363         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
64364         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
64365         UNDEFINE_STRTOK_R.
64366         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
64368 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
64370         exclude: minor fix
64371         * lib/exclude.c: Include wctype.h
64373 2009-09-06  Akim Demaille  <demaille@gostai.com>
64375         bootstrap: improve error message
64376         * build-aux/bootstrap (find_tool): Upon failure, report the list
64377         of candidates.
64378         Honor the initial value of the envvar.
64380 2009-09-05  Eric Blake  <ebb9@byu.net>
64382         symlinkat: new module
64383         * modules/symlinkat: New file.
64384         * lib/symlinkat.c: Likewise.
64385         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
64386         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
64387         * modules/unistd (Makefile.am): Use them.
64388         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
64389         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
64390         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
64391         * MODULES.html.sh (File system functions): Mention module.
64392         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
64393         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
64394         * modules/symlinkat-tests: New test.
64395         * tests/test-symlinkat.c: Likewise.
64397         test-openat-safer: add more checks
64398         * tests/test-openat-safer.c (main): Check more code paths.
64400 2009-09-05  Jim Meyering  <meyering@redhat.com>
64402         syntax-check: detect unnecessary inclusion of openat.h
64403         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
64405 2009-09-05  Bruno Haible  <bruno@clisp.org>
64407         Support towlower, towupper.
64408         * doc/posix-functions/towlower.texi: Mention module wctype.
64409         * doc/posix-functions/towupper.texi: Likewise.
64410         * lib/wctype.in.h (towlower, towupper): New functions.
64411         * tests/test-wctype.c: Include stdio.h, stdlib.h.
64412         (ASSERT): New macro.
64413         (e): New variable.
64414         (main): Test also towlower, towupper. Test WEOF argument.
64415         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
64417 2009-09-05  Bruno Haible  <bruno@clisp.org>
64419         Fix conversion behaviour when the input is invalid.
64420         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
64421         mark occurring in first pass of indirect conversion.
64422         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
64423         input.
64424         Found by clang's static analyzer.
64426 2009-09-05  Bruno Haible  <bruno@clisp.org>
64428         * tests/test-striconveh.c (main): Test indirect conversion on platforms
64429         where direct conversion is possible.
64431 2009-09-04  Eric Blake  <ebb9@byu.net>
64433         openat: fail with ENOENT on empty name
64434         * lib/openat-proc.c (openat_proc_name): Special-case the empty
64435         buffer.
64437         link-follow: fix logic bug in prior patch
64438         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
64439         reversed sense of yes and no in prior patch.  Avoid confusing
64440         compilation failure with desired semantics.
64442         link-follow: accommodate mingw and cross-compilation
64443         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
64444         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
64445         cross-compilation results to -1, to make linkat easier to
64446         implement when cross-compiling.  Trivially support mingw.
64447         * modules/link-follow (configure.ac): Call new name.
64448         * NEWS: Mention this.
64450 2009-09-03  Eric Blake  <ebb9@byu.net>
64452         faccessat: compile replacement
64453         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
64454         needed.
64456         fts: fix compilation error
64457         * lib/fts.c (includes): Re-add "openat.h", for
64458         openat_needs_fchdir.
64460         faccessat: new module
64461         * modules/faccessat: New file.
64462         * lib/faccessat.c: Likewise.
64463         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
64464         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
64465         * modules/unistd (Makefile.am): Use it.
64466         * lib/unistd.in.h (faccessat): Declare it.
64467         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
64468         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
64469         * MODULES.html.sh (File system functions): Mention it.
64470         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
64471         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
64473         euidaccess: prefer POSIX over non-standard implementation
64474         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
64475         * lib/euidaccess.c (euidaccess): Use it if available.
64477         openat: make template easier to use
64478         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
64479         AT_FUNC_F2 to be undefined.
64480         (VALIDATE_FLAG): New macro; use it to reject bad flags.
64481         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
64482         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
64483         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
64484         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
64485         Likewise.
64486         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
64487         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
64488         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
64489         Likewise.
64491         openat: declare in POSIX headers
64492         * NEWS: Mention this.
64493         * modules/openat (configure.ac): Declare witnesses.
64494         (Depends-on): Add fcntl-h, sys_stat, unistd.
64495         (Include): Mention correct headers.
64496         * modules/fcntl-h (Depends-on): Add link-warning.
64497         (Files): Add openat.m4.
64498         (Makefile.am): Substitute witnesses.
64499         * modules/sys_stat (Files, Makefile.am): Likewise.
64500         * modules/unistd (Files, Makefile.am): Likewise.
64501         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
64502         (gl_OPENAT_DEFAULTS): New macro.
64503         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
64504         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
64505         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
64506         (SYS_STAT_H): Remove unused variable.
64507         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
64508         * lib/fcntl--.h (includes): Remove unneeded header.
64509         * lib/openat-safer.c (includes): Likewise.
64510         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
64511         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
64512         appropriate headers.
64513         (__OPENAT_PREFIX): Delete.
64514         * lib/fcntl.in.h (openat): Provide declaration.
64515         (AT_FDCWD): Fix Solaris bug.
64516         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
64517         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
64518         * lib/fchmodat.c (includes):  Adjust to find declaration.
64519         * lib/fchownat.c (includes): Likewise.
64520         * lib/mkdirat.c (includes): Likewise.
64521         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
64522         still visible.
64524 2009-09-02  Eric Blake  <ebb9@byu.net>
64526         errno: use consistently
64527         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
64528         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
64529         * lib/canonicalize.c (ELOOP): Likewise.
64530         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
64531         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
64532         * lib/lchown.c (EOPNOTSUPP): Likewise.
64533         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
64534         * lib/savewd.c (ESTALE): Likewise.
64535         * lib/settime.c (ENOSYS): Likewise.
64536         * lib/utimens.c (ENOSYS): Likewise.
64537         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
64538         * lib/chdir-safer.c (ELOOP): Likewise.
64539         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
64540         * modules/c-stack (Depends-on): Add errno.
64541         * modules/canonicalize (Depends-on): Likewise.
64542         * modules/chdir-safer (Depends-on): Likewise.
64543         * modules/fdopendir (Depends-on): Likewise.
64544         * modules/inet_ntop (Depends-on): Likewise.
64545         * modules/inet_pton (Depends-on): Likewise.
64546         * modules/lchown (Depends-on): Likewise.
64547         * modules/openat (Depends-on): Likewise.
64548         * modules/savewd (Depends-on): Likewise.
64549         * modules/settime (Depends-on): Likewise.
64550         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
64552         fts: avoid leaking fds
64553         * modules/fts (Depends-on): Add cloexec.
64554         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
64555         flag.
64557         fts: make directory fds more robust
64558         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
64559         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
64561         backupfile, chdir-long, fts, savedir: make safer
64562         * lib/backupfile.c (includes): Use "dirent--.h", since
64563         numbered_backup can write to stderr during readdir.
64564         * lib/savedir.c (includes): Likewise.
64565         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
64566         emulation can write to stderr on failure.
64567         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
64568         * lib/getcwd.c: Document why opendir_safer is unused.
64569         * lib/glob.c: Likewise.
64570         * lib/scandir.c: Likewise.
64571         * lib/openat-proc.c: Likewise, for open_safer.
64572         * modules/backupfile (Depends-on): Add dirent-safer.
64573         * modules/savedir (Depends-on): Likewise.
64574         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
64575         * modules/chdir-long (Depends-on): Add openat-safer.
64577         openat-safer: new module
64578         * modules/openat-safer: New file.
64579         * lib/openat-safer.c: Likewise.
64580         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
64581         * lib/fcntl-safer.h (openat_safer): Declare.
64582         * lib/fcntl--.h (openat): Override.
64583         * MODULES.html.sh (File descriptor based I/O): Mention it.
64584         * lib/openat.h: Add double-inclusion guards.
64585         * lib/openat.c (includes): Only include "fcntl-safer.h", not
64586         "fcntl--.h", so we can implement openat.
64587         * modules/openat-safer-tests: New test.
64588         * tests/test-openat-safer.c: New file.
64590         dirent-safer: new module
64591         * modules/dirent-safer: New file.
64592         * lib/dirent--.h: Likewise.
64593         * lib/dirent-safer.h: Likewise.
64594         * lib/opendir-safer.c: Likewise.
64595         * m4/dirent-safer.m4: Likewise.
64596         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
64597         * modules/dirent-safer-tests: New test.
64598         * tests/test-dirent-safer.c: New file.
64599         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
64601         fdopendir: optimize on mingw
64602         * lib/unistd.in.h (_gl_directory_name): New prototype.
64603         * lib/fchdir.c (_gl_directory_name): Implement it.
64604         (fchdir): Use it to simplify implementation.
64605         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
64606         fchdir, when available, to avoid calling [f]chdir().
64608         fdopendir: split into its own module
64609         * lib/openat.c (fdopendir): Move...
64610         * lib/fdopendir.c: ...into new file.
64611         * modules/fdopendir: New module.
64612         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
64613         * modules/openat (Depends-on): Add fdopendir.
64614         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
64615         fdopendir here.
64616         * modules/savedir (Depends-on): Only need fdopendir, not full
64617         openat.
64618         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
64619         * lib/openat.h (fdopendir): Drop prototype.
64620         * lib/dirent.in.h (fdopendir): Provide prototype.
64621         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
64622         * modules/dirent (Makefile.am): Substitute them.
64623         * MODULES.html.sh (File system functions): Mention it.
64624         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
64625         * modules/fdopendir-tests: New file.
64626         * tests/test-fdopendir.c: Likewise.
64628         fchdir: use more consistent macro convention
64629         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
64630         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
64631         REPLACE_FCHDIR, rather than relying on config.h macros.
64632         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
64633         inside a single make-time REPLACE_FCHDIR block, rather than using
64634         the config.h FCHDIR_REPLACEMENT.
64635         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
64636         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
64637         Manage fstat replacement.
64638         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
64639         REPLACE_FCHDIR.
64640         * modules/sys_stat (Files): Add m4/unistd_h.m4.
64641         (Makefile.am): Substitute REPLACE_FCHDIR.
64642         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
64643         FCHDIR_REPLACEMENT.
64644         * lib/dup-safer.c (dup_safer): Likewise.
64645         * lib/dup2.c (rpl_dup2): Likewise.
64646         * lib/dup3.c (rpl_dup3): Likewise.
64647         * lib/open.c (rpl_open): Likewise.
64649         fchdir: simplify error handling, and support dup3
64650         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
64651         stdbool, malloc-posix, realloc-posix.
64652         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
64653         (ensure_dirs_slot): Return false on allocation failure.
64654         (rpl_dup2): Delete.
64655         (_gl_register_dup): New function.
64656         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
64657         (_gl_register_fd): Close fd on allocation failure.
64658         * lib/fcntl.in.h (_gl_register_fd): Update signature.
64659         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
64660         prototype.
64661         (rpl_dup2_fchdir): Delete prototype.
64662         * lib/open.c (open): Update caller.
64663         * lib/dup2.c (dup2): Track fchdir metadata.
64664         * lib/dup3.c (dup3): Likewise.
64665         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
64666         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
64668 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64670         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
64671         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
64672         don't pass arguments to AC_OUTPUT.
64674 2009-09-02  Bruno Haible  <bruno@clisp.org>
64676         * modules/mkdtemp (License): Relicense under LGPLv2+.
64677         Reported by Paolo Bonzini.
64679 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64681         Replace uses of obsolete autoconf macros in Jim's modules.
64682         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
64683         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
64684         can evoke a warning from autoconf when run with -Wobsolete
64685         enabled.  They were declared obsolete for good reasons (see
64686         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
64687         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
64688         should not continue using the deprecated macros.
64689         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
64690         obsolete Autoconf macros with modern counterparts.
64691         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
64692         * m4/dos.m4 (gl_AC_DOS): Likewise.
64693         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
64694         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
64695         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
64696         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
64697         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
64698         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
64699         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
64700         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
64701         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
64702         Likewise.
64703         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
64704         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
64705         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
64706         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
64707         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
64708         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
64710 2009-09-01  Eric Blake  <ebb9@byu.net>
64712         fchdir: fix off-by-one bug in previous patch
64713         * lib/fchdir.c (rpl_fstat): Use correct bounds.
64714         (_gl_unregister_fd): Delete useless if.
64716 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
64718         maint.mk: sort the list of syntax-check rules
64719         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
64720         easier to get a sense of progress when the rules are run sequentially
64721         and take a long time.
64723 2009-09-01  Simon Josefsson  <simon@josefsson.org>
64725         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
64726         * modules/netinet_in: Likewise.
64727         * modules/sys_file: Likewise.
64728         * modules/sys_ioctl: Likewise.
64729         * modules/sys_select: Likewise.
64730         * modules/sys_socket: Likewise.
64731         * modules/sys_stat: Likewise.
64732         * modules/sys_time: Likewise.
64733         * modules/sys_times: Likewise.
64734         * modules/sys_utsname: Likewise.
64735         * modules/sys_wait: Likewise.
64737 2009-09-01  Jim Meyering  <meyering@redhat.com>
64739         fts: help ensure that return values are not ignored
64740         * lib/fts_.h (__GNUC_PREREQ): Define.
64741         (__attribute_warn_unused_result__): Define.
64742         (fts_children, fts_close, fts_open, fts_read): Declare with
64743         __attribute_warn_unused_result__.
64745         fts: fts_close now fails also when closing a dir file descriptor fails
64746         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
64747         and propagate to caller, along with errno.
64749         announce-gen: correct formatting in --help output
64750         * build-aux/announce-gen (usage): Move the one-line description in
64751         --help output "up", to where it belongs, just after Usage:.
64753 2009-08-31  Eric Blake  <ebb9@byu.net>
64755         fchdir: port to mingw
64756         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
64757         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
64758         opened, then use a substitute.
64759         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
64760         replacement.
64761         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
64762         (_gl_register_fd): No need to check stat if open already filters
64763         all directories.
64764         (fchdir): Fix error condition to match POSIX.
64765         * modules/fchdir (Depends-on): Add sys_stat.
64766         * doc/posix-functions/open.texi (open): Document the limitation.
64767         * modules/fchdir-tests: New file.
64768         * tests/test-fchdir.c: Likewise.
64770         canonicalize: allow cross-testing from cygwin to mingw
64771         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
64772         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
64773         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
64774         Likewise.
64775         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
64776         target does not support symlinks.
64777         * tests/test-canonicalize-lgpl.sh: Likewise.
64779         chown: avoid compilation warning on mingw
64780         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
64781         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
64782         mingw.
64783         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
64784         * modules/chown (Depends-on): Add errno.
64786 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
64788         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
64789         command.
64791 2009-08-31  Jim Meyering  <meyering@redhat.com>
64793         canonicalize: remove useless initialization
64794         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
64795         initialization of local, "end".
64797 2009-08-30  Bruno Haible  <bruno@clisp.org>
64799         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
64800         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
64801         ENOSYS.
64803 2009-08-30  Bruno Haible  <bruno@clisp.org>
64805         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
64806         /usr/xpg4/bin/tr when it exists.
64807         * tests/test-pipe-filter-gi1.sh: Likewise.
64809 2009-08-30  Bruno Haible  <bruno@clisp.org>
64811         Work around deficient /usr/bin/id program on Solaris.
64812         * tests/test-file-has-acl.sh (ID): New variable.
64813         * tests/test-set-mode-acl.sh (ID): Likewise.
64814         * tests/test-copy-acl.sh (ID): Likewise.
64815         * tests/test-copy-file.sh (ID): Likewise.
64817 2009-08-30  Bruno Haible  <bruno@clisp.org>
64819         New module 'xstriconveh'.
64820         * lib/xstriconveh.h: New file.
64821         * lib/xstriconveh.c: New file.
64822         * modules/xstriconveh: New file.
64824 2009-08-30  Bruno Haible  <bruno@clisp.org>
64826         Make it easier to use mem_cd_iconveh.
64827         * lib/striconveh.h (iconveh_t): New type.
64828         (iconveh_open, iconveh_close): New declarations.
64829         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
64830         with a single 'const iconveh_t *' argument.
64831         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
64832         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
64833         with a single 'const iconveh_t *' argument.
64834         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
64835         * tests/test-striconveh.c (main): Update.
64836         * NEWS: Mention the change.
64838 2009-08-30  Bruno Haible  <bruno@clisp.org>
64840         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
64841         problem.
64843 2009-08-30  Bruno Haible  <bruno@clisp.org>
64845         Work around iconv_open problem on Solaris.
64846         * lib/iconv_open-solaris.gperf: New file.
64847         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
64848         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
64849         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
64850         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
64851         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
64852         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
64854 2009-08-29  Jim Meyering  <meyering@redhat.com>
64856         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
64857         * top/maint.mk (cvs-check): Remove target; it was just an alias
64858         to the better-named vc-diff-check.
64859         (maintainer-distcheck): Remove rule.  It was used only from
64860         the (alpha/beta/major) target, and all of its commands but one
64861         were coreutils-specific.
64862         (vc-dist): Remove rule.
64863         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
64864         Run vc-diff-check, not vc-dist.
64865         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
64867 2009-08-27  Bruno Haible  <bruno@clisp.org>
64869         * tests/test-bitrotate.c (main): Remove test that uses a shift count
64870         of 0.
64872 2009-08-27  Bruno Haible  <bruno@clisp.org>
64874         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
64875         compilers.
64876         * doc/func.texi: Document the SunPRO C bug.
64878 2009-08-27  Bruno Haible  <bruno@clisp.org>
64880         Fix link error on Solaris.
64881         * tests/test-parse-duration.c (xstrdup): Remove function.
64883 2009-08-26  Pádraig Brady  <P@draigbrady.com>
64885         ignore-value: handle pointer types, too
64886         * lib/ignore-value.h (__attribute__): Remove definition.
64887         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
64888         of a more concise and more-often effective "(void) i" statement.
64889         (ignore_ptr): New function to suppress warnings from functions that
64890         return pointers, and to make it explicit that one function doesn't
64891         handle all cases.
64893 2009-08-25  Bruno Haible  <bruno@clisp.org>
64895         dup2: work around a Linux bug.
64896         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
64897         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
64898         * doc/posix-functions/dup2.texi: Mention the Linux bug.
64899         Reported by Simon Josefsson.
64901 2009-08-25  Jim Meyering  <meyering@redhat.com>
64903         libguestfs uses gnulib
64904         * users.txt: Add libguestfs.
64906 2009-08-24  Eric Blake  <ebb9@byu.net>
64908         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
64909         * lib/pipe2.c (includes): Add binary-io.h.
64910         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
64912 2009-08-24  Bruno Haible  <bruno@clisp.org>
64914         Tolerate declared but missing accept4 syscall.
64915         * lib/accept4.c (accept4): Invoke original accept4 function first, if
64916         available.
64917         * lib/sys_socket.in.h (accept4): If the function is already present,
64918         override it.
64919         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
64920         * modules/accept4 (Makefile.am): Compile accept4.c always.
64921         Reported by Paolo Bonzini and Eric Blake.
64923 2009-08-23  Bruno Haible  <bruno@clisp.org>
64925         New module 'accept4'.
64926         * lib/sys_socket.in.h (accept4): New declaration.
64927         * lib/accept4.c: New file.
64928         * m4/accept4.m4: New file.
64929         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
64930         GNULIB_ACCEPT4, HAVE_ACCEPT4.
64931         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
64932         HAVE_ACCEPT4.
64933         * modules/accept4: New file.
64934         * doc/glibc-functions/accept4.texi: Mention the new module.
64936 2009-08-24  Jim Meyering  <meyering@redhat.com>
64938         progname: also set global program_invocation_name, when possible
64939         Before this change, a libtool-enabled program that calls glibc's
64940         error function would report the program name as
64941         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
64942         * modules/progname (configure.ac): Check for a declaration of
64943         program_invocation_name.
64944         * lib/progname.c:  Include <errno.h>.
64945         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
64946         Set program_invocation_name.
64948 2009-08-23  Bruno Haible  <bruno@clisp.org>
64950         * lib/dup3.c: Include <string.h>.
64952 2009-08-23  Bruno Haible  <bruno@clisp.org>
64954         * lib/dup3.c (dup3): Test only once whether the system actually exists.
64955         * lib/pipe2.c (pipe2): Likewise.
64956         Suggested by Eric Blake.
64958 2009-08-23  Bruno Haible  <bruno@clisp.org>
64960         Tolerate declared but missing dup3 syscall.
64961         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
64962         * lib/unistd.in.h (dup3): If the function is already present,
64963         override it.
64964         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
64965         * modules/dup3 (Makefile.am): Compile dup3.c always.
64966         Reported by Paolo Bonzini.
64968 2009-08-23  Bruno Haible  <bruno@clisp.org>
64970         Tolerate declared but missing pipe2 syscall.
64971         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
64972         available.
64973         * lib/unistd.in.h (pipe2): If the function is already present,
64974         override it.
64975         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
64976         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
64977         Reported by Paolo Bonzini.
64979 2009-08-23  Bruno Haible  <bruno@clisp.org>
64981         * lib/pipe2.c (pipe2): Move #ifs inside function.
64983 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
64985         quotearg: document limitations of quote_these_too
64986         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
64987         those limitations are created.
64988         * lib/quotearg.h (set_char_quoting): Document that digits and
64989         letters that are special after backslash are not permitted.
64990         (quotearg_char): Cross-reference set_char_quoting documentation.
64992 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
64994         quotearg: implement custom_quoting_style
64995         * lib/quotearg.c: (struct quoting_options): Add left_quote and
64996         right_quote fields.
64997         (set_custom_quoting): New public function.
64998         (quotearg_buffer_restyled): Add left_quote and right_quote
64999         arguments, handle them very much like locale quoting, and update
65000         all uses.
65001         (quotearg_n_custom): New public function.
65002         (quotearg_n_custom_mem): New public function.
65003         (quotearg_custom): New public function.
65004         (quotearg_custom_mem): New public function.
65005         * lib/quotearg.h: Prototype and document new public functions.
65006         (enum quoting_style): For escape_quoting_style and
65007         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
65008         ignored even though they're otherwise like c_quoting_style.
65009         Add custom_quoting_style member and document with comparison to
65010         clocale_quoting_style.
65011         * tests/test-quotearg.c (custom_quotes): New array.
65012         (custom_results): New array.
65013         (main): Extend to test custom quoting.
65015 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
65017         quotearg: fix right quote escaping when it's in quote_these_too
65018         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
65019         quote, be sure to prepend only one backslash.
65020         * tests/test-quotearg.c (use_quote_double_quotes): New function.
65021         (main): Test it.
65023 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
65025         quotearg-tests: test escaping of embedded locale quotes
65026         * tests/test-quotearg.c (struct result_strings): Add member for
65027         new input.
65028         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
65029         (inputs): Add new input.
65030         (results_g): Add expected results.
65031         (flag_results): Likewise.
65032         (locale_results): Likewise.
65033         (compare_strings): Check those.
65035 2009-08-23  Bruno Haible  <bruno@clisp.org>
65037         Tests for module 'dup3'.
65038         * modules/dup3-tests: New file.
65039         * tests/test-dup3.c: New file.
65041         New module 'dup3'.
65042         * lib/unistd.in.h (dup3): New declaration.
65043         * lib/dup3.c: New file.
65044         * m4/dup3.m4: New file.
65045         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
65046         HAVE_DUP3.
65047         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
65048         * modules/dup3: New file.
65049         * doc/glibc-functions/dup3.texi: Mention the new module.
65051 2009-08-23  Bruno Haible  <bruno@clisp.org>
65053         Tweak the dup2 test.
65054         * tests/test-dup2.c (main): Create the test file empty. Verify that an
65055         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
65056         the test file is still empty. Fix argument order of lseek.
65058 2009-08-23  Bruno Haible  <bruno@clisp.org>
65060         Avoid test link errors when the modules getopt-gnu, gettext are used.
65061         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
65062         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
65064 2009-08-23  Bruno Haible  <bruno@clisp.org>
65066         Fix getdtablesize() on mingw.
65067         * lib/getdtablesize.c (getdtablesize): Implement differently.
65068         * lib/unistd.in.h (getdtablesize): Improve comment.
65070 2009-08-23  Bruno Haible  <bruno@clisp.org>
65072         New module 'mkostemp'.
65073         Based on Ulrich Drepper's 2007-08-10 change in glibc.
65074         * lib/stdlib.in.h (mksotemp): New declaration.
65075         * lib/mkostemp.c: New file, from glibc with modifications.
65076         * lib/tempname.h (GT_FILE): Remove outdated comment.
65077         (gen_tempname): Add flags argument.
65078         * lib/tempname.c (__GT_BIGFILE): Remove macro.
65079         (__GT_FILE): Map to 1.
65080         (small_open, large_open): Remove macros.
65081         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
65082         * lib/mkstemp.c (mkstemp): Update.
65083         * lib/mkdtemp.c (mkdtemp): Likewise.
65084         * m4/mkostemp.m4: New file.
65085         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
65086         HAVE_MKOSTEMP.
65087         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
65088         HAVE_MKOSTEMP.
65089         * modules/mkostemp: New file, based on modules/mkstemp.
65090         * doc/glibc-functions/mkostemp.texi: Mention the new module.
65091         * NEWS: Mention the change.
65093 2009-08-23  Bruno Haible  <bruno@clisp.org>
65095         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
65096         Reported by Eric Blake.
65098 2009-08-23  Bruno Haible  <bruno@clisp.org>
65100         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
65101         Reported by Eric Blake.
65103 2009-08-23  Bruno Haible  <bruno@clisp.org>
65105         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
65106         * modules/pipe2 (Depends-on): Likewise.
65108 2009-08-23  Eric Blake  <ebb9@byu.net>
65110         fcntl-h: add O_TTY_INIT support
65111         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
65112         * tests/test-fcntl-h.c (o): Test it.
65113         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
65115         fcntl-h: rename from fcntl, in preparation for fcntl(2)
65116         * modules/fcntl: Move <fcntl.h> header replacement...
65117         * modules/fcntl-h: ...to new name, so as not to collide with
65118         like-named function.
65119         * tests/test-fcntl.c: Rename...
65120         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
65121         * modules/fcntl-tests: Rename...
65122         * modules/fcntl-h-tests: ...to this.  Update test file name.
65123         * modules/chdir-long (Depends-on): Update clients.
65124         * modules/chdir-safer (Depends-on): Likewise.
65125         * modules/fcntl-safer (Depends-on): Likewise.
65126         * modules/fts (Depends-on): Likewise.
65127         * modules/mkancesdirs (Depends-on): Likewise.
65128         * modules/mkdir-p (Depends-on): Likewise.
65129         * modules/open (Depends-on): Likewise.
65130         * modules/savewd (Depends-on): Likewise.
65131         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
65132         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
65134 2009-08-22  Bruno Haible  <bruno@clisp.org>
65136         * modules/binary-io (License): Relicense under LGPL.
65137         * modules/pipe2 (License): Likewise.
65139 2009-08-22  Bruno Haible  <bruno@clisp.org>
65141         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
65142         return value.
65143         * lib/pipe-filter-gi.c (filter_init): Likewise.
65144         Reported by Eric Blake.
65146 2009-08-22  Bruno Haible  <bruno@clisp.org>
65148         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
65149         * modules/pipe (Depends-on): Add pipe2.
65151 2009-08-22  Bruno Haible  <bruno@clisp.org>
65153         Tests for module 'pipe2'.
65154         * modules/pipe2-tests: New file.
65155         * tests/test-pipe2.c: New file.
65157         New module 'pipe2'.
65158         * lib/unistd.in.h (pipe2): New declaration.
65159         * lib/pipe2.c: New file.
65160         * m4/pipe2.m4: New file.
65161         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
65162         HAVE_PIPE2.
65163         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
65164         * modules/pipe2: New file.
65165         * doc/glibc-functions/pipe2.texi: Mention the new module.
65167 2009-08-22  Bruno Haible  <bruno@clisp.org>
65169         Reference some new glibc functions.
65170         * doc/glibc-functions/accept4.texi: New file.
65171         * doc/glibc-functions/dup3.texi: New file.
65172         * doc/glibc-functions/mkostemp.texi: New file.
65173         * doc/glibc-functions/pipe2.texi: New file.
65174         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
65175         (Glibc sys/socket.h): Refer to accept4.
65176         (Glibc unistd.h): Refer to dup3, pipe2.
65177         Reported by Eric Blake.
65179 2009-08-22  Jim Meyering  <meyering@redhat.com>
65180             Bruno Haible  <bruno@clisp.org>
65182         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
65183         This makes it so packages using automake-1.11's silent-rules option
65184         can print e.g., a single "GEN    configmake.h" line, rather than
65185         the 30+ statements that perform the job.  If you want to see the
65186         actual commands, you can still run "make V=1".
65187         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
65188         so that make output is abbreviated when those variables are defined
65189         appropriately.
65190         * modules/argz: Likewise.
65191         * modules/arpa_inet: Likewise.
65192         * modules/byteswap: Likewise.
65193         * modules/configmake: Likewise.
65194         * modules/dirent: Likewise.
65195         * modules/errno: Likewise.
65196         * modules/fcntl: Likewise.
65197         * modules/float: Likewise.
65198         * modules/fnmatch: Likewise.
65199         * modules/getopt-posix: Likewise.
65200         * modules/glob: Likewise.
65201         * modules/iconv_open: Likewise.
65202         * modules/inttypes: Likewise.
65203         * modules/localcharset: Likewise.
65204         * modules/locale: Likewise.
65205         * modules/math: Likewise.
65206         * modules/netdb: Likewise.
65207         * modules/netinet_in: Likewise.
65208         * modules/poll: Likewise.
65209         * modules/posix_spawnp-tests: Likewise.
65210         * modules/sched: Likewise.
65211         * modules/search: Likewise.
65212         * modules/selinux-h: Likewise.
65213         * modules/signal: Likewise.
65214         * modules/spawn: Likewise.
65215         * modules/stdarg: Likewise.
65216         * modules/stdbool: Likewise.
65217         * modules/stddef: Likewise.
65218         * modules/stdint: Likewise.
65219         * modules/stdio: Likewise.
65220         * modules/stdlib: Likewise.
65221         * modules/string: Likewise.
65222         * modules/strings: Likewise.
65223         * modules/sys_file: Likewise.
65224         * modules/sys_ioctl: Likewise.
65225         * modules/sys_select: Likewise.
65226         * modules/sys_socket: Likewise.
65227         * modules/sys_stat: Likewise.
65228         * modules/sys_time: Likewise.
65229         * modules/sys_times: Likewise.
65230         * modules/sys_utsname: Likewise.
65231         * modules/sys_wait: Likewise.
65232         * modules/sysexits: Likewise.
65233         * modules/time: Likewise.
65234         * modules/unistd: Likewise.
65235         * modules/wchar: Likewise.
65236         * modules/wctype: Likewise.
65238 2009-08-22  Jim Meyering  <meyering@redhat.com>
65240         announce-gen: detect write failure
65241         * build-aux/announce-gen: Add Coda at end.
65242         Remove equivalent-but-more-verbose block at top.
65244 2009-08-19  Akim Demaille  <demaille@gostai.com>
65246         bootstrap: --help to stdout.
65247         * bootstrap (usage): Don't send --help to stderr.
65248         Use a here doc instead of a long string.
65250 2009-08-21  Eric Blake  <ebb9@byu.net>
65252         test-popen-safer: split from test-popen
65253         * tests/test-popen.c (main): Move...
65254         * tests/test-popen.h: ...into new file.
65255         * tests/test-popen-safer2.c: New file.
65256         * modules/popen-tests (Files): Add test-popen.h.
65257         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
65258         Suggested by Bruno Haible.
65260         test-fcntl-safer: split from test-open
65261         * tests/test-open.c (main): Move...
65262         * tests/test-open.h: ...into new file.
65263         * tests/test-fcntl-safer.c: New file.
65264         * modules/open-tests (Files): Add test-open.h.
65265         * modules/fcntl-safer-tests: New file.
65266         Suggested by Bruno Haible.
65268         test-fopen-safer: split from test-fopen
65269         * tests/test-fopen.c (main): Move...
65270         * tests/test-fopen.h: ...into new file.
65271         * tests/test-fopen-safer.c: New file.
65272         * modules/fopen-tests (Files): Add test-fopen.h.
65273         * modules/fopen-safer-tests: New file.
65274         Suggested by Bruno Haible.
65276 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
65278         popen-safer: test O_CLOEXEC at run-time.
65279         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
65281 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
65283         fcntl: move more flags to the header
65284         * lib/cloexec.c: Do not define FD_CLOEXEC here.
65285         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
65286         * lib/fcntl.in.h: Do both things here.
65288 2009-08-21  Jim Meyering  <meyering@redhat.com>
65290         consistently remove $@-t before redirecting to it
65291         * modules/argz: Remove $@-t and $@ before redirecting to the former.
65292         * modules/alloca-opt: Likewise.
65293         * modules/byteswap: Likewise.
65294         * modules/fnmatch: Likewise.
65295         * modules/getopt-posix: Likewise.
65296         * modules/glob: Likewise.
65297         * modules/poll: Likewise.
65298         * modules/posix_spawnp-tests: Likewise.
65299         * modules/sys_socket: Likewise.
65300         * modules/sysexits: Likewise.
65302 2009-08-21  Eric Blake  <ebb9@byu.net>
65304         popen: simplify access to original popen
65305         * lib/popen.c (rpl_popen): No need to worry about popen being a
65306         macro.
65307         Reported by Bruno Haible.
65309 2009-08-20  Eric Blake  <ebb9@byu.net>
65311         build: avoid some compiler warnings
65312         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
65313         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
65314         type.
65315         (new_exclude_segment, excluded_file_pattern_p)
65316         (excluded_file_name_p): Reduce scope.
65317         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
65318         old-style declaration.
65320 2009-08-20  Simon Josefsson  <simon@josefsson.org>
65322         * tests/test-exclude1.sh: Handle Windows EOL.
65323         * tests/test-exclude2.sh: Likewise.
65324         * tests/test-exclude3.sh: Likewise.
65325         * tests/test-exclude4.sh: Likewise.
65326         * tests/test-exclude5.sh: Likewise.
65327         * tests/test-exclude6.sh: Likewise.
65328         * tests/test-exclude7.sh: Likewise.
65330 2009-08-19  Akim Demaille  <demaille@gostai.com>
65332         bootstrap: find sha1sum when named gsha1sum.
65333         * bootstrap (find_tool): New.
65334         ($SHA1SUM): New.
65335         Use it.
65337 2009-08-20  Jim Meyering  <meyering@redhat.com>
65339         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
65340         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
65341         expression that converts "." in a file name to "\." in the resulting
65342         regexp.  Start with a dummy statement, so that prior shell variable
65343         definitions are expanded portably.  Reported by Simon Josefsson.
65345 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
65347         Fix polling for writeability of a screen buffer.
65348         * lib/poll.c: Distinguish input and screen buffers for the
65349         Win32 implementation.
65350         * lib/select.c: Likewise.
65352 2009-08-19  Eric Blake  <ebb9@byu.net>
65354         popen-safer: prevent popen from clobbering std descriptors
65355         * modules/popen-safer: New file.
65356         * lib/popen-safer.c: Likewise.
65357         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
65358         * lib/stdio--.h (popen): Provide override.
65359         * lib/stdio-safer.h (popen_safer): Provide declaration.
65360         * tests/test-popen.c (includes): Partially test this.
65361         * modules/popen-safer-tests: New file, for more tests.
65362         * tests/test-popen-safer.c: Likewise.
65363         * MODULES.html.sh (file stream based Input/Output): Mention it.
65365         tests: test some of the *-safer modules
65366         * modules/fopen-safer (Depends-on): Add fopen.
65367         * modules/fcntl-safer (Depends-on): Add fcntl.
65368         * modules/stdlib-safer (Depends-on): Add stdlib.
65369         (configure.ac): Set indicator.
65370         * modules/unistd-safer (configure.ac): Likewise.
65371         * modules/tmpfile-safer (configure.ac): Likewise.
65372         (Depends-on): Add tmpfile.
65373         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
65374         active.
65375         * tests/test-fopen.c (includes): Test safer versions when they are
65376         in use.
65377         * tests/test-open.c (includes): Likewise.
65379         popen: fix cygwin 1.5 bug when stdin closed
65380         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
65381         * modules/popen: New file.
65382         * modules/popen-tests: Likewise.
65383         * tests/test-popen.c: Likewise.
65384         * m4/popen.m4: Likewise.
65385         * lib/popen.c: Likewise.
65386         * lib/stdio.in.h (popen): New declaration.
65387         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
65388         * modules/stdio (Makefile.am): Likewise.
65389         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
65391 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
65393         maint.mk: give full control over update-copyright exclusions
65394         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
65395         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
65396         (update-copyright): Don't force inclusion of top-level
65397         ChangeLog.  Don't force exclusion of all COPYING files, but make
65398         them the default exclusion instead.
65400 2009-08-16  Bruno Haible  <bruno@clisp.org>
65402         Fix test failures on Solaris 10.
65403         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
65404         tests when Solaris iconv() is used.
65405         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
65406         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
65407         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
65408         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
65409         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
65411 2009-08-16  Bruno Haible  <bruno@clisp.org>
65413         Fix test failures on Solaris 10.
65414         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
65415         'tr' program and pass it as first argument.
65416         * tests/test-pipe-filter-gi1.sh: Likewise.
65417         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
65418         program as first argument.
65419         * tests/test-pipe-filter-gi1.c (main): Likewise.
65421 2009-08-16  Eric Blake  <ebb9@byu.net>
65423         fpurge: fix previous commits
65424         * modules/fpurge (Makefile.am): Make replacement conditional,
65425         partially reverting 2007-04-29 change; missed in previous
65426         attempt.
65427         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
65428         is missing.
65430 2009-08-16  Bruno Haible  <bruno@clisp.org>
65432         Clarify fpurge's effect on the file position.
65433         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
65434         * tests/test-fpurge.c (main): Make a second pass for checking the file
65435         position.
65437 2009-08-16  Bruno Haible  <bruno@clisp.org>
65439         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
65440         declaration of fpurge is missing.
65441         * tests/test-fpurge.c (main): Check that the file has not more contents
65442         than expected. Close the file before removing it.
65444 2009-08-15  Eric Blake  <ebb9@byu.net>
65446         fpurge: don't wrap working cygwin implementation
65447         * lib/fpurge.c (fpurge): Fix comment typo.
65448         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
65449         1.7 to avoid replacement.
65450         * tests/test-fpurge.c (main): Enhance test.
65452 2009-08-15  Eric Blake  <ebb9@byu.net>
65453         and Jim Meyering  <meyering@redhat.com>
65455         test-update-copyright: skip if perl is insufficient
65456         * tests/test-update-copyright.sh: Failure to run maintainer tool
65457         should not cause testsuite failure on cygwin 1.5.
65459 2009-08-14  Eric Blake  <ebb9@byu.net>
65461         doc: mention more functions added in cygwin 1.7.0
65462         * doc/posix-headers/limits.texi (limits.h): Update for recent
65463         cygwin additions.
65464         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
65465         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
65466         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
65467         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
65468         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
65470 2009-08-14  Eric Blake  <ebb9@byu.net>
65472         maint.mk: simplify update-copyright rule
65473         * top/maint.mk (update-copyright-local): Delete, and document how
65474         to do it in cfg.mk instead.
65475         (update-copyright-exclude-regexp): Delete, and document how to do
65476         it in .x-update-copyright instead.
65477         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
65478         exclude ChangeLog.
65480 2009-08-14  Bruno Haible  <bruno@clisp.org>
65482         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
65484 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
65486         maint.mk: support update-copyright-env
65487         * top/maint.mk (update-copyright-env): Define place-holder.
65488         (update-copyright): Expand $(update-copyright-env) before
65489         invoking update-copyright.
65491 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
65493         update-copyright: implement forced reformatting
65494         * build-aux/update-copyright: Implement and document
65495         UPDATE_COPYRIGHT_FORCE.
65496         * tests/test-update-copyright.sh: Test it.
65498 2009-08-14  Eric Blake  <ebb9@byu.net>
65499         and Bruno Haible  <bruno@clisp.org>
65501         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
65502         * tests/test-locale.c: Revert previous patch related to NULL.
65503         * tests/test-stdio.c: Likewise.
65504         * tests/test-stdlib.c: Likewise.
65505         * tests/test-string.c: Likewise.
65506         * tests/test-unistd.c: Likewise.
65507         * modules/time-tests (Depends-on): Add verify.
65508         * modules/wchar-tests (Depends-on): Likewise.
65509         * tests/test-time.c: Test for NULL compliance.
65510         * tests/test-wchar.c: Likewise.
65511         * modules/locale (Depends-on): Add stddef.
65512         * modules/stdio (Depends-on): Likewise.
65513         * modules/stdlib (Depends-on): Likewise.
65514         * modules/string (Depends-on): Likewise.
65515         * modules/time (Depends-on): Likewise.
65516         * modules/unistd (Depends-on): Likewise.
65517         * modules/wchar (Depends-on): Likewise.
65518         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
65519         * lib/stdlib.in.h (includes): Likewise.
65520         * lib/string.in.h (includes): Likewise.
65521         * lib/time.in.h (includes): Likewise.
65522         * lib/unistd.in.h (includes): Likewise.
65523         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
65524         replaced.
65525         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
65526         * m4/stddef_h.m4: New file.
65527         * modules/stddef: Likewise.
65528         * lib/stddef.in.h: Likewise.
65529         * modules/stddef-tests: Likewise.
65530         * tests/test-stddef.c: Likewise.
65531         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
65532         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
65533         * doc/posix-headers/locale.texi (locale.h): Likewise.
65534         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
65535         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
65536         * doc/posix-headers/string.texi (string.h): Likewise.
65537         * doc/posix-headers/time.texi (time.h): Likewise.
65538         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
65539         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
65541 2009-08-14  Eric Blake  <ebb9@byu.net>
65543         doc: improve git diff of texinfo files
65544         * .gitattributes: Add rule for *.texi files, with hint on how to
65545         use it.
65546         Copied from m4, and based on a report by Bruno Haible.
65548 2009-08-14  Bruno Haible  <bruno@clisp.org>
65550         Disable multithread support by default on Cygwin 1.5.x for real.
65551         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
65553 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
65555         update-copyright: much ado about intervals
65556         * build-aux/update-copyright: Implement and document
65557         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
65558         of copyright year intervals.
65559         Also, document UPDATE_COPYRIGHT_YEAR.
65560         * tests/test-update-copyright.sh: Test it.
65562         update-copyright: convert 2-digit to 4-digit years
65563         * build-aux/update-copyright: Implement and document.
65564         * tests/test-update-copyright.sh: Update.
65566 2009-08-14  Jim Meyering  <meyering@redhat.com>
65568         test-exclude: avoid coreutils "make check" failure
65569         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
65570         just as in test-argmatch.c.
65572 2009-08-13  Eric Blake  <ebb9@byu.net>
65574         test-dup2: fix bad assumption
65575         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
65576         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
65578         test-version-etc: fix CRLF portability issue
65579         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
65580         recognize \r.
65581         * tests/test-argp-version-etc-1.sh: Likewise.
65583         getopt: update client modules
65584         * modules/argp (Depends-on): Use getopt-gnu.
65585         * modules/git-merge-changelog (Depends-on): Likewise.
65586         * modules/long-options (Depends-on): Likewise.
65587         * modules/xstrtol (Depends-on): Likewise.
65589 2009-08-13  Simon Josefsson  <simon@josefsson.org>
65591         * tests/test-version-etc.sh: Don't fail on different
65592         project/version.  Don't fail on CRLF differences.  Rewrite to use
65593         multiple -e instead of multiple sed forks, suggested by Eric Blake
65594         <ebb9@byu.net>.
65595         * tests/test-argp-version-etc-1.sh: Likewise.
65597 2009-08-13  Simon Josefsson  <simon@josefsson.org>
65599         * tests/test-version-etc.sh: Don't fail on different
65600         project/version.
65602 2009-08-12  Bruno Haible  <bruno@clisp.org>
65604         Tests for modules 'getopt-posix', 'getopt-gnu'.
65605         * modules/getopt-posix-tests: New file.
65606         * tests/test-getopt.c: New file.
65607         * tests/test-getopt.h: New file.
65608         * tests/test-getopt_long.h: New file.
65610         New modules 'getopt-posix', 'getopt-gnu'.
65611         * modules/getopt-gnu: New file, renamed from modules/getopt.
65612         * modules/getopt-posix: New file.
65613         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
65614         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
65615         (gl_GETOPT): Remove macro.
65616         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
65617         Disable the test against BSD systems that declare optreset. Test
65618         against mingw bug. Test against lack of support of optional arguments
65619         on many platforms.
65620         * doc/glibc-headers/getopt.texi: Update module name and list of
65621         relevant platforms.
65622         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
65623         'getopt-gnu' and more portability problems.
65624         * NEWS: Mention the changes.
65626 2009-08-12  Bruno Haible  <bruno@clisp.org>
65628         Ensure that optarg etc. get declared by <unistd.h>.
65629         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
65630         AC_USE_SYSTEM_EXTENSIONS.
65631         * modules/getopt (Depends-on): Add 'extensions'.
65633 2009-08-12  Bruno Haible  <bruno@clisp.org>
65635         Avoid test link errors.
65636         * modules/pipe-filter-ii-tests (Makefile.am): Define
65637         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
65638         * modules/pipe-filter-gi-tests (Makefile.am): Define
65639         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
65640         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
65642 2009-08-12  Bruno Haible  <bruno@clisp.org>
65644         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
65645         gl_GETOPT_SUBSTITUTE before.
65646         (gl_GETOPT): Use it.
65647         * m4/argp.m4 (gl_ARGP): Update.
65648         Reported by Sergey Poznyakoff.
65650         * m4/getopt.m4: Reorder macros.
65651         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
65652         (gl_GETOPT_SUBSTITUTE): Remove macro.
65654 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
65656         Minor improvement in gitlog-to-changelog
65658         * build-aux/gitlog-to-changelog: New option `--format' makes
65659         output format string configurable.
65661 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
65663         Optimize exclude: use hash tables for non-wildcard patterns.
65665         * lib/exclude.c: Include hash.h and mbuiter.h
65666         (struct exclude_pattern, exclude_segment): New data types.
65667         (struct exclude): Rewrite.
65668         (fnmatch_pattern_has_wildcards): New function.
65669         (new_exclude_segment, free_exclude_segment): New functions.
65670         (excluded_file_pattern_p, excluded_file_name_p): New functions.
65671         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
65672         * lib/exclude.h (is_fnmatch_pattern): New prototype.
65673         * modules/exclude: Depend on hash and mbuiter.
65675         * modules/exclude-tests: New file.
65676         * tests/test-exclude.c: New file.
65677         * tests/test-exclude1.sh: New file.
65678         * tests/test-exclude2.sh: New file.
65679         * tests/test-exclude3.sh: New file.
65680         * tests/test-exclude4.sh: New file.
65681         * tests/test-exclude5.sh: New file.
65682         * tests/test-exclude6.sh: New file.
65683         * tests/test-exclude7.sh: New file.
65685 2009-08-12  Bruno Haible  <bruno@clisp.org>
65687         Ensure that getopt() gets declared by <unistd.h>.
65688         * lib/unistd.in.h: Conditionally include getopt.h.
65689         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
65690         Set GNULIB_UNISTD_H_GETOPT.
65691         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
65692         GNULIB_UNISTD_H_GETOPT.
65693         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
65695 2009-08-12  Bruno Haible  <bruno@clisp.org>
65697         Clarify logic.
65698         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
65699         gl_replace_getopt instead of GETOPT_H.
65701 2009-08-12  Bruno Haible  <bruno@clisp.org>
65703         * m4/getopt.m4: Add comments.
65705 2009-08-12  Bruno Haible  <bruno@clisp.org>
65707         Disable multithread support by default on Cygwin 1.5.x.
65708         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
65709         set gl_use_threads=no if not specified otherwise.
65711 2009-08-11  Bruno Haible  <bruno@clisp.org>
65713         Avoid compilation error on NetBSD 5.0.
65714         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
65715         * tests/test-stdio.c: Likewise.
65716         * tests/test-stdlib.c: Likewise.
65717         * tests/test-string.c: Likewise.
65718         * tests/test-unistd.c: Likewise.
65719         Reported by Greg Troxel <gdt@ir.bbn.com>
65720         at <https://savannah.gnu.org/support/?106973>.
65722 2009-08-11  Bruno Haible  <bruno@clisp.org>
65724         * modules/dup2-tests (Depends-on): Remove close.
65726         Undo 2009-07-19 commit.
65727         * modules/acl-tests (Depends-on): Remove close.
65728         * modules/binary-io-tests (Depends-on): Likewise.
65729         * modules/closein-tests (Depends-on): Likewise.
65730         * modules/flock-tests (Depends-on): Likewise.
65731         * modules/fsync-tests (Depends-on): Likewise.
65732         * modules/lseek-tests (Depends-on): Likewise.
65733         * modules/pipe-tests (Depends-on): Likewise.
65734         * modules/posix_spawn-tests (Depends-on): Likewise.
65735         * modules/posix_spawnp-tests (Depends-on): Likewise.
65736         * modules/stat-time-tests (Depends-on): Likewise.
65737         * modules/yesno-tests (Depends-on): Likewise.
65739 2009-08-10  Bruno Haible  <bruno@clisp.org>
65741         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
65743 2009-08-10  Bruno Haible  <bruno@clisp.org>
65745         Fix a gcc warning.
65746         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
65748 2009-08-10  Bruno Haible  <bruno@clisp.org>
65750         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
65751         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
65752         not only the first time.
65753         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
65754         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
65755         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
65756         is 1, not only the first time.
65758 2009-08-10  Bruno Haible  <bruno@clisp.org>
65760         Make it possible to use module 'gethostname' without module 'close'.
65761         * lib/unistd.in.h (close): Evoke a link error only if
65762         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
65763         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
65764         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
65765         * modules/unistd (Makefile.am): Substitute
65766         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
65767         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
65768         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
65769         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
65770         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
65771         * modules/sys_ioctl (Makefile.am): Substitute
65772         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
65773         * modules/socket (configure.ac): On native Windows, set
65774         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
65775         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
65776         Reported by Sam Steingold <sds@gnu.org>.
65778 2009-08-10  Bruno Haible  <bruno@clisp.org>
65780         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
65781         * modules/ioctl (configure.ac): Likewise.
65783 2009-08-10  Bruno Haible  <bruno@clisp.org>
65785         Avoid collision between gnulib wrapper and libintl wrapper.
65786         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
65787         already defined in intl/printf.c.
65788         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
65789         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
65791 2009-08-09  Bruno Haible  <bruno@clisp.org>
65793         Make <sys/select.h> really self-contained, also on Solaris 10.
65794         * lib/sys_select.in.h: Include <string.h>.
65795         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
65796         Solaris 10 problem.
65797         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
65798         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
65799         Reported by Jim Meyering.
65801 2009-08-09  Bruno Haible  <bruno@clisp.org>
65803         Avoid warnings from 'aclocal' that are due to a use of macro name
65804         AM_XGETTEXT_OPTION that is not defined in automake.
65805         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
65806         automake.
65807         * modules/error (configure.ac): Likewise.
65808         * modules/propername (configure.ac): Likewise.
65809         * modules/vasprintf (configure.ac): Likewise.
65810         * modules/verror (configure.ac): Likewise.
65811         * modules/xprintf (configure.ac): Likewise.
65812         * modules/xvasprintf (configure.ac): Likewise.
65814 2009-08-08  Bruno Haible  <bruno@clisp.org>
65816         Avoid compilation error in C++ mode.
65817         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
65818         Reported by Sam Steingold <sds@gnu.org>.
65820 2009-08-08  Bruno Haible  <bruno@clisp.org>
65822         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
65823         for the various Unix platforms.
65824         * doc/posix-headers/limits.texi: Update platforms list regarding
65825         HOST_NAME_MAX.
65826         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
65828 2009-08-07  Jim Meyering  <meyering@redhat.com>
65830         selinux-at: fix typo in a comment
65831         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
65832         Spotted by Paolo Bonzini.
65834         selinux-at: remove redundant m4 code, add documentation
65835         * modules/selinux-at (configure.ac): Remove redundant code.
65836         LIB_SELINUX is already set via the dependent module, selinux-h.
65837         (Include): Add quotes around selinux-at.h.
65838         * lib/selinux-at.h: Add documentation.
65839         Reported by Bruno Haible in
65840         http://marc.info/?l=gnulib-bug&m=124958988300749
65842 2009-08-07  Bruno Haible  <bruno@clisp.org>
65844         Avoid link error on MacOS X 10.3 and 10.4.
65845         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
65846         on non-ELF systems.
65847         * lib/argp-pv.c (argp_program_version): Likewise.
65848         Reported by Simon Josefsson.
65850 2009-08-07  Simon Josefsson  <simon@josefsson.org>
65852         * tests/test-version-etc.sh: Use $EXEEXT.
65854 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
65856         update-copyright: update documentation to point to maint.mk
65857         * build-aux/update-copyright: Here.
65859 2009-08-06  Jim Meyering  <meyering@redhat.com>
65861         maint.mk: support update-copyright-local
65862         * top/maint.mk (update-copyright-local): Define place-holder.
65863         (update-copyright): Depend on $(update-copyright-local).
65865 2009-08-06  Jim Meyering  <meyering@redhat.com>
65867         selinux-at: new module
65868         Initially written for coreutils, this module will soon be
65869         used by findutils, too.
65870         * MODULES.html.sh [Misc]: Add selinux-at.
65871         * lib/selinux-at.h: New file, from coreutils.
65872         * lib/selinux-at.c: Likewise.
65873         * modules/selinux-at: Likewise.
65874         (License): Change from LGPL to GPL, since it depends
65875         on the GPL'd openat module.
65877         doc: update README
65878         * README: Remove references to cogito.
65879         Remove cvs-repo-updating instructions from 2007.
65880         Don't imply that CVS is better if you have limited disk space.
65882 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
65884         update-copyright: support C-style comments
65885         * build-aux/update-copyright: Implement and document.
65886         * tests/test-update-copyright.sh: Test.
65888 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
65890         update-copyright: support omitted "(C)"
65891         * build-aux/update-copyright: Implement and document.  Also,
65892         allow variable whitespace before "(C)".
65893         * tests/test-update-copyright.sh: Test.
65895 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
65897         update-copyright: don't trip on non-FSF copyright statements
65898         * build-aux/update-copyright: Fix so that the first correctly
65899         formatted FSF copyright statement is recognized no matter what
65900         appears before it.  Update documentation.
65901         * tests/test-update-copyright.sh: Test that.
65903 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
65905         update-copyright: clean up code a little
65906         * build-aux/update-copyright: Append "_re" to the name of any
65907         variable holding a regular expression.
65908         Replace "old" and "new" with "stmt" in variable names.
65909         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
65910         handled correctly.
65911         Format code more consistently.
65913 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
65915         update-copyright-tests: improve portability
65916         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
65917         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
65919 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
65921         update-copyright: support @copyright{} and &copy;
65922         * build-aux/update-copyright: Implement and document.
65923         * tests/test-update-copyright.sh: Test.
65925 2009-08-04  Jim Meyering  <meyering@redhat.com>
65927         update-copyright-tests: correctly test EOL=\r\n handling
65928         * tests/test-update-copyright.sh: Put \r at the end of some lines
65929         for the dos-eol tests.  Based on a patch by Joel E. Denny.
65931         maint.mk: make update-copyright exclusion list more configurable
65932         * top/maint.mk (update-copyright): Default to excluding COPYING,
65933         but allow an override, in case someone does want to update that file.
65935         maint.mk: don't update copyright date in COPYING
65936         * top/maint.mk (update-copyright): Exclude COPYING.
65938         maint.mk: add a copyright-updating rule
65939         * top/maint.mk (update-copyright): New rule.
65940         Derived from coreutils/Makefile.am.
65942         update-copyright: rename some variables
65943         * build-aux/update-copyright: Rename a few variables for clarity.
65944         Tweak syntax.  List Joel E. Denny as coauthor.
65946 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
65948         update-copyright: fix bug for 2-digit last year and add tests
65949         * build-aux/update-copyright: Fix bug.
65950         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
65951         specified.
65952         * modules/update-copyright-tests: New
65953         * tests/test-update-copyright.sh: New.
65955 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
65957         update-copyright: handle leading tabs in line prefix
65958         * build-aux/update-copyright: Count leading tabs as 8 spaces
65959         when computing margin.  This helps with the formatting of
65960         ChangeLogs, for example.
65961         Fix documentation a little.
65963 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
65965         update-copyright: support EOL=\r\n
65966         * build-aux/update-copyright: Implement that.
65968 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
65970         update-copyright: automatically format copyright statements
65971         * build-aux/update-copyright: Implement that.
65972         Also, be a little more predictable and safer by always failing
65973         when the full copyright format is not perfectly recognized as an
65974         unbroken whole.  Discussed at
65975         <http://lists.gnu.org/r/bug-gnulib/2009-07/msg00131.html>.
65976         Rewrite documentation.
65978 2009-08-03  Bruno Haible  <bruno@clisp.org>
65980         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
65982 2009-08-02  Bruno Haible  <bruno@clisp.org>
65984         Tests for module 'uname'.
65985         * modules/uname-tests: New file.
65986         * tests/test-uname.c: New file.
65988         New module 'uname'.
65989         * lib/uname.c: New file.
65990         * m4/uname.m4: New file.
65991         * modules/uname: New file.
65992         * doc/posix-functions/uname.texi: Mention the new module.
65994 2009-08-02  Bruno Haible  <bruno@clisp.org>
65996         Tests for module 'sys_utsname'.
65997         * modules/sys_utsname-tests: New file.
65998         * tests/test-sys_utsname.c: New file.
66000         New module 'sys_utsname'.
66001         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
66002         * m4/sys_utsname_h.m4: New file.
66003         * modules/sys_utsname: New file.
66004         * doc/posix-headers/sys_utsname.texi: Mention the new module.
66006 2009-08-02  Bruno Haible  <bruno@clisp.org>
66008         Implicitly initialize the sockets library.
66009         * lib/gethostname.c: Include sockets.h.
66010         (rpl_gethostname): Invoke gl_sockets_startup.
66011         * lib/socket.c: Include sockets.h.
66012         (rpl_socket): Invoke gl_sockets_startup.
66013         * modules/gethostname (Depends-on): Add sockets.
66014         * modules/socket (Depends-on): Likewise.
66015         * tests/test-poll.c: Don't include sockets.h.
66016         (main): Don't invoke gl_sockets_startup.
66017         * tests/test-select.c: Don't include sockets.h.
66018         (main): Don't invoke gl_sockets_startup.
66020 2009-08-02  Bruno Haible  <bruno@clisp.org>
66022         Allow multiple calls to gl_sockets_startup.
66023         * lib/sockets.c (initialized_sockets_version): New variable.
66024         (gl_sockets_startup): Do nothing if already called for this or a higher
66025         version.
66026         (gl_sockets_cleanup): Reset initialized_sockets_version.
66028 2009-08-03  Simon Josefsson  <simon@josefsson.org>
66030         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
66031         different project/version.
66033 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
66034             Bruno Haible  <bruno@clisp.org>
66036         Tests for module 'pipe-filter-gi'.
66037         * modules/pipe-filter-gi-tests: New file.
66038         * tests/test-pipe-filter-gi1.sh: New file.
66039         * tests/test-pipe-filter-gi1.c: New file.
66040         * tests/test-pipe-filter-gi2.sh: New file.
66041         * tests/test-pipe-filter-gi2-main.c: New file.
66042         * tests/test-pipe-filter-gi2-child.c: New file.
66044         New module 'pipe-filter-gi'.
66045         * lib/pipe-filter-gi.c: New file.
66046         * modules/pipe-filter-gi: New file.
66048 2009-08-02  Bruno Haible  <bruno@clisp.org>
66049             Paolo Bonzini  <bonzini@gnu.org>
66051         Tests for module 'pipe-filter-ii'.
66052         * modules/pipe-filter-ii-tests: New file.
66053         * tests/test-pipe-filter-ii1.sh: New file.
66054         * tests/test-pipe-filter-ii1.c: New file.
66055         * tests/test-pipe-filter-ii2.sh: New file.
66056         * tests/test-pipe-filter-ii2-main.c: New file.
66057         * tests/test-pipe-filter-ii2-child.c: New file.
66059         New module 'pipe-filter-ii'.
66060         * lib/pipe-filter.h: New file.
66061         * lib/pipe-filter-ii.c: New file.
66062         * lib/pipe-filter-aux.h: New file.
66063         * modules/pipe-filter-ii: New file.
66065 2009-08-02  Simon Josefsson  <simon@josefsson.org>
66067         * lib/gc-libgcrypt.c: Change copyright to FSF.
66068         * lib/gc-gnulib.c: Likewise.
66070 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
66072         * lib/gethostname.c: Include limits.h.
66074 2009-08-02  Simon Josefsson  <simon@josefsson.org>
66075             Bruno Haible  <bruno@clisp.org>
66077         Ensure HOST_NAME_MAX as part of the gethostname module.
66078         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
66079         define also HOST_NAME_MAX.
66080         * tests/test-gethostname.c: Include <limits.h>.
66081         (main): Check also HOST_NAME_MAX.
66082         * doc/posix-headers/limits.texi: Document the mingw problem.
66084 2009-08-02  Bruno Haible  <bruno@clisp.org>
66086         * lib/gethostname.c (gethostname): Fix handling of large len argument.
66087         Add comments.
66089 2009-03-31  Simon Josefsson  <simon@josefsson.org>
66091         * lib/gethostname.c: Add Windows wrapper.
66092         * m4/gethostname.m4: Look for gethostname in -lws2_32.
66093         * modules/gethostname: Depend on sys_socket & errno, for also
66094         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
66095         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
66097 2009-07-31  Jim Meyering  <meyering@redhat.com>
66099         getloadavg: fix symbol name in comment
66100         * lib/getloadavg.c: Correct a typo I introduced when adding
66101         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
66102         Matt Kraai spotted the problem.
66104 2009-07-29  Matt Kraai  <mkraai@beckman.com>
66106         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
66107         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
66108         code also if ! defined N_NAME_POINTER.
66109         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
66110         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
66111         but the n_name member is a 12-byte array.
66113 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
66115         update-copyright: generalize comment handling
66116         * build-aux/update-copyright: Handle copyright statements
66117         within more comment styles.
66118         Document usage.
66119         Report any file with an external copyright holder or parse failure.
66121 2009-07-29  Jim Meyering  <meyering@redhat.com>
66123         mktime: correct setting of REPLACE_MKTIME
66124         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
66126         update-copyright: new module
66127         * modules/update-copyright: New file.
66128         * build-aux/update-copyright: New file.
66129         * MODULES.html.sh (maint+release support): Add update-copyright.
66131 2009-07-27  Bruno Haible  <bruno@clisp.org>
66133         Fix compilation error when <ctime> is used and mktime is replaced.
66134         * lib/time.in.h (mktime): New declaration.
66135         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
66136         REPLACE_MKTIME instead of defining mktime in config.h.
66137         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
66138         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
66139         Reported by Ross McFarland <rwmcfa1@neces.com>.
66141 2009-07-27  Bruno Haible  <bruno@clisp.org>
66143         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
66144         Reported by Matt Kraai <mkraai@beckman.com>.
66146 2009-07-25  Jim Meyering  <meyering@redhat.com>
66148         maint.mk: avoid warnings about missing files
66149         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
66150         diagnostic when .prev-version does not exist.
66151         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
66152         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
66153         nonexistent cfg.mk.
66154         Suggestions from Simon Josefsson.
66156 2009-07-25  Bruno Haible  <bruno@clisp.org>
66158         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
66159         defined as macros. Needed on QNX 6.4.1.
66160         Reported by Matt Kraai <mkraai@beckman.com>.
66162 2009-07-23  Jim Meyering  <meyering@redhat.com>
66164         maint.mk: invoke "make dist" with a working value of XZ_OPT
66165         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
66167 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
66169         Make fseeko.c compile on QNX.
66170         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
66172 2009-07-22  Peter Simons  <simons@cryp.to>
66174         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
66175         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
66176         * lib/md4.h: Likewise.
66177         * lib/md5.h: Likewise.
66178         * lib/sha1.h: Likewise.
66179         * lib/sha256.h: Likewise.
66180         * lib/sha512.h: Likewise.
66182         tests-sha1: don't assign literal string to 'char *' variable
66183         * tests/test-sha1.c (main): Declare locals with "const" to match
66184         attributes of the right hand side.
66186 2009-07-21  Eric Blake  <ebb9@byu.net>
66188         dup2: fix more mingw problems
66189         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
66190         fd to itself.
66191         * doc/posix-functions/dup2.texi (dup2): Document the bug.
66192         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
66193         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
66194         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
66195         care of mingw bugs.
66197 2009-07-21  Jim Meyering  <meyering@redhat.com>
66199         vc-list-files: avoid failure when /bin/sh is dash
66200         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
66201         On some Debian based systems, /bin/sh is a symlink to dash, and running
66202         this command would omit the "/" following each 'tests' prefix:
66203           dash -x build-aux/vc-list-files -C . tests
66204         That is because bash and dash work differently:
66205           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
66206           bash ok
66207           dash odd
66209 2009-07-21  Eric Blake  <ebb9@byu.net>
66211         dup2-tests: test previous patch
66212         * modules/dup2-tests: New file.
66213         * tests/test-dup2.c: Likewise.
66214         * tests/test-open.c (main): Avoid unspecified behavior.
66215         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
66216         test.
66218         dup2: work around mingw and cygwin 1.5 bug
66219         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
66220         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
66221         * modules/unistd (Makefile.am): Substitute it.
66222         * lib/unistd.in.h (dup2): Declare the replacement.
66223         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
66224         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
66225         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
66226         * modules/execute (Depends-on): Add dup2.
66227         * modules/fseterr (Depends-on): Likewise.
66228         * modules/pipe (Depends-on): Likewise.
66229         * modules/posix_spawn-internal (Depends-on): Likewise.
66231 2009-07-21  Bruno Haible  <bruno@clisp.org>
66233         * modules/.gitattributes: New file.
66235 2009-07-20  Bruno Haible  <bruno@clisp.org>
66237         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
66238         (main): Use it.
66240 2009-07-20  Eric Blake  <ebb9@byu.net>
66242         test-pipe: make a bit more robust.
66243         * tests/test-pipe.c (myerr): Allow error messages regardless of
66244         what we do to stderr.
66245         (test_pipe): Rearrange to avoid deadlock.
66246         (child_main): Try a larger read, to ensure we avoided deadlock.
66247         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
66248         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
66249         if misused.
66251 2009-07-19  Jim Meyering  <meyering@redhat.com>
66253         fts: avoid false-positive cycle-detection
66254         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
66255         for each new command line argument.
66257 2009-07-19  Bruno Haible  <bruno@clisp.org>
66259         Fix build error on mingw with the modules sys_select and unistd.
66260         * modules/acl-tests (Depends-on): Add close.
66261         * modules/binary-io-tests (Depends-on): Likewise.
66262         * modules/closein-tests (Depends-on): Likewise.
66263         * modules/flock-tests (Depends-on): Likewise.
66264         * modules/fsync-tests (Depends-on): Likewise.
66265         * modules/lseek-tests (Depends-on): Likewise.
66266         * modules/pipe-tests (Depends-on): Likewise.
66267         * modules/posix_spawn-tests (Depends-on): Likewise.
66268         * modules/posix_spawnp-tests (Depends-on): Likewise.
66269         * modules/stat-time-tests (Depends-on): Likewise.
66270         * modules/yesno-tests (Depends-on): Likewise.
66272 2009-07-19  Bruno Haible  <bruno@clisp.org>
66274         Unify conditionals.
66275         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
66276         macros, not at the compiler macros.
66277         * lib/pipe.c: Likewise.
66278         * lib/execute.c: Likewise.
66279         * lib/spawni.c: Likewise.
66281 2009-07-19  Bruno Haible  <bruno@clisp.org>
66283         Fix handling of closed stdin/stdout/stderr on mingw.
66284         * lib/w32spawn.h: Include unistd.h.
66285         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
66286         file descriptor with O_NOINHERIT flag.
66287         (fd_safer_noinherit): New function, based on fd-safer.c.
66288         (dup_safer_noinherit): New function, based on dup-safer.c.
66289         (undup_safer_noinherit): New function.
66290         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
66291         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
66292         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
66293         instead of fd_safer.
66294         * tests/test-pipe.c: Include <windows.h>.
66295         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
66296         result.
66298         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
66299         from main.
66300         (test_pipe): Pass an extra argument for disambiguation.
66301         (main): Invoke parent_main or child_main.
66303         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
66304         consistently.
66306 2009-07-18  Eric Blake  <ebb9@byu.net>
66308         test-pipe: fix mingw build
66309         * tests/test-pipe.c (main): Avoid fcntl on mingw.
66311 2009-07-18  Bruno Haible  <bruno@clisp.org>
66313         * modules/pipe-tests (Makefile.am): Fix typo.
66315 2009-07-18  Eric Blake  <ebb9@byu.net>
66317         error: fix mingw build
66318         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
66319         Reported by Bruno Haible.
66321         error: avoid undefined use of stdout
66322         * lib/error.c (error, error_at_line): Check that fd 1 is open
66323         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
66324         is handling faults and the close_stdout module wants to report the
66325         detection of closed stdout as an error.
66327 2009-07-17  Eric Blake  <ebb9@byu.net>
66329         pipe: be robust in face of closed fds
66330         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
66331         should cause child to misbehave.
66332         * modules/pipe-tests: New module.
66333         * tests/test-pipe.c: New file.
66334         * tests/test-pipe.sh: New file.
66335         Reported by Akim Demaille.
66337 2009-07-14  Bruno Haible  <bruno@clisp.org>
66339         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
66340         Reported by anonymous kc.
66342 2009-07-07  Jim Meyering  <meyering@redhat.com>
66344         maint.mk: don't look for translatable strings in *.m4 or *.mk
66345         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
66346         when searching for translatable strings.
66348 2009-07-05  Jim Meyering  <meyering@redhat.com>
66350         remove superfluous parentheses in STREQ definition
66351         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
66352         * lib/getugroups.c (STREQ): Likewise.
66353         * lib/fnmatch.c (STREQ): Likewise.
66354         Spotted by Bruno Haible.
66356 2009-07-04  Jim Meyering  <meyering@redhat.com>
66358         argv-iter: new module
66359         * MODULES.html.sh: Add argv-iter.
66360         * lib/argv-iter.c, lib/argv-iter.h: New files.
66361         * modules/argv-iter: New file.
66362         * modules/argv-iter-tests: New file.
66363         * tests/test-argv-iter.c: Test it.
66365 2009-07-04  Bruno Haible  <bruno@clisp.org>
66367         Fix assertion.
66368         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
66369         contains more exact copies of a given entry than file2, leave the extra
66370         copies unpaired rather than aborting.
66371         Reported by Eric Blake.
66373 2009-07-02  Bruno Haible  <bruno@clisp.org>
66375         Speedup git-merge-changelog for git cherry-pick.
66376         * lib/git-merge-changelog.c (struct entries_mapping): New type.
66377         (entries_mapping_get): New function, extracted from compute_mapping.
66378         (entries_mapping_reverse_get): New function.
66379         (compute_mapping): Add a 'full' argument. Return the result in a
66380         'struct entries_mapping'.
66381         (main): Update. Access the mappings through entries_mapping_get.
66382         Reported by Eric Blake.
66384 2009-07-02  Bruno Haible  <bruno@clisp.org>
66386         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
66387         best_i.
66389 2009-07-02  Bruno Haible  <bruno@clisp.org>
66391         Speed up approximate search for matching ChangeLog entries.
66392         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
66393         argument. Call fstrcmp_bounded instead of fstrcmp.
66394         (compute_mapping, try_split_merged_entry, main): Update callers.
66396 2009-07-02  Bruno Haible  <bruno@clisp.org>
66398         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
66400 2009-06-30  Bruno Haible  <bruno@clisp.org>
66402         Reduce the number of uc_is_cased calls.
66403         * lib/unicase.h (casing_suffix_context_t): Add
66404         'first_char_except_ignorable' field.
66405         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
66406         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
66407         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
66408         Update initializer.
66409         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
66410         case-ignorable characters.
66411         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
66412         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
66413         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
66414         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
66415         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
66417 2009-06-30  Bruno Haible  <bruno@clisp.org>
66419         Tests for module 'unicase/ignorable'.
66420         * modules/unicase/ignorable-tests: New file.
66421         * tests/unicase/test-ignorable.c: New file, generated by
66422         gen-uni-tables.
66424         Tests for module 'unicase/cased'.
66425         * modules/unicase/cased-tests: New file.
66426         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
66427         * tests/unicase/test-predicate-part1.h: New file, derived from
66428         tests/unictype/test-predicate-part1.h.
66429         * tests/unicase/test-predicate-part2.h: New file, same as
66430         tests/unictype/test-predicate-part2.h.
66432         Fix evaluation of "Before C" condition of FINAL_SIGMA.
66433         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
66434         (output_casing_properties): New function.
66435         (main): Call it.
66436         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
66437         * lib/unicase/cased.c: Include unictype/bitmap.h.
66438         (uc_is_cased): Define through a bitmap lookup.
66439         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
66440         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
66441         (uc_is_case_ignorable): Define through a bitmap lookup.
66442         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
66443         lib/unictype/bitmap.h.
66444         (Depends-on): Add inline. Clean up.
66445         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
66446         lib/unictype/bitmap.h.
66447         (Depends-on): Add inline. Clean up.
66448         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
66449         recognition.
66450         * tests/unicase/test-u16-tolower.c (main): Likewise.
66451         * tests/unicase/test-u32-tolower.c (main): Likewise.
66453 2009-06-30  Bruno Haible  <bruno@clisp.org>
66455         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
66456         * lib/unicase/u16-casemap.c: Likewise.
66457         * lib/unicase/u32-casemap.c: Likewise.
66459 2009-06-29  Bruno Haible  <bruno@clisp.org>
66461         Define u32_casefold as a wrapper around u32_ct_casefold.
66462         * lib/unicase/u32-casefold.c: Update.
66463         * modules/unicase/u32-casefold (Depends-on): Add
66464         unicase/u32-ct-casefold, unicase/empty-prefix-context,
66465         unicase/empty-suffix-context. Clean up.
66467         Define u16_casefold as a wrapper around u16_ct_casefold.
66468         * lib/unicase/u16-casefold.c: Update.
66469         * modules/unicase/u16-casefold (Depends-on): Add
66470         unicase/u16-ct-casefold, unicase/empty-prefix-context,
66471         unicase/empty-suffix-context. Clean up.
66473         Define u8_casefold as a wrapper around u8_ct_casefold.
66474         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
66475         * lib/unicase/u8-casefold.c: Update.
66476         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
66477         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
66479         Define u32_totitle as a wrapper around u32_ct_totitle.
66480         * lib/unicase/u32-totitle.c: Update.
66481         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
66482         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
66484         Define u16_totitle as a wrapper around u16_ct_totitle.
66485         * lib/unicase/u16-totitle.c: Update.
66486         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
66487         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
66489         Define u8_totitle as a wrapper around u8_ct_totitle.
66490         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
66491         functions.
66492         (FUNC): Delegate to U_CT_TOTITLE.
66493         * lib/unicase/u8-totitle.c: Update.
66494         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
66495         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
66497         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
66498         invocation.
66499         * modules/unicase/u32-tolower (Depends-on): Add
66500         unicase/empty-prefix-context, unicase/empty-suffix-context.
66502         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
66503         invocation.
66504         * modules/unicase/u16-tolower (Depends-on): Add
66505         unicase/empty-prefix-context, unicase/empty-suffix-context.
66507         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
66508         * modules/unicase/u8-tolower (Depends-on): Add
66509         unicase/empty-prefix-context, unicase/empty-suffix-context.
66511         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
66512         invocation.
66513         * modules/unicase/u32-toupper (Depends-on): Add
66514         unicase/empty-prefix-context, unicase/empty-suffix-context.
66516         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
66517         invocation.
66518         * modules/unicase/u16-toupper (Depends-on): Add
66519         unicase/empty-prefix-context, unicase/empty-suffix-context.
66521         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
66522         * modules/unicase/u8-toupper (Depends-on): Add
66523         unicase/empty-prefix-context, unicase/empty-suffix-context.
66525         New module 'unicase/u32-ct-casefold'.
66526         * lib/unicase/u32-ct-casefold.c: New file.
66527         * modules/unicase/u32-ct-casefold: New file.
66529         New module 'unicase/u16-ct-casefold'.
66530         * lib/unicase/u16-ct-casefold.c: New file.
66531         * modules/unicase/u16-ct-casefold: New file.
66533         New module 'unicase/u8-ct-casefold'.
66534         * lib/unicase/u8-ct-casefold.c: New file.
66535         * lib/unicase/u-ct-casefold.h: New file, derived from
66536         lib/unicase/u-casefold.h.
66537         * modules/unicase/u8-ct-casefold: New file.
66539         New module 'unicase/u32-ct-totitle'.
66540         * lib/unicase/u32-ct-totitle.c: New file.
66541         * modules/unicase/u32-ct-totitle: New file.
66543         New module 'unicase/u16-ct-totitle'.
66544         * lib/unicase/u16-ct-totitle.c: New file.
66545         * modules/unicase/u16-ct-totitle: New file.
66547         New module 'unicase/u8-ct-totitle'.
66548         * lib/unicase/u8-ct-totitle.c: New file.
66549         * lib/unicase/u-ct-totitle.h: New file, derived from
66550         lib/unicase/u-totitle.h.
66551         * modules/unicase/u8-ct-totitle: New file.
66553         New module 'unicase/u32-ct-tolower'.
66554         * lib/unicase/u32-ct-tolower.c: New file.
66555         * modules/unicase/u32-ct-tolower: New file.
66557         New module 'unicase/u16-ct-tolower'.
66558         * lib/unicase/u16-ct-tolower.c: New file.
66559         * modules/unicase/u16-ct-tolower: New file.
66561         New module 'unicase/u8-ct-tolower'.
66562         * lib/unicase/u8-ct-tolower.c: New file.
66563         * modules/unicase/u8-ct-tolower: New file.
66565         New module 'unicase/u32-ct-toupper'.
66566         * lib/unicase/u32-ct-toupper.c: New file.
66567         * modules/unicase/u32-ct-toupper: New file.
66569         New module 'unicase/u16-ct-toupper'.
66570         * lib/unicase/u16-ct-toupper.c: New file.
66571         * modules/unicase/u16-ct-toupper: New file.
66573         New module 'unicase/u8-ct-toupper'.
66574         * lib/unicase/u8-ct-toupper.c: New file.
66575         * modules/unicase/u8-ct-toupper: New file.
66577         Add context arguments to u*_casemap functions.
66578         * lib/unicase/unicasemap.h: Include unicase.h.
66579         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
66580         suffix_context arguments.
66581         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
66582         functions.
66583         (FUNC): Add prefix_context and suffix_context arguments. Use
66584         uc_is_cased and uc_is_case_ignorable.
66585         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
66586         * lib/unicase/u16-casemap.c: Likewise.
66587         * lib/unicase/u32-casemap.c: Likewise.
66588         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
66589         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
66590         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
66591         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
66592         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
66593         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
66595         New module 'unicase/u32-suffix-context'.
66596         * lib/unicase/u32-suffix-context.c: New file.
66597         * modules/unicase/u32-suffix-context: New file.
66599         New module 'unicase/u16-suffix-context'.
66600         * lib/unicase/u16-suffix-context.c: New file.
66601         * modules/unicase/u16-suffix-context: New file.
66603         New module 'unicase/u8-suffix-context'.
66604         * lib/unicase/u8-suffix-context.c: New file.
66605         * lib/unicase/u-suffix-context.h: New file.
66606         * modules/unicase/u8-suffix-context: New file.
66608         New module 'unicase/empty-suffix-context'.
66609         * lib/unicase/empty-suffix-context.c: New file.
66610         * modules/unicase/empty-suffix-context: New file.
66612         New module 'unicase/u32-prefix-context'.
66613         * lib/unicase/u32-prefix-context.c: New file.
66614         * modules/unicase/u32-prefix-context: New file.
66616         New module 'unicase/u16-prefix-context'.
66617         * lib/unicase/u16-prefix-context.c: New file.
66618         * modules/unicase/u16-prefix-context: New file.
66620         New module 'unicase/u8-prefix-context'.
66621         * lib/unicase/u8-prefix-context.c: New file.
66622         * lib/unicase/u-prefix-context.h: New file.
66623         * lib/unicase/context.h: New file.
66624         * modules/unicase/u8-prefix-context: New file.
66626         New module 'unicase/empty-prefix-context'.
66627         * lib/unicase/empty-prefix-context.c: New file.
66628         * modules/unicase/empty-prefix-context: New file.
66630         New module 'unicase/ignorable'.
66631         * lib/unicase/ignorable.c: New file.
66632         * modules/unicase/ignorable: New file.
66634         New module 'unicase/cased'.
66635         * lib/unicase/caseprop.h: New file.
66636         * lib/unicase/cased.c: New file.
66637         * modules/unicase/cased: New file.
66639         New functions for case mapping of substrings.
66640         * lib/unicase.h (casing_prefix_context_t): New type.
66641         (unicase_empty_prefix_context): New variable.
66642         (u8_casing_prefix_context, u16_casing_prefix_context,
66643         u32_casing_prefix_context, u8_casing_prefixes_context,
66644         u16_casing_prefixes_context, u32_casing_prefixes_context): New
66645         declarations.
66646         (casing_suffix_context_t): New type.
66647         (unicase_empty_suffix_context): New variable.
66648         (u8_casing_suffix_context, u16_casing_suffix_context,
66649         u32_casing_suffix_context, u8_casing_suffixes_context,
66650         u16_casing_suffixes_context, u32_casing_suffixes_context,
66651         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
66652         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
66653         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
66654         declarations.
66656 2009-06-28  Jim Meyering  <meyering@redhat.com>
66658         boostrap: indent only with spaces
66659         * build-aux/bootstrap: Indent only with spaces, never TABs.
66661         bootstrap: split long lines
66662         * build-aux/bootstrap: Keep line length < 80.
66664         bootstrap: sync from coreutils
66665         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
66666         just as autoreconf does.  Verify a list of prerequisite
66667         package-name,version-number pairs if defined in bootstrap.conf.
66668         Refer to README-prereq, if prerequisites are not satisfied.
66670 2009-06-27  Eric Blake  <ebb9@byu.net>
66672         tests: add test for bogus NULL definition
66673         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
66674         * tests/test-stdlib.c: Likewise.
66675         * tests/test-string.c: Likewise.
66676         * tests/test-locale.c: Likewise.
66677         * tests/test-unistd.c: Likewise.
66678         * modules/stdio-tests (Depends-on): Add verify.
66679         * modules/stdlib-tests (Depends-on): Likewise.
66680         * modules/string-tests (Depends-on): Likewise.
66681         * modules/locale-tests (Depends-on): Likewise.
66682         * modules/unistd-tests (Depends-on): Likewise.
66684 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
66686         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
66687         self-explaining comment.
66688         * m4/selinux-selinux-h: Update serial.
66689         (gl_LIBSELINUX): New macro, adding a warning for missing development
66690         packages to code extracted from...
66691         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
66692         Add warning for missing development packages here, too.
66694 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
66696         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
66698 2009-06-25  Eric Blake  <ebb9@byu.net>
66700         version-etc: fix regression
66701         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
66702         gcc.
66703         (version_etc): Use it, to catch bugs with trailing NULL.
66704         * lib/version-etc.c (version_etc_arn): Delete unused argument.
66705         (version_etc_va): Fix logic bug.
66706         * modules/version-etc-tests: Add test.
66707         * tests/test-version-etc.c: New file.
66708         * tests/test-version-etc.sh: Likewise.
66710 2009-06-25  Sam Steingold  <sds@gnu.org>
66712         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
66713         mbtowc declaration.
66715 2009-06-25  Eric Blake  <ebb9@byu.net>
66717         fpurge: migrate into <stdio.h>
66718         * lib/fpurge.h: Delete...
66719         * lib/stdio.in.h (fpurge): ...and declare here, instead.
66720         * lib/fpurge.c (fpurge): Change declaring header.
66721         * modules/fpurge (Files): Drop deleted file.
66722         (Depends-on): Add stdio.
66723         (configure.ac): Set witness.
66724         * modules/stdio (Makefile.am): Support fpurge macros.
66725         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
66726         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
66727         * lib/fflush.c: Update client.
66728         * tests/test-fpurge.c: Likewise.
66729         * NEWS: Mention the change.
66731 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
66733         * lib/argp-version-etc.c (program_authors): Add const
66734         qualifier.
66735         * lib/version-etc.c: Fix typos in the comments.
66736         * modules/argp-version-etc: Depends on version-etc.
66738 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
66740         argp-version-etc: new module.
66742         * lib/argp-version-etc.c: New file.
66743         * lib/argp-version-etc.h: New file.
66744         * modules/argp-version-etc: New file.
66745         * modules/argp-version-etc-tests: New file.
66746         * tests/test-argp-version-etc.c: New test.
66747         * tests/test-argp-version-etc-1.sh: New test.
66749 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
66751         Provide additional interfaces and documentation for version-etc
66752         module.
66754         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
66755         interfaces.
66756         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
66757         prototypes.
66759 2009-06-24  Bruno Haible  <bruno@clisp.org>
66761         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
66762         HAVE_LIB${NAME} macro.
66763         Reported by Sam Steingold <sds@gnu.org>.
66765 2009-06-23  Simon Josefsson  <simon@josefsson.org>
66767         * modules/hash-tests (test_hash_LDADD): Link to libintl when
66768         needed.
66770 2009-06-21  Bruno Haible  <bruno@clisp.org>
66772         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
66773         work.
66774         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
66775         together with LIB${NAME}, LTLIB${NAME}.
66776         Reported by Sam Steingold <sds@gnu.org>.
66778 2009-06-20  Jim Meyering  <meyering@redhat.com>
66780         tests: make sc_require_test_exit_idiom more generic
66781         * top/maint.mk (Exit_witness_file): New overridable variable.
66782         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
66783         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
66785 2009-06-19  Jim Meyering  <meyering@redhat.com>
66787         hash: reverse order of src/dst parameters in an internal interface
66788         * lib/hash.c (transfer_entries): Reverse order of parameters to
66789         put DST before SRC.  Adjust callers.
66791         tests: test-hash: avoid wholesale duplication
66792         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
66793         Instead, use a loop and add a single conditional.
66795         tests: test-hash: allow seed selection via a command line argument
66796         * tests/test-hash.c (get_seed): New function.
66797         (main): Use it.
66799 2009-06-19  Eric Blake  <ebb9@byu.net>
66801         hash: avoid memory leak on allocation failure
66802         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
66803         failure.  Factor repeated algorithm...
66804         (transfer_entries): ...into new helper routine.
66805         (hash_delete): React to hash_rehash return value.
66807         hash: reduce memory pressure in hash_rehash no-op case
66808         * lib/hash.c (next_prime): Avoid overflow.
66809         (hash_initialize): Factor bucket size computation...
66810         (compute_bucket_size): ...into new helper function.
66811         (hash_rehash): Use new function and open coding to reduce memory
66812         pressure, and avoid a memory leak in USE_OBSTACK code.
66813         Reported by Jim Meyering.
66815 2009-06-18  Eric Blake  <ebb9@byu.net>
66817         hash: make rotation more obvious
66818         * modules/hash (Depends-on): Add bitrotate and stdint.
66819         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
66820         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
66821         (SIZE_MAX): Rely on headers for definition.
66822         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
66823         (raw_hasher): Use rotr_sz.
66824         Suggested by Jim Meyering.
66826         hash: fix memory leak in last patch
66827         * lib/hash.c (hash_rehash): Avoid memory leak.
66829         hash: avoid no-op rehashing
66830         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
66832         hash: provide default callback functions
66833         * lib/hash.c (raw_hasher, raw_comparator): New functions.
66834         (hash_initialize): Use them as defaults.
66835         * tests/test-hash.c (main): Test this.
66837         hash: minor optimization
66838         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
66839         when possible.
66840         (hash_initialize): Document this promise.
66841         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
66842         * tests/test-hash.c (hash_compare_strings): Test this.
66844 2009-06-18  Bruno Haible  <bruno@clisp.org>
66846         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
66847         going to be replaced anyway.
66849 2009-06-18  Bruno Haible  <bruno@clisp.org>
66851         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
66852         in one place.
66853         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
66854         be replaced anyway.
66856 2009-06-18  Eric Blake  <ebb9@byu.net>
66858         hash: check for resize before insertion
66859         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
66860         threshold before insertion, so that a pathological hash_rehash
66861         that fills every bucket can still trigger another rehash.
66863 2009-06-18  Jim Meyering  <meyering@redhat.com>
66865         hash-tests: add a loop around the small tests
66866         * tests/test-hash.c (main): Repeat small tests with selected
66867         small initial table sizes.
66869 2009-06-17  Eric Blake  <ebb9@byu.net>
66871         hash: minor cleanups
66872         * lib/hash.h (hash_entry): Make opaque, by moving...
66873         * lib/hash.c (hash_entry): ...here.
66874         (hash_insert): Clarify restrictions on what can be inserted.
66875         (hash_get_next): Clarify when it is safe to remove an element
66876         during traversal.
66877         (check_tuning): Skip verification when tuning is known safe.
66878         (hash_initialize): Clarify restrictions on tuning.
66880 2009-06-17  Jim Meyering  <jim@meyering.net>
66881         and Eric Blake  <ebb9@byu.net>
66883         hash-tests: new module
66884         * modules/hash-tests: New file.
66885         * tests/test-hash.c: New file.
66887 2009-06-17  Eric Blake  <ebb9@byu.net>
66889         strstr-simple: document new module
66890         * MODULES.html.sh: Document new module.
66892         strstr, strcasestr: replace on platforms with broken memchr
66893         * modules/strstr: Split into...
66894         * modules/strstr-simple: ...new module that does not care about
66895         performance, but does care about glibc bug.
66896         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
66897         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
66898         if platform memchr is broken, per Debian bug 521737.
66899         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
66900         memchr.
66901         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
66902         * doc/posix-functions/strstr.texi (strstr): Document the fix.
66903         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
66904         * modules/mountlist (Depends-on): Add strstr-simple.
66905         * modules/gen-uni-tables (Depends-on): Likewise.
66906         * modules/argz (Depends-on): Add strstr.
66908 2009-06-17  Bruno Haible  <bruno@clisp.org>
66910         * modules/posix_spawn-internal (Depends-on): Add errno.
66912 2009-06-17  Bruno Haible  <bruno@clisp.org>
66914         Define missing ESTALE on Interix 3.5.
66915         * lib/errno.in.h (ESTALE): Assign a value if missing.
66916         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
66917         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
66918         missing.
66919         * doc/posix-headers/errno.texi: Mention the Interix bug.
66920         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
66922 2009-06-15  Eric Blake  <ebb9@byu.net>
66924         memchr, memchr2: add valgrind exception
66925         * lib/memchr.valgrind: New file.
66926         * lib/memchr2.valgrind: New file.
66927         * modules/memchr (Files): Distribute valgrind file.
66928         * modules/memchr2 (Files): Likewise.
66930         docs: memchr is no longer obsolete
66931         * MODULES.html.sh: Move memchr from obsolete to string.h section.
66932         * lib/string.in.h (memchr): Simplify logic.
66934 2009-06-14  Jim Meyering  <meyering@redhat.com>
66936         link-follow: fix the "checking..." message to not mention trailing slash
66937         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
66938         never considered trailing slashes.
66940 2009-06-14  Bruno Haible  <bruno@clisp.org>
66942         * m4/memchr.m4: Mention also the bug on IA-64.
66943         * doc/posix-functions/memchr.texi: Likewise.
66945 2009-06-12  Eric Blake  <ebb9@byu.net>
66947         memchr: detect broken x86_64 and alpha implementations
66948         * modules/memchr-tests (Depends-on): Move mmap detection...
66949         * modules/memchr (Depends-on): ...here.
66950         (configure.ac): Set indicator.
66951         * lib/string.in.h (memchr): Declare replacement.
66952         * modules/string (Makefile.am): Trigger replacement.
66953         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
66954         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
66955         bugs.
66956         * doc/posix-functions/memchr.texi (memchr): Document the bug.
66957         * modules/getpagesize (License): Relax license.
66959 2009-06-11  Bruno Haible  <bruno@clisp.org>
66961         * lib/idpriv.h: Add more references.
66963 2009-06-08  Bruno Haible  <bruno@clisp.org>
66965         Tests for module 'idpriv-droptemp'.
66966         * modules/idpriv-droptemp-tests: New file.
66967         * tests/test-idpriv-droptemp.sh: New file.
66968         * tests/test-idpriv-droptemp.su.sh: New file.
66969         * tests/test-idpriv-droptemp.c: New file.
66971         New module 'idpriv-droptemp'.
66972         * lib/idpriv-droptemp.c: New file.
66973         * modules/idpriv-droptemp: New file.
66975 2009-06-08  Bruno Haible  <bruno@clisp.org>
66977         Tests for module 'idpriv-drop'.
66978         * modules/idpriv-drop-tests: New file.
66979         * tests/test-idpriv-drop.sh: New file.
66980         * tests/test-idpriv-drop.su.sh: New file.
66981         * tests/test-idpriv-drop.c: New file.
66983         New module 'idpriv-drop'.
66984         * lib/idpriv.h: New file.
66985         * lib-idpriv-drop.c: New file.
66986         * m4/idpriv.m4: New file.
66987         * modules/idpriv-drop: New file.
66989 2009-06-08  Bruno Haible  <bruno@clisp.org>
66991         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
66992         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
66993         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
66994         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
66995         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
66996         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
66997         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
66999 2009-06-08  Eric Blake  <ebb9@byu.net>
67001         test-strstr: use memory fence, when possible
67002         * tests/test-strstr.c (main): Use memory fence, in order to be
67003         more likely to trigger Debian bug 521737.
67004         * modules/strstr-tests (Files): Pull in additional files.
67006         memchr: no longer obsolete, for wider field testing
67007         * modules/memchr (Status, Notice): Delete, this module is no
67008         longer obsolete.
67009         * modules/vasnprintf (Depends-on): Add memchr.
67011 2009-06-07  Jim Meyering  <meyering@redhat.com>
67013         hash: declare some functions with the warn_unused_result attribute
67014         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
67016 2009-06-07  Bruno Haible  <bruno@clisp.org>
67018         * tests/test-alignof.c: Don't test int64_t if it does not exist.
67019         Reported by Eric Blake.
67021 2009-06-06  Eric Blake  <ebb9@byu.net>
67023         test-alignof: fix typo with long double
67024         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
67025         compiler error.
67027 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
67029         Escape non-texinfo { and }s.
67030         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
67031         markup error.
67033 2009-06-04  Jim Meyering  <meyering@redhat.com>
67035         gitlog-to-changelog: don't infloop on an empty commit log
67036         * build-aux/gitlog-to-changelog: Warn about an empty log message.
67037         Reported by Boris Petersen <transacid@centerim.org>.
67039 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
67041         version-etc: extend for packagers
67042         Add three new configure options, intended for packagers:
67043           --with-packager="packager name"
67044           --with-packager-version="packager-specific version"
67045           --with-packager-bug-reports="packager bug reporting"
67046         An example with coreutils:
67047           $ ./configure \
67048             --with-packager=Gentoo \
67049             --with-packager-bug-report=http://bugs.gentoo.org/ \
67050             --with-packager-version="patchset 1.6"
67051           $ ./src/ls --version | head -n2
67052           ls (GNU coreutils) 7.1-dirty
67053           Packaged by Gentoo (patchset 1.6)
67054         Note that the bug reporting info via --help doesn't show up because
67055         coreutils uses its own custom emit_bug_reporting_address() implementation
67056         in src/system.h.  If it didn't, it'd look like:
67057           $ ./src/ls --help | tail -n4
67058           Report bugs to <bug-coreutils@gnu.org>.
67059           Report Gentoo bugs to <http://bugs.gentoo.org/>.
67060           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
67061           General help using GNU software: <http://www.gnu.org/gethelp/>.
67062         * lib/version-etc.c: Print new information, if provided.
67063         * m4/version-etc.m4: New file.
67064         * modules/version-etc (Files): Add m4/version-etc.m4.
67065         (configure.ac): Add gl_VERSION_ETC.
67067 2009-05-31  Bruno Haible  <bruno@clisp.org>
67069         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
67070         and 'int64_t'.
67071         * modules/alignof-tests (Dependencies): Add stdint.
67072         Reported by Eric Blake.
67074 2009-05-31  Bruno Haible  <bruno@clisp.org>
67076         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
67077         restriction due to compiler bugs.
67078         Reported by Eric Blake.
67080 2009-05-31  Simon Josefsson  <simon@josefsson.org>
67081             Bruno Haible  <bruno@clisp.org>
67083         Fix test-alignof failure.
67084         * lib/alignof.h (alignof_slot): New macro.
67085         (alignof_type): New macro, with the same semantics as the previous
67086         'alignof'.
67087         (alignof): Alias to alignof_slot.
67088         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
67089         check that the results are usable as constant expressions.
67091 2009-05-31  Bruno Haible  <bruno@clisp.org>
67093         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
67094         * tests/test-memchr.c (main): Check that memchr does not read past the
67095         first occurrence of the byte.
67096         * tests/test-strstr.c (main): Update comment.
67097         Suggested by Eric Blake.
67099 2009-05-30  Bruno Haible  <bruno@clisp.org>
67101         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
67102         detail how to use dumpbin.
67103         Reported by David Byron <dbyron@dbyron.com>.
67105 2009-06-02  Simon Josefsson  <simon@josefsson.org>
67107         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
67109 2009-06-02  Simon Josefsson  <simon@josefsson.org>
67111         * m4/manywarnings.m4: Add GCC 4.4 warnings.
67113 2009-05-28  Bruno Haible  <bruno@clisp.org>
67115         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
67116         build-aux/ files.
67118 2009-05-28  Simon Josefsson  <simon@josefsson.org>
67120         * gnulib-tool (func_import): Transform license on build-aux/ files too.
67122 2009-05-27  Simon Josefsson  <simon@josefsson.org>
67124         * gnulib-tool (sed_transform_main_lib_file)
67125         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
67126         regexps.
67128 2009-05-26  Simon Josefsson  <simon@josefsson.org>
67130         * tests/test-strstr.c: Add another self-test.
67131         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
67132         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
67134 2009-05-23  Bruno Haible  <bruno@clisp.org>
67136         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
67137         change.
67139 2009-05-21  Bruno Haible  <bruno@clisp.org>
67141         Simplify use of mode_t varargs.
67142         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
67143         uses 'mode_t' or 'int'.
67144         * lib/openat.c (openat): Likewise.
67145         * lib/open-safer.c (open_safer): Likewise.
67146         * m4/mode_t.m4: New file.
67147         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
67148         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
67149         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
67150         * modules/open (Files): Add m4/mode_t.m4.
67151         * modules/openat (Files): Likewise.
67152         * modules/fcntl-safer (Files): Likewise.
67153         Suggested by Eric Blake.
67155 2009-05-21  Pádraig Brady  <P@draigbrady.com>
67157         * doc/glibc-functions/fallocate.texi: New file.
67158         * doc/gnulib.texi: Include it.
67160 2009-05-21  Eric Blake  <ebb9@byu.net>
67161             Bruno Haible  <bruno@clisp.org>
67163         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
67164         invocations.
67165         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
67167 2009-05-21  Eric Blake  <ebb9@byu.net>
67168             Bruno Haible  <bruno@clisp.org>
67170         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
67171         include_next. Fix of 2008-11-20 commit.
67172         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
67173         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
67174         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
67175         NEXT_MATH_H.
67176         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
67177         instead of NEXT_MATH_H.
67179 2009-05-21  Bruno Haible  <bruno@clisp.org>
67181         Avoid redefinition warnings for SIZE_MAX.
67182         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
67183         Reported by Simon Josefsson.
67185 2009-05-21  Bruno Haible  <bruno@clisp.org>
67187         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
67188         AC_CACHE_VAL.
67190 2009-05-20  Bruno Haible  <bruno@clisp.org>
67192         Make zeroptr.h work on mingw.
67193         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
67194         mprotect.
67195         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
67196         * modules/memchr2-tests (configure.ac): Likewise.
67197         * modules/memcmp-tests (configure.ac): Likewise.
67198         * modules/memmem-tests (configure.ac): Likewise.
67199         * modules/memrchr-tests (configure.ac): Likewise.
67200         Reported by Simon Josefsson.
67202 2009-05-20  Simon Josefsson  <simon@josefsson.org>
67204         * tests/test-glob.c: Include string.h for strcmp prototype.
67206 2009-05-20  Simon Josefsson  <simon@josefsson.org>
67208         * modules/getdelim (Depends-on): Add explicit stdint, although it
67209         was implicitly already pulled in via realloc-posix.
67210         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
67212 2009-05-20  Simon Josefsson  <simon@josefsson.org>
67214         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
67215         G. Christensen" <tgc@jupiterrise.com>.
67216         * m4/sys_socket_h.m4: Check for sa_family_t.
67217         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
67218         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
67219         * tests/test-sys_socket.c: Check that sa_family_t works.
67221 2009-05-18  Eric Blake  <ebb9@byu.net>
67223         maint.mk: allow gnulib_dir in VPATH build
67224         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
67226 2009-05-15  Jim Meyering  <meyering@redhat.com>
67228         maint.mk: Give gnulib_dir a default definition.
67229         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
67230         Thus, most packages no longer need to specify this variable in cfg.mk
67232 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
67234         rename.m4: fix typos that would make non-mingw cross-configure fail
67235         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
67237 2009-05-13  Eric Blake  <ebb9@byu.net>
67239         mmap-anon: avoid out-of-order autoconf expansion
67240         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
67241         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
67242         * modules/memchr-tests (Depends-on): Add extensions.
67243         * modules/memchr2-tests (Depends-on): Add extensions.
67244         * modules/memcmp-tests (Depends-on): Add extensions.
67245         * modules/memmem-tests (Depends-on): Add extensions.
67246         * modules/memrchr-tests (Depends-on): Add extensions.
67248 2009-05-13  Bruno Haible  <bruno@clisp.org>
67250         Make some tests ISO C 99 compliant.
67251         * tests/zerosize-ptr.h: New file.
67252         * tests/test-memchr.c: Include zerosize-ptr.h.
67253         (main): Use a zero-size object pointer instead of NULL.
67254         * tests/test-memchr2.c: Include zerosize-ptr.h.
67255         (main): Use a zero-size object pointer instead of NULL.
67256         * tests/test-memcmp.c: Include zerosize-ptr.h.
67257         (main): Use a zero-size object pointer instead of NULL.
67258         * tests/test-memmem.c: Include zerosize-ptr.h.
67259         (main): Use a zero-size object pointer instead of NULL.
67260         * tests/test-memrchr.c: Include zerosize-ptr.h.
67261         (main): Use a zero-size object pointer instead of NULL.
67262         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
67263         m4/mmap-anon.m4.
67264         (Depends-on): Add getpagesize.
67265         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
67266         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
67267         m4/mmap-anon.m4.
67268         (Depends-on): Add getpagesize.
67269         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
67270         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
67271         m4/mmap-anon.m4.
67272         (Depends-on): Add getpagesize.
67273         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
67274         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
67275         m4/mmap-anon.m4.
67276         (Depends-on): Add getpagesize.
67277         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
67278         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
67279         m4/mmap-anon.m4.
67280         (Depends-on): Add getpagesize.
67281         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
67283 2009-05-12  Bruno Haible  <bruno@clisp.org>
67285         Tests for module 'alignof'.
67286         * modules/alignof-tests: New file.
67287         * tests/test-alignof.c: New file.
67289 2009-05-12  Bruno Haible  <bruno@clisp.org>
67291         Fix alignof macro.
67292         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
67293         vendor compilers that are always correct.
67295 2009-05-12  Bruno Haible  <bruno@clisp.org>
67297         Make the MAP_ANONYMOUS detection work on HP-UX 11.
67298         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
67299         not whether its fully works.
67301 2009-05-12  Bruno Haible  <bruno@clisp.org>
67303         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
67305 2009-05-12  Jim Meyering  <meyering@redhat.com>
67307         * top/maint.mk: Adjust backslash alignment.
67309 2009-05-11  Simon Josefsson  <simon@josefsson.org>
67311         * top/maint.mk: Make $(srcdir)/build-aux configurable.
67313 2009-05-11  Eric Blake  <ebb9@byu.net>
67315         argp: avoid undefined behavior
67316         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
67317         macros.
67319 2009-05-08  Simon Josefsson  <simon@josefsson.org>
67321         * tests/test-vc-list-files-git.sh: Do git config of user.email and
67322         user.name to prevent git commit from complaining.
67324 2009-05-10  Bruno Haible  <bruno@clisp.org>
67326         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
67327         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
67328         it rewrites every file name only once.
67329         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
67331 2009-05-08  Bruno Haible  <bruno@clisp.org>
67333         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
67334         instead of 'max'.
67336 2009-05-08  Simon Josefsson  <simon@josefsson.org>
67338         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
67339         sockaddr_storage test.
67341 2009-05-07  Simon Josefsson  <simon@josefsson.org>
67343         * modules/sys_socket (Makefile.am): Substitute
67344         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
67345         * m4/sys_socket_h.m4: Check for sockaddr_storage.
67346         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
67347         * tests/test-sys_socket.c: Check sockaddr_storage.
67349 2009-05-08  Bruno Haible  <bruno@clisp.org>
67351         New module 'alignof'.
67352         * lib/alignof.h: New file.
67353         * modules/alignof: New file.
67355 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
67356             Bruno Haible  <bruno@clisp.org>
67358         Fix test-file-has-acl on FreeBSD.
67359         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
67360         mask is implicitly added.
67361         * tests/test-file-has-acl.c: Include <signal.h>.
67362         (main): Terminate the test after 5 seconds.
67363         * modules/acl-tests (configure.ac): Check for alarm function.
67365 2009-05-04  Bruno Haible  <bruno@clisp.org>
67367         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
67368         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
67369         * modules/errno (configure.ac): Drop AC_REQUIRE.
67370         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
67371         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
67373 2009-05-04  Simon Josefsson  <simon@josefsson.org>
67375         * modules/glob-tests: New module.
67376         * tests/test-glob.c: Add.
67378 2009-05-04  Simon Josefsson  <simon@josefsson.org>
67380         * modules/fnmatch-tests: New module.
67381         * tests/test-fnmatch.c: Add.
67383 2009-05-04  Eric Blake  <ebb9@byu.net>
67385         maint: make the new no-submodule-changes rule VPATH-safe
67386         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
67388 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
67389             Bruno Haible  <bruno@clisp.org>
67391         acl: Fix infinite loop on FreeBSD.
67392         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
67393         of return value from acl_get_entry.
67394         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
67395         Likewise.
67397 2009-05-03  Bruno Haible  <bruno@clisp.org>
67399         * lib/acl-internal.h (acl_entries): Clarify return value.
67400         * lib/acl_entries.c (acl_entries): Likewise.
67402 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
67404         Bug fix in acl module.
67405         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
67407 2009-05-03  Bruno Haible  <bruno@clisp.org>
67409         Create gperf-generated file in the source dir, not in the build dir.
67410         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
67411         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
67412         * modules/unicase/locale-language (unicase/locale-languages.h):
67413         Likewise.
67414         * modules/unicase/special-casing (unicase/special-casing-table.h):
67415         Likewise.
67416         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
67417         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
67418         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
67419         Reported by Ralf Wildenhues.
67421 2009-05-03  Bruno Haible  <bruno@clisp.org>
67423         * modules/fnmatch (Description, configure.ac): Taken from
67424         fnmatch-posix.
67425         * modules/fnmatch-posix: Turn into a symbolic reference to the
67426         'fnmatch' module, and deprecate.
67427         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
67429 2009-05-03  Bruno Haible  <bruno@clisp.org>
67431         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
67432         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
67433         Reported by Ralf Wildenhues.
67435 2009-05-04  Simon Josefsson  <simon@josefsson.org>
67437         * m4/fnmatch.m4: Fix fnmatch re-define.
67439 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
67441         priv-set: new module and tests; adapt write-any-file
67442         * lib/priv-set.c: New file.
67443         * lib/priv-set.h: New file.
67444         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
67445         * lib/write-any-file.c: Simplify by using priv-set module.
67446         * m4/priv-set.m4: New file.
67447         * modules/priv-set: New file.
67448         * modules/unlinkdir: Add dependency on priv-set module.
67449         * modules/write-any-file: Likewise.
67451         Tests for module 'priv-set'.
67452         * modules/priv-set-tests: New file.
67453         * tests/test-priv-set.c: New file.
67455 2009-05-03  Jim Meyering  <meyering@redhat.com>
67456             Bruno Haible  <bruno@clisp.org>
67458         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
67459         use the converted UTF-8 variant of the name instead.
67461 2009-05-03  Jim Meyering  <meyering@redhat.com>
67463         tests: tighten some getdate tests
67464         * tests/test-getdate.c (main): Tighten tests: require equality,
67465         not just greater than.  Set TZ envvar to UTC0.
67467 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
67469         getdate: correctly interpret "next monday" when run on a Monday
67470         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
67471         that e.g., "next tues" (when run on a tuesday) results in a date
67472         that is one week in the future, and not today's date.
67473         I.e., add a week when the wday is the same as the current one.
67474         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
67475         and earlier by Martin Bernreuther and Jan Minář.
67476         * tests/test-getdate.c (main): Check that "next DAY" is always in
67477         the future and that "last DAY" is always in the past.
67479 2009-05-02  Jim Meyering  <meyering@redhat.com>
67481         build: ensure that a release build fails when a submodule is unclean
67482         * top/maint.mk (no-submodule-changes): New rule.
67483         (alpha beta major): Depend on it.
67485 2009-05-02  Bruno Haible  <bruno@clisp.org>
67487         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
67488         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
67489         shell variable gl_fnmatch_required to detect which variant is
67490         requested.
67491         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
67492         gl_FUNC_FNMATCH_POSIX.
67493         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
67494         exclude fnmatch-posix.
67496 2009-05-02  Bruno Haible  <bruno@clisp.org>
67498         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
67499         * modules/mbsrtowcs (License): Change to LGPLv2+.
67500         * modules/strnlen1 (License): Likewise.
67501         Reported by Simon Josefsson.
67503 2009-05-02  Bruno Haible  <bruno@clisp.org>
67505         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
67506         "cross".
67507         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
67508         gnulib-tool was called with option --source-base=lib.
67510 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67512         Use automake *-local hooks without commands, for extensibility.
67513         * modules/localcharset (Makefile.am): Rename install-exec-local
67514         rule to install-exec-localcharset, and make it a prerequisite of
67515         install-exec-local.  Likewise, rename the uninstall-local rule to
67516         uninstall-localcharset, and make it a prerequisite of the former.
67518 2009-05-01  Bruno Haible  <bruno@clisp.org>
67520         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
67521         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
67522         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
67523         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
67524         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
67525         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
67526         m4/locale-zh.m4, m4/codeset.m4.
67528         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
67529         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
67530         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
67531         m4/locale-zh.m4.
67533         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
67534         REPLACE_WCRTOMB if mbstate_t must be replaced.
67535         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
67536         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
67538 2009-05-01  Bruno Haible  <bruno@clisp.org>
67540         Avoid compiler warnings when redefining macros defined by <libintl.h>.
67541         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
67542         dngettext, dcngettext, textdomain, bindtextdomain,
67543         bind_textdomain_codeset): Undefine before redefining.
67545 2009-04-30  Bruno Haible  <bruno@clisp.org>
67547         Fix bug introduced on 2009-04-25.
67548         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
67549         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
67550         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
67551         is defined.
67552         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
67553         is defined.
67554         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
67555         is defined.
67556         Reported by Elbert_Pol <elbert.pol@gmail.com>.
67558 2009-04-28  Bruno Haible  <bruno@clisp.org>
67560         Comment tweaks.
67561         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
67562         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
67563         * lib/unicase.h (u*_casexfrm): Likewise.
67564         Reported by Paolo Bonzini.
67566 2009-04-28  Bruno Haible  <bruno@clisp.org>
67568         Fix a compilation error.
67569         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
67570         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
67571         Reported by Jim Meyering.
67573 2009-04-27  Bruno Haible  <bruno@clisp.org>
67575         New module 'libunistring'.
67576         * modules/libunistring: New file.
67577         * m4/libunistring.m4: New file.
67578         * MODULES.html.sh (Unicode string functions): Add it.
67580 2009-04-27  Eric Blake  <ebb9@byu.net>
67582         maint.mk: allow package-specific header to provide <config.h>
67583         * top/maint.mk (sc_require_config_h): New variable.
67584         (sc_require_config_h, sc_require_config_h_first): Use it.
67586 2009-04-27  Simon Josefsson  <simon@josefsson.org>
67588         * top/maint.mk (sc_avoid_if_before_free): Except
67589         useless-if-before-free script.
67591 2009-04-27  Eric Blake  <ebb9@byu.net>
67593         maintainer-makefile: depend on all required helper scripts
67594         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
67595         useless-if-before-free.
67596         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
67597         version, rather than assuming gnulib checkout is available.
67598         Reported by Simen Josefsson.
67600 2009-04-26  Bruno Haible  <bruno@clisp.org>
67602         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
67603         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
67604         "../" or "..".
67606 2009-04-26  Bruno Haible  <bruno@clisp.org>
67608         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
67609         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
67610         AC_LIB_HAVE_LINKFLAGS.
67612 2009-04-26  Bruno Haible  <bruno@clisp.org>
67614         Simplify calling convention of u*_conv_from_encoding.
67615         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
67616         u32_conv_from_encoding): Expect a resultbuf argument and return the
67617         result directly as a pointer.
67618         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
67619         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
67620         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
67621         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
67622         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
67623         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
67624         Update.
67625         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
67626         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
67627         * lib/vasnprintf.c (VASNPRINTF): Update.
67628         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
67629         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
67630         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
67631         * NEWS: Mention the change.
67633 2009-04-26  Bruno Haible  <bruno@clisp.org>
67635         Simplify calling convention of u*_conv_to_encoding.
67636         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
67637         u32_conv_to_encoding): Expect a resultbuf argument and return the
67638         result directly as a pointer.
67639         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
67640         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
67641         freeing scaled_offsets if mem_iconveha failed.
67642         * lib/unicase/u-casexfrm.h (FUNC): Update.
67643         * lib/uninorm/u-normxfrm.h (FUNC): Update.
67644         * lib/vasnprintf.c (VASNPRINTF): Update.
67645         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
67646         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
67647         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
67648         * NEWS: Mention the change.
67650 2009-04-26  Bruno Haible  <bruno@clisp.org>
67652         Avoid test failures on AIX and OSF/1.
67653         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
67654         malloc(0).
67655         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
67656         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
67657         Likewise.
67658         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
67659         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
67660         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
67661         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
67662         * doc/posix-functions/malloc.texi: Document the portability problem
67663         related to malloc(0).
67665 2009-04-26  Bruno Haible  <bruno@clisp.org>
67667         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
67668         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
67669         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
67671 2009-04-25  Bruno Haible  <bruno@clisp.org>
67673         Avoid link error when creating a namespace clean library.
67674         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
67675         as macro with arguments if already defined as an alias.
67676         * lib/signbitf.c (gl_signbitf): Don't undefine.
67677         * lib/signbitd.c (gl_signbitd): Don't undefine.
67678         * lib/signbitl.c (gl_signbitl): Don't undefine.
67680 2009-04-25  Jim Meyering  <meyering@redhat.com>
67682         vc-list-files: fix another quoting bug
67683         * build-aux/vc-list-files: Avoid sed backslash expansion
67684         of pathological directory names.
67686 2009-04-25  Eric Blake  <ebb9@byu.net>
67688         vc-list-files: fix shell quoting error
67689         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
67690         timestamp.
67692 2009-04-25  Jim Meyering  <meyering@redhat.com>
67694         vc-list-files: restore lost functionality with subdir argument
67695         * build-aux/vc-list-files: When given a non-"." sub-directory
67696         argument, substitute the $dir/ prefix back onto each resulting name.
67697         Otherwise, coreutils' root_tests check would fail.
67699 2009-04-24  Eric Blake  <ebb9@byu.net>
67701         vc-list-files: ignore git symlinks
67702         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
67703         than ls-files, to ignore git symlinks.
67705         maint.mk: import improvements from m4
67706         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
67707         (move_if_change): Delete unused macro.
67708         (news-date-check, vc-diff-check): Support VPATH builds.
67709         (announcement): Likewise.  Split --bootstrap-tools list...
67710         (boostrap-tools): ...into separate list, which can be overridden
67711         in cfg.mk.
67712         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
67713         requiring dependency on useless-if-before-free module.
67714         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
67715         Support VPATH builds.
67717 2009-04-24  Jim Meyering  <meyering@redhat.com>
67719         maint.mk: remove coreutils-specific rules and variables
67720         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
67721         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
67722         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
67724         maint.mk: remove obsolete rule
67725         * top/maint.mk (rel-check): Remove rule.
67726         (WGET, WGETFLAGS): Remove now-unused variables.
67728 2009-04-24  Simon Josefsson  <simon@josefsson.org>
67730         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
67731         consistency.
67733         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
67734         '$(PATH_SEPARATOR)' instead of ':'.
67736 2009-04-24  Simon Josefsson  <simon@josefsson.org>
67738         * lib/getopt1.c (main): Use 'const' for static array.
67740 2009-04-24  Simon Josefsson  <simon@josefsson.org>
67742         * top/maint.mk: Sync with coreutils.
67743         * NEWS: Explain incompatibilities.
67745 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67746             Bruno Haible  <bruno@clisp.org>
67748         Fix cross-compilation results.
67749         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
67750         statement, as third argument of AC_TRY_RUN.
67751         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
67752         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
67753         Likewise.
67754         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
67755         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
67756         Likewise.
67757         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
67758         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
67759         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
67761 2009-04-20  Bruno Haible  <bruno@clisp.org>
67763         Avoid test failure on mingw.
67764         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
67766 2009-04-20  Bruno Haible  <bruno@clisp.org>
67768         Avoid compilation error on mingw.
67769         * modules/localename-tests (Depends-on): Add locale.
67771 2009-04-19  Bruno Haible  <bruno@clisp.org>
67773         Support for building a shared library on Windows platforms.
67774         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
67775         (main): Test the presence of UNINORM_NFC here.
67776         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
67777         (main): Test the presence of UNINORM_NFD here.
67778         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
67779         (main): Test the presence of UNINORM_NFKC here.
67780         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
67781         (main): Test the presence of UNINORM_NFKD here.
67783 2009-04-19  Bruno Haible  <bruno@clisp.org>
67785         Avoid a compiler warning.
67786         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
67787         Change type of variable 'sequence'.
67789 2009-04-19  Bruno Haible  <bruno@clisp.org>
67791         * modules/configmake (Makefile.am): When the contents of configmake.h
67792         does not change, arrange to preserve its modification time.
67794 2009-04-17  Simon Josefsson  <simon@josefsson.org>
67796         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
67797         gettext domain.
67799 2009-04-16  Jim Meyering  <meyering@redhat.com>
67801         useless-if-before-free: improve conversion code
67802         * build-aux/useless-if-before-free: Adjust code-in-comment to match
67803         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
67805 2009-04-14  Bruno Haible  <bruno@clisp.org>
67807         * modules/fcntl (Depends-on): Add extensions.
67808         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
67810 2009-04-12  Ben Pfaff  <blp@gnu.org>
67812         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
67813         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
67815 2009-03-20  Ben Pfaff  <blp@gnu.org>
67817         Make rename replace existing destinations on Windows.
67818         * m4/rename.m4: Add test for Mingw.
67819         * lib/rename.c: Add rename replacement that uses MoveFileEx with
67820         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
67821         * doc/posix-functions/rename.texi: Document.
67823 2009-04-10  Bruno Haible  <bruno@clisp.org>
67825         New include file "iconveh.h".
67826         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
67827         * lib/striconveh.h: Include it.
67828         (enum iconv_ilseq_handler): Remove definition.
67829         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
67830         striconveh.h.
67831         * lib/striconveha.c: Include striconveh.h.
67832         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
67833         * modules/striconveh (Files): Add lib/iconveh.h.
67834         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
67835         lib/striconveh.h.
67837 2009-04-10  Bruno Haible  <bruno@clisp.org>
67839         * lib/uniconv.h: Update comment.
67841 2009-04-10  Bruno Haible  <bruno@clisp.org>
67843         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
67844         always.
67845         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
67846         * lib/unistr/u16-mbtouc-aux.c: Likewise.
67847         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
67848         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
67849         "unistring-notinline.h", so that the function gets defined always.
67850         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
67851         * lib/unistr/u8-uctomb.c: Likewise.
67852         * lib/unistr/u16-mbtouc.c: Likewise.
67853         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
67854         * lib/unistr/u16-uctomb.c: Likewise.
67855         * lib/unistr/u32-mbtouc.c: Likewise.
67856         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
67857         * lib/unistr/u32-uctomb.c: Likewise.
67859 2009-04-10  Bruno Haible  <bruno@clisp.org>
67861         Mark 'utime' obsolete.
67862         * modules/utime (Status, Notice): New sections.
67863         Suggested by Jim Meyering.
67865         Fix cross-compile guess for utime test.
67866         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
67867         autoconf.
67868         * doc/posix-functions/utime.texi: Give more precisions.
67869         Reported by Jan <ipif@ymail.com>.
67871 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
67873         filevercmp: correct today's change
67874         * lib/filevercmp.c: Also handle coreutils' test inputs.
67875         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
67877         Fix regression in 'filevercmp' module. Thanks Sven Joachim
67878         for reporting it.
67879         * lib/filevercmp.c: Special handle for "", "." and "..".
67880         * tests/test-filevercmp.c: Enlarge the set suite.
67882 2009-04-07  Jim Meyering  <meyering@redhat.com>
67884         useless-if-before-free: show how to remove braced useless free, too
67885         * build-aux/useless-if-before-free: still only in a comment, though.
67887 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
67889         maint.mk: import changes to syntax-check macros from coreutils
67890         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
67891         Use them in the relevant macros.
67893 2009-04-06  Bruno Haible  <bruno@clisp.org>
67895         Fix unportable use of bit-fields.
67896         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
67897         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
67898         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
67900 2009-04-06  Bruno Haible  <bruno@clisp.org>
67902         Avoid test failures on AIX and OSF/1.
67903         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
67904         that malloc(0) = NULL.
67905         * tests/unicase/test-u8-tolower.c (check): Likewise.
67906         * tests/unicase/test-u8-totitle.c (check): Likewise.
67907         * tests/unicase/test-u8-toupper.c (check): Likewise.
67908         * tests/unicase/test-u16-casefold.c (check): Likewise.
67909         * tests/unicase/test-u16-tolower.c (check): Likewise.
67910         * tests/unicase/test-u16-totitle.c (check): Likewise.
67911         * tests/unicase/test-u16-toupper.c (check): Likewise.
67912         * tests/unicase/test-u32-casefold.c (check): Likewise.
67913         * tests/unicase/test-u32-tolower.c (check): Likewise.
67914         * tests/unicase/test-u32-totitle.c (check): Likewise.
67915         * tests/unicase/test-u32-toupper.c (check): Likewise.
67916         * tests/uninorm/test-u8-nfc.c (check): Likewise.
67917         * tests/uninorm/test-u8-nfd.c (check): Likewise.
67918         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
67919         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
67920         * tests/uninorm/test-u16-nfc.c (check): Likewise.
67921         * tests/uninorm/test-u16-nfd.c (check): Likewise.
67922         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
67923         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
67924         * tests/uninorm/test-u32-nfc.c (check): Likewise.
67925         * tests/uninorm/test-u32-nfd.c (check): Likewise.
67926         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
67927         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
67929 2009-04-05  Bruno Haible  <bruno@clisp.org>
67931         Work around an autoconf limitation.
67932         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
67933         comment line if it would be longer than 3 KB.
67935 2009-04-05  Bruno Haible  <bruno@clisp.org>
67937         Avoid test failure with libiconv-1.13.
67938         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
67939         of the expected test results.
67941 2009-04-05  Bruno Haible  <bruno@clisp.org>
67943         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
67944         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
67945         that it should be installed.
67947 2009-04-05  Bruno Haible  <bruno@clisp.org>
67949         * gnulib-tool: New option --copy-file.
67950         (func_usage): Document it.
67951         (func_dest_tmpfilename): Moved out of func_import.
67952         (func_add_file, func_update_file): New functions, extracted from
67953         func_import.
67954         (func_import): Update.
67956 2009-04-05  Karl Berry  <karl@gnu.org>
67958         * README: prominently mention gnulib-tool.
67959         Rearrange sections so getting the code is near the top.
67961 2009-04-05  Bruno Haible  <bruno@clisp.org>
67963         * lib/unicase.h: Mention u*_cmp2.
67964         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
67965         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
67966         * lib/unicase/ulc-casecmp.c: Likewise.
67967         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
67968         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
67969         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
67970         unistr/u8-cmp.
67971         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
67972         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
67973         unistr/u16-cmp.
67974         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
67975         unistr/u32-cmp.
67977         * lib/uninorm.h: Mention u*_cmp2.
67978         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
67979         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
67980         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
67981         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
67982         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
67983         unistr/u8-cmp.
67984         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
67985         unistr/u16-cmp.
67986         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
67987         unistr/u32-cmp.
67989         New module 'unistr/u32-cmp2'.
67990         * lib/unistr/u32-cmp2.c: New file.
67991         * modules/unistr/u32-cmp2: New file.
67993         New module 'unistr/u16-cmp2'.
67994         * lib/unistr/u16-cmp2.c: New file.
67995         * modules/unistr/u16-cmp2: New file.
67997         New module 'unistr/u8-cmp2'.
67998         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
67999         * lib/unistr/u8-cmp2.c: New file.
68000         * lib/unistr/u-cmp2.h: New file.
68001         * modules/unistr/u8-cmp2: New file.
68003 2009-04-05  Bruno Haible  <bruno@clisp.org>
68005         * lib/unictype.h (uc_property_is_valid): New macro.
68006         * tests/unictype/test-pr_byname.c (main): Use it.
68008         * lib/unistr.h: Doc fixes.
68009         * lib/uniconv.h: Doc fixes.
68010         * lib/unictype.h: Doc fixes.
68012 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
68014         Port coreutils 7.2 to Solaris 8.
68016         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
68017         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
68018         for Solaris 8.  This is a bit of a hack, as it means it's the
68019         caller's responsibility to add -lnsl if needed, but most likely it
68020         won't be needed since only getaddrinfo uses this and getaddrinfo
68021         isn't needed on Solaris 8.
68023         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
68024         problem to Solaris 8 encountered with coreutils 7.2, which
68025         resulted in a message "fnmatch.c:292: warning: passing argument 4
68026         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
68027         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
68029 2009-04-03  Simon Josefsson  <simon@josefsson.org>
68031         * m4/ld-version-script.m4: Add FIXME comment.
68033 2009-04-02  Simon Josefsson  <simon@josefsson.org>
68035         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
68036         SOVERSION variable.
68038 2009-04-02  Bruno Haible  <bruno@clisp.org>
68040         * Makefile (info, html, dvi, pdf): Combine the rules.
68041         Suggested by Jim Meyering.
68043 2009-04-01  Bruno Haible  <bruno@clisp.org>
68045         * Makefile (info, html, dvi, pdf): New targets.
68046         Reported by Reuben Thomas <rrt@sc3d.org>.
68048 2009-04-01  Bruno Haible  <bruno@clisp.org>
68050         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
68051         can be put into PATH.
68052         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
68054 2009-04-01  Bruno Haible  <bruno@clisp.org>
68056         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
68058 2009-04-01  Bruno Haible  <bruno@clisp.org>
68060         Rename module 'visibility'.
68061         * modules/lib-symbol-visibility: Renamed from modules/visibility.
68062         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
68063         * doc/gnulib.texi: Update.
68064         * MODULES.html.sh (Misc): Update.
68065         * NEWS: Mention the change.
68067 2009-04-01  Simon Josefsson  <simon@josefsson.org>
68069         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
68070         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
68071         Eric Blake <ebb9@byu.net> for review.
68072         * MODULES.html.sh: Add lib-msvc-compat.
68073         * doc/gnulib.texi: Link to new section.
68074         * m4/ld-output-def.m4: New file.
68075         * doc/ld-output-def.texi: New file.
68077 2009-04-01  Simon Josefsson  <simon@josefsson.org>
68079         Rename ld-version-script to lib-symbol-versions.  Suggested by
68080         Bruno Haible <bruno@clisp.org>.
68081         * modules/ld-version-script: Renamed to lib-symbol-versions.
68082         * doc/ld-version-script.texi: Fix module name.
68083         * MODULES.html.sh: Add lib-symbol-versions.
68085 2009-03-31  Simon Josefsson  <simon@josefsson.org>
68087         * modules/u64-tests: New file.
68088         * tests/test-u64.c: New file.
68090 2009-03-04  Simon Josefsson  <simon@josefsson.org>
68092         * MODULES.html.sh: Mention u64.
68093         * modules/u64: New module.
68094         * modules/crypto/sha512: Depend on u64 module instead of providing
68095         u64.h.
68097 2009-03-27  Eric Blake  <ebb9@byu.net>
68099         test-strerror: make debugging EAI_SYSTEM easier
68100         * modules/getaddrinfo-tests (Depends-on): Add strerror.
68101         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
68102         failure was EAI_SYSTEM.
68104 2009-03-25  Bruno Haible  <bruno@clisp.org>
68106         Fix a problem with --enable-relocatable on Solaris 7.
68107         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
68108         since 2008-02-24.
68110 2009-03-25  Eric Blake  <ebb9@byu.net>
68112         test-sockets: avoid gcc warning
68113         * tests/test-sockets.c (main): Silence compiler warning.
68115 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
68117         New modules nproc, pthread, contributed by Glen Lenker.
68119         * MODULES.html.sh: Add pthread, nproc.
68120         * lib/nproc.c: New file.
68121         * lib/nproc.h: New file.
68122         * lib/pthread.in.h: New file.
68123         * m4/pthread.m4: New file.
68124         * modules/nproc: New file.
68125         * modules/pthread: New file.
68127 2009-03-24  Simon Josefsson  <simon@josefsson.org>
68129         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
68130         New variable.
68132 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
68134         filevercmp: handle simple~ and numbered.~3~ backup suffixes
68135         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
68136         * tests/test-filevercmp.c: Add tests for backup suffixes.
68138 2009-03-24  Simon Josefsson  <simon@josefsson.org>
68140         * modules/stdlib (Depends-on): Add stdint, needed when defining
68141         struct random_data on, for example, HP-UX 10.20.  Reported by
68142         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
68144 2009-03-24  Simon Josefsson  <simon@josefsson.org>
68146         * lib/readline.c (readline): Call fflush on stdout after printing
68147         prompt.
68149 2009-03-20  Bruno Haible  <bruno@clisp.org>
68151         Remove dependency from 'close' module to -lws2_32 on native Windows.
68152         * lib/close-hook.h: New file.
68153         * lib/close-hook.c: New file.
68154         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
68155         w32sock.h.
68156         (_gl_close_fd_maybe_socket): Remove function.
68157         (rpl_close): Invoke execute_all_close_hooks instead of
68158         _gl_close_fd_maybe_socket.
68159         * lib/sockets.c: Include close-hook.h, w32sock.h.
68160         (close_fd_maybe_socket): New function, essentially from lib/close.c.
68161         (close_sockets_hook): New variable.
68162         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
68163         (gl_sockets_cleanup): Unregister it.
68164         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
68165         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
68166         * modules/close-hook: New file.
68167         * modules/close (Files): Remove lib/w32sock.h.
68168         (Depends-on): Add close-hook.
68169         (Link): Remove section.
68170         * modules/sockets (Files): Add lib/w32sock.h.
68171         (Depends-on): Add close-hook.
68172         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
68173         invocation.
68174         * NEWS: Mention that LIB_CLOSE is gone.
68176 2009-03-23  Eric Blake  <ebb9@byu.net>
68178         signal-tests: test previous patch
68179         * tests/test-signal.c: New file.
68180         * modules/signal-tests: Likewise.
68182         signal.h: always support 'volatile sig_atomic_t'
68183         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
68184         (gl_SIGNAL_H_DEFAULTS): Add a default.
68185         * modules/signal (Makefile.am): Substitute if needed.
68186         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
68187         users can blindly add volatile.
68188         * doc/posix-headers/signal.texi (signal.h): Document it.
68189         Reported by Matthew Woehlke.
68191 2009-03-23  Jim Meyering  <meyering@redhat.com>
68193         pathmax: PATH_MAX: use pathconf only when available
68194         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
68195         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
68196         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
68197         This avoids a link failure in a PSP cross-compilation environment
68198         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
68200         * lib/vasnprintf.c (divide): Fix typo in comment.
68202 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68204         * gnulib-tool (func_filter_filelist): Fix comment.
68206 2009-03-20  Bruno Haible  <bruno@clisp.org>
68208         Make sockets.h self-contained.
68209         * lib/sockets.c: Include sockets.h first.
68210         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
68212 2009-03-19  Eric Blake  <ebb9@byu.net>
68214         doc: mention more functions added in cygwin 1.7.0
68215         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
68216         addition.
68217         * doc/posix-functions/log2f.texi: Likewise.
68219 2009-03-19  Jim Meyering  <meyering@redhat.com>
68221         fsusage: avoid syntax error due to statement-before-declaration
68222         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
68223         after all declarations.  Reported by Matthew Woehlke in
68224         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
68226 2009-03-18  Eric Blake  <ebb9@byu.net>
68228         build-aux/compile: sync from automake
68229         * build-aux/compile: New file, from automake.
68230         * config/srclist.txt: Mention build-aux/compile.
68232 2009-03-17  Bruno Haible  <bruno@clisp.org>
68234         * lib/git-merge-changelog.c: Fix typo in comment.
68235         Reported by Reuben Thomas <rrt@sc3d.org>.
68237 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
68239         * m4/regex.m4: update and improve help for
68240         --without-included-regex.
68242 2009-03-17  Simon Josefsson  <simon@josefsson.org>
68244         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
68245         failure on missing include files.
68247 2009-03-17  Eric Blake  <ebb9@byu.net>
68249         doc: mention more functions added in cygwin 1.7.0
68250         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
68251         addition.
68252         * doc/posix-functions/fwscanf.texi: Likewise.
68253         * doc/posix-functions/swprintf.texi: Likewise.
68254         * doc/posix-functions/swscanf.texi: Likewise.
68255         * doc/posix-functions/vfwprintf.texi: Likewise.
68256         * doc/posix-functions/vfwscanf.texi: Likewise.
68257         * doc/posix-functions/vswprintf.texi: Likewise.
68258         * doc/posix-functions/vswscanf.texi: Likewise.
68259         * doc/posix-functions/vwprintf.texi: Likewise.
68260         * doc/posix-functions/vwscanf.texi: Likewise.
68261         * doc/posix-functions/wcscasecmp.texi: Likewise.
68262         * doc/posix-functions/wcsdup.texi: Likewise.
68263         * doc/posix-functions/wcsftime.texi: Likewise.
68264         * doc/posix-functions/wcsncasecmp.texi: Likewise.
68265         * doc/posix-functions/wprintf.texi: Likewise.
68266         * doc/posix-functions/wscanf.texi: Likewise.
68267         * doc/glibc-functions/gethostbyname2.texi: Likewise.
68269 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68271         maint.mk: really add $(AM_MAKEFLAGS)
68272         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
68273         was inadvertently omitted in the last commit.
68274         Spotted by Bruno Haible.
68276         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
68277         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
68278         $(AM_MAKEFLAGS)' rather than plain `make'.
68280         gnulib-tool: execute $MAKE not make
68281         * gnulib-tool: Default $MAKE to 'make'.
68282         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
68283         than make.  Initialize $MAKE in the do-autobuild script.
68285         gnulib-tool: use $MAKE not make in generated files
68286         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
68287         make, in generated files.  Initialize $MAKE in the do-autobuild
68288         script.
68290         * top/GNUmakefile (_have-git-version-gen): Fix typo.
68292         GNUmakefile: disable parallelism only for multiple, recursive targets
68293         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
68294         additions in the Makefile.
68295         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
68296         by Automake.
68297         (.NOTPARALLEL): Only disable parallel builds if multiple targets
68298         are listed on the command line and at least one of them is
68299         listed in $(ALL_RECURSIVE_TARGETS).
68301 2009-03-14  Bruno Haible  <bruno@clisp.org>
68303         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
68304         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
68305         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
68306         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
68307         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
68308         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
68309         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
68310         unistr/u8-uctomb.
68311         * modules/unistr/u8-strchr (Depends-on): Likewise.
68312         * modules/unistr/u8-strrchr (Depends-on): Likewise.
68313         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
68314         unistr/u16-uctomb.
68315         * modules/unistr/u16-strchr (Depends-on): Likewise.
68316         * modules/unistr/u16-strrchr (Depends-on): Likewise.
68318 2009-03-12  Bruno Haible  <bruno@clisp.org>
68320         Work around select() bug on Interix 3.5.
68321         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
68322         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
68323         * m4/select.m4: New file.
68324         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
68325         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
68326         * modules/select (Files): Add m4/select.m4.
68327         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
68328         * modules/nanosleep (Depends-on): Add select.
68329         * modules/poll (Depends-on): Likewise.
68330         * doc/posix-functions/select.texi: Mention the Interix bug.
68331         Reported by Markus Duft <mduft@gentoo.org>.
68333         * lib/select.c: Renamed from lib/winsock-select.c.
68334         * modules/select (Files): Add lib/select.c, remove
68335         lib/winsock-select.c.
68336         (configure.ac): Update.
68338 2009-03-12  Jim Meyering  <meyering@redhat.com>
68340         avoid gcc warnings about unused macro definitions
68341         * lib/readtokens.c (STREQ): Remove unused definition.
68342         * lib/xmalloc.c (SIZE_MAX): Likewise.
68343         * lib/openat-die.c (N_): Likewise.
68344         * lib/mountlist.c (SIZE_MAX): Remove definition.
68345         Instead, include <stdint.h>.
68346         * lib/readutmp.c: Likewise.
68347         * modules/readutmp (Depends-on): Add stdint.
68348         * modules/mountlist (Depends-on): Add stdint.
68349         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
68351 2009-03-10  Bruno Haible  <bruno@clisp.org>
68353         Tests for module 'mbmemcasecoll'.
68354         * modules/mbmemcasecoll-tests: New file.
68355         * tests/test-mbmemcasecoll1.sh: New file.
68356         * tests/test-mbmemcasecoll2.sh: New file.
68357         * tests/test-mbmemcasecoll3.sh: New file.
68358         * tests/test-mbmemcasecoll.c: New file.
68360         New module 'mbmemcasecoll'.
68361         * lib/mbmemcasecoll.h: New file.
68362         * lib/mbmemcasecoll.c: New file.
68363         * modules/mbmemcasecoll: New file.
68365         * tests/test-mbmemcasecmp.h: New file, extracted from
68366         tests/test-mbmemcasecmp.c.
68367         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
68368         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
68369         (main): Update.
68370         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
68372 2009-03-09  Bruno Haible  <bruno@clisp.org>
68374         Tests for module 'mbmemcasecmp'.
68375         * modules/mbmemcasecmp-tests: New file.
68376         * tests/test-mbmemcasecmp1.sh: New file.
68377         * tests/test-mbmemcasecmp2.sh: New file.
68378         * tests/test-mbmemcasecmp3.sh: New file.
68379         * tests/test-mbmemcasecmp.c: New file.
68381         New module 'mbmemcasecmp'.
68382         * lib/mbmemcasecmp.h: New file.
68383         * lib/mbmemcasecmp.c: New file.
68384         * modules/mbmemcasecmp: New file.
68386 2009-03-09  Bruno Haible  <bruno@clisp.org>
68388         Tests for module 'unicase/ulc-casecoll'.
68389         * modules/unicase/ulc-casecoll-tests: New file.
68390         * tests/unicase/test-ulc-casecoll1.sh: New file.
68391         * tests/unicase/test-ulc-casecoll2.sh: New file.
68392         * tests/unicase/test-ulc-casecoll.c: New file.
68394         New module 'unicase/ulc-casecoll'.
68395         * lib/unicase.h (ulc_casecoll): New declaration.
68396         * lib/unicase/ulc-casecoll.c: New file.
68397         * modules/unicase/ulc-casecoll: New file.
68399         New module 'unicase/ulc-casexfrm'.
68400         * lib/unicase.h (ulc_casexfrm): New declaration.
68401         * lib/unicase/ulc-casexfrm.c: New file.
68402         * modules/unicase/ulc-casexfrm: New file.
68404 2009-03-09  Bruno Haible  <bruno@clisp.org>
68406         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
68407         invocations.
68409         * m4/mbscasecmp.m4: Remove file.
68410         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
68411         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
68413         * m4/mbscasestr.m4: Remove file.
68414         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
68415         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
68417         * m4/mbschr.m4: Remove file.
68418         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
68419         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
68421         * m4/mbscspn.m4: Remove file.
68422         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
68423         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
68425         * m4/mbslen.m4: Remove file.
68426         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
68427         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
68429         * m4/mbsncasecmp.m4: Remove file.
68430         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
68431         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
68433         * m4/mbsnlen.m4: Remove file.
68434         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
68435         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
68437         * m4/mbspbrk.m4: Remove file.
68438         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
68439         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
68441         * m4/mbspcasecmp.m4: Remove file.
68442         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
68443         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
68445         * m4/mbsrchr.m4: Remove file.
68446         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
68447         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
68449         * m4/mbssep.m4: Remove file.
68450         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
68451         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
68453         * m4/mbsspn.m4: Remove file.
68454         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
68455         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
68457         * m4/mbsstr.m4: Remove file.
68458         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
68459         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
68461         * m4/mbstok_r.m4: Remove file.
68462         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
68463         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
68465         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
68467         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
68468         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
68470         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
68472 2009-03-08  Bruno Haible  <bruno@clisp.org>
68474         Tests for module 'unicase/ulc-casecmp'.
68475         * modules/unicase/ulc-casecmp-tests: New file.
68476         * tests/unicase/test-ulc-casecmp1.sh: New file.
68477         * tests/unicase/test-ulc-casecmp2.sh: New file.
68478         * tests/unicase/test-ulc-casecmp.c: New file.
68480         New module 'unicase/ulc-casecmp'.
68481         * lib/unicase.h (ulc_casecmp): New declaration.
68482         * lib/unicase/ulc-casecmp.c: New file.
68483         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
68484         'const SRC_UNIT *'.
68485         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
68486         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
68487         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
68488         * modules/unicase/ulc-casecmp: New file.
68490         Tests for module 'unicase/u32-is-cased'.
68491         * modules/unicase/u32-is-cased-tests: New file.
68492         * tests/unicase/test-u32-is-cased.c: New file.
68494         Tests for module 'unicase/u16-is-cased'.
68495         * modules/unicase/u16-is-cased-tests: New file.
68496         * tests/unicase/test-u16-is-cased.c: New file.
68498         Tests for module 'unicase/u8-is-cased'.
68499         * modules/unicase/u8-is-cased-tests: New file.
68500         * tests/unicase/test-u8-is-cased.c: New file.
68501         * tests/unicase/test-is-cased.h: New file.
68503         New module 'unicase/u32-is-cased'.
68504         * lib/unicase/u32-is-cased.c: New file.
68505         * modules/unicase/u32-is-cased: New file.
68507         New module 'unicase/u16-is-cased'.
68508         * lib/unicase/u16-is-cased.c: New file.
68509         * modules/unicase/u16-is-cased: New file.
68511         New module 'unicase/u8-is-cased'.
68512         * lib/unicase/u8-is-cased.c: New file.
68513         * lib/unicase/u-is-cased.h: New file.
68514         * modules/unicase/u8-is-cased: New file.
68516         Tests for module 'unicase/u32-is-casefolded'.
68517         * modules/unicase/u32-is-casefolded-tests: New file.
68518         * tests/unicase/test-u32-is-casefolded.c: New file.
68520         Tests for module 'unicase/u16-is-casefolded'.
68521         * modules/unicase/u16-is-casefolded-tests: New file.
68522         * tests/unicase/test-u16-is-casefolded.c: New file.
68524         Tests for module 'unicase/u8-is-casefolded'.
68525         * modules/unicase/u8-is-casefolded-tests: New file.
68526         * tests/unicase/test-u8-is-casefolded.c: New file.
68527         * tests/unicase/test-is-casefolded.h: New file.
68529         New module 'unicase/u32-is-casefolded'.
68530         * lib/unicase/u32-is-casefolded.c: New file.
68531         * modules/unicase/u32-is-casefolded: New file.
68533         New module 'unicase/u16-is-casefolded'.
68534         * lib/unicase/u16-is-casefolded.c: New file.
68535         * modules/unicase/u16-is-casefolded: New file.
68537         New module 'unicase/u8-is-casefolded'.
68538         * lib/unicase/u8-is-casefolded.c: New file.
68539         * modules/unicase/u8-is-casefolded: New file.
68541         Tests for module 'unicase/u32-is-titlecase'.
68542         * modules/unicase/u32-is-titlecase-tests: New file.
68543         * tests/unicase/test-u32-is-titlecase.c: New file.
68545         Tests for module 'unicase/u16-is-titlecase'.
68546         * modules/unicase/u16-is-titlecase-tests: New file.
68547         * tests/unicase/test-u16-is-titlecase.c: New file.
68549         Tests for module 'unicase/u8-is-titlecase'.
68550         * modules/unicase/u8-is-titlecase-tests: New file.
68551         * tests/unicase/test-u8-is-titlecase.c: New file.
68552         * tests/unicase/test-is-titlecase.h: New file.
68554         New module 'unicase/u32-is-titlecase'.
68555         * lib/unicase/u32-is-titlecase.c: New file.
68556         * modules/unicase/u32-is-titlecase: New file.
68558         New module 'unicase/u16-is-titlecase'.
68559         * lib/unicase/u16-is-titlecase.c: New file.
68560         * modules/unicase/u16-is-titlecase: New file.
68562         New module 'unicase/u8-is-titlecase'.
68563         * lib/unicase/u8-is-titlecase.c: New file.
68564         * modules/unicase/u8-is-titlecase: New file.
68566         Tests for module 'unicase/u32-is-lowercase'.
68567         * modules/unicase/u32-is-lowercase-tests: New file.
68568         * tests/unicase/test-u32-is-lowercase.c: New file.
68570         Tests for module 'unicase/u16-is-lowercase'.
68571         * modules/unicase/u16-is-lowercase-tests: New file.
68572         * tests/unicase/test-u16-is-lowercase.c: New file.
68574         Tests for module 'unicase/u8-is-lowercase'.
68575         * modules/unicase/u8-is-lowercase-tests: New file.
68576         * tests/unicase/test-u8-is-lowercase.c: New file.
68577         * tests/unicase/test-is-lowercase.h: New file.
68579         New module 'unicase/u32-is-lowercase'.
68580         * lib/unicase/u32-is-lowercase.c: New file.
68581         * modules/unicase/u32-is-lowercase: New file.
68583         New module 'unicase/u16-is-lowercase'.
68584         * lib/unicase/u16-is-lowercase.c: New file.
68585         * modules/unicase/u16-is-lowercase: New file.
68587         New module 'unicase/u8-is-lowercase'.
68588         * lib/unicase/u8-is-lowercase.c: New file.
68589         * modules/unicase/u8-is-lowercase: New file.
68591         Tests for module 'unicase/u32-is-uppercase'.
68592         * modules/unicase/u32-is-uppercase-tests: New file.
68593         * tests/unicase/test-u32-is-uppercase.c: New file.
68595         Tests for module 'unicase/u16-is-uppercase'.
68596         * modules/unicase/u16-is-uppercase-tests: New file.
68597         * tests/unicase/test-u16-is-uppercase.c: New file.
68599         Tests for module 'unicase/u8-is-uppercase'.
68600         * modules/unicase/u8-is-uppercase-tests: New file.
68601         * tests/unicase/test-u8-is-uppercase.c: New file.
68602         * tests/unicase/test-is-uppercase.h: New file.
68604         New module 'unicase/u32-is-uppercase'.
68605         * lib/unicase/u32-is-uppercase.c: New file.
68606         * modules/unicase/u32-is-uppercase: New file.
68608         New module 'unicase/u16-is-uppercase'.
68609         * lib/unicase/u16-is-uppercase.c: New file.
68610         * modules/unicase/u16-is-uppercase: New file.
68612         New module 'unicase/u8-is-uppercase'.
68613         * lib/unicase/u8-is-uppercase.c: New file.
68614         * modules/unicase/u8-is-uppercase: New file.
68616         New module 'unicase/u32-is-invariant'.
68617         * lib/unicase/u32-is-invariant.c: New file.
68618         * modules/unicase/u32-is-invariant: New file.
68620         New module 'unicase/u16-is-invariant'.
68621         * lib/unicase/u16-is-invariant.c: New file.
68622         * modules/unicase/u16-is-invariant: New file.
68624         New module 'unicase/u8-is-invariant'.
68625         * lib/unicase/u8-is-invariant.c: New file.
68626         * lib/unicase/invariant.h: New file.
68627         * lib/unicase/u-is-invariant.h: New file.
68628         * modules/unicase/u8-is-invariant: New file.
68630         Tests for module 'unicase/u32-casecoll'.
68631         * modules/unicase/u32-casecoll-tests: New file.
68632         * tests/unicase/test-u32-casecoll.c: New file.
68634         Tests for module 'unicase/u16-casecoll'.
68635         * modules/unicase/u16-casecoll-tests: New file.
68636         * tests/unicase/test-u16-casecoll.c: New file.
68638         Tests for module 'unicase/u8-casecoll'.
68639         * modules/unicase/u8-casecoll-tests: New file.
68640         * tests/unicase/test-u8-casecoll.c: New file.
68642         New module 'unicase/u32-casecoll'.
68643         * lib/unicase/u32-casecoll.c: New file.
68644         * modules/unicase/u32-casecoll: New file.
68646         New module 'unicase/u16-casecoll'.
68647         * lib/unicase/u16-casecoll.c: New file.
68648         * modules/unicase/u16-casecoll: New file.
68650         New module 'unicase/u8-casecoll'.
68651         * lib/unicase/u8-casecoll.c: New file.
68652         * lib/unicase/u-casecoll.h: New file.
68653         * modules/unicase/u8-casecoll: New file.
68655         New module 'unicase/u32-casexfrm'.
68656         * lib/unicase/u32-casexfrm.c: New file.
68657         * modules/unicase/u32-casexfrm: New file.
68659         New module 'unicase/u16-casexfrm'.
68660         * lib/unicase/u16-casexfrm.c: New file.
68661         * modules/unicase/u16-casexfrm: New file.
68663         New module 'unicase/u8-casexfrm'.
68664         * lib/unicase/u8-casexfrm.c: New file.
68665         * lib/unicase/u-casexfrm.h: New file.
68666         * modules/unicase/u8-casexfrm: New file.
68668         Tests for module 'unicase/u32-casecmp'.
68669         * modules/unicase/u32-casecmp-tests: New file.
68670         * tests/unicase/test-u32-casecmp.c: New file.
68672         Tests for module 'unicase/u16-casecmp'.
68673         * modules/unicase/u16-casecmp-tests: New file.
68674         * tests/unicase/test-u16-casecmp.c: New file.
68676         Tests for module 'unicase/u8-casecmp'.
68677         * modules/unicase/u8-casecmp-tests: New file.
68678         * tests/unicase/test-u8-casecmp.c: New file.
68679         * tests/unicase/test-casecmp.h: New file.
68681         New module 'unicase/u32-casecmp'.
68682         * lib/unicase/u32-casecmp.c: New file.
68683         * modules/unicase/u32-casecmp: New file.
68685         New module 'unicase/u16-casecmp'.
68686         * lib/unicase/u16-casecmp.c: New file.
68687         * modules/unicase/u16-casecmp: New file.
68689         New module 'unicase/u8-casecmp'.
68690         * lib/unicase/u8-casecmp.c: New file.
68691         * lib/unicase/u-casecmp.h: New file.
68692         * modules/unicase/u8-casecmp: New file.
68694         Tests for module 'unicase/u32-casefold'.
68695         * modules/unicase/u32-casefold-tests: New file.
68696         * tests/unicase/test-u32-casefold.c: New file.
68698         Tests for module 'unicase/u16-casefold'.
68699         * modules/unicase/u16-casefold-tests: New file.
68700         * tests/unicase/test-u16-casefold.c: New file.
68702         Tests for module 'unicase/u8-casefold'.
68703         * modules/unicase/u8-casefold-tests: New file.
68704         * tests/unicase/test-u8-casefold.c: New file.
68706         New module 'unicase/u32-casefold'.
68707         * lib/unicase/u32-casefold.c: New file.
68708         * modules/unicase/u32-casefold: New file.
68710         New module 'unicase/u16-casefold'.
68711         * lib/unicase/u16-casefold.c: New file.
68712         * modules/unicase/u16-casefold: New file.
68714         New module 'unicase/u8-casefold'.
68715         * lib/unicase/u8-casefold.c: New file.
68716         * lib/unicase/u-casefold.h: New file.
68717         * modules/unicase/u8-casefold: New file.
68719         New module 'unicase/tocasefold'.
68720         * lib/unicase/casefold.h: New file.
68721         * lib/unicase/tocasefold.c: New file.
68722         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
68723         * modules/unicase/tocasefold: New file.
68725         Tests for module 'unicase/u32-totitle'.
68726         * modules/unicase/u32-totitle-tests: New file.
68727         * tests/unicase/test-u32-totitle.c: New file.
68729         Tests for module 'unicase/u16-totitle'.
68730         * modules/unicase/u16-totitle-tests: New file.
68731         * tests/unicase/test-u16-totitle.c: New file.
68733         Tests for module 'unicase/u8-totitle'.
68734         * modules/unicase/u8-totitle-tests: New file.
68735         * tests/unicase/test-u8-totitle.c: New file.
68737         New module 'unicase/u32-totitle'.
68738         * lib/unicase/u32-totitle.c: New file.
68739         * modules/unicase/u32-totitle: New file.
68741         New module 'unicase/u16-totitle'.
68742         * lib/unicase/u16-totitle.c: New file.
68743         * modules/unicase/u16-totitle: New file.
68745         New module 'unicase/u8-totitle'.
68746         * lib/unicase/u8-totitle.c: New file.
68747         * lib/unicase/u-totitle.h: New file.
68748         * modules/unicase/u8-totitle: New file.
68750         Tests for module 'unicase/u32-tolower'.
68751         * modules/unicase/u32-tolower-tests: New file.
68752         * tests/unicase/test-u32-tolower.c: New file.
68754         Tests for module 'unicase/u16-tolower'.
68755         * modules/unicase/u16-tolower-tests: New file.
68756         * tests/unicase/test-u16-tolower.c: New file.
68758         Tests for module 'unicase/u8-tolower'.
68759         * modules/unicase/u8-tolower-tests: New file.
68760         * tests/unicase/test-u8-tolower.c: New file.
68762         New module 'unicase/u32-tolower'.
68763         * lib/unicase/u32-tolower.c: New file.
68764         * modules/unicase/u32-tolower: New file.
68766         New module 'unicase/u16-tolower'.
68767         * lib/unicase/u16-tolower.c: New file.
68768         * modules/unicase/u16-tolower: New file.
68770         New module 'unicase/u8-tolower'.
68771         * lib/unicase/u8-tolower.c: New file.
68772         * modules/unicase/u8-tolower: New file.
68774         Tests for module 'unicase/u32-toupper'.
68775         * modules/unicase/u32-toupper-tests: New file.
68776         * tests/unicase/test-u32-toupper.c: New file.
68778         Tests for module 'unicase/u16-toupper'.
68779         * modules/unicase/u16-toupper-tests: New file.
68780         * tests/unicase/test-u16-toupper.c: New file.
68782         Tests for module 'unicase/u8-toupper'.
68783         * modules/unicase/u8-toupper-tests: New file.
68784         * tests/unicase/test-u8-toupper.c: New file.
68786         New module 'unicase/u32-toupper'.
68787         * lib/unicase/u32-toupper.c: New file.
68788         * modules/unicase/u32-toupper: New file.
68790         New module 'unicase/u16-toupper'.
68791         * lib/unicase/u16-toupper.c: New file.
68792         * modules/unicase/u16-toupper: New file.
68794         New module 'unicase/u8-toupper'.
68795         * lib/unicase/u8-toupper.c: New file.
68796         * modules/unicase/u8-toupper: New file.
68798         New module 'unicase/u32-casemap'.
68799         * lib/unicase/u32-casemap.c: New file.
68800         * modules/unicase/u32-casemap: New file.
68802         New module 'unicase/u16-casemap'.
68803         * lib/unicase/u16-casemap.c: New file.
68804         * modules/unicase/u16-casemap: New file.
68806         New module 'unicase/u8-casemap'.
68807         * lib/unicase/unicasemap.h: New file.
68808         * lib/unicase/u8-casemap.c: New file.
68809         * lib/unicase/u-casemap.h: New file.
68810         * modules/unicase/u8-casemap: New file.
68812         New module 'unicase/special-casing'.
68813         * lib/unicase/special-casing.h: New file.
68814         * lib/unicase/special-casing.c: New file.
68815         * lib/unicase/special-casing-table.gperf: New file, generated by
68816         gen-uni-tables.c.
68817         * modules/unicase/special-casing: New file.
68819         Tests for module 'unicase/locale-language'.
68820         * modules/unicase/locale-language-tests: New file.
68821         * tests/unicase/test-locale-language.sh: New file.
68822         * tests/unicase/test-locale-language.c: New file.
68824         New module 'unicase/locale-language'.
68825         * lib/unicase/locale-language.c: New file.
68826         * lib/unicase/locale-languages.gperf: New file.
68827         * modules/unicase/locale-language: New file.
68829         Generate more tables for case conversion and case folding.
68830         * lib/gen-uni-tables.c (SCC_*): New enum items.
68831         (struct special_casing_rule): New type.
68832         (casing_rules, num_casing_rules, allocated_casing_rules): New
68833         variables.
68834         (add_casing_rule, fill_casing_rules): New functions.
68835         (struct casefold_rule): New type.
68836         (casefolding_rules, num_casefolding_rules,
68837         allocated_casefolding_rules): New variables.
68838         (fill_casefolding_rules): New function.
68839         (unicode_casefold): New variable.
68840         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
68841         sort_casing_rules, output_casing_rules): New functions.
68842         (main): Accept to more arguments: SpecialCasing.txt and
68843         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
68844         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
68845         Output mapping for casefolding.
68847         * lib/unicase.h: Include stdbool.h, uninorm.h.
68848         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
68849         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
68850         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
68851         arguments.
68852         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
68853         resultp arguments.
68854         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
68855         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
68856         resultp arguments.
68857         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
68858         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
68859         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
68860         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
68861         declarations.
68862         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
68864 2009-03-08  Bruno Haible  <bruno@clisp.org>
68866         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
68867         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
68868         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
68869         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
68871 2009-03-07  Bruno Haible  <bruno@clisp.org>
68873         Adjust u*_normcmp, u*_normcoll API.
68874         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
68875         u16_normcoll, u32_normcoll): Change failure conventions.
68876         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
68877         errno and return -1.
68878         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
68880 2009-03-07  Bruno Haible  <bruno@clisp.org>
68882         Tests for module 'uninorm/u32-normcoll'.
68883         * modules/uninorm/u32-normcoll-tests: New file.
68884         * tests/uninorm/test-u32-normcoll.c: New file.
68886         Tests for module 'uninorm/u16-normcoll'.
68887         * modules/uninorm/u16-normcoll-tests: New file.
68888         * tests/uninorm/test-u16-normcoll.c: New file.
68890         Tests for module 'uninorm/u8-normcoll'.
68891         * modules/uninorm/u8-normcoll-tests: New file.
68892         * tests/uninorm/test-u8-normcoll.c: New file.
68894 2009-03-07  Bruno Haible  <bruno@clisp.org>
68896         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
68897         tests/uninorm/test-u32-normcmp.c.
68898         * tests/uninorm/test-u32-normcmp.c: Include it.
68899         (test_nonascii): New function, extracted from main. Add some more
68900         tests.
68901         (main): Invoke test_ascii and test_nonascii.
68902         * modules/uninorm/u32-normcmp-tests (Files): Add
68903         tests/uninorm/test-u32-normcmp.h.
68904         (Depends-on): Remove uninorm/u32-normcmp.
68906         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
68907         tests/uninorm/test-u16-normcmp.c.
68908         * tests/uninorm/test-u16-normcmp.c: Include it.
68909         (test_nonascii): New function, extracted from main. Add some more
68910         tests.
68911         (main): Invoke test_ascii and test_nonascii.
68912         * modules/uninorm/u16-normcmp-tests (Files): Add
68913         tests/uninorm/test-u16-normcmp.h.
68914         (Depends-on): Remove uninorm/u16-normcmp.
68916         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
68917         tests/uninorm/test-u8-normcmp.c.
68918         * tests/uninorm/test-u8-normcmp.c: Include it.
68919         (test_nonascii): New function, extracted from main. Add some more
68920         tests.
68921         (main): Invoke test_ascii and test_nonascii.
68922         * modules/uninorm/u8-normcmp-tests (Files): Add
68923         tests/uninorm/test-u8-normcmp.h.
68924         (Depends-on): Remove uninorm/u8-normcmp.
68926 2009-03-07  Bruno Haible  <bruno@clisp.org>
68928         New module 'uninorm/u32-normcoll'.
68929         * lib/uninorm/u32-normcoll.c: New file.
68930         * modules/uninorm/u32-normcoll: New file.
68932         New module 'uninorm/u16-normcoll'.
68933         * lib/uninorm/u16-normcoll.c: New file.
68934         * modules/uninorm/u16-normcoll: New file.
68936         New module 'uninorm/u8-normcoll'.
68937         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
68938         declarations.
68939         * lib/uninorm/u8-normcoll.c: New file.
68940         * lib/uninorm/u-normcoll.h: New file.
68941         * modules/uninorm/u8-normcoll: New file.
68943         New module 'uninorm/u32-normxfrm'.
68944         * lib/uninorm/u32-normxfrm.c: New file.
68945         * modules/uninorm/u32-normxfrm: New file.
68947         New module 'uninorm/u16-normxfrm'.
68948         * lib/uninorm/u16-normxfrm.c: New file.
68949         * modules/uninorm/u16-normxfrm: New file.
68951         New module 'uninorm/u8-normxfrm'.
68952         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
68953         declarations.
68954         * lib/uninorm/u8-normxfrm.c: New file.
68955         * lib/uninorm/u-normxfrm.h: New file.
68956         * modules/uninorm/u8-normxfrm: New file.
68958 2009-03-07  Bruno Haible  <bruno@clisp.org>
68960         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
68961         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
68962         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
68964 2009-03-07  Bruno Haible  <bruno@clisp.org>
68966         New module 'memxfrm'.
68967         * lib/memxfrm.h: New file.
68968         * lib/memxfrm.c: New file.
68969         * modules/memxfrm: New file.
68971 2009-03-07  Bruno Haible  <bruno@clisp.org>
68973         New module 'memcmp2'.
68974         * lib/memcmp2.h: New file.
68975         * lib/memcmp2.c: New file.
68976         * modules/memcmp2: New file.
68978 2009-03-07  Bruno Haible  <bruno@clisp.org>
68980         Tests for module 'uninorm/decomposing-form'.
68981         * modules/uninorm/decomposing-form-tests: New file.
68982         * tests/uninorm/test-decomposing-form.c: New file.
68984         New module 'uninorm/decomposing-form'.
68985         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
68986         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
68987         Add 'decomposing_variant' field.
68988         * lib/uninorm/decomposing-form.c: New file.
68989         * lib/uninorm/nfc.c (uninorm_nfc): Update.
68990         * lib/uninorm/nfd.c (uninorm_nfd): Update.
68991         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
68992         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
68993         * modules/uninorm/decomposing-form: New file.
68994         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
68995         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
68997 2009-03-07  Bruno Haible  <bruno@clisp.org>
68999         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
69000         strings.
69002 2009-03-06  Bruno Haible  <bruno@clisp.org>
69004         Tests for module 'uninorm/u32-normcmp'.
69005         * tests/uninorm/test-u32-normcmp.c: New file.
69006         * modules/uninorm/u32-normcmp-tests: New file.
69008         Tests for module 'uninorm/u16-normcmp'.
69009         * tests/uninorm/test-u16-normcmp.c: New file.
69010         * modules/uninorm/u16-normcmp-tests: New file.
69012         Tests for module 'uninorm/u8-normcmp'.
69013         * tests/uninorm/test-u8-normcmp.c: New file.
69014         * modules/uninorm/u8-normcmp-tests: New file.
69016         New module 'uninorm/u32-normcmp'.
69017         * lib/uninorm/u32-normcmp.c: New file.
69018         * modules/uninorm/u32-normcmp: New file.
69020         New module 'uninorm/u16-normcmp'.
69021         * lib/uninorm/u16-normcmp.c: New file.
69022         * modules/uninorm/u16-normcmp: New file.
69024         New module 'uninorm/u8-normcmp'.
69025         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
69026         declarations.
69027         * lib/uninorm/u8-normcmp.c: New file.
69028         * lib/uninorm/u-normcmp.h: New file.
69029         * modules/uninorm/u8-normcmp: New file.
69031 2009-03-06  Bruno Haible  <bruno@clisp.org>
69033         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
69034         Reported by Eric Blake.
69036 2009-03-06  Eric Blake  <ebb9@byu.net>
69037             Bruno Haible  <bruno@clisp.org>
69039         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
69040         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
69041         condition.
69042         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
69043         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
69044         condition.
69045         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
69047 2009-03-06  Eric Blake  <ebb9@byu.net>
69049         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
69050         to avoid compiler warnings.
69051         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
69053 2009-03-05  Bruno Haible  <bruno@clisp.org>
69055         * tests/test-ftell.c (main): Disable test beyond end of file on
69056         FreeMiNT.
69057         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
69059 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
69061         * lib/filevercmp.c: Move hidden files up in ordering.
69062         * tests/test-filevercmp.c: Add tests for hidden files.
69064 2009-03-04  Bruno Haible  <bruno@clisp.org>
69066         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
69067         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
69068         AM_CFLAGS.
69069         Reported by Simon Josefsson.
69071 2009-03-03  Bruno Haible  <bruno@clisp.org>
69073         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
69074         Reported by Simon Josefsson.
69076         * doc/ld-version-script.texi: Update node reference.
69078 2009-03-03  Bruno Haible  <bruno@clisp.org>
69080         * modules/visibility (License): Change to 'unlimited'.
69081         Suggested by Simon Josefsson.
69083 2009-03-03  Jim Meyering  <meyering@redhat.com>
69085         unlinkdir: cannot_unlink_dir may modify process state
69086         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
69087         it's neither thread-safe nor appropriate for use in a library.
69089 2009-03-03  Eric Blake  <ebb9@byu.net>
69091         test-closein: silence test under Darwin
69092         * tests/test-closein.sh: Ignore stderr from cat, since we don't
69093         care if it dies from EPIPE or EBADF.
69095 2009-03-03  Bruno Haible  <bruno@clisp.org>
69097         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
69098         earlier.
69099         * doc/visibility.texi: Fix @node and @section.
69101 2009-03-03  Simon Josefsson  <simon@josefsson.org>
69103         * doc/gnulib.texi: Link to sections for ld version script and
69104         visibility.
69105         * doc/visibility.texi: Add @node and @section.
69106         * modules/ld-version-script: New module.
69107         * m4/ld-version-script.m4: New file.
69108         * doc/ld-version-script.texi: New file.
69110 2009-03-02  David Lutterkort  <lutter@redhat.com>
69112         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
69113         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
69115 2009-03-02  Bruno Haible  <bruno@clisp.org>
69117         * doc/visibility.texi: Mention libtool's -export-symbols option.
69119 2009-03-02  Jim Meyering  <meyering@redhat.com>
69121         announce-gen: new option: --no-print-checksums
69122         * build-aux/announce-gen (usage): Describe it.
69123         (print_checksums): Print a newline here, not in the [*] footnote.
69124         (main): Honor it.
69126 2009-03-01  Bruno Haible  <bruno@clisp.org>
69128         Use socklen_t in the native Windows replacements prototypes.
69129         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
69130         instead of 'int'.
69131         * lib/getsockopt.c (rpl_getsockopt): Likewise.
69132         * lib/setsockopt.c (rpl_setsockopt): Likewise.
69133         * modules/getsockopt (Depends-on): Add socklen.
69134         * modules/setsockopt (Depends-on): Add socklen.
69136 2009-03-01  Bruno Haible  <bruno@clisp.org>
69138         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
69139         least 4.2.
69141 2009-03-01  Eric Blake  <ebb9@byu.net>
69142             Bruno Haible  <bruno@clisp.org>
69144         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
69145         error messages.
69146         * lib/wait-process.c (wait_subprocess): Omit error message about
69147         deadly signal sent to the child of termsigp != NULL.
69149 2009-03-01  Eric Blake  <ebb9@byu.net>
69151         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
69153 2009-03-01  Bruno Haible  <bruno@clisp.org>
69155         Avoid a gcc warning.
69156         * tests/test-sched.c (b): Make global.
69157         Reported by Eric Blake.
69159 2009-01-19  Martin Lambers  <marlam@marlam.de>
69161         Provide POSIX semantics for socket timeout options on W32.
69162         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
69163         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
69164         * modules/setsockopt: Depend on sys_time module for struct timeval.
69165         * modules/getsockopt: Depend on sys_time module for struct timeval.
69167 2009-03-01  Simon Josefsson  <simon@josefsson.org>
69169         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
69170         __USE_GNU, for consistency with netdb.in.h.
69171         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
69173 2009-03-01  Bruno Haible  <bruno@clisp.org>
69175         More support for FreeMiNT.
69176         * lib/fseeko.c (rpl_fseeko): Complete last commit.
69177         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
69179 2009-03-01  Bruno Haible  <bruno@clisp.org>
69181         More support for FreeMiNT.
69182         * lib/fpurge.c (fpurge): Correct last commit.
69183         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
69185 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69187         Fix unportable awk script in vc-list-files.
69188         * build-aux/vc-list-files: In the replacement awk script, use
69189         substr with a second argument of 1, not zero.
69190         Report by Simon Josefsson.
69192 2009-02-28  Bruno Haible  <bruno@clisp.org>
69194         More support for FreeMiNT.
69195         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
69196         to FreeMiNT today.
69197         * lib/fwriting.c (fwriting): Likewise.
69198         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
69200 2009-02-28  Bruno Haible  <bruno@clisp.org>
69202         * tests/test-freadseek.c (main): Disable test beyond end of file on
69203         FreeMiNT.
69204         * tests/test-ftello.c (main): Likewise.
69205         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
69207 2009-02-28  Bruno Haible  <bruno@clisp.org>
69209         Add tentative support for FreeMiNT.
69210         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
69211         * lib/fpurge.c (fpurge): Likewise.
69212         * lib/freadable.c (freadable): Likewise.
69213         * lib/freading.c (freading): Likewise.
69214         * lib/freadptr.c (freadptr): Likewise.
69215         * lib/freadseek.c (freadptrinc): Likewise.
69216         * lib/fseeko.c (rpl_fseeko): Likewise.
69217         * lib/fseterr.c (fseterr): Likewise.
69218         * lib/fwritable.c (fwritable): Likewise.
69219         * lib/fwriting.c (fwriting): Likewise.
69220         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
69221         Hourihane.
69222         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
69224 2009-02-28  Bruno Haible  <bruno@clisp.org>
69226         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
69227         SIGCHLD.
69228         Reported by Jim Meyering.
69230 2009-02-28  Bruno Haible  <bruno@clisp.org>
69232         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
69233         Mention the results of these tests on various platforms.
69234         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
69235         order.
69236         * doc/posix-functions/printf.texi: Likewise.
69237         * doc/posix-functions/snprintf.texi: Likewise.
69238         * doc/posix-functions/sprintf.texi: Likewise.
69239         * doc/posix-functions/vfprintf.texi: Likewise.
69240         * doc/posix-functions/vprintf.texi: Likewise.
69241         * doc/posix-functions/vsnprintf.texi: Likewise.
69242         * doc/posix-functions/vsprintf.texi: Likewise.
69243         * doc/glibc-functions/obstack_printf.texi: Likewise.
69244         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
69246 2009-02-28  Bruno Haible  <bruno@clisp.org>
69248         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
69249         Reported by Loïc Minier <lool@dooz.org>.
69251 2009-02-27  Bruno Haible  <bruno@clisp.org>
69253         * gnulib-tool (func_import): Make the sed expression used to create the
69254         sed script for updating the .gitignore file POSIX compliant.
69255         Reported by Eric Blake.
69257 2009-02-27  Bruno Haible  <bruno@clisp.org>
69259         * gnulib-tool (sed): Don't alias as "sed --posix".
69260         Reported by Eric Blake.
69262 2009-02-27  Bruno Haible  <bruno@clisp.org>
69264         Avoid test link errors.
69265         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
69266         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
69267         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
69268         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
69269         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
69271 2009-02-27  Bruno Haible  <bruno@clisp.org>
69273         Avoid spurious "(cached)" in configure output.
69274         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
69275         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
69276         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
69277         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
69278         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
69279         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
69280         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
69281         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
69282         Reported by Eric Blake.
69284 2009-02-27  Eric Blake  <ebb9@byu.net>
69286         printf: fix regression in previous patch
69287         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
69289 2009-02-27  Bruno Haible  <bruno@clisp.org>
69291         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
69292         value.
69293         * lib/stdint.in.h: Likewise.
69294         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
69296 2009-02-27  Eric Blake  <ebb9@byu.net>
69298         doc: mention more functions added in cygwin 1.7.0
69299         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
69300         addition.
69301         * doc/posix-functions/open_wmemstream.texi: Likewise.
69302         * doc/posix-functions/wcsnlen.texi: Likewise.
69303         * doc/posix-functions/wcsnrtombs.texi: Likewise.
69304         * doc/posix-functions/wcstod.texi: Likewise.
69305         * doc/posix-functions/wcstof.texi: Likewise.
69306         * doc/posix-functions/wcstoimax.texi: Likewise.
69307         * doc/posix-functions/wcstok.texi: Likewise.
69308         * doc/posix-functions/wcstoumax.texi: Likewise.
69310         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
69311         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
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         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
69326         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
69327         compilation bug by using runtime conversion.
69328         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
69329         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
69330         * modules/ceill-tests (Files): Use nan.h.
69331         * modules/floorl-tests (Files): Likewise.
69332         * modules/frexpl-tests (Files): Likewise.
69333         * modules/isnanl-tests (Files): Likewise.
69334         * modules/ldexpl-tests (Files): Likewise.
69335         * modules/roundl-tests (Files): Likewise.
69336         * modules/truncl-tests (Files): Likewise.
69337         * tests/test-ceill.c (main): Use a working NaN.
69338         * tests/test-floorl.c (main): Likewise.
69339         * tests/test-frexpl.c (main): Likewise.
69340         * tests/test-isnan.c (test_long_double): Likewise.
69341         * tests/test-isnanl.h (main): Likewise.
69342         * tests/test-ldexpl.h (main): Likewise.
69343         * tests/test-roundl.h (main): Likewise.
69344         * tests/test-truncl.h (main): Likewise.
69345         See http://lists.gnu.org/r/bug-gnulib/2009-02/msg00190.html.
69347 2009-02-26  Eric Blake  <ebb9@byu.net>
69348             Bruno Haible  <bruno@clisp.org>
69350         Work around a *printf bug with %ls on Solaris.
69351         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
69352         precision is specified, sprintf stops converting the wide string
69353         argument when the number of bytes that have been produced by this
69354         conversion equals or exceeds the precision.
69355         * doc/posix-functions/fprintf.texi: Update.
69356         * doc/posix-functions/printf.texi: Update.
69357         * doc/posix-functions/snprintf.texi: Update.
69358         * doc/posix-functions/sprintf.texi: Update.
69359         * doc/posix-functions/vfprintf.texi: Update.
69360         * doc/posix-functions/vprintf.texi: Update.
69361         * doc/posix-functions/vsnprintf.texi: Update.
69362         * doc/posix-functions/vsprintf.texi: Update.
69363         * doc/glibc-functions/obstack_printf.texi: Update.
69364         * doc/glibc-functions/obstack_vprintf.texi: Update.
69366 2009-02-26  Eric Blake  <ebb9@byu.net>
69368         stdlib: favor compiler check of random.h
69369         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
69370         to avoid an ObjC random.h installed by Swarm.
69372 2009-02-26  Bruno Haible  <bruno@clisp.org>
69374         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
69375         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
69376         Reported by Gary V. Vaughan <gary@gnu.org>.
69378 2009-02-26  Bruno Haible  <bruno@clisp.org>
69380         Fix *printf behaviour regarding the %ls directive.
69381         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
69382         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
69383         NEED_PRINTF_DIRECTIVE_LS.
69384         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
69385         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
69386         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
69387         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
69388         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
69389         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
69390         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
69391         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
69392         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69393         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69394         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69395         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
69396         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
69397         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69398         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69399         * doc/posix-functions/fprintf.texi: Update.
69400         * doc/posix-functions/printf.texi: Update.
69401         * doc/posix-functions/snprintf.texi: Update.
69402         * doc/posix-functions/sprintf.texi: Update.
69403         * doc/posix-functions/vfprintf.texi: Update.
69404         * doc/posix-functions/vprintf.texi: Update.
69405         * doc/posix-functions/vsnprintf.texi: Update.
69406         * doc/posix-functions/vsprintf.texi: Update.
69407         * doc/glibc-functions/obstack_printf.texi: Update.
69408         * doc/glibc-functions/obstack_vprintf.texi: Update.
69409         Reported by Eric Blake.
69411 2009-02-25  Bruno Haible  <bruno@clisp.org>
69413         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
69414         with known value.
69415         Reported by Gary V. Vaughan <gary@gnu.org>.
69417 2009-02-25  Bruno Haible  <bruno@clisp.org>
69419         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
69420         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
69421         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
69422         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
69423         Reported by Gary V. Vaughan <gary@gnu.org>.
69425 2009-02-25  Bruno Haible  <bruno@clisp.org>
69427         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
69428         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
69429         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
69430         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
69431         Reported by Gary V. Vaughan <gary@gnu.org>.
69433 2009-02-25  Eric Blake  <ebb9@byu.net>
69435         tests: skip fseek/ftell tests if ungetc is broken
69436         * m4/ungetc.m4: New file.
69437         * modules/fseek-tests: Split test, so ungetc dependency is
69438         separate from rest of test.
69439         * modules/fseeko-tests: Likewise.
69440         * modules/ftell-tests: Likewise.
69441         * modules/ftello-tests: Likewise.
69442         * tests/test-fseek.c (main): Isolate ungetc dependency.
69443         * tests/test-fseeko.c (main): Likewise.
69444         * tests/test-ftell.c (main): Likewise.
69445         * tests/test-ftello.c (main): Likewise.
69446         * tests/test-fseek2.sh: New file.
69447         * tests/test-fseeko2.sh: Likewise.
69448         * tests/test-ftell2.sh: Likewise.
69449         * tests/test-ftello2.sh: Likewise.
69451 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
69453         test-getaddrinfo: fix usage of skip return code 77
69454         * tests/test-gettaddrinfo.c: Return skip code 77 only
69455         for first occurrence of skip (4x77 is not 77)
69457 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
69459         strtod: avoid C99 decl-after-statement
69460         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
69462 2009-02-24  Eric Blake  <ebb9@byu.net>
69464         strtod: detect HP-UX 11.31 bug
69465         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
69466         Reported by Gary V. Vaughan.
69468 2009-02-23  Bruno Haible  <bruno@clisp.org>
69470         Fix invalid read past end of memory block.
69471         * lib/vasnprintf.c (DCHAR_SET): Define.
69472         (local_wcslen): Define only when needed.
69473         (local_strnlen, local_wcsnlen): New functions.
69474         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
69475         directives that involve a conversion ourselves.
69476         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
69477         wcsnlen, mbrtowc, wcrtomb.
69478         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
69479         * tests/test-vasprintf-posix.c (test_function): Likewise.
69480         * tests/test-snprintf-posix.h (test_function): Likewise.
69481         * tests/test-sprintf-posix.h (test_function): Likewise.
69482         Reported by Ben Pfaff <blp@cs.stanford.edu>.
69484 2009-02-22  Bruno Haible  <bruno@clisp.org>
69486         Implement new clarified decomposition of Hangul syllables.
69487         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
69488         of type LTV, return only a pairwise decomposition.
69489         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
69490         Likewise.
69491         * tests/uninorm/test-decomposition.c (main): Updated expected result.
69492         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
69493         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
69495 2009-02-22  Bruno Haible  <bruno@clisp.org>
69497         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
69498         zero-length results and shrink excess allocated memory.
69499         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
69500         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
69501         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
69502         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
69503         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
69504         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
69505         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
69506         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
69507         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
69508         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
69509         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
69510         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
69512 2009-02-21  Bruno Haible  <bruno@clisp.org>
69514         * doc/gnulib.texi: Include safe-alloc.texi earlier.
69515         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
69516         spaces after a period. Put a space between a macro name and its
69517         argument list. Trivial rewordings.
69518         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
69519         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
69520         (main): Return 0 explicitly.
69522 2009-02-21  Bruno Haible  <bruno@clisp.org>
69524         Tests for module 'uninorm/filter'.
69525         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
69526         * modules/uninorm/filter-tests: New file.
69528         New module 'uninorm/filter'.
69529         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
69530         uninorm_filter_flush, uninorm_filter_free): New declarations.
69531         * lib/uninorm/uninorm-filter.c: New file.
69532         * modules/uninorm/filter: New file.
69534 2009-02-21  Bruno Haible  <bruno@clisp.org>
69536         Tests for module 'uninorm/nfkc'.
69537         * tests/uninorm/test-nfkc.c: New file.
69538         * tests/uninorm/test-u8-nfkc.c: New file.
69539         * tests/uninorm/test-u16-nfkc.c: New file.
69540         * tests/uninorm/test-u32-nfkc.c: New file.
69541         * tests/uninorm/test-u32-nfkc-big.sh: New file.
69542         * tests/uninorm/test-u32-nfkc-big.c: New file.
69543         * modules/uninorm/nfkc-tests: New file.
69545         New module 'uninorm/nfkc'.
69546         * lib/uninorm/nfkc.c: New file.
69547         * modules/uninorm/nfkc: New file.
69549         Tests for module 'uninorm/nfkd'.
69550         * tests/uninorm/test-nfkd.c: New file.
69551         * tests/uninorm/test-u8-nfkd.c: New file.
69552         * tests/uninorm/test-u16-nfkd.c: New file.
69553         * tests/uninorm/test-u32-nfkd.c: New file.
69554         * tests/uninorm/test-u32-nfkd-big.sh: New file.
69555         * tests/uninorm/test-u32-nfkd-big.c: New file.
69556         * modules/uninorm/nfkd-tests: New file.
69558         New module 'uninorm/nfkd'.
69559         * lib/uninorm/nfkd.c: New file.
69560         * modules/uninorm/nfkd: New file.
69562         Tests for module 'uninorm/nfc'.
69563         * tests/uninorm/test-nfc.c: New file.
69564         * tests/uninorm/test-u8-nfc.c: New file.
69565         * tests/uninorm/test-u16-nfc.c: New file.
69566         * tests/uninorm/test-u32-nfc.c: New file.
69567         * tests/uninorm/test-u32-nfc-big.sh: New file.
69568         * tests/uninorm/test-u32-nfc-big.c: New file.
69569         * modules/uninorm/nfc-tests: New file.
69571         New module 'uninorm/nfc'.
69572         * lib/uninorm/nfc.c: New file.
69573         * modules/uninorm/nfc: New file.
69575         Tests for module 'uninorm/nfd'.
69576         * tests/uninorm/test-nfd.c: New file.
69577         * tests/uninorm/test-u8-nfd.c: New file.
69578         * tests/uninorm/test-u16-nfd.c: New file.
69579         * tests/uninorm/test-u32-nfd.c: New file.
69580         * tests/uninorm/test-u32-nfd-big.sh: New file.
69581         * tests/uninorm/test-u32-nfd-big.c: New file.
69582         * tests/uninorm/test-u32-normalize-big.h: New file.
69583         * tests/uninorm/test-u32-normalize-big.c: New file.
69584         * tests/uninorm/NormalizationTest.txt: New file, created from
69585         Unicode 5.1.0 NormalizationTest.txt.
69586         * modules/uninorm/nfd-tests: New file.
69588         New module 'uninorm/nfd'.
69589         * lib/uninorm/nfd.c: New file.
69590         * modules/uninorm/nfd: New file.
69592         New module 'uninorm/u32-normalize'.
69593         * lib/uninorm/u32-normalize.c: New file.
69594         * modules/uninorm/u32-normalize: New file.
69596         New module 'uninorm/u16-normalize'.
69597         * lib/uninorm/u16-normalize.c: New file.
69598         * modules/uninorm/u16-normalize: New file.
69600         New module 'uninorm/u8-normalize'.
69601         * lib/uninorm/u8-normalize.c: New file.
69602         * lib/uninorm/normalize-internal.h: New file.
69603         * lib/uninorm/u-normalize-internal.h: New file.
69604         * modules/uninorm/u8-normalize: New file.
69606         New module 'uninorm/decompose-internal'.
69607         * lib/uninorm/decompose-internal.c: New file.
69608         * modules/uninorm/decompose-internal: New file.
69610         Tests for module 'uninorm/composition'.
69611         * tests/uninorm/test-composition.c: New file.
69612         * modules/uninorm/composition-tests: New file.
69614         New module 'uninorm/composition'.
69615         * lib/uninorm/composition.c: New file.
69616         * lib/uninorm/composition-table.gperf: New file, generated by
69617         gen-uni-tables.
69618         * modules/uninorm/composition: New file.
69620         Tests for module 'uninorm/compat-decomposition'.
69621         * tests/uninorm/test-compat-decomposition.c: New file.
69622         * modules/uninorm/compat-decomposition-tests: New file.
69624         New module 'uninorm/compat-decomposition'.
69625         * lib/uninorm/decompose-internal.h: New file.
69626         * lib/uninorm/compat-decomposition.c: New file.
69627         * modules/uninorm/compat-decomposition: New file.
69629         Tests for module 'uninorm/canonical-decomposition'.
69630         * tests/uninorm/test-canonical-decomposition.c: New file.
69631         * modules/uninorm/canonical-decomposition-tests: New file.
69633         New module 'uninorm/canonical-decomposition'.
69634         * lib/uninorm/canonical-decomposition.c: New file.
69635         * modules/uninorm/canonical-decomposition: New file.
69637         Tests for module 'uninorm/decomposition'.
69638         * tests/uninorm/test-decomposition.c: New file.
69639         * modules/uninorm/decomposition-tests: New file.
69641         New module 'uninorm/decomposition'.
69642         * lib/uninorm/decomposition.c: New file.
69643         * modules/uninorm/decomposition: New file.
69645         New module 'uninorm/decomposition-table'.
69646         * lib/uninorm/decomposition-table.h: New file.
69647         * lib/uninorm/decomposition-table.c: New file.
69648         * lib/uninorm/decomposition-table1.h: New file, generated by
69649         gen-uni-tables.
69650         * lib/uninorm/decomposition-table2.h: New file, generated by
69651         gen-uni-tables.
69652         * modules/uninorm/decomposition-table: New file.
69654         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
69655         (UC_DECOMP_*): New enumeration items.
69656         (get_decomposition): New function.
69657         (struct decomp_table): New type.
69658         (output_decomposition, output_decomposition_tables): New functions.
69659         (unicode_composition_exclusions): New variable.
69660         (fill_composition_exclusions, debug_output_composition_tables): New
69661         functions.
69662         (main): Accept one more argument. Invoke fill_composition_exclusions.
69663         Output decomposition and composition tables.
69665         New module 'uninorm/base'.
69666         * lib/uninorm.h: New file.
69667         * lib/unictype.h: Update comment.
69668         * modules/uninorm/base: New file.
69670 2009-02-21  David Lutterkort  <lutter@redhat.com>
69672         Tests for module 'safe-alloc'.
69673         * tests/test-safe-alloc.c: New file.
69674         * modules/safe-alloc-tests: New file.
69676         New module 'safe-alloc'.
69677         * lib/safe-alloc.h: New file.
69678         * lib/safe-alloc.c: New file.
69679         * m4/safe-alloc.m4: New file.
69680         * modules/safe-alloc: New file.
69681         * doc/safe-alloc.texi: New file.
69682         * doc/gnulib.texi: Include it.
69683         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
69684         safe-alloc.
69686 2009-02-18  Bruno Haible  <bruno@clisp.org>
69688         Fix link error on non-glibc systems.
69689         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
69690         variable.
69691         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
69693 2009-02-18  Jim Meyering  <meyering@redhat.com>
69695         fts: avoid used-uninitialized error due to recent change
69696         * lib/fts.c (fts_read): Guard uses of the new member,
69697         parent->fts_n_dirs_remaining, since it's not relevant for
69698         the parent of a directory specified on the command-line.
69700 2009-02-17  James Youngman  <jay@gnu.org>
69701             Bruno Haible  <bruno@clisp.org>
69703         * m4/include_next.m4: Reformulate comment.
69705 2009-02-16  Jim Meyering  <meyering@redhat.com>
69707         fts: add #if guards so that the fts_lgpl module still builds
69708         * lib/fts.c: Guard just-added hash-table-using parts with
69709         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
69710         Reported by Simon Josefsson.
69712 2009-02-15  Bruno Haible  <bruno@clisp.org>
69714         * modules/array-mergesort-tests: New file.
69715         * tests/test-array-mergesort.c: New file.
69717         New module 'array-mergesort'.
69718         * modules/array-mergesort: New file.
69719         * lib/array-mergesort.h: New file.
69721 2009-02-15  Bruno Haible  <bruno@clisp.org>
69723         Fix 2009-02-07 commit.
69724         * lib/gen-uni-tables.c (output_predicate, output_category,
69725         output_combclass, output_bidi_category, output_decimal_digit,
69726         output_digit, output_numeric, output_mirror, output_scripts,
69727         output_ident_category, output_simple_mapping): Fix format directives.
69728         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
69730 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
69732         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
69733         fixes are available from IBM.
69735 2009-02-13  Jim Meyering  <meyering@redhat.com>
69737         fts: arrange not to stat non-directories in more cases
69738         This makes GNU find (when it doesn't need to stat each file)
69739         *much* more efficient at traversing reiserfs file systems.
69740         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
69741         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
69742         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
69743         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
69744         (leaf_optimization_applies): New function.
69745         (LCO_hash, LCO_compare): New helper functions.
69746         (link_count_optimize_ok): New function.
69747         (fts_stat): Initialize new member (if dir).
69748         (fts_read): Decrement parent's fts_n_dirs_remaining count if
69749         we've just stat'ed a directory.  Skip the stat call when possible.
69750         ---
69751         Note this AFS-related exchange:
69752         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
69753         and note find's pioctl call in find/fstype.c.
69754         But that is necessary only if you want to enable the
69755         optimization for AFS, and for now, I don't.
69757         fts: move a function definition "up" (no semantic change)
69758         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
69759         "up" to precede upcoming use of a related function.
69761 2009-02-11  Jim Meyering  <meyering@redhat.com>
69763         fts: correct internal computation of nlinks (optimization-related)
69764         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
69765         whether the current entry is a directory, so don't test it.
69767 2009-02-10  Bruno Haible  <bruno@clisp.org>
69769         Tests for module 'uniwbrk/ulc-wordbreaks'.
69770         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
69771         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
69772         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
69774         Tests for module 'uniwbrk/u32-wordbreaks'.
69775         * modules/uniwbrk/u32-wordbreaks-tests: New file.
69776         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
69778         Tests for module 'uniwbrk/u16-wordbreaks'.
69779         * modules/uniwbrk/u16-wordbreaks-tests: New file.
69780         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
69782         Tests for module 'uniwbrk/u8-wordbreaks'.
69783         * modules/uniwbrk/u8-wordbreaks-tests: New file.
69784         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
69786 2009-02-10  Bruno Haible  <bruno@clisp.org>
69788         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
69789         property.
69790         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
69791         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
69792         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
69794 2009-02-10  Simon Josefsson  <simon@josefsson.org>
69796         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
69797         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
69799 2009-02-10  Bruno Haible  <bruno@clisp.org>
69801         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
69802         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
69803         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
69804         * lib/unilbrk/u8-possible-linebreaks.c: Update.
69805         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
69806         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
69808 2009-02-09  Simon Josefsson  <simon@josefsson.org>
69810         * lib/sockets.h (gl_fd_to_handle): New function.
69812         * tests/test-sockets.c: Call gl_fd_to_handle.
69814 2009-02-09  Bruno Haible  <bruno@clisp.org>
69816         * doc/havelib.texi: Document the conventions on bi-arch systems.
69818 2009-02-08  Bruno Haible  <bruno@clisp.org>
69820         Document the AC_LIB_LINKFLAGS macro.
69821         * doc/havelib.texi: New file, mostly written on 2005-05-24.
69822         * doc/gnulib.texi: Include it.
69824 2009-02-08  Bruno Haible  <bruno@clisp.org>
69826         Fix wrong order of sections, compared to TOC.
69827         * doc/gnulib.texi: Include relocatable-maint.texi after the
69828         "Regular expressions" node, not before.
69830 2009-02-08  Bruno Haible  <bruno@clisp.org>
69832         Tests for module 'unicase/totitle'.
69833         * modules/unicase/totitle-tests: New file.
69835         Tests for module 'unicase/tolower'.
69836         * modules/unicase/tolower-tests: New file.
69838         Tests for module 'unicase/toupper'.
69839         * modules/unicase/toupper-tests: New file.
69840         * tests/unicase/test-mapping-part1.h: New file.
69841         * tests/unicase/test-mapping-part2.h: New file.
69843         New module 'unicase/totitle'.
69844         * modules/unicase/totitle: New file.
69845         * lib/unicase/totitle.c: New file.
69847         New module 'unicase/tolower'.
69848         * modules/unicase/tolower: New file.
69849         * lib/unicase/tolower.c: New file.
69851         New module 'unicase/toupper'.
69852         * modules/unicase/toupper: New file.
69853         * lib/unicase/toupper.c: New file.
69854         * lib/unicase/simple-mapping.h: New file.
69856         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
69857         (mapping_table): New structure.
69858         (output_simple_mapping): New function.
69859         (main): Invoke output_simple_mapping_test and output_simple_mapping.
69860         * modules/gen-uni-tables (Description): Update.
69861         * lib/unicase/toupper.h: New file, automatically generated by
69862         gen-uni-tables.
69863         * lib/unicase/tolower.h: New file, automatically generated by
69864         gen-uni-tables.
69865         * lib/unicase/totitle.h: New file, automatically generated by
69866         gen-uni-tables.
69867         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
69868         gen-uni-tables.
69869         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
69870         gen-uni-tables.
69871         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
69872         gen-uni-tables.
69874         New module 'unicase/base'.
69875         * modules/unicase/base: New file.
69876         * lib/unicase.h: New file.
69878 2009-02-08  Bruno Haible  <bruno@clisp.org>
69880         New module 'uniwbrk/ulc-wordbreaks'.
69881         * modules/uniwbrk/ulc-wordbreaks: New file.
69882         * lib/uniwbrk/ulc-wordbreaks.c: New file.
69884         New module 'uniwbrk/u32-wordbreaks'.
69885         * modules/uniwbrk/u32-wordbreaks: New file.
69886         * lib/uniwbrk/u32-wordbreaks.c: New file.
69888         New module 'uniwbrk/u16-wordbreaks'.
69889         * modules/uniwbrk/u16-wordbreaks: New file.
69890         * lib/uniwbrk/u16-wordbreaks.c: New file.
69892         New module 'uniwbrk/u8-wordbreaks'.
69893         * modules/uniwbrk/u8-wordbreaks: New file.
69894         * lib/uniwbrk/u8-wordbreaks.c: New file.
69895         * lib/uniwbrk/u-wordbreaks.h: New file.
69897         New module 'uniwbrk/table'.
69898         * modules/uniwbrk/table: New file.
69899         * lib/uniwbrk/wbrktable.h: New file.
69900         * lib/uniwbrk/wbrktable.c: New file.
69902         New module 'uniwbrk/wordbreak-property'.
69903         * modules/uniwbrk/wordbreak-property: New file.
69904         * lib/uniwbrk/wordbreak-property.c: New file.
69906         * lib/gen-uni-tables.c (WBP_*): New enum items.
69907         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
69908         (unicode_org_wbp): New variable.
69909         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
69910         New functions.
69911         (wbp_table): New structure.
69912         (output_wbp, output_wbrk_tables): New functions.
69913         (main): Accept additional argument. Invoke fill_org_wbp,
69914         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
69915         output_wbrk_tables.
69916         * modules/gen-uni-tables (Description): Update.
69917         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
69918         gen-uni-tables.
69920         New module 'uniwbrk/base'.
69921         * modules/uniwbrk/base: New file.
69922         * lib/uniwbrk.h: New file.
69924 2009-02-08  Bruno Haible  <bruno@clisp.org>
69926         Update to Unicode 5.1.0.
69927         * lib/gen-uni-tables.c (is_property_alphabetic): Include
69928         U+2185..U+2188.
69929         (is_property_default_ignorable_code_point): Don't include characters
69930         of category Cc or Cs and not-a-characters.
69931         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
69932         U+0D79, U+109E, U+109F, U+A60C.
69933         * lib/unictype/bidi_of.h: Regenerated.
69934         * lib/unictype/blocks.h: Regenerated.
69935         * lib/unictype/categ_C.h: Regenerated.
69936         * lib/unictype/categ_Cf.h: Regenerated.
69937         * lib/unictype/categ_Cn.h: Regenerated.
69938         * lib/unictype/categ_L.h: Regenerated.
69939         * lib/unictype/categ_Ll.h: Regenerated.
69940         * lib/unictype/categ_Lm.h: Regenerated.
69941         * lib/unictype/categ_Lo.h: Regenerated.
69942         * lib/unictype/categ_Lu.h: Regenerated.
69943         * lib/unictype/categ_M.h: Regenerated.
69944         * lib/unictype/categ_Mc.h: Regenerated.
69945         * lib/unictype/categ_Me.h: Regenerated.
69946         * lib/unictype/categ_Mn.h: Regenerated.
69947         * lib/unictype/categ_N.h: Regenerated.
69948         * lib/unictype/categ_Nd.h: Regenerated.
69949         * lib/unictype/categ_Nl.h: Regenerated.
69950         * lib/unictype/categ_No.h: Regenerated.
69951         * lib/unictype/categ_P.h: Regenerated.
69952         * lib/unictype/categ_Pd.h: Regenerated.
69953         * lib/unictype/categ_Pe.h: Regenerated.
69954         * lib/unictype/categ_Pf.h: Regenerated.
69955         * lib/unictype/categ_Pi.h: Regenerated.
69956         * lib/unictype/categ_Po.h: Regenerated.
69957         * lib/unictype/categ_Ps.h: Regenerated.
69958         * lib/unictype/categ_S.h: Regenerated.
69959         * lib/unictype/categ_Sk.h: Regenerated.
69960         * lib/unictype/categ_Sm.h: Regenerated.
69961         * lib/unictype/categ_So.h: Regenerated.
69962         * lib/unictype/categ_of.h: Regenerated.
69963         * lib/unictype/combining.h: Regenerated.
69964         * lib/unictype/ctype_alnum.h: Regenerated.
69965         * lib/unictype/ctype_alpha.h: Regenerated.
69966         * lib/unictype/ctype_graph.h: Regenerated.
69967         * lib/unictype/ctype_lower.h: Regenerated.
69968         * lib/unictype/ctype_print.h: Regenerated.
69969         * lib/unictype/ctype_punct.h: Regenerated.
69970         * lib/unictype/ctype_upper.h: Regenerated.
69971         * lib/unictype/decdigit.h: Regenerated.
69972         * lib/unictype/digit.h: Regenerated.
69973         * lib/unictype/mirror.h: Regenerated.
69974         * lib/unictype/numeric.h: Regenerated.
69975         * lib/unictype/pr_alphabetic.h: Regenerated.
69976         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
69977         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
69978         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
69979         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
69980         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
69981         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
69982         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
69983         * lib/unictype/pr_combining.h: Regenerated.
69984         * lib/unictype/pr_dash.h: Regenerated.
69985         * lib/unictype/pr_decimal_digit.h: Regenerated.
69986         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
69987         * lib/unictype/pr_deprecated.h: Regenerated.
69988         * lib/unictype/pr_diacritic.h: Regenerated.
69989         * lib/unictype/pr_extender.h: Regenerated.
69990         * lib/unictype/pr_format_control.h: Regenerated.
69991         * lib/unictype/pr_grapheme_base.h: Regenerated.
69992         * lib/unictype/pr_grapheme_extend.h: Regenerated.
69993         * lib/unictype/pr_grapheme_link.h: Regenerated.
69994         * lib/unictype/pr_id_continue.h: Regenerated.
69995         * lib/unictype/pr_id_start.h: Regenerated.
69996         * lib/unictype/pr_ideographic.h: Regenerated.
69997         * lib/unictype/pr_ignorable_control.h: Regenerated.
69998         * lib/unictype/pr_lowercase.h: Regenerated.
69999         * lib/unictype/pr_math.h: Regenerated.
70000         * lib/unictype/pr_numeric.h: Regenerated.
70001         * lib/unictype/pr_other_alphabetic.h: Regenerated.
70002         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
70003         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
70004         * lib/unictype/pr_other_id_continue.h: Regenerated.
70005         * lib/unictype/pr_other_lowercase.h: Regenerated.
70006         * lib/unictype/pr_other_math.h: Regenerated.
70007         * lib/unictype/pr_punctuation.h: Regenerated.
70008         * lib/unictype/pr_sentence_terminal.h: Regenerated.
70009         * lib/unictype/pr_soft_dotted.h: Regenerated.
70010         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
70011         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
70012         * lib/unictype/pr_unified_ideograph.h: Regenerated.
70013         * lib/unictype/pr_uppercase.h: Regenerated.
70014         * lib/unictype/pr_xid_continue.h: Regenerated.
70015         * lib/unictype/pr_xid_start.h: Regenerated.
70016         * lib/unictype/pr_zero_width.h: Regenerated.
70017         * lib/unictype/scripts.h: Regenerated.
70018         * lib/unictype/scripts_byname.gperf: Regenerated.
70019         * lib/unictype/sy_java_ident.h: Regenerated.
70020         * lib/unilbrk/lbrkprop1.h: Regenerated.
70021         * lib/unilbrk/lbrkprop2.h: Regenerated.
70022         * tests/unictype/test-categ_C.c: Regenerated.
70023         * tests/unictype/test-categ_Cf.c: Regenerated.
70024         * tests/unictype/test-categ_Cn.c: Regenerated.
70025         * tests/unictype/test-categ_L.c: Regenerated.
70026         * tests/unictype/test-categ_Ll.c: Regenerated.
70027         * tests/unictype/test-categ_Lm.c: Regenerated.
70028         * tests/unictype/test-categ_Lo.c: Regenerated.
70029         * tests/unictype/test-categ_Lu.c: Regenerated.
70030         * tests/unictype/test-categ_M.c: Regenerated.
70031         * tests/unictype/test-categ_Mc.c: Regenerated.
70032         * tests/unictype/test-categ_Me.c: Regenerated.
70033         * tests/unictype/test-categ_Mn.c: Regenerated.
70034         * tests/unictype/test-categ_N.c: Regenerated.
70035         * tests/unictype/test-categ_Nd.c: Regenerated.
70036         * tests/unictype/test-categ_Nl.c: Regenerated.
70037         * tests/unictype/test-categ_No.c: Regenerated.
70038         * tests/unictype/test-categ_P.c: Regenerated.
70039         * tests/unictype/test-categ_Pd.c: Regenerated.
70040         * tests/unictype/test-categ_Pe.c: Regenerated.
70041         * tests/unictype/test-categ_Pf.c: Regenerated.
70042         * tests/unictype/test-categ_Pi.c: Regenerated.
70043         * tests/unictype/test-categ_Po.c: Regenerated.
70044         * tests/unictype/test-categ_Ps.c: Regenerated.
70045         * tests/unictype/test-categ_S.c: Regenerated.
70046         * tests/unictype/test-categ_Sk.c: Regenerated.
70047         * tests/unictype/test-categ_Sm.c: Regenerated.
70048         * tests/unictype/test-categ_So.c: Regenerated.
70049         * tests/unictype/test-ctype_alnum.c: Regenerated.
70050         * tests/unictype/test-ctype_alpha.c: Regenerated.
70051         * tests/unictype/test-ctype_graph.c: Regenerated.
70052         * tests/unictype/test-ctype_lower.c: Regenerated.
70053         * tests/unictype/test-ctype_print.c: Regenerated.
70054         * tests/unictype/test-ctype_punct.c: Regenerated.
70055         * tests/unictype/test-ctype_upper.c: Regenerated.
70056         * tests/unictype/test-decdigit.h: Regenerated.
70057         * tests/unictype/test-digit.h: Regenerated.
70058         * tests/unictype/test-numeric.h: Regenerated.
70059         * tests/unictype/test-pr_alphabetic.c: Regenerated.
70060         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
70061         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
70062         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
70063         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
70064         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
70065         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
70066         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
70067         * tests/unictype/test-pr_combining.c: Regenerated.
70068         * tests/unictype/test-pr_dash.c: Regenerated.
70069         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
70070         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
70071         * tests/unictype/test-pr_deprecated.c: Regenerated.
70072         * tests/unictype/test-pr_diacritic.c: Regenerated.
70073         * tests/unictype/test-pr_extender.c: Regenerated.
70074         * tests/unictype/test-pr_format_control.c: Regenerated.
70075         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
70076         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
70077         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
70078         * tests/unictype/test-pr_id_continue.c: Regenerated.
70079         * tests/unictype/test-pr_id_start.c: Regenerated.
70080         * tests/unictype/test-pr_ideographic.c: Regenerated.
70081         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
70082         * tests/unictype/test-pr_lowercase.c: Regenerated.
70083         * tests/unictype/test-pr_math.c: Regenerated.
70084         * tests/unictype/test-pr_numeric.c: Regenerated.
70085         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
70086         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
70087         Regenerated.
70088         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
70089         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
70090         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
70091         * tests/unictype/test-pr_other_math.c: Regenerated.
70092         * tests/unictype/test-pr_punctuation.c: Regenerated.
70093         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
70094         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
70095         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
70096         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
70097         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
70098         * tests/unictype/test-pr_uppercase.c: Regenerated.
70099         * tests/unictype/test-pr_xid_continue.c: Regenerated.
70100         * tests/unictype/test-pr_xid_start.c: Regenerated.
70101         * tests/unictype/test-pr_zero_width.c: Regenerated.
70103         Update to Unicode 5.1.0.
70104         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
70105         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
70106         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
70107         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
70108         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
70109         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
70110         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
70111         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
70112         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
70113         (nonspacing_table_ind): Update.
70114         * tests/uniwidth/test-uc_width2.sh: Update expected result.
70116         Update to Unicode 5.1.0.
70117         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
70118         code transform.
70119         * lib/uniname/uniname.c (unicode_character_name,
70120         unicode_name_character): Add the range 0x1Fxxx to the code transform.
70121         * lib/uniname/uninames.h: Regenerated.
70122         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
70124 2009-02-07  Bruno Haible  <bruno@clisp.org>
70126         Merge gen-ctype and gen-lbrk into a single program.
70127         * lib/gen-uni-tables.c: New file, incorporating
70128         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
70129         Add directory prefixes to the names of the generated files.
70130         * lib/unictype/gen-ctype.c: Remove file.
70131         * lib/unilbrk/gen-lbrk.c: Remove file.
70132         * modules/gen-uni-tables: New file.
70133         * modules/unictype/gen-ctype: Remove file.
70134         * modules/unilbrk/gen-lbrk: Remove file.
70136 2009-02-07  Bruno Haible  <bruno@clisp.org>
70138         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
70140         New module 'unistr/u32-strcoll'.
70141         * modules/unistr/u32-strcoll: New file.
70142         * lib/unistr/u32-strcoll.c: New file.
70144         New module 'unistr/u16-strcoll'.
70145         * modules/unistr/u16-strcoll: New file.
70146         * lib/unistr/u16-strcoll.c: New file.
70148         New module 'unistr/u8-strcoll'.
70149         * modules/unistr/u8-strcoll: New file.
70150         * lib/unistr/u8-strcoll.c: New file.
70151         * lib/unistr/u-strcoll.h: New file.
70153 2009-02-07  Bruno Haible  <bruno@clisp.org>
70155         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
70156         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
70157         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
70158         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
70159         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
70160         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
70162 2009-02-07  Bruno Haible  <bruno@clisp.org>
70164         Make 64-bit clean.
70165         * lib/unictype/gen-ctype.c (output_predicate, output_category,
70166         output_combclass, output_bidi_category, output_decimal_digit,
70167         output_digit, output_numeric, output_mirror, output_scripts,
70168         output_ident_category): Use proper width specifier in format strings.
70170 2009-02-07  Bruno Haible  <bruno@clisp.org>
70172         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
70173         failure behaviour.
70175 2009-02-07  Jim Meyering  <meyering@redhat.com>
70177         regex: avoid compilation failure with upcoming gcc-4.4
70178         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
70179         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
70180         "... error: integer overflow in preprocessor expression".
70182 2009-02-05  Ben Pfaff  <blp@gnu.org>
70184         Fix link errors on Windows when close module is used.
70185         * modules/close: Add $(LIB_CLOSE) to Link section.
70186         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
70187         $(LIB_CLOSE) on Windows.
70189 2009-02-05  Jim Meyering  <meyering@redhat.com>
70191         still avoid unused-parameter warnings, but do it cleanly
70192         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
70193         (get_fs_usage): Cast to void instead.
70194         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
70195         (dev_from_mount_options, read_file_system_list): Cast to void.
70196         Prompted by Bruno Haible.
70198 2009-02-04  Jim Meyering  <meyering@redhat.com>
70200         fsusage.c: correct copyright year
70201         * lib/fsusage.c: Reflect year in which the change is pushed into
70203         avoid misc. warnings
70204         * lib/fsusage.c (UNUSED_PARAM): Define.
70205         (get_fs_usage): Mark parameter "disk" as unused.
70206         * lib/getugroups.c (getgrent): Use "void" in prototype.
70207         * lib/mountlist.c: Mark unused parameters.
70208         (read_file_system_list): Declare a local with "const".
70209         * lib/nanosleep.c (getnow): Declare static.
70210         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
70212         dirfd: set errno upon failure
70213         * lib/dirfd.c: Include <errno.h>.
70214         Set errno to ENOTSUP when returning -1.
70215         * modules/dirfd (Depends-on): Add errno.
70216         Suggested by John Kodis <kodis@comcast.net>.
70218 2009-02-01  Bruno Haible  <bruno@clisp.org>
70220         Don't assume sizeof (long) >= sizeof (void *).
70221         * lib/memcmp.c: Include stdint.h.
70222         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
70223         srcp2 to 'const byte *'.
70224         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
70225         types to uintptr_t.
70226         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
70227         * modules/memcmp (Depends-on): Add stdint.
70228         Reported by Ozkan Sezer <sezeroz@gmail.com>.
70230 2009-01-30  Eric Blake  <ebb9@byu.net>
70232         fix more require-before-expand issues
70233         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
70234         expand, AC_PROG_AWK.
70235         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
70237 2009-01-28  Eric Blake  <ebb9@byu.net>
70239         version-etc: use consistent URL formatting
70240         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
70241         Improve formatting.  Use fputs for string without %.
70243 2009-01-28  Jim Meyering  <meyering@redhat.com>
70245         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
70246         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
70247         "underquoted definition of NAME" from autoconf-2.59.
70249 2009-01-28  Bruno Haible  <bruno@clisp.org>
70251         * doc/gnulib.texi: Add "Obsolete modules" to index.
70253 2009-01-28  Jim Meyering  <meyering@redhat.com>
70255         useless-if-before-free: recognize more variants
70256         * build-aux/useless-if-before-free: Also recognize e.g.,
70257         if (NULL != p) free (p);
70259 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
70261         test-getaddrinfo: skip (don't fail) this test when there's no network
70262         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
70263         on the presumption that it means you lack network access.
70265 2009-01-26  Jim Meyering  <meyering@redhat.com>
70267         fflush: avoid warnings on modern systems
70268         * lib/fflush.c (rpl_fflush): Move declarations of locals,
70269         pos and result, into scopes where they're used.
70271 2009-01-26  Eric Blake  <ebb9@byu.net>
70273         Silence warning reintroduced by recent extensions patch.
70274         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
70275         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
70276         autoconf.
70278         Backport improved autoconf semantics of AC_DEFUN_ONCE.
70279         * m4/00gnulib.m4: New file.
70280         * gnulib-tool (func_get_filelist): Always use it.
70281         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
70282         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
70284 2009-01-25  Bruno Haible  <bruno@clisp.org>
70286         Make test-quotearg work on MacOS X and AIX.
70287         * tests/test-quotearg.sh: New file.
70288         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
70289         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
70290         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
70291         include <libintl.h>.
70292         (fake_locale): Remove variable.
70293         (gettext, dgettext, dcgettext): Remove functions.
70294         (main): Instead of setting a fake locale, set a real locale. Call
70295         textdomain and bindtextdomain.
70296         * modules/quotearg-tests (Files): Add the new files.
70297         (Depends-on): Add gettext, setenv, unsetenv.
70298         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
70299         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
70300         Augment TESTS_ENVIRONMENT.
70302 2009-01-25  Bruno Haible  <bruno@clisp.org>
70304         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
70305         fr_FR.ISO8859-1 locale on MacOS X.
70306         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
70307         ja_JP.eucJP locale on MacOS X.
70308         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
70309         zh_CN.GB18030 locale on MacOS X.
70311 2009-01-25  Bruno Haible  <bruno@clisp.org>
70313         Avoid link errors on MacOS X 10.3.
70314         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
70315         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
70317 2009-01-25  Bruno Haible  <bruno@clisp.org>
70319         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
70320         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
70321         * modules/pipe (Files): Remove m4/posix_spawn.m4.
70322         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
70323         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
70324         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
70325         posix_spawnattr_init, posix_spawnattr_setsigmask,
70326         posix_spawnattr_setflags, posix_spawnattr_destroy.
70328         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
70329         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
70330         * modules/execute (Files): Remove m4/posix_spawn.m4.
70331         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
70332         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
70333         posix_spawnattr_init, posix_spawnattr_setsigmask,
70334         posix_spawnattr_setflags, posix_spawnattr_destroy.
70336 2009-01-25  Bruno Haible  <bruno@clisp.org>
70338         * lib/glthread/threadlib.c: Include <stdlib.h>.
70340 2009-01-25  Bruno Haible  <bruno@clisp.org>
70342         * lib/glthread/threadlib.c (dummy): New declaration.
70344 2009-01-25  Bruno Haible  <bruno@clisp.org>
70346         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
70347         multibyte characters also for the GB18030 encoding. Don't crash when
70348         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
70350 2009-01-25  Bruno Haible  <bruno@clisp.org>
70352         Avoid redefining 'struct random_data' on OSF/1 5.1.
70353         * lib/stdlib.in.h: Include <random.h> if it exists.
70354         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
70355         HAVE_RANDOM_H. Include <random.h> when testing whether
70356         'struct random_data' exists.
70357         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
70359 2009-01-25  Bruno Haible  <bruno@clisp.org>
70361         Don't install charset.alias on MacOS X >= 10.3.
70362         * lib/localcharset.c (DARWIN7): New macro.
70363         (get_charset_aliases): Hardcode the result for Darwin7.
70364         * modules/localcharset (install-exec-local): Don't install
70365         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
70367 2009-01-25  Bruno Haible  <bruno@clisp.org>
70369         Don't install charset.alias on mingw and Cygwin.
70370         * modules/localcharset (install-exec-local): Don't install
70371         charset.alias on mingw and Cygwin, if the file does not yet exist.
70372         The result for these platforms is hardcoded in localcharset.c.
70374 2009-01-25  Bruno Haible  <bruno@clisp.org>
70376         Make it possible again to use AC_GNU_SOURCE together with gnulib.
70377         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
70378         before requiring AC_USE_SYSTEM_EXTENSIONS.
70380 2009-01-25  Jim Meyering  <meyering@redhat.com>
70382         c-strtod: avoid warnings
70383         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
70384         "assignment discards qualifiers from pointer target type" warnings.
70386 2009-01-24  Bruno Haible  <bruno@clisp.org>
70388         Add support for non-UTF-8 locales on MacOS X.
70389         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
70390         canonical encodings. For Darwin 7 and newer, don't map traditional
70391         encodings to UTF-8.
70392         Reported by Vincent Lefevre <vincent@vinc17.org>
70393         at <http://savannah.gnu.org/bugs/?25235>.
70395 2009-01-24  Bruno Haible  <bruno@clisp.org>
70397         * doc/gnulib.texi (Obsolete modules): New section.
70398         Reported by Mike Frysinger <vapier@gentoo.org>.
70400 2009-01-24  Bruno Haible  <bruno@clisp.org>
70402         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
70403         (%.dvi): New rule.
70405 2009-01-24  Bruno Haible  <bruno@clisp.org>
70407         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
70408         Reported by Eric Blake.
70410 2009-01-24  Bruno Haible  <bruno@clisp.org>
70412         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
70413         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
70414         Reported by Gary V. Vaughan <gary@gnu.org>.
70416 2009-01-24  Bruno Haible  <bruno@clisp.org>
70418         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
70420 2009-01-23  Bruno Haible  <bruno@clisp.org>
70422         Make c-strtod, c-strtold usable in libraries.
70423         * lib/c-strtod.c: Include string.h instead of xalloc.h.
70424         (C_STRTOD): Call strdup instead of xstrdup.
70425         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
70426         * modules/c-strtold (Depends-on): Likewise.
70427         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
70428         * NEWS: Mention the change.
70429         Reported by Michael Gold <mgold@ncf.ca>.
70431 2009-01-23  Jim Meyering  <meyering@redhat.com>
70433         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
70434         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
70435         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
70437 2009-01-23  Simon Josefsson  <simon@josefsson.org>
70439         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
70440         GNU CoreUtils.
70441         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
70442         * modules/version-etc (Description): Update.
70444 2009-01-22  Bruno Haible  <bruno@clisp.org>
70446         Cache the C locale object.
70447         * lib/c-strtod.c (c_locale_cache): New variable.
70448         (c_locale): New function.
70449         (C_STRTOD): Use it, and don't call freelocale.
70450         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
70451         Suggested by Paolo Bonzini.
70453 2009-01-21  Bruno Haible  <bruno@clisp.org>
70455         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
70456         conditions other than overflow.
70458 2009-01-21  Bruno Haible  <bruno@clisp.org>
70460         * lib/c-strtod.c: Include errno.h.
70461         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
70462         value from STRTOD_L and STRTOD.
70464 2009-01-21  Bruno Haible  <bruno@clisp.org>
70465         and Jim Meyering  <meyering@redhat.com>
70467         nanosleep: skip configure test (fail it) for apple universal builds
70468         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
70469         universal builds, assume that nanosleep does not work.
70470         * modules/nanosleep (Depends-on): Add multiarch.
70472         mktime: skip configure test (fail it) for apple universal builds
70473         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
70474         universal builds, assume that mktime does not work.
70475         * modules/mktime (Depends-on): Add multiarch.
70477 2009-01-21  Eric Blake  <ebb9@byu.net>
70479         multiarch: avoid expand-before-require warning
70480         * modules/multiarch (configure.ac): Require, rather than expand,
70481         gl_MULTIARCH.
70482         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
70483         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
70484         enforce that all clients require it.  Partial reversion of
70485         2008-12-29 patch.
70487         error: avoid expand-before-require warning
70488         * modules/errno (configure.ac): Require, rather than expand,
70489         gl_HEADER_ERRNO_H.
70490         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
70491         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
70492         enforce that all clients require it.
70494         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
70495         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
70496         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
70497         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
70499 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
70501         Revert:
70502         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
70504         regex: do not depend on obsolete modules.
70505         * modules/regex: Remove memcmp and memmove.
70507 2009-01-20  Bruno Haible  <bruno@clisp.org>
70509         Make the 'link' module link on Windows NT 4.
70510         * lib/link.c (_WIN32_WINNT): Don't define.
70511         (CreateHardLinkFuncType): New type.
70512         (CreateHardLinkFunc, initialized): New variables.
70513         (initialize): New function.
70514         (link): Invoke CreateHardLink indirectly through the function pointer.
70516 2009-01-20  Bruno Haible  <bruno@clisp.org>
70518         Fix compilation failure on mingw.
70519         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
70521 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
70523         * doc/c-strtod.texi: Mention a couple of restrictions.
70525 2009-01-20  Jim Meyering  <meyering@redhat.com>
70527         gettimeofday: move more declarations out of functions
70528         * lib/gettimeofday.c: Move extern declarations of tzset and
70529         gmtime out of containing functions.  Prompted by Bruno Haible.
70531 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
70533         regex: do not depend on obsolete modules.
70534         * modules/regex: Remove memcmp and memmove.
70536 2009-01-19  Bruno Haible  <bruno@clisp.org>
70538         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
70539         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
70540         gl_BIGENDIAN, not AC_C_BIGENDIAN.
70541         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
70542         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
70544 2009-01-19  Bruno Haible  <bruno@clisp.org>
70546         * tests/test-link.c: Include <errno.h>.
70547         (main): Exit with code 77 when a hard link cannot be created due to
70548         the file system.
70549         * tests/test-link.sh: Skip test when a hard link cannot be created due
70550         to the file system.
70551         Suggested by Eric Blake.
70553 2009-01-19  Martin Lambers  <marlam@marlam.de>
70555         * modules/link-tests: New file.
70556         * tests/test-link.sh: New file.
70557         * tests/test-link.c: New file.
70559 2009-01-19  Eric Blake  <ebb9@byu.net>
70561         doc: mention another function added in cygwin 1.7.0
70562         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
70563         Another new function in cygwin 1.7.
70565 2009-01-19  Bruno Haible  <bruno@clisp.org>
70567         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
70568         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
70569         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
70570         gl_BIGENDIAN, not AC_C_BIGENDIAN.
70571         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
70572         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
70573         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
70574         * m4/md4.m4 (gl_MD4): Likewise.
70575         * m4/md5.m4 (gl_MD5): Likewise.
70576         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
70577         * m4/sha1.m4 (gl_SHA1): Likewise.
70578         * m4/sha256.m4 (gl_SHA256): Likewise.
70579         * m4/sha512.m4 (gl_SHA512): Likewise.
70581 2009-01-19  Bruno Haible  <bruno@clisp.org>
70583         * modules/uniname/uniname-tests (Depends-on): Add progname.
70584         * tests/uniname/test-uninames.c: Include progname.h.
70585         (main): Call set_program_name.
70587         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
70588         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
70589         (main): Call set_program_name.
70591         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
70592         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
70593         (main): Call set_program_name.
70595         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
70596         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
70597         (main): Call set_program_name.
70599         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
70600         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
70601         (main): Call set_program_name.
70603         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
70604         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
70605         (main): Call set_program_name.
70607         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
70608         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
70609         (main): Call set_program_name.
70611         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
70612         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
70613         (main): Call set_program_name.
70615         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
70616         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
70617         (main): Call set_program_name.
70619 2009-01-19  Eric Blake  <ebb9@byu.net>
70621         test-unistd: test previous patch
70622         * tests/test-unistd.c: Test *_FILENO macros.
70624         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
70625         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
70626         Guarantee a definition.
70627         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
70628         * modules/unistd-safer (Depends-on): Add dependency on unistd.
70629         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
70630         * lib/dup-safer.c (STDERR_FILENO): Likewise.
70631         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
70632         Likewise.
70633         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
70634         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
70635         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
70636         Likewise.
70637         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
70638         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
70639         (STDERR_FILENO): Likewise.
70640         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
70641         (STDERR_FILENO): Likewise.
70642         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
70643         (STDERR_FILENO): Likewise.
70644         Reported by Elbert Pol.
70646 2009-01-19  Eric Blake  <ebb9@byu.net>
70648         doc: mention more functions added in cygwin 1.7.0
70649         * doc/posix-functions/abort.texi (abort): Update wording related
70650         to cygwin.
70651         * doc/posix-functions/daylight.texi (daylight): Likewise.
70652         * doc/posix-functions/optarg.texi (optarg): Likewise.
70653         * doc/posix-functions/optarg.texi (opterr): Likewise.
70654         * doc/posix-functions/optarg.texi (optind): Likewise.
70655         * doc/posix-functions/optarg.texi (optopt): Likewise.
70656         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
70657         worked in 1.5.x, and was withdrawn in 1.7.
70658         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
70659         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
70660         cygwin versions.
70661         * doc/posix-functions/perror.texi (perror): Likewise.
70662         * doc/posix-functions/printf.texi (printf): Likewise.
70663         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
70664         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
70665         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
70666         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
70667         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
70668         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
70669         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
70670         Likewise.
70671         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
70672         Likewise.
70673         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
70674         this function.
70675         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
70676         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
70677         Likewise.
70678         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
70679         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
70680         * doc/posix-functions/confstr.texi (confstr): Likewise.
70681         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
70682         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
70683         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
70684         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
70685         * doc/posix-functions/fputws.texi (fputws): Likewise.
70686         * doc/posix-functions/fwide.texi (fwide): Likewise.
70687         * doc/posix-functions/getwc.texi (getwc): Likewise.
70688         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
70689         * doc/posix-functions/putwc.texi (putwc): Likewise.
70690         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
70691         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
70692         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
70693         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
70694         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
70695         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
70696         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
70697         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
70698         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
70699         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
70700         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
70702 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
70704         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
70705         * lib/ioctl.c: Include <sys/ioctl.h>.
70707 2009-01-19  Simon Josefsson  <simon@josefsson.org>
70709         * modules/getdate-tests (Depends-on): Add progname.
70710         * tests/test-getdate.c: Use progname module, to avoid link errors
70711         on non-glibc systems.
70713 2009-01-18  Simon Josefsson  <simon@josefsson.org>
70715         * modules/filenamecat-tests (Depends-on): Add progname.
70716         * modules/fstrcmp-tests (Depends-on): Likewise.
70718         * tests/test-filenamecat.c: Use progname module, to avoid link
70719         errors on non-glibc systems.
70720         * tests/test-fstrcmp.c: Likewise.
70722 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
70724         gettimeofday: avoid warning: nested extern declaration of 'localtime'
70725         * lib/gettimeofday.c: Move extern declaration out of function.
70727 2009-01-18  Bruno Haible  <bruno@clisp.org>
70729         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
70730         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
70731         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
70733 2009-01-18  Bruno Haible  <bruno@clisp.org>
70735         * lib/strftime.c (MEMPCPY): Remove unused macro.
70736         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
70738 2009-01-18  Martin Lambers  <marlam@marlam.de>
70740         New module 'link'.
70741         * lib/unistd.in.h (link): New declaration.
70742         * lib/link.c: New file.
70743         * m4/link.m4: New file.
70744         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
70745         HAVE_LINK.
70746         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
70747         * modules/link: New file.
70748         * doc/posix-functions/link.texi: Mention the new module.
70750 2009-01-18  Bruno Haible  <bruno@clisp.org>
70752         * tests/test-avltree_list.c (main): Call set_program_name.
70753         * tests/test-avltree_oset.c (main): Likewise.
70754         * tests/test-obstack-printf.c: Include progname.h.
70755         (main): Call set_program_name.
70756         * tests/test-quotearg.c: Include progname.h.
70757         (main): Call set_program_name.
70758         * tests/test-xmemdup0.c: Include progname.h.
70759         (main): Call set_program_name.
70761 2009-01-18  Bruno Haible  <bruno@clisp.org>
70763         New module 'alphasort'.
70764         * lib/dirent.in.h (alphasort): New declaration.
70765         * lib/alphasort.c: New file, from glibc with modifications.
70766         * m4/alphasort.m4: New file.
70767         * modules/alphasort: New file.
70768         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
70769         HAVE_ALPHASORT.
70770         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
70771         HAVE_ALPHASORT.
70772         * doc/posix-functions/alphasort.texi: Mention the new module and the
70773         portability problems.
70775 2009-01-18  Bruno Haible  <bruno@clisp.org>
70777         New module 'scandir'.
70778         * lib/dirent.in.h (scandir): New declaration.
70779         * lib/scandir.c: New file, from glibc with modifications.
70780         * m4/scandir.m4: New file.
70781         * modules/scandir: New file.
70782         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
70783         HAVE_SCANDIR.
70784         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
70785         HAVE_SCANDIR.
70786         * doc/posix-functions/scandir.texi: Mention the new module and the
70787         portability problems.
70789 2009-01-17  Bruno Haible  <bruno@clisp.org>
70791         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
70792         Update documentation.
70793         (func_remove_suffix): Escape all dots in the suffix. Update
70794         documentation.
70795         (func_filter_filelist): Update documentation.
70796         Reported by Ralf Wildenhues.
70798 2009-01-17  Bruno Haible  <bruno@clisp.org>
70800         * modules/dprintf-posix-tests: New file.
70801         * tests/test-dprintf-posix.sh: New file.
70802         * tests/test-dprintf-posix.c: New file.
70804         New modules 'dprintf', 'dprintf-posix'.
70805         * lib/stdio.in.h (dprintf): New declaration.
70806         * lib/dprintf.c: New file.
70807         * m4/dprintf.m4: New file.
70808         * m4/dprintf-posix.m4: New file.
70809         * modules/dprintf: New file.
70810         * modules/dprintf-posix: New file.
70811         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
70812         HAVE_DPRINTF, REPLACE_DPRINTF.
70813         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
70814         HAVE_DPRINTF, REPLACE_DPRINTF.
70815         * doc/posix-functions/dprintf.texi: Mention the new modules.
70817 2009-01-17  Bruno Haible  <bruno@clisp.org>
70819         * modules/vdprintf-posix-tests: New file.
70820         * tests/test-vdprintf-posix.sh: New file.
70821         * tests/test-vdprintf-posix.c: New file.
70823         New modules 'vdprintf', 'vdprintf-posix'.
70824         * lib/stdio.in.h (vdprintf): New declaration.
70825         * lib/vdprintf.c: New file.
70826         * m4/vdprintf.m4: New file.
70827         * m4/vdprintf-posix.m4: New file.
70828         * modules/vdprintf: New file.
70829         * modules/vdprintf-posix: New file.
70830         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
70831         HAVE_VDPRINTF, REPLACE_VDPRINTF.
70832         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
70833         HAVE_VDPRINTF, REPLACE_VDPRINTF.
70834         * doc/posix-functions/vdprintf.texi: Mention the new modules.
70836 2009-01-17  Bruno Haible  <bruno@clisp.org>
70838         Fix replacement of fopen on mingw.
70839         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
70840         mingw.
70842 2009-01-17  Bruno Haible  <bruno@clisp.org>
70844         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
70845         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
70847 2009-01-17  Bruno Haible  <bruno@clisp.org>
70849         Avoid test-fflush2.sh failure on mingw.
70850         * tests/test-fflush2.c: Include binary-io.h.
70851         (main): Put standard input into binary mode.
70852         * modules/fflush-tests (Depends-on): Add binary-io.
70854 2009-01-17  Bruno Haible  <bruno@clisp.org>
70856         * lib/wchar.in.h: In another particular situation, include only the
70857         system's <wchar.h> file.
70858         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
70859         Reported by Albert Chin-A-Young <china@thewrittenword.com>
70860         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
70862 2009-01-17  Bruno Haible  <bruno@clisp.org>
70864         Support for stripping executables in --enable-relocatable.
70865         * build-aux/install-reloc: Expect one more argument, or an environment
70866         variable RELOC_STRIP_PROG. If set, strip the destination program and
70867         its wrapper.
70868         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
70869         RELOC_STRIP_PROG.
70870         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
70871         to set RELOCATABLE_STRIP.
70872         * NEWS: Mention the new Makefile requirement.
70874 2009-01-17  Bruno Haible  <bruno@clisp.org>
70876         * build-aux/install-reloc: Remove debugging information left over by
70877         C compiler on MacOS X.
70879 2009-01-17  Bruno Haible  <bruno@clisp.org>
70881         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
70882         * lib/progreloc.c (find_executable): Fix type of pointer passed to
70883         _NSGetExecutablePath.
70885 2009-01-16  Jim Meyering  <meyering@redhat.com>
70887         strerror: avoid warnings about discarding "const"
70888         * lib/strerror.c (rpl_strerror): Instead of returning a const
70889         string from each and every "case", use a variable, and add a single
70890         cast after the switch.
70892 2009-01-16  Albert Chin-A-Young  <china@thewrittenword.com>
70894         * lib/arpa_inet.in.h: Add extern "C" block for C++.
70896 2009-01-16  Bruno Haible  <bruno@clisp.org>
70898         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
70899         array initializer syntax that also works in C++ mode.
70900         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
70902 2009-01-16  Jim Meyering  <meyering@redhat.com>
70904         poll: suppress a warning
70905         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
70906         to ignore "...unsigned expression < 0 is always false" warnings.
70908 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
70910         poll: remove declarations of unused variables
70911         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
70912         sockbuf and optlen.
70914 2009-01-15  Bruno Haible  <bruno@clisp.org>
70916         Make fflush-after-ungetc POSIX compliant on BSD systems.
70917         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
70918         (clear_ungetc_buffer): Implement also for other systems.
70919         (rpl_fflush): On glibc systems, invoke
70920         clear_ungetc_buffer_preserving_position. Otherwise, invoke
70921         clear_ungetc_buffer after fetching the stream's position, not before.
70923 2009-01-15  Bruno Haible  <bruno@clisp.org>
70925         Make fflush-after-ungetc POSIX compliant on glibc systems.
70926         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
70927         after ungetc.
70928         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
70929         (rpl_fflush): On glibc systems, simply call the system's fflush
70930         function after clearing the ungetc buffer.
70931         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
70932         Instead, lseek only to the end of file, then use the system's fseeko
70933         for the rest. On glibc systems, reset the EOF indicator bit.
70935 2009-01-15  Jim Meyering  <meyering@redhat.com>
70937         openmp.m4: revert quote-adding change, for portability to older autoconf
70938         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
70939         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
70940         Simon Josefsson noticed the problem when using autoconf-2.61.
70942 2009-01-15  Bruno Haible  <bruno@clisp.org>
70944         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
70945         * tests/test-fflush2.c (ASSERT): Always fail.
70946         (main): Add two tests for fflush() after ungetc(), taking into account
70947         the Austin Group's clarification.
70948         Suggested by Eric Blake.
70950 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
70952         mktime.m4: remove K&R-style function prototypes
70953         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
70954         for the Sun C++ compiler.
70956 2009-01-14  Bruno Haible  <bruno@clisp.org>
70958         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
70959         while including <wchar.h>.
70960         * lib/wchar.in.h: In two particular situations on HP-UX, include only
70961         the system's <wchar.h> file.
70962         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
70964 2009-01-14  Bruno Haible  <bruno@clisp.org>
70966         * m4/csharp.m4: Don't mention gettext on the serial number line.
70967         * m4/csharpexec.m4: Likewise.
70968         * m4/eaccess.m4: Likewise.
70969         * m4/javaexec.m4: Likewise.
70970         * m4/sig_atomic_t.m4: Likewise.
70971         * m4/tmpdir.m4: Likewise.
70972         * m4/intldir.m4: Bump gettext version.
70973         * m4/lib-ld.m4: Likewise.
70975 2009-01-14  Bruno Haible  <bruno@clisp.org>
70977         * lib/progname.c (set_program_name): Add more comments.
70978         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
70980 2009-01-14  Simon Josefsson  <simon@josefsson.org>
70982         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
70983         were sys/stat.h does not define it.
70985 2009-01-14  Jim Meyering  <meyering@redhat.com>
70987         many *.m4 files: improve m4 quoting
70988         99% of this change was performed by running the following commands:
70989         git ls-files | grep '\.m4$' | xargs perl -pi \
70990           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
70991           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
70992           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
70993           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
70994         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
70995         The remainder were to add Copyright dates, increment serial numbers,
70996         undo some changes in comments, exclude m4/intl.m4, and add quotes
70997         around the "1" in ",1" where the unusual spacing prohibited the
70998         above regexps from doing the job.  For more details, see
70999         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
71000         * m4/acl.m4: Modified.
71001         * m4/afs.m4: Likewise.
71002         * m4/alloca.m4: Likewise.
71003         * m4/argp.m4: Likewise.
71004         * m4/argz.m4: Likewise.
71005         * m4/atexit.m4: Likewise.
71006         * m4/bison-i18n.m4: Likewise.
71007         * m4/bison.m4: Likewise.
71008         * m4/byteswap.m4: Likewise.
71009         * m4/c-stack.m4: Likewise.
71010         * m4/c-strtod.m4: Likewise.
71011         * m4/calloc.m4: Likewise.
71012         * m4/canonicalize-lgpl.m4: Likewise.
71013         * m4/chown.m4: Likewise.
71014         * m4/clock_time.m4: Likewise.
71015         * m4/codeset.m4: Likewise.
71016         * m4/copy-file.m4: Likewise.
71017         * m4/csharp.m4: Likewise.
71018         * m4/csharpcomp.m4: Likewise.
71019         * m4/csharpexec.m4: Likewise.
71020         * m4/d-ino.m4: Likewise.
71021         * m4/d-type.m4: Likewise.
71022         * m4/dirfd.m4: Likewise.
71023         * m4/double-slash-root.m4: Likewise.
71024         * m4/eaccess.m4: Likewise.
71025         * m4/eealloc.m4: Likewise.
71026         * m4/environ.m4: Likewise.
71027         * m4/errno_h.m4: Likewise.
71028         * m4/euidaccess.m4: Likewise.
71029         * m4/execute.m4: Likewise.
71030         * m4/fatal-signal.m4: Likewise.
71031         * m4/fchdir.m4: Likewise.
71032         * m4/fcntl_h.m4: Likewise.
71033         * m4/fileblocks.m4: Likewise.
71034         * m4/filenamecat.m4: Likewise.
71035         * m4/findprog.m4: Likewise.
71036         * m4/flexmember.m4: Likewise.
71037         * m4/fnmatch.m4: Likewise.
71038         * m4/fopen.m4: Likewise.
71039         * m4/fpending.m4: Likewise.
71040         * m4/fprintf-posix.m4: Likewise.
71041         * m4/free.m4: Likewise.
71042         * m4/frexp.m4: Likewise.
71043         * m4/frexpl.m4: Likewise.
71044         * m4/fsusage.m4: Likewise.
71045         * m4/ftruncate.m4: Likewise.
71046         * m4/gc-camellia.m4: Likewise.
71047         * m4/gc-random.m4: Likewise.
71048         * m4/gc.m4: Likewise.
71049         * m4/getaddrinfo.m4: Likewise.
71050         * m4/getcwd-abort-bug.m4: Likewise.
71051         * m4/getcwd-path-max.m4: Likewise.
71052         * m4/getdate.m4: Likewise.
71053         * m4/getdomainname.m4: Likewise.
71054         * m4/getgroups.m4: Likewise.
71055         * m4/gethostname.m4: Likewise.
71056         * m4/gethrxtime.m4: Likewise.
71057         * m4/getline.m4: Likewise.
71058         * m4/getloadavg.m4: Likewise.
71059         * m4/getndelim2.m4: Likewise.
71060         * m4/getpass.m4: Likewise.
71061         * m4/gettext.m4: Likewise.
71062         * m4/gettime.m4: Likewise.
71063         * m4/gettimeofday.m4: Likewise.
71064         * m4/gnulib-common.m4: Likewise.
71065         * m4/group-member.m4: Likewise.
71066         * m4/host-os.m4: Likewise.
71067         * m4/iconv.m4: Likewise.
71068         * m4/iconv_open.m4: Likewise.
71069         * m4/inet_ntop.m4: Likewise.
71070         * m4/inet_pton.m4: Likewise.
71071         * m4/inline.m4: Likewise.
71072         * m4/intldir.m4: Likewise.
71073         * m4/intlmacosx.m4: Likewise.
71074         * m4/intmax.m4: Likewise.
71075         * m4/intmax_t.m4: Likewise.
71076         * m4/inttypes.m4: Likewise.
71077         * m4/inttypes_h.m4: Likewise.
71078         * m4/inttypes-pri.m4: Likewise.
71079         * m4/isapipe.m4: Likewise.
71080         * m4/isnand.m4: Likewise.
71081         * m4/isnanf.m4: Likewise.
71082         * m4/isnanl.m4: Likewise.
71083         * m4/javacomp.m4: Likewise.
71084         * m4/javaexec.m4: Likewise.
71085         * m4/jm-winsz1.m4: Likewise.
71086         * m4/jm-winsz2.m4: Likewise.
71087         * m4/lchown.m4: Likewise.
71088         * m4/lcmessage.m4: Likewise.
71089         * m4/ldexpl.m4: Likewise.
71090         * m4/lib-ld.m4: Likewise.
71091         * m4/lib-link.m4: Likewise.
71092         * m4/libsigsegv.m4: Likewise.
71093         * m4/link-follow.m4: Likewise.
71094         * m4/localcharset.m4: Likewise.
71095         * m4/locale-fr.m4: Likewise.
71096         * m4/locale-ja.m4: Likewise.
71097         * m4/locale-tr.m4: Likewise.
71098         * m4/locale-zh.m4: Likewise.
71099         * m4/lock.m4: Likewise.
71100         * m4/longlong.m4: Likewise.
71101         * m4/ls-mntd-fs.m4: Likewise.
71102         * m4/lstat.m4: Likewise.
71103         * m4/malloc.m4: Likewise.
71104         * m4/mathl.m4: Likewise.
71105         * m4/mbrtowc.m4: Likewise.
71106         * m4/mbstate_t.m4: Likewise.
71107         * m4/mbswidth.m4: Likewise.
71108         * m4/memchr.m4: Likewise.
71109         * m4/memcmp.m4: Likewise.
71110         * m4/memcpy.m4: Likewise.
71111         * m4/memmem.m4: Likewise.
71112         * m4/memmove.m4: Likewise.
71113         * m4/mempcpy.m4: Likewise.
71114         * m4/memrchr.m4: Likewise.
71115         * m4/memset.m4: Likewise.
71116         * m4/minmax.m4: Likewise.
71117         * m4/mkdir-slash.m4: Likewise.
71118         * m4/mkdtemp.m4: Likewise.
71119         * m4/mktime.m4: Likewise.
71120         * m4/mmap-anon.m4: Likewise.
71121         * m4/mountlist.m4: Likewise.
71122         * m4/nanosleep.m4: Likewise.
71123         * m4/nls.m4: Likewise.
71124         * m4/nocrash.m4: Likewise.
71125         * m4/open.m4: Likewise.
71126         * m4/openat.m4: Likewise.
71127         * m4/openmp.m4: Likewise.
71128         * m4/pathmax.m4: Likewise.
71129         * m4/perl.m4: Likewise.
71130         * m4/physmem.m4: Likewise.
71131         * m4/pipe.m4: Likewise.
71132         * m4/po.m4: Likewise.
71133         * m4/poll.m4: Likewise.
71134         * m4/posixtm.m4: Likewise.
71135         * m4/posixver.m4: Likewise.
71136         * m4/printf-frexp.m4: Likewise.
71137         * m4/printf-frexpl.m4: Likewise.
71138         * m4/printf-posix.m4: Likewise.
71139         * m4/printf-posix-rpl.m4: Likewise.
71140         * m4/printf.m4: Likewise.
71141         * m4/progtest.m4: Likewise.
71142         * m4/putenv.m4: Likewise.
71143         * m4/readline.m4: Likewise.
71144         * m4/readlink.m4: Likewise.
71145         * m4/readutmp.m4: Likewise.
71146         * m4/realloc.m4: Likewise.
71147         * m4/regex.m4: Likewise.
71148         * m4/relocatable.m4: Likewise.
71149         * m4/relocatable-lib.m4: Likewise.
71150         * m4/rename-dest-slash.m4: Likewise.
71151         * m4/rename.m4: Likewise.
71152         * m4/rmdir-errno.m4: Likewise.
71153         * m4/rmdir.m4: Likewise.
71154         * m4/roundf.m4: Likewise.
71155         * m4/roundl.m4: Likewise.
71156         * m4/rpmatch.m4: Likewise.
71157         * m4/save-cwd.m4: Likewise.
71158         * m4/selinux-selinux-h.m4: Likewise.
71159         * m4/setenv.m4: Likewise.
71160         * m4/settime.m4: Likewise.
71161         * m4/sig2str.m4: Likewise.
71162         * m4/sig_atomic_t.m4: Likewise.
71163         * m4/signalblocking.m4: Likewise.
71164         * m4/signbit.m4: Likewise.
71165         * m4/sigpipe.m4: Likewise.
71166         * m4/sockets.m4: Likewise.
71167         * m4/sockpfaf.m4: Likewise.
71168         * m4/st_dm_mode.m4: Likewise.
71169         * m4/stat-time.m4: Likewise.
71170         * m4/stdbool.m4: Likewise.
71171         * m4/stdint.m4: Likewise.
71172         * m4/stdint_h.m4: Likewise.
71173         * m4/stpcpy.m4: Likewise.
71174         * m4/stpncpy.m4: Likewise.
71175         * m4/strcase.m4: Likewise.
71176         * m4/strchrnul.m4: Likewise.
71177         * m4/strcspn.m4: Likewise.
71178         * m4/strdup.m4: Likewise.
71179         * m4/strftime.m4: Likewise.
71180         * m4/strndup.m4: Likewise.
71181         * m4/strnlen.m4: Likewise.
71182         * m4/strpbrk.m4: Likewise.
71183         * m4/strptime.m4: Likewise.
71184         * m4/strsep.m4: Likewise.
71185         * m4/strtod.m4: Likewise.
71186         * m4/strtoimax.m4: Likewise.
71187         * m4/strtok_r.m4: Likewise.
71188         * m4/strtol.m4: Likewise.
71189         * m4/strtoll.m4: Likewise.
71190         * m4/strtoul.m4: Likewise.
71191         * m4/strtoull.m4: Likewise.
71192         * m4/strtoumax.m4: Likewise.
71193         * m4/strverscmp.m4: Likewise.
71194         * m4/threadlib.m4: Likewise.
71195         * m4/timegm.m4: Likewise.
71196         * m4/tm_gmtoff.m4: Likewise.
71197         * m4/tmpdir.m4: Likewise.
71198         * m4/tmpfile.m4: Likewise.
71199         * m4/tzset.m4: Likewise.
71200         * m4/uintmax_t.m4: Likewise.
71201         * m4/unlinkdir.m4: Likewise.
71202         * m4/unlocked-io.m4: Likewise.
71203         * m4/uptime.m4: Likewise.
71204         * m4/userspec.m4: Likewise.
71205         * m4/utimbuf.m4: Likewise.
71206         * m4/utime.m4: Likewise.
71207         * m4/utimes-null.m4: Likewise.
71208         * m4/utimes.m4: Likewise.
71209         * m4/vararrays.m4: Likewise.
71210         * m4/vasnprintf.m4: Likewise.
71211         * m4/vfprintf-posix.m4: Likewise.
71212         * m4/vprintf-posix.m4: Likewise.
71213         * m4/wait-process.m4: Likewise.
71214         * m4/wchar_t.m4: Likewise.
71215         * m4/wint_t.m4: Likewise.
71216         * m4/write-any-file.m4: Likewise.
71217         * m4/yield.m4: Likewise.
71219 2009-01-13  Bruno Haible  <bruno@clisp.org>
71221         Avoid test-copy-file.sh failures when ACL support insufficient.
71222         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
71223         TESTS_ENVIRONMENT.
71224         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
71225         Reported by Jim Meyering.
71227 2009-01-13  Bruno Haible  <bruno@clisp.org>
71229         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
71230         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
71231         * modules/unistdio/u8-printf-parse (Files): Likewise.
71232         * modules/unistdio/u32-printf-parse (Files): Likewise.
71233         * modules/unistdio/ulc-printf-parse (Files): Likewise.
71235 2009-01-13  Simon Josefsson  <simon@josefsson.org>
71237         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
71238         and m4/inttypes_h.m4 too.
71240 2009-01-12  Eric Blake  <ebb9@byu.net>
71242         tests: IRIX 6.2 cc can't compile -0.0 into .data
71243         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
71244         rather than at compile-time.
71245         * tests/test-floorl.c (minus_zero): Likewise.
71246         * tests/test-frexpl.c (minus_zero): Likewise.
71247         * tests/test-isnan.c (minus_zerol): Likewise.
71248         * tests/test-isnanl.h (minus_zero): Likewise.
71249         * tests/test-ldexpl.c (minus_zero): Likewise.
71250         * tests/test-roundl.c (minus_zero): Likewise.
71251         * tests/test-signbit.c (minus_zerol): Likewise.
71252         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
71253         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
71254         * tests/test-truncl.c (minus_zero): Likewise.
71255         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
71256         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
71257         Reported by Tom G. Christensen and Nelson H. F. Beebe.
71259 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
71261         regex: fix glibc bug 9697
71262         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
71263         handling.
71265 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
71267         regex: fix glibc bug 697
71268         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
71269         being NULL also if there are no backreferences.
71271 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
71273         regex: merge glibc changes
71274         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
71275         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
71276         re_string_skip_chars, re_string_reconstruct): Likewise.
71277         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
71279 2009-01-07  Jim Meyering  <meyering@redhat.com>
71281         poll: filter through cppi
71282         * lib/poll.c: Indent cpp directives to reflect nesting.
71284 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
71286         poll: don't return uninitialized
71287         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
71289 2009-01-06  Jeremy Olexa  <darkside@gentoo.org>  (tiny change)
71291         avoid compile failure on AIX 6.1
71292         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
71293         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
71295 2009-01-04  Jim Meyering  <meyering@redhat.com>
71297         remove duplicate inclusion of <stdio.h>
71298         * tests/test-fprintf-posix.c: Likewise.
71299         * tests/test-printf-posix.c: Likewise.
71300         * tests/test-snprintf-posix.c: Likewise.
71301         * tests/test-sprintf-posix.c: Likewise.
71302         * tests/test-vasprintf-posix.c: Likewise.
71303         * tests/test-vfprintf-posix.c: Likewise.
71304         * tests/test-vprintf-posix.c: Likewise.
71305         * tests/test-vsnprintf-posix.c: Likewise.
71306         * tests/test-vsprintf-posix.c: Likewise.
71308 2009-01-03  Jim Meyering  <meyering@redhat.com>
71310         gnulib-tool: fix sed-based filtering
71311         * gnulib-tool (func_filter_filelist): Remove extra backslash
71312         in sed_fff_filter definition.
71314 2009-01-02  Jim Meyering  <meyering@redhat.com>
71316         strftime: avoid compilation failure on Solaris 2.6
71317         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
71318         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
71319         Don't #define mbrlen or mbsinit, since now they're guaranteed to
71320         be available.  Reported by Tom G. Christensen.  Details in
71321         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
71323 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71324             Bruno Haible  <bruno@clisp.org>
71326         Speed up gnulib-tool by doing more string processing through shell
71327         built-ins.
71328         * gnulib-tool (fast_func_append): New variable.
71329         (func_remove_prefix, func_remove_suffix): New functions.
71330         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
71331         (func_filter_filelist): New function.
71332         (func_get_dependencies): Use func_remove_suffix instead of sed.
71333         (func_get_automake_snippet): Use func_filter_filelist instead of a
71334         subshell and sed invocation.
71336 2009-01-01  Bruno Haible  <bruno@clisp.org>
71338         Fix a security bug.
71339         * gnulib-tool (func_import, import, update): Don't allow the characters
71340         '"', '$', '`', '\' in macro arguments that become part of commands that
71341         are evaluated.
71343 2009-01-01  Bruno Haible  <bruno@clisp.org>
71345         * gnulib-tool (func_reset_sigpipe): Add more comments.
71347 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71349         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
71350         func_emit_tests_Makefile_am, func_import): Abort loops early if we
71351         already know the answer.
71353 2009-01-01  Jim Meyering  <meyering@redhat.com>
71355         * lib/version-etc.c (version_etc_va): Update copyright year.
71357 2008-12-30  Bruno Haible  <bruno@clisp.org>
71359         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
71360         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
71361         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
71363 2008-12-29  Eric Blake  <ebb9@byu.net>
71365         multiarch: avoid autoconf AC_REQUIRE bug
71366         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
71367         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
71368         2.63 and older.
71369         Reported by Bruno Haible, and analyzed in
71370         http://lists.gnu.org/r/bug-autoconf/2008-12/msg00039.html
71372 2008-12-29  Bruno Haible  <bruno@clisp.org>
71374         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
71375         files in subdirectories correctly.
71376         Reported by Ralf Wildenhues.
71378 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71380         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
71381         rather than 'join FILE -', for Solaris join.
71383 2008-12-29  Bruno Haible  <bruno@clisp.org>
71385         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
71386         quoting.
71387         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
71388         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
71389         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
71390         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
71391         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
71392         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
71393         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
71394         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
71395         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
71396         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
71397         * m4/nls.m4 (AM_NLS): Likewise.
71398         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
71399         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
71400         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
71401         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
71402         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
71403         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
71404         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
71405         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
71406         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
71407         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
71408         * m4/xsize.m4 (gl_XSIZE): Likewise.
71409         Suggested by Jim Meyering.
71411 2008-11-17  Bruce Korb  <bkorb@gnu.org>
71413         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
71414         * lib/parse-duration.c: use a switch instead of cascading if's.
71416 2008-12-29  Eric Blake  <ebb9@byu.net>
71418         wchar.h: supply WEOF on Irix 5.3
71419         * lib/wchar.in.h (wint_t): Also supply WEOF.
71420         * lib/wctype.in.h (wint_t): Likewise.
71421         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
71422         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
71423         Reported by Tom G. Christensen.
71425 2008-12-26  Bruno Haible  <bruno@clisp.org>
71427         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
71428         i486, i586, i686.
71430 2008-12-26  Bruno Haible  <bruno@clisp.org>
71432         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
71434 2008-12-26  Bruno Haible  <bruno@clisp.org>
71436         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
71437         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
71438         not __STDC_CONSTANT_MACROS.
71439         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
71441 2008-12-25  Bruno Haible  <bruno@clisp.org>
71443         Add support for universal builds to vasnprintf.
71444         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
71445         universal builds, guess no.
71446         * modules/vasnprintf-posix (Depends-on): Add multiarch.
71447         * modules/vasprintf-posix (Depends-on): Likewise.
71448         * modules/fprintf-posix (Depends-on): Likewise.
71449         * modules/vfprintf-posix (Depends-on): Likewise.
71450         * modules/snprintf-posix (Depends-on): Likewise.
71451         * modules/vsnprintf-posix (Depends-on): Likewise.
71452         * modules/sprintf-posix (Depends-on): Likewise.
71453         * modules/vsprintf-posix (Depends-on): Likewise.
71454         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
71455         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
71456         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
71457         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
71458         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
71459         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
71460         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
71462         Add support for universal builds to <inttypes.h>.
71463         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
71464         _SCNu64_PREFIX): In Apple
71465         universal builds, define directly, using _LP64.
71466         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
71467         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
71468         * modules/inttypes (Depends-on): Add multiarch.
71469         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
71471         Add support for universal builds to <stdint.h>.
71472         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
71473         universal builds, define directly, using _LP64.
71474         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
71475         Apple universal builds, don't test for the size and suffix of ptrdiff_t
71476         and size_t.
71477         * modules/stdint (Depends-on): Add multiarch.
71478         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
71480         New module 'multiarch'.
71481         * modules/multiarch: New file.
71482         * m4/multiarch.m4: New file.
71484 2008-12-25  Bruno Haible  <bruno@clisp.org>
71486         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
71488 2008-12-25  Bruno Haible  <bruno@clisp.org>
71490         * modules/btowc (License): Relicense under LGPLv2+.
71491         * modules/mbsinit (License): Likewise.
71492         * modules/mbrtowc (License): Likewise.
71493         * modules/wcrtomb (License): Likewise.
71494         * modules/streq (License): Likewise.
71495         Reported by David Lutterkort <lutter@redhat.com>.
71497 2008-12-23  Bruno Haible  <bruno@clisp.org>
71499         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
71501 2008-12-23  Bruno Haible  <bruno@clisp.org>
71503         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
71504         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
71505         GETADDRINFO_LIB, not in LIBS.
71506         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
71507         * modules/canon-host (Link): Likewise.
71508         * NEWS: Mention the change.
71509         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
71510         GETADDRINFO_LIB.
71512 2008-12-22  Bruno Haible  <bruno@clisp.org>
71514         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
71515         * doc/posix-functions/iswalpha_l.texi: Likewise.
71516         * doc/posix-functions/iswblank_l.texi: Likewise.
71517         * doc/posix-functions/iswcntrl_l.texi: Likewise.
71518         * doc/posix-functions/iswctype_l.texi: Likewise.
71519         * doc/posix-functions/iswdigit_l.texi: Likewise.
71520         * doc/posix-functions/iswgraph_l.texi: Likewise.
71521         * doc/posix-functions/iswlower_l.texi: Likewise.
71522         * doc/posix-functions/iswprint_l.texi: Likewise.
71523         * doc/posix-functions/iswpunct_l.texi: Likewise.
71524         * doc/posix-functions/iswspace_l.texi: Likewise.
71525         * doc/posix-functions/iswupper_l.texi: Likewise.
71526         * doc/posix-functions/iswxdigit_l.texi: Likewise.
71527         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
71528         * doc/posix-functions/open_wmemstream.texi: Likewise.
71529         * doc/posix-functions/swscanf.texi: Likewise.
71530         * doc/posix-functions/towctrans_l.texi: Likewise.
71531         * doc/posix-functions/towlower.texi: Likewise.
71532         * doc/posix-functions/towlower_l.texi: Likewise.
71533         * doc/posix-functions/towupper.texi: Likewise.
71534         * doc/posix-functions/towupper_l.texi: Likewise.
71535         * doc/posix-functions/vfwprintf.texi: Likewise.
71536         * doc/posix-functions/vfwscanf.texi: Likewise.
71537         * doc/posix-functions/vswscanf.texi: Likewise.
71538         * doc/posix-functions/vwprintf.texi: Likewise.
71539         * doc/posix-functions/vwscanf.texi: Likewise.
71540         * doc/posix-functions/wcpcpy.texi: Likewise.
71541         * doc/posix-functions/wcpncpy.texi: Likewise.
71542         * doc/posix-functions/wcscasecmp.texi: Likewise.
71543         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
71544         * doc/posix-functions/wcscoll_l.texi: Likewise.
71545         * doc/posix-functions/wcsdup.texi: Likewise.
71546         * doc/posix-functions/wcsncasecmp.texi: Likewise.
71547         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
71548         * doc/posix-functions/wcsnlen.texi: Likewise.
71549         * doc/posix-functions/wcsnrtombs.texi: Likewise.
71550         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
71551         * doc/posix-functions/wctrans_l.texi: Likewise.
71552         * doc/posix-functions/wctype_l.texi: Likewise.
71553         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
71554         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
71555         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
71556         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
71557         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
71558         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
71559         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
71560         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
71561         * doc/glibc-functions/wcschrnul.texi: Likewise.
71562         * doc/glibc-functions/wcsftime_l.texi: Likewise.
71563         * doc/glibc-functions/wcstod_l.texi: Likewise.
71564         * doc/glibc-functions/wcstof_l.texi: Likewise.
71565         * doc/glibc-functions/wcstol_l.texi: Likewise.
71566         * doc/glibc-functions/wcstold_l.texi: Likewise.
71567         * doc/glibc-functions/wcstoll_l.texi: Likewise.
71568         * doc/glibc-functions/wcstoq.texi: Likewise.
71569         * doc/glibc-functions/wcstoul_l.texi: Likewise.
71570         * doc/glibc-functions/wcstoull_l.texi: Likewise.
71571         * doc/glibc-functions/wcstouq.texi: Likewise.
71572         * doc/glibc-functions/wmempcpy.texi: Likewise.
71574 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
71575             Eric Blake  <ebb9@byu.net>
71576             Paolo Bonzini  <bonzini@gnu.org>
71577             Bruno Haible  <bruno@clisp.org>
71579         Make c-stack work on Haiku.
71580         * lib/c-stack.c (SA_ONSTACK): Define fallback.
71581         (c_stack_action): Use SA_ONSTACK flag.
71583 2008-12-22  Bruno Haible  <bruno@clisp.org>
71585         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
71587 2008-12-22  Bruno Haible  <bruno@clisp.org>
71589         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
71590         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
71591         being overridden.
71592         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
71593         New macros.
71594         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
71595         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
71596         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
71597         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
71599 2008-12-22  Bruno Haible  <bruno@clisp.org>
71601         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
71602         from test code.
71604 2008-12-22  Eric Blake  <ebb9@byu.net>
71606         Avoid gcc warnings on cygwin.
71607         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
71608         Avoid unused variable.
71609         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
71610         Likewise.
71612 2008-12-22  Bruno Haible  <bruno@clisp.org>
71614         Remove HAVE_MBRTOWC conditionals.
71615         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
71616         (mbscasecmp): Assume mbrtowc function.
71617         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
71618         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
71619         * lib/mbschr.c: Include mbuiter.h unconditionally.
71620         (mbschr): Assume mbrtowc function.
71621         * lib/mbscspn.c: Include mbuiter.h unconditionally.
71622         (mbscspn): Assume mbrtowc function.
71623         * lib/mbslen.c: Include mbuiter.h unconditionally.
71624         (mbslen): Assume mbrtowc function.
71625         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
71626         (mbsncasecmp): Assume mbrtowc function.
71627         * lib/mbsnlen.c: Include mbiter.h unconditionally.
71628         (mbsnlen): Assume mbrtowc function.
71629         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
71630         (mbspbrk): Assume mbrtowc function.
71631         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
71632         (mbspcasecmp): Assume mbrtowc function.
71633         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
71634         (mbsrchr): Assume mbrtowc function.
71635         * lib/mbssep.c: Include mbuiter.h unconditionally.
71636         (mbssep): Assume mbrtowc function.
71637         * lib/mbsspn.c: Include mbuiter.h unconditionally.
71638         (mbsspn): Assume mbrtowc function.
71639         * lib/mbsstr.c: Include mbuiter.h unconditionally.
71640         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
71641         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
71642         (mbstok_r): Assume mbrtowc function.
71643         * lib/propername.c: Include mbuiter.h unconditionally.
71644         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
71645         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
71646         (trim2): Assume mbrtowc function.
71647         * lib/mbswidth.c (mbsinit): Remove fallback definition.
71648         (mbsnwidth): Assume mbrtowc function.
71649         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
71650         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
71651         fallback definitions.
71652         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
71654 2008-12-22  Bruno Haible  <bruno@clisp.org>
71656         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
71658 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
71660         * modules/regex: Request emulations for the mb*/wc* functions we need.
71661         * m4/regex.m4: Don't look for those functions here.
71662         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
71664 2008-12-22  Bruno Haible  <bruno@clisp.org>
71666         * modules/fnmatch (Depends-on): Remove duplicated dependency.
71668 2008-12-21  Bruno Haible  <bruno@clisp.org>
71670         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
71671         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
71672         (Include): Remove conditionalization.
71673         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
71674         (Include): Remove conditionalization.
71675         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
71676         (Include): Remove conditionalization.
71677         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
71678         * m4/mbfile.m4 (gl_MBFILE): Likewise.
71679         * NEWS: Mention the change.
71680         Reported by Alan Hourihane <alanh@fairlite.co.uk>
71681         via Sergey Poznyakoff <gray@gnu.org.ua>.
71683 2008-12-21  Bruno Haible  <bruno@clisp.org>
71685         * MODULES.html.sh (Extended multibyte and wide character utilities
71686         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
71687         wcrtomb, wcsrtombs.
71688         (Support for systems lacking POSIX:2008): Add accept, bind, close,
71689         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
71690         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
71691         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
71693 2008-12-21  Bruno Haible  <bruno@clisp.org>
71695         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
71697 2008-12-21  Bruno Haible  <bruno@clisp.org>
71699         * modules/wcsnrtombs-tests: New file.
71700         * tests/test-wcsnrtombs1.sh: New file.
71701         * tests/test-wcsnrtombs2.sh: New file.
71702         * tests/test-wcsnrtombs3.sh: New file.
71703         * tests/test-wcsnrtombs4.sh: New file.
71704         * tests/test-wcsnrtombs.c: New file.
71706         New module 'wcsnrtombs'.
71707         * lib/wchar.in.h (wcsnrtombs): New declaration.
71708         * lib/wcsnrtombs.c: New file.
71709         * lib/wcsrtombs-state.c: New file.
71710         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
71711         (internal_state): Remove variable.
71712         * m4/wcsnrtombs.m4: New file.
71713         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
71714         compilation units.
71715         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
71716         HAVE_WCSNRTOMBS.
71717         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
71718         HAVE_WCSNRTOMBS.
71719         * modules/wcsnrtombs: New file.
71720         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
71721         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
71723 2008-12-21  Bruno Haible  <bruno@clisp.org>
71725         * modules/wcsrtombs-tests: New file.
71726         * tests/test-wcsrtombs1.sh: New file.
71727         * tests/test-wcsrtombs2.sh: New file.
71728         * tests/test-wcsrtombs3.sh: New file.
71729         * tests/test-wcsrtombs4.sh: New file.
71730         * tests/test-wcsrtombs.c: New file.
71732         New module 'wcsrtombs'.
71733         * lib/wchar.in.h (wcsrtombs): New declaration.
71734         * lib/wcsrtombs.c: New file.
71735         * m4/wcsrtombs.m4: New file.
71736         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
71737         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
71738         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
71739         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
71740         * modules/wcsrtombs: New file.
71741         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
71742         bugs.
71744 2008-12-21  Bruno Haible  <bruno@clisp.org>
71746         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
71747         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
71748         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
71749         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
71750         if not correct.
71751         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
71752         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
71753         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
71754         m4/locale-zh.m4, m4/codeset.m4.
71755         * doc/posix-functions/wcrtomb.texi: Document the bug.
71757 2008-12-21  Bruno Haible  <bruno@clisp.org>
71759         Work around a btowc() bug on IRIX 6.5.
71760         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
71761         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
71762         REPLACE_WTOBC if not.
71763         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
71764         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
71765         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
71767 2008-12-21  Bruno Haible  <bruno@clisp.org>
71769         * modules/wcrtomb-tests: New file.
71770         * tests/test-wcrtomb.sh: New file.
71771         * tests/test-wcrtomb.c: New file.
71773         New module 'wcrtomb'.
71774         * lib/wchar.in.h (wcrtomb): New declaration.
71775         * lib/wcrtomb.c: New file.
71776         * m4/wcrtomb.m4: New file.
71777         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
71778         HAVE_WCRTOMB.
71779         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
71780         HAVE_WCRTOMB.
71781         * modules/wcrtomb: New file.
71782         * doc/posix-functions/wcrtomb.texi: Mention the new module.
71784 2008-12-21  Bruno Haible  <bruno@clisp.org>
71786         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
71787         * modules/mbsrtowcs (Files): Likewise.
71788         * modules/wctob (Files): Likewise.
71789         * modules/c-strcase-tests (Files): Likewise.
71790         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
71791         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
71792         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
71793         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
71794         * modules/vasnprintf-posix-tests (Files): Likewise.
71796 2008-12-21  William Pursell  <bill.pursell@gmail.com>
71798         gitlog-to-changelog: pass all command-line arguments to git-log
71799         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
71800         it is sometimes convenient to filter the commits in various ways.
71801         gitlog-to-changelog only allows --since to specify a start date,
71802         but git-log itself supports many other filtering mechanisms.
71803         At the moment, I want to filter by branch name.  Rather than
71804         adding a --branch option to gitlog-to-changelog, it seems more
71805         flexible to simply pass all options directly to git-log and let
71806         git do the work.  Notice that this effectively makes --since a
71807         redundant option for gitlog-to-changelog, but removing it would
71808         require current usage to change since calls would then require
71809         an additional '--'.
71811 2008-12-21  Bruno Haible  <bruno@clisp.org>
71813         * modules/mbsnrtowcs-tests: New file.
71814         * tests/test-mbsnrtowcs1.sh: New file.
71815         * tests/test-mbsnrtowcs2.sh: New file.
71816         * tests/test-mbsnrtowcs3.sh: New file.
71817         * tests/test-mbsnrtowcs4.sh: New file.
71818         * tests/test-mbsnrtowcs.c: New file.
71820         New module 'mbsnrtowcs'.
71821         * lib/wchar.in.h (mbsnrtowcs): New declaration.
71822         * lib/mbsnrtowcs.c: New file.
71823         * lib/mbsrtowcs-state.c: New file.
71824         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
71825         (internal_state): Remove variable.
71826         * m4/mbsnrtowcs.m4: New file.
71827         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
71828         compilation units.
71829         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
71830         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
71831         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
71832         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
71833         * modules/mbsnrtowcs: New file.
71834         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
71835         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
71836         portability problem.
71838 2008-12-21  Bruno Haible  <bruno@clisp.org>
71840         Work around mbsrtowcs bug.
71841         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
71842         (gl_FUNC_MBSRTOWCS): Invoke it.
71843         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
71844         m4/locale-zh.m4.
71845         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
71847 2008-12-21  Bruno Haible  <bruno@clisp.org>
71849         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
71851 2008-12-21  Bruno Haible  <bruno@clisp.org>
71853         Update doc for AIX.
71854         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
71855         16-bit wchar_t type.
71856         * doc/posix-functions/btowc.texi: Likewise.
71857         * doc/posix-functions/fgetwc.texi: Likewise.
71858         * doc/posix-functions/fgetws.texi: Likewise.
71859         * doc/posix-functions/fputwc.texi: Likewise.
71860         * doc/posix-functions/fputws.texi: Likewise.
71861         * doc/posix-functions/fwide.texi: Likewise.
71862         * doc/posix-functions/fwprintf.texi: Likewise.
71863         * doc/posix-functions/fwscanf.texi: Likewise.
71864         * doc/posix-functions/getwchar.texi: Likewise.
71865         * doc/posix-functions/getwc.texi: Likewise.
71866         * doc/posix-functions/iswalnum.texi: Likewise.
71867         * doc/posix-functions/iswalpha.texi: Likewise.
71868         * doc/posix-functions/iswblank.texi: Likewise.
71869         * doc/posix-functions/iswcntrl.texi: Likewise.
71870         * doc/posix-functions/iswctype.texi: Likewise.
71871         * doc/posix-functions/iswdigit.texi: Likewise.
71872         * doc/posix-functions/iswgraph.texi: Likewise.
71873         * doc/posix-functions/iswlower.texi: Likewise.
71874         * doc/posix-functions/iswprint.texi: Likewise.
71875         * doc/posix-functions/iswpunct.texi: Likewise.
71876         * doc/posix-functions/iswspace.texi: Likewise.
71877         * doc/posix-functions/iswupper.texi: Likewise.
71878         * doc/posix-functions/iswxdigit.texi: Likewise.
71879         * doc/posix-functions/mbrtowc.texi: Likewise.
71880         * doc/posix-functions/mbsrtowcs.texi: Likewise.
71881         * doc/posix-functions/mbstowcs.texi: Likewise.
71882         * doc/posix-functions/mbtowc.texi: Likewise.
71883         * doc/posix-functions/putwchar.texi: Likewise.
71884         * doc/posix-functions/putwc.texi: Likewise.
71885         * doc/posix-functions/swprintf.texi: Likewise.
71886         * doc/posix-functions/tolower.texi: Likewise.
71887         * doc/posix-functions/toupper.texi: Likewise.
71888         * doc/posix-functions/towctrans.texi: Likewise.
71889         * doc/posix-functions/ungetwc.texi: Likewise.
71890         * doc/posix-functions/vswprintf.texi: Likewise.
71891         * doc/posix-functions/wcrtomb.texi: Likewise.
71892         * doc/posix-functions/wcscat.texi: Likewise.
71893         * doc/posix-functions/wcschr.texi: Likewise.
71894         * doc/posix-functions/wcscmp.texi: Likewise.
71895         * doc/posix-functions/wcscoll.texi: Likewise.
71896         * doc/posix-functions/wcscpy.texi: Likewise.
71897         * doc/posix-functions/wcscspn.texi: Likewise.
71898         * doc/posix-functions/wcsftime.texi: Likewise.
71899         * doc/posix-functions/wcslen.texi: Likewise.
71900         * doc/posix-functions/wcsncat.texi: Likewise.
71901         * doc/posix-functions/wcsncmp.texi: Likewise.
71902         * doc/posix-functions/wcsncpy.texi: Likewise.
71903         * doc/posix-functions/wcspbrk.texi: Likewise.
71904         * doc/posix-functions/wcsrchr.texi: Likewise.
71905         * doc/posix-functions/wcsrtombs.texi: Likewise.
71906         * doc/posix-functions/wcsspn.texi: Likewise.
71907         * doc/posix-functions/wcsstr.texi: Likewise.
71908         * doc/posix-functions/wcstod.texi: Likewise.
71909         * doc/posix-functions/wcstof.texi: Likewise.
71910         * doc/posix-functions/wcstoimax.texi: Likewise.
71911         * doc/posix-functions/wcstok.texi: Likewise.
71912         * doc/posix-functions/wcstold.texi: Likewise.
71913         * doc/posix-functions/wcstoll.texi: Likewise.
71914         * doc/posix-functions/wcstol.texi: Likewise.
71915         * doc/posix-functions/wcstombs.texi: Likewise.
71916         * doc/posix-functions/wcstoull.texi: Likewise.
71917         * doc/posix-functions/wcstoul.texi: Likewise.
71918         * doc/posix-functions/wcstoumax.texi: Likewise.
71919         * doc/posix-functions/wcswidth.texi: Likewise.
71920         * doc/posix-functions/wcsxfrm.texi: Likewise.
71921         * doc/posix-functions/wctob.texi: Likewise.
71922         * doc/posix-functions/wctomb.texi: Likewise.
71923         * doc/posix-functions/wctrans.texi: Likewise.
71924         * doc/posix-functions/wctype.texi: Likewise.
71925         * doc/posix-functions/wcwidth.texi: Likewise.
71926         * doc/posix-functions/wmemchr.texi: Likewise.
71927         * doc/posix-functions/wmemcmp.texi: Likewise.
71928         * doc/posix-functions/wmemcpy.texi: Likewise.
71929         * doc/posix-functions/wmemmove.texi: Likewise.
71930         * doc/posix-functions/wmemset.texi: Likewise.
71931         * doc/posix-functions/wprintf.texi: Likewise.
71932         * doc/posix-functions/wscanf.texi: Likewise.
71934 2008-12-21  Bruno Haible  <bruno@clisp.org>
71936         Update doc for HP-UX 11.11.
71937         * doc/posix-functions/btowc.texi: Clarify that the function is missing
71938         in HP-UX version 11.00, not in all versions of HP-UX 11.
71939         * doc/posix-functions/fwide.texi: Likewise.
71940         * doc/posix-functions/fwprintf.texi: Likewise.
71941         * doc/posix-functions/fwscanf.texi: Likewise.
71942         * doc/posix-functions/inet_ntop.texi: Likewise.
71943         * doc/posix-functions/inet_pton.texi: Likewise.
71944         * doc/posix-functions/mbrlen.texi: Likewise.
71945         * doc/posix-functions/mbrtowc.texi: Likewise.
71946         * doc/posix-functions/mbsinit.texi: Likewise.
71947         * doc/posix-functions/mbsrtowcs.texi: Likewise.
71948         * doc/posix-functions/swprintf.texi: Likewise.
71949         * doc/posix-functions/swscanf.texi: Likewise.
71950         * doc/posix-functions/towctrans.texi: Likewise.
71951         * doc/posix-functions/vfwprintf.texi: Likewise.
71952         * doc/posix-functions/vswprintf.texi: Likewise.
71953         * doc/posix-functions/vwprintf.texi: Likewise.
71954         * doc/posix-functions/wcrtomb.texi: Likewise.
71955         * doc/posix-functions/wcsrtombs.texi: Likewise.
71956         * doc/posix-functions/wcsstr.texi: Likewise.
71957         * doc/posix-functions/wctob.texi: Likewise.
71958         * doc/posix-functions/wctrans.texi: Likewise.
71959         * doc/posix-functions/wmemchr.texi: Likewise.
71960         * doc/posix-functions/wmemcmp.texi: Likewise.
71961         * doc/posix-functions/wmemcpy.texi: Likewise.
71962         * doc/posix-functions/wmemmove.texi: Likewise.
71963         * doc/posix-functions/wmemset.texi: Likewise.
71964         * doc/posix-functions/wprintf.texi: Likewise.
71965         * doc/posix-functions/wscanf.texi: Likewise.
71967 2008-12-21  Bruno Haible  <bruno@clisp.org>
71969         Work around a portability problem.
71970         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
71971         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
71973 2008-12-20  Bruno Haible  <bruno@clisp.org>
71975         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
71976         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
71977         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
71978         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
71979         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
71981         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
71982         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
71983         set.
71984         (GNULIB_defined_mbstate_t): New macro.
71985         (mbsinit): Redefine if REPLACE_MBSINIT is set.
71986         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
71987         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
71988         reuses the system's mbrtowc function but works around the bugs.
71989         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
71990         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
71991         macros.
71992         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
71993         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
71994         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
71995         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
71996         REPLACE_MBSINIT if mbsinit needs to be overridden.
71997         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
71998         REPLACE_MBSINIT, REPLACE_MBRTOWC.
71999         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
72000         REPLACE_MBSINIT, REPLACE_MBRTOWC.
72001         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
72002         m4/locale-zh.m4.
72003         (Depends): Add mbsinit.
72004         * modules/mbsinit (Depends): Add mbrtowc.
72005         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
72007 2008-12-20  Bruno Haible  <bruno@clisp.org>
72009         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
72010         so that there are no conversion errors on AIX.
72011         * tests/test-mbsrtowcs.c (main): LIkewise.
72013 2008-12-20  Bruno Haible  <bruno@clisp.org>
72015         Work around wctob bug on Solaris <= 9.
72016         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
72017         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
72018         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
72019         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
72020         * modules/wctob (Files): Add m4/locale-fr.m4.
72021         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
72023 2008-12-20  Bruno Haible  <bruno@clisp.org>
72025         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
72026         /dev/null.
72027         * tests/test-select-in.sh: Likewise.
72028         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
72030 2008-12-20  Bruno Haible  <bruno@clisp.org>
72032         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
72033         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
72034         Cygwin 1.5.x.
72036 2008-12-20  Bruno Haible  <bruno@clisp.org>
72038         Ensure mbstate_t is defined on HP-UX 11.11.
72039         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
72040         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
72041         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
72042         AC_USE_SYSTEM_EXTENSIONS.
72043         * modules/fnmatch (Depends-on): Add extensions.
72044         * modules/mbrlen (Depends-on): Likewise.
72045         * modules/mbrtowc (Depends-on): Likewise.
72046         * modules/mbsinit (Depends-on): Likewise.
72047         * modules/mbsrtowcs (Depends-on): Likewise.
72048         * modules/mbswidth (Depends-on): Likewise.
72049         * modules/quotearg (Depends-on): Likewise.
72050         * modules/strftime (Depends-on): Likewise.
72052 2008-12-20  Bruno Haible  <bruno@clisp.org>
72054         Ensure wctob is declared on IRIX 6.5.
72055         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
72056         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
72057         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
72058         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
72059         of HAVE_WCTOB.
72060         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
72061         HAVE_WCTOB.
72062         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
72064 2008-12-19  Bruno Haible  <bruno@clisp.org>
72066         * modules/mbsrtowcs-tests: New file.
72067         * tests/test-mbsrtowcs1.sh: New file.
72068         * tests/test-mbsrtowcs2.sh: New file.
72069         * tests/test-mbsrtowcs3.sh: New file.
72070         * tests/test-mbsrtowcs4.sh: New file.
72071         * tests/test-mbsrtowcs.c: New file.
72073         New module 'mbsrtowcs'.
72074         * lib/wchar.in.h (mbsrtowcs): New declaration.
72075         * lib/mbsrtowcs.c: New file.
72076         * m4/mbsrtowcs.m4: New file.
72077         * modules/mbsrtowcs: New file.
72078         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
72079         HAVE_MBSRTOWCS.
72080         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
72081         HAVE_MBSRTOWCS.
72082         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
72084 2008-12-19  Bruno Haible  <bruno@clisp.org>
72086         New module 'mbrlen'.
72087         * lib/wchar.in.h (mbrlen): New declaration.
72088         * lib/mbrlen.c: New file.
72089         * m4/mbrlen.m4: New file.
72090         * modules/mbrlen: New file.
72091         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
72092         HAVE_MBRLEN.
72093         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
72094         HAVE_MBRLEN.
72095         * doc/posix-functions/mbrlen.texi: Document the new module.
72097 2008-12-19  Bruno Haible  <bruno@clisp.org>
72099         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
72100         * modules/mbrtowc (Depends-on): Add verify.
72101         Suggested by Paul Eggert.
72103 2008-12-18  Bruno Haible  <bruno@clisp.org>
72105         * modules/mbsinit-tests: New file.
72106         * tests/test-mbsinit.sh: New file.
72107         * tests/test-mbsinit.c: New file.
72109 2008-12-18  Bruno Haible  <bruno@clisp.org>
72111         * modules/mbrtowc-tests: New file.
72112         * tests/test-mbrtowc1.sh: New file.
72113         * tests/test-mbrtowc2.sh: New file.
72114         * tests/test-mbrtowc3.sh: New file.
72115         * tests/test-mbrtowc4.sh: New file.
72116         * tests/test-mbrtowc.c: New file.
72118         New module 'mbrtowc'.
72119         * lib/wchar.in.h (mbstate_t): Override when the system does not have
72120         mbsinit and mbrtowc.
72121         (mbrtowc): New declaration.
72122         * lib/mbrtowc.c: New file.
72123         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
72124         * modules/mbrtowc: New file.
72125         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
72126         HAVE_MBRTOWC.
72127         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
72128         HAVE_MBRTOWC.
72129         * doc/posix-functions/mbrtowc.texi: Document the new module.
72131 2008-12-18  Bruno Haible  <bruno@clisp.org>
72133         New module 'wctob'.
72134         * lib/wchar.in.h (wctob): New declaration.
72135         * lib/wctob.c: New file.
72136         * m4/wctob.m4: New file.
72137         * modules/wctob: New file.
72138         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
72139         HAVE_WCTOB.
72140         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
72141         * doc/posix-functions/wctob.texi: Document the new module.
72143 2008-12-18  Bruno Haible  <bruno@clisp.org>
72145         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
72146         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
72148 2008-12-18  Simon Josefsson  <simon@josefsson.org>
72150         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
72151         G. Christensen" <tgc@jupiterrise.com>.
72153         * lib/flock.c: Need to include errno.h.  Reported by "Tom
72154         G. Christensen" <tgc@jupiterrise.com>.
72156         * lib/flock.c: Need to include string.h.  Reported by "Tom
72157         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
72158         <ebb9@byu.net>.
72160 2008-12-18  Bruno Haible  <bruno@clisp.org>
72162         * m4/locale-ja.m4: New file, from GNU gettext.
72164 2008-12-17  Bruno Haible  <bruno@clisp.org>
72166         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
72167         Suggested by Eric Blake.
72169 2008-12-17  Bruno Haible  <bruno@clisp.org>
72171         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
72173 2008-12-17  Bruno Haible  <bruno@clisp.org>
72175         * lib/mbsinit.c: Include verify.h. Verify an assumption.
72176         * modules/mbsinit (Depends-on): Add verify.
72177         Suggested by Paul Eggert.
72179 2008-12-17  Bruno Haible  <bruno@clisp.org>
72181         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
72182         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
72183         gl_FUNC_MBRTOWC.
72184         * m4/mbiter.m4 (gl_MBITER): LIkewise.
72185         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
72186         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
72187         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
72188         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
72189         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
72190         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
72191         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
72192         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
72193         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
72194         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
72195         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
72196         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
72197         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
72198         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
72199         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
72200         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
72201         * modules/trim (configure.ac): Likewise.
72203 2008-12-17  Bruno Haible  <bruno@clisp.org>
72205         * modules/btowc-tests: New file.
72206         * tests/test-btowc1.sh: New file.
72207         * tests/test-btowc2.sh: New file.
72208         * tests/test-btowc.c: New file.
72210         New module 'btowc'.
72211         * lib/wchar.in.h (btowc): New declaration.
72212         * lib/btowc.c: New file.
72213         * m4/btowc.m4: New file.
72214         * modules/btowc: New file.
72215         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
72216         HAVE_BTOWC.
72217         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
72218         * doc/posix-functions/btowc.texi: Document the new module.
72220 2008-12-17  Bruno Haible  <bruno@clisp.org>
72222         New module 'mbsinit'.
72223         * lib/wchar.in.h (mbsinit): New declaration.
72224         * lib/mbsinit.c: New file.
72225         * m4/mbsinit.m4: New file.
72226         * modules/mbsinit: New file.
72227         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
72228         HAVE_MBSINIT.
72229         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
72230         HAVE_MBSINIT.
72231         * doc/posix-functions/mbsinit.texi: Document the new module.
72233 2008-12-16  Bruno Haible  <bruno@clisp.org>
72235         * lib/unistd.in.h: Add comment.
72236         * tests/test-environ.c: Don't include <stdlib.h>.
72238 2008-12-16  Bruno Haible  <bruno@clisp.org>
72240         * lib/parse-duration.h (parse_duration): Document return value
72241         convention.
72242         * lib/parse-duration.c: Include specification header first. Add
72243         comments.
72244         (_): Remove macro.
72245         (parse_year_month_day, parse_hour_minute_second): Move side effects
72246         outside of strchr call.
72247         (parse_non_iso8601): Move side effects outside of isspace call.
72248         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
72249         call.
72251 2008-12-16  Bruno Haible  <bruno@clisp.org>
72253         * tests/test-parse-duration.sh: Produce no output when the test
72254         succeeds.
72256 2008-12-16  Bruno Haible  <bruno@clisp.org>
72258         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
72259         expressions.
72261 2008-12-15  Bruno Haible  <bruno@clisp.org>
72263         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
72264         * doc/glibc-functions/flistxattr.texi: Likewise.
72265         * doc/glibc-functions/fopencookie.texi: Likewise.
72266         * doc/glibc-functions/fremovexattr.texi: Likewise.
72267         * doc/glibc-functions/fsetxattr.texi: Likewise.
72268         * doc/glibc-functions/getxattr.texi: Likewise.
72269         * doc/glibc-functions/lgetxattr.texi: Likewise.
72270         * doc/glibc-functions/listxattr.texi: Likewise.
72271         * doc/glibc-functions/llistxattr.texi: Likewise.
72272         * doc/glibc-functions/lremovexattr.texi: Likewise.
72273         * doc/glibc-functions/lsetxattr.texi: Likewise.
72274         * doc/glibc-functions/removexattr.texi: Likewise.
72275         * doc/glibc-functions/setxattr.texi: Likewise.
72276         * doc/posix-functions/open_memstream.texi: Likewise.
72278 2008-12-15  Eric Blake  <ebb9@byu.net>
72280         Update doc for cygwin 1.7.
72281         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
72282         functions.
72283         * doc/posix-functions/fchmodat.texi: Likewise.
72284         * doc/posix-functions/fchownat.texi: Likewise.
72285         * doc/posix-functions/fdopendir.texi: Likewise.
72286         * doc/posix-functions/fmemopen.texi: Likewise.
72287         * doc/posix-functions/freeaddrinfo.texi: Likewise.
72288         * doc/posix-functions/fstatat.texi: Likewise.
72289         * doc/posix-functions/futimens.texi: Likewise.
72290         * doc/posix-functions/gai_strerror.texi: Likewise.
72291         * doc/posix-functions/getaddrinfo.texi: Likewise.
72292         * doc/posix-functions/getnameinfo.texi: Likewise.
72293         * doc/posix-functions/if_freenameindex.texi: Likewise.
72294         * doc/posix-functions/if_indextoname.texi: Likewise.
72295         * doc/posix-functions/if_nameindex.texi: Likewise.
72296         * doc/posix-functions/if_nametoindex.texi: Likewise.
72297         * doc/posix-functions/insque.texi: Likewise.
72298         * doc/posix-functions/linkat.texi: Likewise.
72299         * doc/posix-functions/llrint.texi: Likewise.
72300         * doc/posix-functions/llrintf.texi: Likewise.
72301         * doc/posix-functions/llrintl.texi: Likewise.
72302         * doc/posix-functions/lockf.texi: Likewise.
72303         * doc/posix-functions/lrintl.texi: Likewise.
72304         * doc/posix-functions/mkdirat.texi: Likewise.
72305         * doc/posix-functions/mkfifoat.texi: Likewise.
72306         * doc/posix-functions/mknodat.texi: Likewise.
72307         * doc/posix-functions/mq_close.texi: Likewise.
72308         * doc/posix-functions/mq_getattr.texi: Likewise.
72309         * doc/posix-functions/mq_notify.texi: Likewise.
72310         * doc/posix-functions/mq_open.texi: Likewise.
72311         * doc/posix-functions/mq_receive.texi: Likewise.
72312         * doc/posix-functions/mq_send.texi: Likewise.
72313         * doc/posix-functions/mq_setattr.texi: Likewise.
72314         * doc/posix-functions/mq_timedreceive.texi: Likewise.
72315         * doc/posix-functions/mq_timedsend.texi: Likewise.
72316         * doc/posix-functions/mq_unlink.texi: Likewise.
72317         * doc/posix-functions/open_memstream.texi: Likewise.
72318         * doc/posix-functions/openat.texi: Likewise.
72319         * doc/posix-functions/posix_fadvise.texi: Likewise.
72320         * doc/posix-functions/posix_fallocate.texi: Likewise.
72321         * doc/posix-functions/posix_madvise.texi: Likewise.
72322         * doc/posix-functions/posix_memalign.texi: Likewise.
72323         * doc/posix-functions/posix_openpt.texi: Likewise.
72324         * doc/posix-functions/readlinkat.texi: Likewise.
72325         * doc/posix-functions/remque.texi: Likewise.
72326         * doc/posix-functions/renameat.texi: Likewise.
72327         * doc/posix-functions/rintl.texi: Likewise.
72328         * doc/posix-functions/sem_unlink.texi: Likewise.
72329         * doc/posix-functions/shm_open.texi: Likewise.
72330         * doc/posix-functions/shm_unlink.texi: Likewise.
72331         * doc/posix-functions/signgam.texi: Likewise.
72332         * doc/posix-functions/sigset.texi: Likewise.
72333         * doc/posix-functions/stpcpy.texi: Likewise.
72334         * doc/posix-functions/stpncpy.texi: Likewise.
72335         * doc/posix-functions/strerror.texi: Likewise.
72336         * doc/posix-functions/strtod.texi: Likewise.
72337         * doc/posix-functions/symlinkat.texi: Likewise.
72338         * doc/posix-functions/unlinkat.texi: Likewise.
72339         * doc/posix-functions/utimensat.texi: Likewise.
72340         * doc/glibc-functions/bindresvport.texi: Likewise.
72341         * doc/glibc-functions/dn_expand.texi: Likewise.
72342         * doc/glibc-functions/exp10.texi: Likewise.
72343         * doc/glibc-functions/exp10f.texi: Likewise.
72344         * doc/glibc-functions/fgetxattr.texi: Likewise.
72345         * doc/glibc-functions/flistxattr.texi: Likewise.
72346         * doc/glibc-functions/fopencookie.texi: Likewise.
72347         * doc/glibc-functions/freeifaddrs.texi: Likewise.
72348         * doc/glibc-functions/fremovexattr.texi: Likewise.
72349         * doc/glibc-functions/fsetxattr.texi: Likewise.
72350         * doc/glibc-functions/getifaddrs.texi: Likewise.
72351         * doc/glibc-functions/getxattr.texi: Likewise.
72352         * doc/glibc-functions/lgetxattr.texi: Likewise.
72353         * doc/glibc-functions/listxattr.texi: Likewise.
72354         * doc/glibc-functions/llistxattr.texi: Likewise.
72355         * doc/glibc-functions/lremovexattr.texi: Likewise.
72356         * doc/glibc-functions/lsetxattr.texi: Likewise.
72357         * doc/glibc-functions/pow10.texi: Likewise.
72358         * doc/glibc-functions/pow10f.texi: Likewise.
72359         * doc/glibc-functions/rcmd_af.texi: Likewise.
72360         * doc/glibc-functions/removexattr.texi: Likewise.
72361         * doc/glibc-functions/res_init.texi: Likewise.
72362         * doc/glibc-functions/res_mkquery.texi: Likewise.
72363         * doc/glibc-functions/res_query.texi: Likewise.
72364         * doc/glibc-functions/res_querydomain.texi: Likewise.
72365         * doc/glibc-functions/res_send.texi: Likewise.
72366         * doc/glibc-functions/rresvport_af.texi: Likewise.
72367         * doc/glibc-functions/setxattr.texi: Likewise.
72368         * doc/glibc-functions/strcasestr.texi: Likewise.
72370 2008-12-15  Bruno Haible  <bruno@clisp.org>
72372         Fix compilation error on OSF/1 4.0.
72373         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
72374         <sys/time.h>, simply delegate to the system header.
72375         Reported by Daniel Richard G. <oss@teragram.com>.
72377 2008-12-15  Bruno Haible  <bruno@clisp.org>
72379         * doc/posix-functions/openat.texi: Mention the 'openat' module.
72380         * doc/posix-functions/fchmodat.texi: Likewise.
72381         * doc/posix-functions/fchownat.texi: Likewise.
72382         * doc/posix-functions/fdopendir.texi: Likewise.
72383         * doc/posix-functions/fstatat.texi: Likewise.
72384         * doc/posix-functions/mkdirat.texi: Likewise.
72385         * doc/posix-functions/unlinkat.texi: Likewise.
72387 2008-12-14  Bruno Haible  <bruno@clisp.org>
72389         Update doc for POSIX:2008.
72390         * doc/posix-functions/faccessat.texi: New file.
72391         * doc/posix-functions/fchmodat.texi: New file.
72392         * doc/posix-functions/fchownat.texi: New file.
72393         * doc/posix-functions/fdopendir.texi: New file.
72394         * doc/posix-functions/fstatat.texi: New file.
72395         * doc/posix-functions/futimens.texi: New file.
72396         * doc/posix-functions/linkat.texi: New file.
72397         * doc/posix-functions/mkdirat.texi: New file.
72398         * doc/posix-functions/mkfifoat.texi: New file.
72399         * doc/posix-functions/mknodat.texi: New file.
72400         * doc/posix-functions/open_wmemstream.texi: New file.
72401         * doc/posix-functions/openat.texi: New file.
72402         * doc/posix-functions/psiginfo.texi: New file.
72403         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
72404         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
72405         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
72406         * doc/posix-functions/readlinkat.texi: New file.
72407         * doc/posix-functions/renameat.texi: New file.
72408         * doc/posix-functions/strerror_l.texi: New file.
72409         * doc/posix-functions/symlinkat.texi: New file.
72410         * doc/posix-functions/unlinkat.texi: New file.
72411         * doc/posix-functions/utimensat.texi: New file.
72412         * doc/gnulib.texi (Function Substitutes): Add these subsections.
72414 2008-12-14  Bruno Haible  <bruno@clisp.org>
72416         Update doc for POSIX:2008.
72417         * doc/posix-functions/alphasort.texi: Renamed from
72418         doc/glibc-functions/alphasort.texi.
72419         * doc/posix-functions/dirfd.texi: Renamed from
72420         doc/glibc-functions/dirfd.texi.
72421         * doc/posix-functions/dprintf.texi: Renamed from
72422         doc/glibc-functions/dprintf.texi.
72423         * doc/posix-functions/duplocale.texi: Renamed from
72424         doc/glibc-functions/duplocale.texi.
72425         * doc/posix-functions/fexecve.texi: Renamed from
72426         doc/glibc-functions/fexecve.texi.
72427         * doc/posix-functions/fmemopen.texi: Renamed from
72428         doc/glibc-functions/fmemopen.texi.
72429         * doc/posix-functions/freelocale.texi: Renamed from
72430         doc/glibc-functions/freelocale.texi.
72431         * doc/posix-functions/getdate_err.texi: Renamed from
72432         doc/glibc-functions/getdate_err.texi.
72433         * doc/posix-functions/isalnum_l.texi: Renamed from
72434         doc/glibc-functions/isalnum_l.texi.
72435         * doc/posix-functions/isalpha_l.texi: Renamed from
72436         doc/glibc-functions/isalpha_l.texi.
72437         * doc/posix-functions/isblank_l.texi: Renamed from
72438         doc/glibc-functions/isblank_l.texi.
72439         * doc/posix-functions/iscntrl_l.texi: Renamed from
72440         doc/glibc-functions/iscntrl_l.texi.
72441         * doc/posix-functions/isdigit_l.texi: Renamed from
72442         doc/glibc-functions/isdigit_l.texi.
72443         * doc/posix-functions/isgraph_l.texi: Renamed from
72444         doc/glibc-functions/isgraph_l.texi.
72445         * doc/posix-functions/islower_l.texi: Renamed from
72446         doc/glibc-functions/islower_l.texi.
72447         * doc/posix-functions/isprint_l.texi: Renamed from
72448         doc/glibc-functions/isprint_l.texi.
72449         * doc/posix-functions/ispunct_l.texi: Renamed from
72450         doc/glibc-functions/ispunct_l.texi.
72451         * doc/posix-functions/isspace_l.texi: Renamed from
72452         doc/glibc-functions/isspace_l.texi.
72453         * doc/posix-functions/isupper_l.texi: Renamed from
72454         doc/glibc-functions/isupper_l.texi.
72455         * doc/posix-functions/iswalnum_l.texi: Renamed from
72456         doc/glibc-functions/iswalnum_l.texi.
72457         * doc/posix-functions/iswalpha_l.texi: Renamed from
72458         doc/glibc-functions/iswalpha_l.texi.
72459         * doc/posix-functions/iswblank_l.texi: Renamed from
72460         doc/glibc-functions/iswblank_l.texi.
72461         * doc/posix-functions/iswcntrl_l.texi: Renamed from
72462         doc/glibc-functions/iswcntrl_l.texi.
72463         * doc/posix-functions/iswctype_l.texi: Renamed from
72464         doc/glibc-functions/iswctype_l.texi.
72465         * doc/posix-functions/iswdigit_l.texi: Renamed from
72466         doc/glibc-functions/iswdigit_l.texi.
72467         * doc/posix-functions/iswgraph_l.texi: Renamed from
72468         doc/glibc-functions/iswgraph_l.texi.
72469         * doc/posix-functions/iswlower_l.texi: Renamed from
72470         doc/glibc-functions/iswlower_l.texi.
72471         * doc/posix-functions/iswprint_l.texi: Renamed from
72472         doc/glibc-functions/iswprint_l.texi.
72473         * doc/posix-functions/iswpunct_l.texi: Renamed from
72474         doc/glibc-functions/iswpunct_l.texi.
72475         * doc/posix-functions/iswspace_l.texi: Renamed from
72476         doc/glibc-functions/iswspace_l.texi.
72477         * doc/posix-functions/iswupper_l.texi: Renamed from
72478         doc/glibc-functions/iswupper_l.texi.
72479         * doc/posix-functions/iswxdigit_l.texi: Renamed from
72480         doc/glibc-functions/iswxdigit_l.texi.
72481         * doc/posix-functions/isxdigit_l.texi: Renamed from
72482         doc/glibc-functions/isxdigit_l.texi.
72483         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
72484         doc/glibc-functions/mbsnrtowcs.texi.
72485         * doc/posix-functions/mkdtemp.texi: Renamed from
72486         doc/glibc-functions/mkdtemp.texi.
72487         * doc/posix-functions/newlocale.texi: Renamed from
72488         doc/glibc-functions/newlocale.texi.
72489         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
72490         doc/glibc-functions/nl_langinfo_l.texi.
72491         * doc/posix-functions/open_memstream.texi: Renamed from
72492         doc/glibc-functions/open_memstream.texi.
72493         * doc/posix-functions/opterr.texi: Renamed from
72494         doc/glibc-functions/opterr.texi.
72495         * doc/posix-functions/optind.texi: Renamed from
72496         doc/glibc-functions/optind.texi.
72497         * doc/posix-functions/optopt.texi: Renamed from
72498         doc/glibc-functions/optopt.texi.
72499         * doc/posix-functions/psignal.texi: Renamed from
72500         doc/glibc-functions/psignal.texi.
72501         * doc/posix-functions/scandir.texi: Renamed from
72502         doc/glibc-functions/scandir.texi.
72503         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
72504         doc/glibc-functions/sched_get_priority_min.texi.
72505         * doc/posix-functions/signgam.texi: Renamed from
72506         doc/glibc-functions/signgam.texi.
72507         * doc/posix-functions/stpcpy.texi: Renamed from
72508         doc/glibc-functions/stpcpy.texi.
72509         * doc/posix-functions/stpncpy.texi: Renamed from
72510         doc/glibc-functions/stpncpy.texi.
72511         * doc/posix-functions/strcasecmp_l.texi: Renamed from
72512         doc/glibc-functions/strcasecmp_l.texi.
72513         * doc/posix-functions/strcoll_l.texi: Renamed from
72514         doc/glibc-functions/strcoll_l.texi.
72515         * doc/posix-functions/strfmon_l.texi: Renamed from
72516         doc/glibc-functions/strfmon_l.texi.
72517         * doc/posix-functions/strftime_l.texi: Renamed from
72518         doc/glibc-functions/strftime_l.texi.
72519         * doc/posix-functions/strncasecmp_l.texi: Renamed from
72520         doc/glibc-functions/strncasecmp_l.texi.
72521         * doc/posix-functions/strndup.texi: Renamed from
72522         doc/glibc-functions/strndup.texi.
72523         * doc/posix-functions/strnlen.texi: Renamed from
72524         doc/glibc-functions/strnlen.texi.
72525         * doc/posix-functions/strsignal.texi: Renamed from
72526         doc/glibc-functions/strsignal.texi.
72527         * doc/posix-functions/strxfrm_l.texi: Renamed from
72528         doc/glibc-functions/strxfrm_l.texi.
72529         * doc/posix-functions/timer_gettime.texi: Renamed from
72530         doc/glibc-functions/timer_gettime.texi.
72531         * doc/posix-functions/tolower_l.texi: Renamed from
72532         doc/glibc-functions/tolower_l.texi.
72533         * doc/posix-functions/toupper_l.texi: Renamed from
72534         doc/glibc-functions/toupper_l.texi.
72535         * doc/posix-functions/towctrans_l.texi: Renamed from
72536         doc/glibc-functions/towctrans_l.texi.
72537         * doc/posix-functions/towlower_l.texi: Renamed from
72538         doc/glibc-functions/towlower_l.texi.
72539         * doc/posix-functions/towupper_l.texi: Renamed from
72540         doc/glibc-functions/towupper_l.texi.
72541         * doc/posix-functions/uselocale.texi: Renamed from
72542         doc/glibc-functions/uselocale.texi.
72543         * doc/posix-functions/vdprintf.texi: Renamed from
72544         doc/glibc-functions/vdprintf.texi.
72545         * doc/posix-functions/wcpcpy.texi:
72546         Renamed from doc/glibc-functions/wcpcpy.texi.
72547         * doc/posix-functions/wcpncpy.texi: Renamed from
72548         doc/glibc-functions/wcpncpy.texi.
72549         * doc/posix-functions/wcscasecmp.texi: Renamed from
72550         doc/glibc-functions/wcscasecmp.texi.
72551         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
72552         doc/glibc-functions/wcscasecmp_l.texi.
72553         * doc/posix-functions/wcscoll_l.texi: Renamed from
72554         doc/glibc-functions/wcscoll_l.texi.
72555         * doc/posix-functions/wcsdup.texi: Renamed from
72556         doc/glibc-functions/wcsdup.texi.
72557         * doc/posix-functions/wcsncasecmp.texi: Renamed from
72558         doc/glibc-functions/wcsncasecmp.texi.
72559         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
72560         doc/glibc-functions/wcsncasecmp_l.texi.
72561         * doc/posix-functions/wcsnlen.texi: Renamed from
72562         doc/glibc-functions/wcsnlen.texi.
72563         * doc/posix-functions/wcsnrtombs.texi: Renamed from
72564         doc/glibc-functions/wcsnrtombs.texi.
72565         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
72566         doc/glibc-functions/wcsxfrm_l.texi.
72567         * doc/posix-functions/wctrans_l.texi: Renamed from
72568         doc/glibc-functions/wctrans_l.texi.
72569         * doc/posix-functions/wctype_l.texi: Renamed from
72570         doc/glibc-functions/wctype_l.texi.
72571         * doc/gnulib.texi (Function Substitutes): Add these subsections.
72572         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
72573         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
72574         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
72575         these subsections.
72576         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
72577         Remove sections.
72579 2008-12-14  Bruno Haible  <bruno@clisp.org>
72581         Update doc for POSIX:2008.
72582         * doc/posix-functions/*.texi: Update URL of POSIX specification.
72584 2008-12-14  Bruno Haible  <bruno@clisp.org>
72586         Update doc for POSIX:2008.
72587         * doc/pastposix-functions/bcmp.texi: Renamed from
72588         doc/posix-functions/bcmp.texi.
72589         * doc/pastposix-functions/bcopy.texi: Renamed from
72590         doc/posix-functions/bcopy.texi.
72591         * doc/pastposix-functions/bsd_signal.texi: Renamed from
72592         doc/posix-functions/bsd_signal.texi.
72593         * doc/pastposix-functions/bzero.texi: Renamed from
72594         doc/posix-functions/bzero.texi.
72595         * doc/pastposix-functions/ecvt.texi: Renamed from
72596         doc/posix-functions/ecvt.texi.
72597         * doc/pastposix-functions/fcvt.texi: Renamed from
72598         doc/posix-functions/fcvt.texi.
72599         * doc/pastposix-functions/ftime.texi: Renamed from
72600         doc/posix-functions/ftime.texi.
72601         * doc/pastposix-functions/gcvt.texi: Renamed from
72602         doc/posix-functions/gcvt.texi.
72603         * doc/pastposix-functions/getcontext.texi: Renamed from
72604         doc/posix-functions/getcontext.texi.
72605         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
72606         doc/posix-functions/gethostbyaddr.texi.
72607         * doc/pastposix-functions/gethostbyname.texi: Renamed from
72608         doc/posix-functions/gethostbyname.texi.
72609         * doc/pastposix-functions/getwd.texi: Renamed from
72610         doc/posix-functions/getwd.texi.
72611         * doc/pastposix-functions/h_errno.texi: Renamed from
72612         doc/posix-functions/h_errno.texi.
72613         * doc/pastposix-functions/index.texi: Renamed from
72614         doc/posix-functions/index.texi.
72615         * doc/pastposix-functions/makecontext.texi: Renamed from
72616         doc/posix-functions/makecontext.texi.
72617         * doc/pastposix-functions/mktemp.texi: Renamed from
72618         doc/posix-functions/mktemp.texi.
72619         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
72620         doc/posix-functions/pthread_attr_getstackaddr.texi.
72621         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
72622         doc/posix-functions/pthread_attr_setstackaddr.texi.
72623         * doc/pastposix-functions/rindex.texi: Renamed from
72624         doc/posix-functions/rindex.texi.
72625         * doc/pastposix-functions/scalb.texi: Renamed from
72626         doc/posix-functions/scalb.texi.
72627         * doc/pastposix-functions/setcontext.texi: Renamed from
72628         doc/posix-functions/setcontext.texi.
72629         * doc/pastposix-functions/swapcontext.texi: Renamed from
72630         doc/posix-functions/swapcontext.texi.
72631         * doc/pastposix-functions/ualarm.texi: Renamed from
72632         doc/posix-functions/ualarm.texi.
72633         * doc/pastposix-functions/usleep.texi: Renamed from
72634         doc/posix-functions/usleep.texi.
72635         * doc/pastposix-functions/vfork.texi: Renamed from
72636         doc/posix-functions/vfork.texi.
72637         * doc/pastposix-functions/wcswcs.texi: Renamed from
72638         doc/posix-functions/wcswcs.texi.
72639         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
72640         (Function Substitutes): Update.
72642 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72644         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
72645         m4/strerror.m4.
72647 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72648             Bruno Haible  <bruno@clisp.org>
72650         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
72652 2008-12-13  Bruno Haible  <bruno@clisp.org>
72654         * modules/strtoull (Depends-on): Remove unistd.
72656 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72658         * modules/strtoull (Depends-on): Add stdlib.
72660 2008-12-11  Simon Josefsson  <simon@josefsson.org>
72662         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
72664 2008-12-10  Jim Meyering  <meyering@redhat.com>
72666         gl_ASSERT: don't say assertions are disabled when they're not
72667         * m4/assert.m4 (gl_ASSERT): Do not make configure report
72668         "checking whether to enable assertions... no", when they are in
72669         fact enabled.  This is solely a bug in the output of configure.
72670         In spite of saying "no", NDEBUG was not defined in that case.
72671         Also, as noted by Eric Blake, leave assertions enabled upon
72672         --enable-assert=INVALID.
72674 2008-12-10  Bruno Haible  <bruno@clisp.org>
72676         Change MODULES.html to refer to POSIX:2008 where possible.
72677         * MODULES.html.sh (POSIX2008_URL): New variable.
72678         (posix_headers): Remove sys/timeb, ucontext.
72679         (posix2001_headers): New variable.
72680         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
72681         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
72682         index, makecontext, mktemp, pthread_attr_getstackaddr,
72683         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
72684         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
72685         (posix2001_functions): New variable.
72686         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
72687         otherwise.
72689 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72691         add missing include to parse-duration.c
72692         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
72693         * modules/parse-duration (Depends-on): Add xalloc.
72695         fix sed script reading maint.mk
72696         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
72697         (syntax-check-rules): Use it.
72699 2008-12-09  Bruno Haible  <bruno@clisp.org>
72701         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
72702         MacOS X 10.4/PowerPC.
72703         Reported by Simon Josefsson.
72705 2008-12-08  Jim Meyering  <meyering@redhat.com>
72707         work around mingw's lack of some S_IF definitions
72708         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
72709         Reported by Simon Josefsson.
72711 2008-12-08  Bruno Haible  <bruno@clisp.org>
72713         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
72714         applied to variables. Needed on MacOS X 10.4/PowerPC.
72715         Reported by Simon Josefsson.
72717 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
72718         and Eric Blake  <ebb9@byu.net>
72720         assert: honor --enable-assert
72721         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
72722         order to honor --enable-assert, rather than treating it as a
72723         synonym for --disable-assert.
72725 2008-12-08  Jim Meyering  <meyering@redhat.com>
72727         * lib/posixtm.c: Remove now-useless declaration of mktime.
72729         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
72731 2008-12-07  Bruno Haible  <bruno@clisp.org>
72733         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
72734         test_once): Mark functions as static.
72735         * tests/test-tls.c (test_tls): Likewise.
72737 2008-12-07  Bruno Haible  <bruno@clisp.org>
72739         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
72740         iconv_register_autodetect.
72742 2008-12-07  Jim Meyering  <meyering@redhat.com>
72744         posixtm.c: avoid a warning
72745         * lib/posixtm.c (posixtime): Don't initialize tm0.
72746         It's no longer needed to placate gcc4's -Wuninitialized,
72747         and the attempt to placate would elicit a new warning.
72749         unicodeio.c: mark unused parameters
72750         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
72751         (fallback_failure_callback): Likewise.
72753 2008-12-07  Bruno Haible  <bruno@clisp.org>
72755         * gnulib-tool (func_create_testdir): When building the tests
72756         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
72757         Reported by Simon Josefsson.
72759 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72761         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
72763 2008-12-06  Bruno Haible  <bruno@clisp.org>
72765         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
72766         Suggested by Eric Blake.
72768 2008-12-06  Bruno Haible  <bruno@clisp.org>
72770         Fix a c-stack test failure on MacOS X.
72771         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
72772         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
72773         handler for SIGBUS as well.
72774         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
72775         install a signal handler for SIGBUS as well.
72776         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
72778 2008-12-06  Bruno Haible  <bruno@clisp.org>
72780         Advocacy documentation.
72781         * doc/gnulib-intro.texi (Benefits): New section.
72782         * doc/gnulib.texi: Update.
72784 2008-12-06  Bruno Haible  <bruno@clisp.org>
72786         Document the 'manywarnings' module.
72787         * doc/manywarnings.texi: New file.
72788         * doc/gnulib.texi: Include it.
72790 2008-12-05  Eric Blake  <ebb9@byu.net>
72792         tests: silence some gcc warnings
72793         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
72794         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
72795         type mismatches.
72797 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72798             Bruno Haible  <bruno@clisp.org>
72800         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
72802 2008-11-29  Jim Meyering  <meyering@redhat.com>
72804         unicodeio.c: mark unused parameters
72805         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
72806         (fallback_failure_callback): Likewise.
72808         fts: fix a thinko
72809         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
72810         (set_stat_type): Return S_IF*-valued "type" directly.
72811         Prompted by James Youngman's spotting a related bug.
72812         Confirmed by further testing through find.
72814         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
72815         * lib/fts.c (D_TYPE): Define.
72816         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
72817         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
72818         (s_ifmt_shift_bits): New function.
72819         (set_stat_type): New function.
72820         (fts_build): When not calling fts_stat, call set_stat_type
72821         to propagate dirent.d_type info to fts_read caller.
72822         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
72823         fts_statp->st_mode type information may be valid.
72825 2008-11-28  Simon Josefsson  <simon@josefsson.org>
72827         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
72828         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
72829         <sds@gnu.org>.
72831 2008-11-20  Bruno Haible  <bruno@clisp.org>
72833         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
72834         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
72835         INCLUDE_NEXT.
72836         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
72837         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
72838         * modules/math (Makefile.am): Substitute
72839         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
72840         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
72842 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
72843             Bruno Haible  <bruno@clisp.org>
72845         * lib/stdint.in.h: Define all type macros so that their expansion is
72846         a single typedef'ed token. Fixes a compilation failure in Boost which
72847         does "using ::int8_t;".
72849 2008-11-18  Simon Josefsson  <simon@josefsson.org>
72851         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
72852         gl_MANYWARN_ALL_GCC.
72853         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
72854         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
72855         * modules/manywarnings: New file.
72856         * MODULES.html.sh: Mention manywarnings module.
72858 2008-11-18  Bruno Haible  <bruno@clisp.org>
72860         * doc/gnulib-tool.texi (Unit tests): New section.
72862 2008-11-18  Simon Josefsson  <simon@josefsson.org>
72864         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
72865         paths like 'lib/po/foo.po'.
72867 2008-11-17  Simon Josefsson  <simon@josefsson.org>
72869         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
72870         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
72872 2008-11-17  Simon Josefsson  <simon@josefsson.org>
72874         * m4/warnings.m4: Use CPPFLAGS to really check whether the
72875         parameter works.
72877 2008-11-17  Simon Josefsson  <simon@josefsson.org>
72879         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
72881 2008-11-17  Bruce Korb  <bkorb@gnu.org>
72883         * modules/parse-duration-tests: New file.
72884         * tests/test-parse-duration.sh: New file.
72885         * tests/test-parse-duration.c: New file.
72887         New module 'parse-duration'.
72888         * lib/parse-duration.h: New file.
72889         * lib/parse-duration.c: New file.
72890         * modules/parse-duration: New file.
72892 2008-11-17  Bruno Haible  <bruno@clisp.org>
72894         * tests/test-select-out.sh: Comment out the first pipe test.
72895         Reported by Simon Josefsson.
72897 2008-11-17  Bruno Haible  <bruno@clisp.org>
72899         * modules/getaddrinfo (Depends-on): Add servent, hostent.
72900         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
72901         gl_HOSTENT.
72903 2008-11-17  Bruno Haible  <bruno@clisp.org>
72905         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
72906         -lnetwork and -lnet. Needed for Haiku and BeOS.
72908 2008-11-16  Bruno Haible  <bruno@clisp.org>
72910         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
72912 2008-11-16  Bruno Haible  <bruno@clisp.org>
72914         Avoid test failure on Haiku.
72915         * tests/test-fsync.c: Include <errno.h>.
72916         (main): Don't require that fsync (0) fails.
72918 2008-11-15  Bruno Haible  <bruno@clisp.org>
72920         New module 'hostent'.
72921         * modules/hostent: New file.
72922         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
72924 2008-11-15  Bruno Haible  <bruno@clisp.org>
72926         New module 'servent'.
72927         * modules/servent: New file.
72928         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
72930 2008-11-15  Bruno Haible  <bruno@clisp.org>
72932         Avoid generating same test program with two different rules.
72933         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
72934         test-frexp to test-frexp-nolibm.
72935         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
72936         test-frexpl to test-frexpl-nolibm.
72938 2008-11-15  Bruno Haible  <bruno@clisp.org>
72940         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
72941         $(FREXPL_LIBM).
72943 2008-11-15  Bruno Haible  <bruno@clisp.org>
72945         * lib/netdb.in.h: Activate the definitions also when the system's
72946         <netdb.h> has 'struct addrinfo'.
72947         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
72948         EAI_OVERFLOW or AI_NUMERICSERV.
72949         * doc/posix-headers/netdb.texi: Document the problem.
72951 2008-11-15  Bruno Haible  <bruno@clisp.org>
72953         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
72955         Make the 'sched' module work on platforms where <sched.h> exists but
72956         is incomplete (such as Haiku).
72957         * lib/sched.in.h; Include the system's <sched.h> if it exists.
72958         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
72959         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
72960         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
72961         HAVE_STRUCT_SCHED_PARAM.
72962         * modules/sched (Depends-on): Add include_next.
72963         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
72964         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
72965         * doc/posix-headers/sched.texi: Document the issue.
72967 2008-11-13  Jim Meyering  <meyering@redhat.com>
72969         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
72970         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
72971         test would fail due to the difference in the Report bugs to ...
72972         line.  The expected address is empty, "<>", while the actual
72973         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
72975 2008-11-12  Bruno Haible  <bruno@clisp.org>
72977         lstat: don't compile lstat.c on systems lacking lstat
72978         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
72979         which don't have lstat; this is handled by lib/sys_stat.in.h already.
72980         Reported by Daniel P. Berrange via Jim Meyering.
72982 2008-11-12  Jim Meyering  <meyering@redhat.com>
72984         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
72986 2008-11-12  Simon Josefsson  <simon@josefsson.org>
72988         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
72989         instead.
72991 2008-11-12  Bruno Haible  <bruno@clisp.org>
72993         * lib/unicodeio.c: Include unistr.h.
72994         (utf8_wctomb): Remove function.
72995         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
72997 2008-11-12  Simon Josefsson  <simon@josefsson.org>
72999         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
73000         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
73001         <bruno@clisp.org>.
73002         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
73004 2008-11-12  Simon Josefsson  <simon@josefsson.org>
73006         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
73007         * doc/gnulib.texi: Add section for warnings.
73009 2008-11-11  Bruno Haible  <bruno@clisp.org>
73011         * lib/sockets.h: Add a comment.
73013 2008-11-11  Karl Berry  <karl@gnu.org>
73015         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
73017 2008-11-11  Eric Blake  <ebb9@byu.net>
73019         fdl.texi: avoid git symlinks
73020         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
73022 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
73024         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
73026 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
73028         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
73029         (gl_WARN_ADD): Substitute $2 if literal.
73031 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
73033         * m4/warning.m4: Remove.
73035 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
73037         * m4/warnings.m4: Almost complete rewrite. :-)
73039 2008-11-10  Simon Josefsson  <simon@josefsson.org>
73041         * modules/warnings: New module.
73042         * m4/warnings.m4: New file.
73043         * MODULES.html.sh: Mention warnings module.
73044         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
73045         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73047 2008-11-10  Eric Blake  <ebb9@byu.net>
73049         fdl.texi: make a symlink to the latest version
73050         * doc/standards.texi: Revert today's earlier change.
73051         * doc/fdl-1.2.texi: Rename from old fdl.texi...
73052         * doc/fdl.texi: ...and replace this with a symlink to the newer
73053         fdl-1.3.texi.
73055 2008-11-10  Bruno Haible  <bruno@clisp.org>
73057         * tests/test-select-fd.c (main): Accept the result file name as fourth
73058         argument.
73059         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
73060         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
73062 2008-11-10  Bruno Haible  <bruno@clisp.org>
73064         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
73065         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
73066         as autoconf-substituted macros.
73067         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
73068         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
73069         gl_NETDB_H_DEFAULTS. Set these variables.
73070         * modules/netdb (Makefile.am): Substitute these variables.
73072 2008-11-10  Eric Blake  <ebb9@byu.net>
73074         standards.texi: include correct file for FDL 1.3
73075         * doc/standards.texi (GNU Free Documentation License): Change
73076         include file to pull in FDL 1.3, not 1.2.
73078         fdl.texi: revert accidental change to license
73079         * doc/fdl.texi: This is FDL 1.2, not 1.3.
73081 2008-11-10  Bruno Haible  <bruno@clisp.org>
73083         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
73084         cross-compiling guesses also when the native compile gives no result.
73086 2008-11-10  Bruno Haible  <bruno@clisp.org>
73088         * lib/spawni.c (__spawni): Force variable into the stack.
73090 2008-11-10  Bruno Haible  <bruno@clisp.org>
73092         Add support for Haiku.
73093         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
73094         glibc and BeOS, but also on Haiku.
73095         * lib/fpurge.c (fpurge): Likewise.
73096         * lib/freadable.c (freadable): Likewise.
73097         * lib/freadahead.c (freadahead): Likewise.
73098         * lib/freading.c (freading): Likewise.
73099         * lib/freadptr.c (freadptr): Likewise.
73100         * lib/freadseek.c (freadptrinc): Likewise.
73101         * lib/fseeko.c (rpl_fseeko): Likewise.
73102         * lib/fseterr.c (fseterr): Likewise.
73103         * lib/fwritable.c (fwritable): Likewise.
73104         * lib/fwriting.c (fwriting): Likewise.
73105         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
73107 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
73109         * lib/config.charset: Treat Haiku like BeOS.
73111 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
73113         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
73114         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
73116 2008-11-08  Bruno Haible  <bruno@clisp.org>
73118         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
73119         AC_CACHE_CHECK.
73121 2008-11-08  Bruno Haible  <bruno@clisp.org>
73123         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
73125 2008-11-08  Bruno Haible  <bruno@clisp.org>
73127         * tests/test-select-fd.c: New file.
73128         * tests/test-select-in.sh: New file.
73129         * tests/test-select-out.sh: New file.
73130         * tests/test-select-stdin.c: New file.
73131         * modules/select-tests (Files): Add the new files.
73132         (Depends-on): Add gettimeofday.
73133         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
73134         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
73135         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
73137 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
73138             Bruno Haible  <bruno@clisp.org>
73140         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
73142 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
73144         * build-aux/pmccabe2html: Added support for C++ source files.
73146 2008-11-05  Ben Pfaff  <blp@gnu.org>
73148         Fix lib/close.c build on Windows.
73149         * modules/close (Files): Add lib/w32sock.h.
73151 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
73153         Accept Bison's NEWS format.
73154         * build-aux/announce-gen (print_news_deltas): Tweak
73155         $re_prefix.
73157 2008-11-04  Bruno Haible  <bruno@clisp.org>
73159         * modules/random_r (Maintainer): Add glibc.
73161 2008-11-04  Simon Josefsson  <simon@josefsson.org>
73163         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
73164         by karl@freefriends.org (Karl Berry).
73165         * doc/alloca.texi: Likewise.
73166         * doc/c-ctype.texi: Likewise.
73167         * doc/c-strcase.texi: Likewise.
73168         * doc/c-strcaseeq.texi: Likewise.
73169         * doc/c-strcasestr.texi: Likewise.
73170         * doc/c-strstr.texi: Likewise.
73171         * doc/c-strtod.texi: Likewise.
73172         * doc/c-strtold.texi: Likewise.
73173         * doc/ctime.texi: Likewise.
73174         * doc/error.texi: Likewise.
73175         * doc/fdl.texi: Likewise.
73176         * doc/gcd.texi: Likewise.
73177         * doc/getdate.texi: Likewise.
73178         * doc/gnulib-intro.texi: Likewise.
73179         * doc/gnulib-tool.texi: Likewise.
73180         * doc/gnulib.texi: Likewise.
73181         * doc/inet_ntoa.texi: Likewise.
73182         * doc/maintain.texi: Likewise.
73183         * doc/make-stds.texi: Likewise.
73184         * doc/quote.texi: Likewise.
73185         * doc/regexprops-generic.texi: Likewise.
73186         * doc/standards.texi: Likewise.
73187         * doc/verify.texi: Likewise.
73188         * doc/visibility.texi: Likewise.
73189         * doc/gnulib.texi (GNU Free Documentation License): Include
73190         fdl-1.3.texi instead of fdl.texi.
73192 2008-11-04  Simon Josefsson  <simon@josefsson.org>
73194         * doc/fdl-1.3.texi: New file, from
73195         <http://www.gnu.org/licenses/fdl-1.3.texi>.
73196         * modules/fdl-1.3: Add.
73197         * MODULES.html.sh: Add fdl-1.3.
73199 2008-11-03  Bruno Haible  <bruno@clisp.org>
73201         Make determination of absolute name of header file work with AIX xlc.
73202         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
73203         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
73204         preprocessing.
73205         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
73206         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
73208 2008-11-03  Simon Josefsson  <simon@josefsson.org>
73210         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
73211         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
73212         <ludo@gnu.org>.
73214 2008-11-02  Bruno Haible  <bruno@clisp.org>
73216         Mark 'strpbrk' obsolete.
73217         * modules/strpbrk (Status, Notice): New sections.
73218         * modules/strtok_r (Depends-on): Add strpbrk.
73220 2008-11-02  Bruno Haible  <bruno@clisp.org>
73222         Mark 'strdup' obsolete.
73223         * modules/strdup (Status, Notice): New sections.
73224         * modules/findprog (Depends-on): Add strdup.
73225         * modules/getaddrinfo (Depends-on): Likewise.
73226         * modules/localename (Depends-on): Likewise.
73227         * modules/relocatable-lib (Depends-on): Likewise.
73228         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
73229         * modules/relocatable-prog (Depends-on): Likewise.
73230         * modules/trim (Depends-on): Likewise.
73231         * modules/unictype/gen-ctype (Depends-on): Likewise.
73232         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
73234 2008-11-02  Bruno Haible  <bruno@clisp.org>
73236         Mark 'strcspn' obsolete.
73237         * modules/strcspn (Status, Notice): New sections.
73239 2008-11-02  Bruno Haible  <bruno@clisp.org>
73241         Mark 'rmdir' obsolete.
73242         * modules/rmdir (Status, Notice): New sections.
73243         * modules/clean-temp (Depends-on): Add rmdir.
73244         * modules/openat (Depends-on): Likewise.
73246 2008-11-02  Bruno Haible  <bruno@clisp.org>
73248         Mark 'raise' obsolete.
73249         * modules/raise (Status, Notice): New sections.
73250         (Include): Specify <signal.h>.
73251         * modules/stdio (Depends-on): Add raise.
73252         * modules/write (Depends-on): Likewise.
73254 2008-11-02  Bruno Haible  <bruno@clisp.org>
73256         Mark 'memset' obsolete.
73257         * modules/memset (Status, Notice): New sections.
73259 2008-11-02  Bruno Haible  <bruno@clisp.org>
73261         Mark 'memmove' obsolete.
73262         * modules/memmove (Status, Notice): New sections.
73263         * modules/argp (Depends-on): Add memmove.
73264         * modules/argz (Depends-on): Likewise.
73265         * modules/canonicalize (Depends-on): Likewise.
73266         * modules/canonicalize-lgpl (Depends-on): Likewise.
73267         * modules/fts (Depends-on): Likewise.
73268         * modules/getcwd (Depends-on): Likewise.
73269         * modules/human (Depends-on): Likewise.
73270         * modules/regex (Depends-on): Likewise.
73271         * modules/striconveh (Depends-on): Likewise.
73272         * modules/trim (Depends-on): Likewise.
73273         * modules/unistr/u8-move (Depends-on): Likewise.
73274         * modules/unistr/u16-move (Depends-on): Likewise.
73275         * modules/unistr/u32-move (Depends-on): Likewise.
73277 2008-11-02  Bruno Haible  <bruno@clisp.org>
73279         Mark 'memcpy' obsolete.
73280         * modules/memcpy (Status, Notice): New sections.
73282 2008-11-02  Bruno Haible  <bruno@clisp.org>
73284         Mark 'memcmp' obsolete.
73285         * modules/memcmp (Status, Notice): New sections.
73286         * modules/argmatch (Depends-on): Add memchr.
73287         * modules/backupfile (Depends-on): Likewise.
73288         * modules/c-strcasestr (Depends-on): Likewise.
73289         * modules/crypto/des (Depends-on): Likewise.
73290         * modules/csharpcomp (Depends-on): Likewise.
73291         * modules/fnmatch (Depends-on): Likewise.
73292         * modules/git-merge-changelog (Depends-on): Likewise.
73293         * modules/isnand (Depends-on): Likewise.
73294         * modules/isnand-nolibm (Depends-on): Likewise.
73295         * modules/isnanf (Depends-on): Likewise.
73296         * modules/isnanf-nolibm (Depends-on): Likewise.
73297         * modules/isnanl (Depends-on): Likewise.
73298         * modules/isnanl-nolibm (Depends-on): Likewise.
73299         * modules/mbchar (Depends-on): Likewise.
73300         * modules/memcoll (Depends-on): Likewise.
73301         * modules/quotearg (Depends-on): Likewise.
73302         * modules/regex (Depends-on): Likewise.
73303         * modules/relocatable-prog (Depends-on): Likewise.
73304         * modules/same (Depends-on): Likewise.
73305         * modules/signbit (Depends-on): Likewise.
73306         * modules/strcasestr-simple (Depends-on): Likewise.
73307         * modules/unictype/gen-ctype (Depends-on): Likewise.
73308         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
73309         * modules/uniname/uniname (Depends-on): Likewise.
73310         * modules/unistr/u8-cmp (Depends-on): Likewise.
73312 2008-11-02  Bruno Haible  <bruno@clisp.org>
73314         Mark 'memchr' obsolete.
73315         * modules/memchr (Status, Notice): New sections.
73316         * modules/argp (Depends-on): Add memchr.
73317         * modules/base64 (Depends-on): Likewise.
73318         * modules/c-strcasestr (Depends-on): Likewise.
73319         * modules/chdir-long (Depends-on): Likewise.
73320         * modules/fnmatch (Depends-on): Likewise.
73321         * modules/getsubopt (Depends-on): Likewise.
73322         * modules/git-merge-changelog (Depends-on): Likewise.
73323         * modules/glob (Depends-on): Likewise.
73324         * modules/strcasestr-simple (Depends-on): Likewise.
73325         * modules/strnlen (Depends-on): Likewise.
73327 2008-11-02  Bruno Haible  <bruno@clisp.org>
73329         Mark 'atexit' obsolete.
73330         * modules/atexit (Status, Notice): New sections.
73331         * modules/chdir-long (Depends-on): Add atexit.
73332         * modules/wait-process (Depends-on): Likewise.
73334 2008-11-02  Bruno Haible  <bruno@clisp.org>
73336         * gnulib-tool: New option --with-obsolete.
73337         (func_usage): Document it.
73338         (func_modules_transitive_closure): Drop obsolete dependencies if
73339         incobsolete is not true.
73340         (func_import): Read and save the incobsolete variable to the cache.
73342 2008-11-02  Bruno Haible  <bruno@clisp.org>
73344         * modules/TEMPLATE-EXTENDED: New field 'Status'.
73345         * gnulib-tool: New option --extract-status.
73346         (func_usage): Document it.
73347         (sed_extract_prog): Recognize it.
73348         (func_get_status): New function.
73350 2008-10-30  Simon Josefsson  <simon@josefsson.org>
73352         * modules/sockets (License): Change from LGPL to LGPLv2+.
73354 2008-10-28  Simon Josefsson  <simon@josefsson.org>
73356         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
73358 2008-10-28  Simon Josefsson  <simon@josefsson.org>
73360         * MODULES.html.sh (Support for systems lacking POSIX:2001):
73361         Mention times and sys_times.
73362         * modules/sys_times, modules/sys_times-tests: New modules.
73363         * modules/times, modules/times-tests: Likewise
73364         * m4/sys_times_h.m4: New file.
73365         * lib/sys_times.in.h: Likewise
73366         * lib/times.c: Likewise.
73367         * tests/test-sys_times.c: Likewise.
73368         * tests/test-times.c: Likewise.
73369         * doc/posix-headers/sys_times.texi: Update.
73370         * doc/posix-functions/times.texi: Update.
73372 2008-10-28  Jim Meyering  <meyering@redhat.com>
73374         * modules/tempname (Depends-on): Add lstat.
73376         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
73378 2008-10-28  Simon Josefsson  <simon@josefsson.org>
73380         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
73381         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
73382         using idiom used elsewhere in gnulib.
73384 2008-10-27  Jim Meyering  <meyering@redhat.com>
73386         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
73388 2008-10-27  Simon Josefsson  <simon@josefsson.org>
73390         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
73391         TESTS_ENVIRONMENT, for shell scripts that needs to call built
73392         programs.
73393         * tests/test-argp-2.sh: Use $EXEEXT when needed.
73395 2008-10-27  Simon Josefsson  <simon@josefsson.org>
73397         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
73399 2008-10-27  Bruno Haible  <bruno@clisp.org>
73401         * tests/test-lstat.c: Include <stdio.h>.
73403 2008-10-27  Simon Josefsson  <simon@josefsson.org>
73405         * modules/lstat-tests: New module.
73406         * tests/test-lstat.c: New file.
73408 2008-10-26  Jim Meyering  <meyering@redhat.com>
73410         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
73412 2008-10-26  Simon Josefsson  <simon@josefsson.org>
73413             Bruno Haible  <bruno@clisp.org>
73415         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
73416         * modules/configmake (Include): Add a note that the include must come
73417         after all system headers.
73418         * lib/javaversion.c: Include configmake.h after all other includes.
73420 2008-10-26  Bruno Haible  <bruno@clisp.org>
73422         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
73423         HAVE_STRUCT_RANDOM_DATA to 1.
73424         (gl_STDLIB_H): Simplify.
73426 2008-10-26  Simon Josefsson  <simon@josefsson.org>
73428         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
73429         substitute HAVE_STRUCT_RANDOM_DATA.
73430         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
73431         random_data.
73432         * modules/stdlib (Makefile.am): Substitute
73433         HAVE_STRUCT_RANDOM_DATA.
73435 2008-10-26  Simon Josefsson  <simon@josefsson.org>
73437         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
73438         * doc/gnulib-intro.texi (Copyright): Likewise.
73440 2008-10-26  Simon Josefsson  <simon@josefsson.org>
73442         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
73443         findings.
73445 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
73446             Bruno Haible  <bruno@clisp.org>
73448         * lib/unistd.in.h: Include <winsock2.h>.
73449         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
73450         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
73451         Provide dummy declarations.
73452         (gethostname): Override.
73453         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
73454         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
73455         gl_PREREQ_SYS_H_WINSOCK2.
73456         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
73457         * doc/posix-functions/gethostname.texi: More details.
73459 2008-10-25  Bruno Haible  <bruno@clisp.org>
73461         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
73462         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
73463         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
73465         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
73466         here ...
73467         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
73468         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
73469         gl_UNISTD_H_DEFAULTS.
73471 2008-10-25  Eric Blake  <ebb9@byu.net>
73473         signbit: avoid spurious compiler failure
73474         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
73475         declarations inside function.
73477 2008-10-24  Simon Josefsson  <simon@josefsson.org>
73478             Bruno Haible  <bruno@clisp.org>
73480         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
73481         * modules/random_r (Depends-on): Add stdint.
73483 2008-10-24  Bruno Haible  <bruno@clisp.org>
73485         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
73486         Eggert.
73487         * modules/strerror (License): Likewise.
73489 2008-10-24  Jim Meyering  <meyering@redhat.com>
73491         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
73492         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
73494 2008-10-24  Eric Blake  <ebb9@byu.net>
73496         getgroups: fix compilation when getgroups is available
73497         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
73498         but with <config.h> override of getgroups disabled.
73500 2008-10-24  Simon Josefsson  <simon@josefsson.org>
73502         * doc/gnulib.texi (Header files): Add note about C++ problems.
73503         Explained by Bruno Haible <bruno@clisp.org>.
73505 2008-10-23  Bruno Haible  <bruno@clisp.org>
73507         Define a dummy SA_NODEFER macro on Interix.
73508         * lib/signal.in.h (SA_NODEFER): Define fallback.
73509         Reported by Aleksey Cheusov <cheusov@tut.by> via
73510         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
73512 2008-10-23  Bruno Haible  <bruno@clisp.org>
73514         * modules/freadahead (License): Change to LGPLv2+.
73515         Suggested by Simon Josefsson.
73517 2008-10-23  Jim Meyering  <meyering@redhat.com>
73519         random_r: new module
73520         * modules/random_r: New file.
73521         * m4/random_r.m4: New file.
73522         * lib/random_r.c: New file, from glibc.
73523         * modules/random_r-tests: New file.
73524         * tests/test-random_r.c: New file.
73525         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
73526          Declare.
73527         (RAND_MAX): Define.
73528         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
73529         * modules/stdlib: Substitute them, too.
73530         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
73531         * doc/glibc-functions/initstate_r.texi: Mention the new module.
73532         * doc/glibc-functions/random_r.texi: Likewise.
73533         * doc/glibc-functions/setstate_r.texi: Likewise.
73534         * doc/glibc-functions/srandom_r.texi: Likewise.
73535         * config/srclist.txt: Mention it.
73537 2008-10-23  David Lutterkort  <lutter@redhat.com>
73539         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
73540         link requirement
73542 2008-10-23  Jim Meyering  <meyering@redhat.com>
73544         selinux-h: mark parameters of stub functions as intentionally unused
73545         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
73546         * lib/se-context.in.h: Likewise.
73548 2008-10-22  Simon Josefsson  <simon@josefsson.org>
73550         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
73552 2008-10-22  Simon Josefsson  <simon@josefsson.org>
73554         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
73556 2008-10-22  Eric Blake  <ebb9@byu.net>
73558         glthread/thread: avoid compiler warning
73559         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
73560         Add unreachable abort to silence compiler.
73562 2008-10-22  Eric Blake  <ebb9@byu.net>
73564         netdb: also supply struct addrinfo for cygwin 1.5.x
73565         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
73566         older cygwin.
73567         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
73568         cygwin.
73569         * doc/posix-headers/netdb.texi (netdb.h): Document this.
73571 2008-10-22  Bruno Haible  <bruno@clisp.org>
73573         * users.txt: Update entry about pspp.
73575 2008-10-21  Bruno Haible  <bruno@clisp.org>
73577         Simplification.
73578         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
73579         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
73581         Simplification.
73582         * lib/ioctl.c (ioctl): Don't undefine.
73583         * lib/socket.c (socket): Don't undefine.
73585         Remove unused module indicator macros.
73586         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
73587         GNULIB_$1 as a C macro.
73589         * doc/posix-functions/close.texi: Undo last change.
73590         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
73591         Windows platforms.
73593 2008-10-21  Bruno Haible  <bruno@clisp.org>
73595         Add gethostname() declaration to <unistd.h>.
73596         * lib/unistd.in.h (gethostname): New declaration.
73597         * lib/gethostname.c: Include <unistd.h>.
73598         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
73599         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
73600         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
73601         and HAVE_GETHOSTNAME.
73602         * modules/gethostname (Depends-on): Add unistd.
73603         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73604         (Include): Specify <unistd.h>.
73605         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
73606         HAVE_GETHOSTNAME.
73607         * tests/test-gethostname.c: Include <unistd.h> first.
73609 2008-10-21  Bruno Haible  <bruno@clisp.org>
73611         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
73612         * modules/select-tests (Depends-on): Likewise.
73613         Reported by Simon Josefsson.
73615 2008-10-21  Simon Josefsson  <simon@josefsson.org>
73617         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
73618         * lib/accept.c: New file, based on winsock.c.
73619         * lib/bind.c: New file, based on winsock.c.
73620         * lib/connect.c: New file, based on winsock.c.
73621         * lib/getpeername.c: New file, based on winsock.c.
73622         * lib/getsockname.c: New file, based on winsock.c.
73623         * lib/getsockopt.c: New file, based on winsock.c.
73624         * lib/ioctl.c: New file, based on winsock.c.
73625         * lib/listen.c: New file, based on winsock.c.
73626         * lib/recv.c: New file, based on winsock.c.
73627         * lib/recvfrom.c: New file, based on winsock.c.
73628         * lib/send.c: New file, based on winsock.c.
73629         * lib/sendto.c: New file, based on winsock.c.
73630         * lib/setsockopt.c: New file, based on winsock.c.
73631         * lib/shutdown.c: New file, based on winsock.c.
73632         * lib/socket.c: New file, based on winsock.c.
73633         * lib/w32sock.h: New file, based on winsock.c.
73634         * lib/winsock.c: Remove file.
73635         * modules/accept: Likewise.
73636         * modules/bind: Likewise.
73637         * modules/connect: Likewise.
73638         * modules/getpeername: Likewise.
73639         * modules/getsockname: Likewise.
73640         * modules/getsockopt: Likewise.
73641         * modules/ioctl: Likewise.
73642         * modules/listen: Likewise.
73643         * modules/recv: Likewise.
73644         * modules/recvfrom: Likewise.
73645         * modules/send: Likewise.
73646         * modules/sendto: Likewise.
73647         * modules/setsockopt: Likewise.
73648         * modules/shutdown: Likewise.
73649         * modules/socket: Use socket.c instead of winsock.c.
73650         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
73651         * doc/posix-functions/accept.texi: Doc fix.
73652         * doc/posix-functions/bind.texi: Doc fix.
73653         * doc/posix-functions/close.texi: Doc fix.
73654         * doc/posix-functions/connect.texi: Doc fix.
73655         * doc/posix-functions/getpeername.texi: Doc fix.
73656         * doc/posix-functions/getsockname.texi: Doc fix.
73657         * doc/posix-functions/getsockopt.texi: Doc fix.
73658         * doc/posix-functions/ioctl.texi: Doc fix.
73659         * doc/posix-functions/listen.texi: Doc fix.
73660         * doc/posix-functions/recv.texi: Doc fix.
73661         * doc/posix-functions/recvfrom.texi: Doc fix.
73662         * doc/posix-functions/send.texi: Doc fix.
73663         * doc/posix-functions/sendto.texi: Doc fix.
73664         * doc/posix-functions/setsockopt.texi: Doc fix.
73665         * doc/posix-functions/shutdown.texi: Doc fix.
73666         * doc/posix-functions/socket.texi: Doc fix.
73668 2008-10-20  Bruno Haible  <bruno@clisp.org>
73670         Take into account the role of SIGABRT_COMPAT on Windows 2008.
73671         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
73672         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
73673         as an alias for SIGABRT.
73674         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
73675         (sigaction): Map it to SIGABRT.
73676         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
73678 2008-10-20  Bruno Haible  <bruno@clisp.org>
73680         * lib/fts.c: Don't include lstat.h.
73681         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
73683         Move the lstat() declaration to <sys/stat.h>.
73684         * lib/lstat.h: Remove file.
73685         * lib/sys_stat.in.h: Add special invocation convention.
73686         (lstat): New declaration.
73687         * lib/lstat.c (orig_lstat): New function.
73688         (rpl_lstat): Use orig_lstat instead of lstat.
73689         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
73690         AC_C_INLINE. Set REPLACE_LSTAT.
73691         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
73692         and REPLACE_LSTAT.
73693         * modules/lstat (Files): Remove lib/lstat.h.
73694         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
73695         (Include): Specify <sys/stat.h> instead of lstat.h.
73696         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
73697         REPLACE_LSTAT.
73698         * NEWS: Mention the change.
73700 2008-10-20  Bruno Haible  <bruno@clisp.org>
73702         * modules/posix_spawn-tests: New file.
73703         * tests/test-posix_spawn3.c: New file.
73705 2008-10-20  Bruno Haible  <bruno@clisp.org>
73707         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
73708         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
73709         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
73710         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
73711         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
73713 2008-10-20  Bruno Haible  <bruno@clisp.org>
73715         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
73716         of posix_spawn on AIX 5.3.
73718 2008-10-20  Bruno Haible  <bruno@clisp.org>
73720         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
73722 2008-10-20  Bruno Haible  <bruno@clisp.org>
73724         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
73725         of AC_LANG_PROGRAM.
73727 2008-10-20  Simon Josefsson  <simon@josefsson.org>
73729         * lib/netdb.in.h: Don't define GNU specific constants until they
73730         are supported or needed.  Reported by Bruno Haible
73731         <bruno@clisp.org>.
73733 2008-10-20  Simon Josefsson  <simon@josefsson.org>
73735         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
73737 2008-10-20  Simon Josefsson  <simon@josefsson.org>
73739         * lib/getaddrinfo.h: Remove file.
73740         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
73741         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
73742         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
73743         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
73744         * modules/netdb: Substitute GNULIB_GETADDRINFO.
73745         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
73746         * tests/test-getaddrinfo.c: Likewise.
73747         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
73748         * NEWS: Mention change.
73750 2008-10-19  Bruno Haible  <bruno@clisp.org>
73752         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
73754 2008-10-19  Bruno Haible  <bruno@clisp.org>
73756         * lib/wait-process.c: Include simply <sys/wait.h>.
73757         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
73758         WIFSTOPPED): Remove fallback definitions.
73759         * modules/wait-process (Depends-on): Add sys_wait.
73761         New module 'sys_wait'.
73762         * modules/sys_wait: New file.
73763         * lib/sys_wait.in.h: New file, partially copied from
73764         lib/wait-process.c.
73765         * m4/sys_wait_h.m4: New file.
73766         * doc/posix-headers/sys_wait.texi: Mention the new module.
73768 2008-10-19  Bruno Haible  <bruno@clisp.org>
73770         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
73772 2008-10-19  Bruno Haible  <bruno@clisp.org>
73774         Assume that waitpid() fills an 'int' status, not a 'union wait'.
73775         * lib/wait-process.c (WAIT_T): Remove type.
73776         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
73777         (wait_subprocess): Update.
73779 2008-10-19  Bruno Haible  <bruno@clisp.org>
73781         New module 'atoll'.
73782         * modules/atoll: New file.
73783         * lib/stdlib.in.h (atoll): New declaration.
73784         * lib/atoll.c: New file, from glibc with modifications.
73785         * m4/atoll.m4: New file.
73786         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
73787         HAVE_ATOLL.
73788         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
73789         * doc/posix-functions/atoll.texi: Mention the new module.
73791 2008-10-19  Bruno Haible  <bruno@clisp.org>
73793         Add strtoull() declaration to <stdlib.h>.
73794         * lib/stdlib.in.h (strtoull): New declaration.
73795         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
73796         Set HAVE_STRTOULL.
73797         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
73798         HAVE_STRTOULL.
73799         * modules/strtoull (Depends-on): Add stdlib.
73800         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
73801         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
73802         HAVE_STRTOULL.
73804 2008-10-19  Bruno Haible  <bruno@clisp.org>
73806         Add strtoll() declaration to <stdlib.h>.
73807         * lib/stdlib.in.h (strtoll): New declaration.
73808         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
73809         Set HAVE_STRTOLL.
73810         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
73811         HAVE_STRTOLL.
73812         * modules/strtoll (Depends-on): Add stdlib.
73813         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
73814         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
73816 2008-10-19  Bruno Haible  <bruno@clisp.org>
73818         * modules/bcopy (Depends-on): Add strings.
73819         (Include): Specify <strings.h>.
73821 2008-10-19  Bruno Haible  <bruno@clisp.org>
73823         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
73825 2008-10-19  Bruno Haible  <bruno@clisp.org>
73827         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
73828         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
73829         mingw.
73831 2008-10-19  Bruno Haible  <bruno@clisp.org>
73833         * lib/atanl.c: Don't include isnanl.h.
73834         * lib/cosl.c: Likewise.
73835         * lib/ldexpl.c: Likewise.
73836         * lib/logl.c: Likewise.
73837         * lib/sinl.c: Likewise.
73838         * lib/sqrtl.c: Likewise.
73839         * lib/tanl.c: Likewise.
73841         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
73842         * lib/isnanf.h: Remove file.
73843         * lib/isnand.h: Remove file.
73844         * lib/isnanl.h: Remove file.
73845         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
73846         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
73847         macros.
73848         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
73849         HAVE_ISNANF, don't define it as a C macro.
73850         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
73851         HAVE_ISNAND, don't define it as a C macro.
73852         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
73853         HAVE_ISNANL, don't define it as a C macro.
73854         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
73855         HAVE_ISNAN[FDL].
73856         * modules/isnanf (Files): Remove lib/isnanf.h.
73857         (Depends-on): Add math.
73858         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
73859         (Include): Specify <math.h> instead of isnanf.h.
73860         * modules/isnand (Files): Remove lib/isnand.h.
73861         (Depends-on): Add math.
73862         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
73863         (Include): Specify <math.h> instead of isnand.h.
73864         * modules/isnanl (Files): Remove lib/isnanl.h.
73865         (Depends-on): Add math.
73866         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
73867         (Include): Specify <math.h> instead of isnanl.h.
73868         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
73869         HAVE_ISNAN[FDL].
73870         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
73871         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
73872         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
73873         * NEWS: Mention the change.
73875 2008-10-18  Bruno Haible  <bruno@clisp.org>
73877         Add getusershell(), setusershell(), endusershell() declarations to
73878         <unistd.h>.
73879         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
73880         declarations.
73881         * lib/getusershell.c: Include unistd.h.
73882         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
73883         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
73884         HAVE_GETUSERSHELL.
73885         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
73886         and HAVE_GETUSERSHELL.
73887         * modules/getusershell (Depends-on): Add unistd, extensions.
73888         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73889         (Include): Specify <unistd.h>.
73890         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
73891         HAVE_GETUSERSHELL.
73893 2008-10-18  Bruno Haible  <bruno@clisp.org>
73895         Add a getloadavg() declaration to <stdlib.h>.
73896         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
73897         getloadavg declaration.
73898         (getloadavg): New declaration.
73899         * lib/getloadavg.c: Include <stdlib.h> first.
73900         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
73901         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
73902         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
73903         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
73904         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
73905         * modules/getloadavg (Depends-on): Add stdlib, extensions.
73906         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
73907         (Include): Specify <stdlib.h>.
73908         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
73909         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
73911 2008-10-18  Bruno Haible  <bruno@clisp.org>
73913         * lib/dirchownmod.c: Don't include lchmod.h.
73915         Move the lchmod() declaration to <sys/stat.h>.
73916         * lib/lchmod.h: Remove file.
73917         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
73918         (lchmod): New declaration, moved here from lib/lchown.h.
73919         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
73920         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
73921         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
73922         and HAVE_LCHMOD.
73923         * modules/lchmod (Files): Remove lib/lchmod.h.
73924         (Depends-on): Add sys_stat, extensions.
73925         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
73926         (Include): Specify <sys/stat.h> instead of lchmod.h.
73927         * modules/sys_stat (Depends-on): Add link-warning.
73928         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
73929         definition of GL_LINK_WARNING.
73930         * NEWS: Mention the change.
73932 2008-10-18  Bruno Haible  <bruno@clisp.org>
73934         * lib/fchdir.c: Don't include dirfd.h.
73935         * lib/fts.c: Likewise.
73936         * lib/getcwd.c: Likewise.
73937         * lib/glob.c: Likewise.
73939         Move the dirfd() declaration to <dirent.h>.
73940         * lib/dirfd.h: Remove file.
73941         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
73942         (dirfd): New declaration.
73943         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
73944         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
73945         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
73946         HAVE_DECL_DIRFD.
73947         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
73948         HAVE_DECL_DIRFD.
73949         * modules/dirfd (Files): Remove lib/dirfd.h.
73950         (Depends-on): Add dirent, extensions.
73951         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
73952         (Include): Specify <dirent.h> instead of dirfd.h.
73953         * modules/dirent (Depends-on): Add link-warning.
73954         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
73955         definition of GL_LINK_WARNING.
73956         * NEWS: Mention the change.
73958 2008-10-18  Bruno Haible  <bruno@clisp.org>
73960         Move the euidaccess() declaration to <unistd.h>.
73961         * lib/euidaccess.h: Remove file.
73962         * lib/unistd.in.h (euidaccess): New declaration.
73963         * lib/euidaccess.c: Don't include euidaccess.h.
73964         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
73965         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
73966         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
73967         and HAVE_EUIDACCESS.
73968         * modules/euidaccess (Files): Remove lib/euidaccess.h.
73969         (Depends-on): Add unistd.
73970         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73971         (Include): Specify <unistd.h> instead of euidaccess.h.
73972         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
73973         HAVE_EUIDACCESS.
73974         * NEWS: Mention the change.
73976 2008-10-18  Bruno Haible  <bruno@clisp.org>
73978         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
73980         Move the getdomainname() declaration to <unistd.h>.
73981         * lib/getdomainname.h: Remove file.
73982         * lib/unistd.in.h (getdomainname): New declaration.
73983         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
73984         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
73985         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
73986         HAVE_GETDOMAINNAME.
73987         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
73988         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
73989         * modules/getdomainname (Files): Remove lib/getdomainname.h.
73990         (Depends-on): Add unistd, extensions.
73991         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73992         (Includes): Specify <unistd.h> instead of getdomainname.h.
73993         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
73994         HAVE_GETDOMAINNAME.
73995         * NEWS: Mention the change.
73997 2008-10-18  Bruno Haible  <bruno@clisp.org>
73999         * modules/dirent: New file.
74000         * m4/dirent_h.m4: New file.
74001         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
74002         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
74003         * modules/fchdir (Files): Remove lib/dirent.in.h.
74004         (Depends-on): Add dirent.
74005         (Makefile.am): Move rules to modules/dirent.
74006         * doc/posix-headers/dirent.texi: Mention the new module.
74008 2008-10-18  Bruno Haible  <bruno@clisp.org>
74010         Avoid -Wunused-parameter warnings in public gnulib header files.
74011         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
74012         macro.
74013         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
74015 2008-10-18  Bruno Haible  <bruno@clisp.org>
74017         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
74018         * doc/glibc-functions/error.texi: Mention the module 'error'.
74019         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
74020         * doc/glibc-functions/getdomainname.texi: Mention the module
74021         'getdomainname'.
74022         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
74023         * doc/glibc-functions/getpagesize.texi: Mention the module
74024         'getpagesize'.
74025         * doc/glibc-functions/getusershell.texi: Mention the module
74026         'getusershell'.
74027         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
74028         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
74029         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
74030         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
74031         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
74032         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
74033         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
74034         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
74035         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
74036         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
74037         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
74038         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
74039         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
74040         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
74042 2008-10-17  Bruno Haible  <bruno@clisp.org>
74044         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
74045         HP-UX and IRIX, use -0.0L.
74046         * tests/test-ceill.c (minus_zero): Likewise.
74047         * tests/test-floorl.c (minus_zero): Likewise.
74048         * tests/test-frexpl.c (minus_zero): Likewise.
74049         * tests/test-isnan.c (minus_zerol): Likewise.
74050         * tests/test-isnanl.h (minus_zero): Likewise.
74051         * tests/test-ldexpl.c (minus_zero): Likewise.
74052         * tests/test-roundl.c (minus_zero): Likewise.
74053         * tests/test-signbit.c (minus_zerol): Likewise.
74054         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
74055         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
74056         * tests/test-truncl.c (minus_zero): Likewise.
74057         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
74058         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
74059         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
74060         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
74062 2008-10-17  Bruno Haible  <bruno@clisp.org>
74064         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
74065         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
74066         that it gets activated only for gcc >= 3.0.
74067         * lib/dirent.in.h: Likewise.
74068         * lib/errno.in.h: Likewise.
74069         * lib/fcntl.in.h: Likewise.
74070         * lib/float.in.h: Likewise.
74071         * lib/iconv.in.h: Likewise.
74072         * lib/inttypes.in.h: Likewise.
74073         * lib/locale.in.h: Likewise.
74074         * lib/math.in.h: Likewise.
74075         * lib/netdb.in.h: Likewise.
74076         * lib/netinet_in.in.h: Likewise.
74077         * lib/search.in.h: Likewise.
74078         * lib/signal.in.h: Likewise.
74079         * lib/spawn.in.h: Likewise.
74080         * lib/stdarg.in.h: Likewise.
74081         * lib/stdint.in.h: Likewise.
74082         * lib/stdio.in.h: Likewise.
74083         * lib/stdlib.in.h: Likewise.
74084         * lib/string.in.h: Likewise.
74085         * lib/strings.in.h: Likewise.
74086         * lib/sys_file.in.h: Likewise.
74087         * lib/sys_ioctl.in.h: Likewise.
74088         * lib/sys_select.in.h: Likewise.
74089         * lib/sys_socket.in.h: Likewise.
74090         * lib/sys_stat.in.h: Likewise.
74091         * lib/sys_time.in.h: Likewise.
74092         * lib/sysexits.in.h: Likewise.
74093         * lib/time.in.h: Likewise.
74094         * lib/unistd.in.h: Likewise.
74095         * lib/wchar.in.h: Likewise.
74096         * lib/wctype.in.h: Likewise.
74097         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
74099 2008-10-17  Jim Meyering  <meyering@redhat.com>
74101         ignore-value: don't depend on inline module
74102         * modules/ignore-value (Depends-on): Remove 'inline'.
74103         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
74104         Suggestion from Bruno Haible.
74106 2008-10-17  Bruno Haible  <bruno@clisp.org>
74108         New implementation of condition variables for Win32.
74109         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
74110         (gl_linked_waitqueue_t): New type.
74111         (gl_cond_t): Use it.
74112         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
74113         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
74114         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
74115         (glthread_cond_init_func, glthread_cond_wait_func,
74116         glthread_cond_timedwait_func, glthread_cond_signal_func,
74117         glthread_cond_broadcast_func, glthread_cond_destroy_func):
74118         Reimplemented on the basis of gl_linked_waitqueue_t.
74119         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
74120         gl_waitqueue_t.
74121         (gl_rwlock_t): Update.
74122         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
74124 2008-10-17  Simon Josefsson  <simon@josefsson.org>
74126         * modules/recvfrom (Depends-on): Add dependency on getpeername.
74127         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
74129 2008-10-17  Jim Meyering  <meyering@redhat.com>
74131         ignore-value: new module
74132         * modules/ignore-value: New file.
74133         * lib/ignore-value.h: New file.
74134         * MODULES.html.sh (Compiler warning management): New section,
74135         just for this module.  More to come.
74137 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
74139         open-safer.c: avoid 'signed and unsigned in conditional...' warning
74140         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
74141         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
74143 2008-10-16  Jim Meyering  <meyering@redhat.com>
74145         openat-die.c: avoid 'no previous prototype' warning
74146         * lib/openat-die.c: Include "openat.h".
74147         Reported by Reuben Thomas <rrt@sc3d.org>.
74149 2008-10-16  Simon Josefsson  <simon@josefsson.org>
74151         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
74152         * lib/netdb.in.h: Fix typo.
74153         Reported by Bruno Haible  <bruno@clisp.org>
74155         * lib/netdb.in.h: Include sys/socket.h for platforms without
74156         netdb.h, to get structures like hostent on MinGW.
74157         * modules/netdb (Depends-on): Add sys_socket.
74159 2008-10-15  Simon Josefsson  <simon@josefsson.org>
74161         * modules/netdb, modules/netdb-tests: New file.
74162         * m4/netdb_h.m4: New file.
74163         * lib/netdb.in.h: Add, currently just an empty file pending
74164         definitions.
74165         * tests/test-netdb.c: New file.
74166         * doc/posix-headers/netdb.texi: Mention that we replace it if
74167         needed.
74168         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
74169         netdb.
74171 2008-10-15  Simon Josefsson  <simon@josefsson.org>
74173         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
74174         with code.
74176 2008-10-13  Bruno Haible  <bruno@clisp.org>
74178         * lib/glthread/cond.c (glthread_cond_wait_func,
74179         glthread_cond_timedwait_func): Add a comment.
74181 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
74183         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
74184         * tests/test-select.c: Likewise,
74186 2008-10-13  Bruno Haible  <bruno@clisp.org>
74188         * lib/glthread/cond.c (glthread_cond_wait_func,
74189         glthread_cond_timedwait_func): Fix variable name.
74190         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
74192 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
74194         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
74195         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
74196         struct sockaddr.sa_len.
74197         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
74199 2008-10-13  Simon Josefsson  <simon@josefsson.org>
74201         * build-aux/pmccabe2html: Add css and css_url parameters.
74203 2008-10-12  Bruno Haible  <bruno@clisp.org>
74205         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
74206         calling aclx_get.
74207         Reported by Rainer Tammer <tammer@tammer.net>.
74209 2008-10-12  Bruno Haible  <bruno@clisp.org>
74211         Use msvcrt aware primitives for creation/termination of Win32 threads.
74212         * lib/glthread/thread.c: Include <process.h>.
74213         (glthread_create_func): Use _beginthreadex instead of CreateThread.
74214         (wrapper_func): Update signature.
74215         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
74217 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
74218             Bruno Haible  <bruno@clisp.org>
74220         Provide a Win32 implementation of the 'cond' module.
74221         * lib/glthread/cond.h [USE_WIN32]: New implementation.
74222         * lib/glthread/cond.c (glthread_cond_init_func,
74223         glthread_cond_wait_func, glthread_cond_timedwait_func,
74224         glthread_cond_signal_func, glthread_cond_broadcast_func,
74225         glthread_cond_destroy_func) [USE_WIN32]: New functions.
74226         * modules/cond (Dependencies): Add gettimeofday.
74228 2008-10-11  Bruno Haible  <bruno@clisp.org>
74230         Make sleep work on older versions of mingw.
74231         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
74232         only whether it exists.
74233         * doc/posix-functions/sleep.texi: Mention the problem with older
74234         versions of mingw.
74236 2008-10-11  Bruno Haible  <bruno@clisp.org>
74238         New module 'shutdown'.
74239         * modules/shutdown: New file.
74240         * lib/sys_socket.in.h (shutdown): New declaration.
74241         * lib/winsock.c (shutdown): New function.
74242         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
74243         GNULIB_SHUTDOWN.
74244         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
74245         * doc/posix-functions/shutdown.texi: Document the new module.
74247 2008-10-11  Jim Meyering  <meyering@redhat.com>
74249         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
74251 2008-10-11  Bruno Haible  <bruno@clisp.org>
74253         New module 'fclose'.
74254         * modules/fclose: New file.
74255         * lib/stdio.in.h (fclose): New declaration.
74256         * lib/fclose.c: New file.
74257         * m4/fclose.m4: New file.
74258         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
74259         REPLACE_FCLOSE.
74260         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
74261         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
74262         REPLACE_FCLOSE.
74263         * modules/close (Depends-on): fclose.
74264         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
74266 2008-10-11  Bruno Haible  <bruno@clisp.org>
74268         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
74269         set errno and don't call _close.
74271 2008-10-10  Bruno Haible  <bruno@clisp.org>
74273         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
74274         ACL, not afterwards. Fixes test failure on Cygwin.
74276 2008-10-09  Ben Pfaff  <blp@gnu.org>
74278         * build-aux/announce-gen: Fix gnulib version related part of usage
74279         message.  Die with a useful error message if no tarballs are
74280         found.
74282 2008-10-10  Jim Meyering  <meyering@redhat.com>
74284         bootstrap: use git's --depth=N option only if it's supported
74285         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
74286         recognize the --depth option.  Reported by Pádraig Brady.
74288 2008-10-09  Bruno Haible  <bruno@clisp.org>
74290         New module 'ioctl'.
74291         * modules/ioctl: New file.
74292         * lib/sys_socket.in.h (ioctl): Remove declaration.
74293         * lib/winsock.c: Include <sys/ioctl.h>.
74294         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
74295         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
74296         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
74297         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
74298         * doc/posix-functions/ioctl.texi: Mention the new module.
74300 2008-10-09  Bruno Haible  <bruno@clisp.org>
74302         New module 'sys_ioctl'.
74303         * lib/sys_ioctl.in.h: New file.
74304         * m4/sys_ioctl_h.m4: New file.
74305         * modules/sys_ioctl: New file.
74306         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
74308 2008-10-09  Bruno Haible  <bruno@clisp.org>
74310         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
74311         * lib/winsock.c: Include <stdarg.h>.
74312         (rpl_ioctl): Change to second argument 'int' and then varargs.
74314 2008-10-09  Bruno Haible  <bruno@clisp.org>
74316         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
74317         when the sys_socket module is present and the system has <winsock2.h>.
74319 2008-10-09  Bruno Haible  <bruno@clisp.org>
74321         * doc/posix-functions/close.texi: Mention module 'close' instead of
74322         module 'sys_socket'.
74324 2008-10-09  Bruno Haible  <bruno@clisp.org>
74326         * doc/glibc-headers/sys_ioctl.texi: New file.
74327         * doc/gnulib.texi: Include it.
74329 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
74330             Bruno Haible  <bruno@clisp.org>
74332         Combine the two replacements of 'close'.
74333         * lib/sys_socket.in.h (close): Define to a reminder to include
74334         <unistd.h>.
74335         (_gl_close_fd_maybe_socket): New declaration.
74336         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
74337         * lib/winsock.c (close): Remove undefinition.
74338         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
74339         needed for the gnulib module 'close'.
74340         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
74341         define to an error symbol or to a warning, if suitable.
74342         * lib/close.c: Include <sys/socket.h>.
74343         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
74344         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
74345         UNISTD_H_HAVE_WINSOCK2_H.
74346         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
74347         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
74348         UNISTD_H_HAVE_WINSOCK2_H.
74349         * modules/sys_socket (Files): Add m4/unistd_h.m4.
74350         (configure.ac): Set a module indicator.
74351         (Makefile.am): Substitute GNULIB_CLOSE.
74352         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
74353         * modules/poll-tests (Depends-on): Add close.
74354         * modules/select-tests (Depends-on): Likewise.
74356 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
74357             Bruno Haible  <bruno@clisp.org>
74359         New module 'close'.
74360         * modules/close: New file.
74361         * lib/unistd.in.h (close): Move declaration out of the
74362         FCHDIR_REPLACEMENT scope.
74363         (_gl_unregister_fd): New declaration.
74364         * lib/close.c: New file.
74365         * lib/fchdir.c (rpl_close): Remove function.
74366         * m4/close.m4: New file.
74367         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
74368         close.
74369         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
74370         REPLACE_CLOSE.
74371         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
74372         REPLACE_CLOSE.
74373         * modules/fchdir (Depends-on): Add close.
74375 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
74376             Bruno Haible  <bruno@clisp.org>
74378         * lib/fcntl.in.h (open): Simplify conditionals.
74379         (_gl_register_fd): New declaration.
74380         * lib/fchdir.c (rpl_open): Remove function.
74381         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
74382         also.
74383         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
74384         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
74385         open.
74387 2008-10-09  Jim Meyering  <meyering@redhat.com>
74389         GNUmakefile: use the more name-space-friendly "_version"
74390         * top/GNUmakefile (_dummy): Update.
74391         (_version): Rename from "version".
74393 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
74394             Bruno Haible  <bruno@clisp.org>
74396         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
74397         rpl_close.
74398         (_gl_register_fd): New function, extracted from rpl_open.
74399         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
74400         (rpl_open, rpl_opendir): Use _gl_register_fd.
74402 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
74404         Fix organization of 'open' replacement.
74405         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
74406         (gl_FUNC_OPEN): Use it.
74407         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
74409 2008-10-08  Bruno Haible  <bruno@clisp.org>
74411         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
74413 2008-10-08  Simon Josefsson  <simon@josefsson.org>
74415         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
74416         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
74417         listen).
74419 2008-10-08  Eric Blake  <ebb9@byu.net>
74421         GNUmakefile: add 'make version' target
74422         * top/GNUmakefile (_curr-ver): Split version update rules...
74423         (version): ...into a target.
74425 2008-10-07  Bruno Haible  <bruno@clisp.org>
74427         Use a more portable replacement expression for -0.0L.
74428         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
74429         instead of -0.0L. Fix m4 quotation.
74431         * tests/test-signbit.c: Include <float.h>.
74432         (minus_zero): New variable.
74433         (test_signbitl): Use minus_zero instead of -zero.
74434         * modules/signbit-tests (Depends-on): Add float.
74436         * tests/test-ceill.c: Include <float.h>.
74437         (zero): Remove variable.
74438         (minus_zero): New variable.
74439         (main): Use minus_zero instead of -zero.
74440         * modules/ceill-tests (Depends-on): Add float.
74442         * tests/test-floorl.c: Include <float.h>.
74443         (zero): Remove variable.
74444         (minus_zero): New variable.
74445         (main): Use minus_zero instead of -zero.
74446         * modules/floorl-tests (Depends-on): Add float.
74448         * tests/test-roundl.c: Include <float.h>.
74449         (zero): Remove variable.
74450         (minus_zero): New variable.
74451         (main): Use minus_zero instead of -zero.
74452         * modules/roundl-tests (Depends-on): Add float.
74454         * tests/test-truncl.c: Include <float.h>.
74455         (zero): Remove variable.
74456         (minus_zero): New variable.
74457         (main): Use minus_zero instead of -zero.
74458         * modules/truncl-tests (Depends-on): Add float.
74460         * tests/test-frexpl.c (zero): Remove variable.
74461         (minus_zero): New variable.
74462         (main): Use minus_zero instead of -zero.
74463         * modules/frexpl-tests (Depends-on): Add float.
74465         * tests/test-isnan.c (zerol): Remove variable.
74466         (minus_zerol): New variable.
74467         (test_long_double): Use minus_zerol instead of -zerol.
74468         * modules/isnan-tests (Depends-on): Add float.
74470         * tests/test-isnanl.h (zero): Remove variable.
74471         (minus_zero): New variable.
74472         (main): Use minus_zero instead of -zero.
74473         * modules/isnanl-nolibm-tests (Depends-on): Add float.
74474         * modules/isnanl-tests (Depends-on): Add float.
74476         * tests/test-ldexpl.c (zero): Remove variable.
74477         (minus_zero): New variable.
74478         (main): Use minus_zero instead of -zero.
74479         * modules/ldexpl-tests (Depends-on): Add float.
74481         * tests/test-snprintf-posix.h (zerol): Remove variable.
74482         (minus_zerol): New variable.
74483         (test_function): Use minus_zerol instead of -zerol.
74484         * modules/snprintf-posix-tests (Depends-on): Add float.
74485         * modules/vsnprintf-posix-tests (Depends-on): Add float.
74487         * tests/test-sprintf-posix.h (zerol): Remove variable.
74488         (minus_zerol): New variable.
74489         (test_function): Use minus_zerol instead of -zerol.
74490         * modules/sprintf-posix-tests (Depends-on): Add float.
74491         * modules/vsprintf-posix-tests (Depends-on): Add float.
74493         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
74494         (minus_zerol): New variable.
74495         (test_function): Use minus_zerol instead of -zerol.
74496         * modules/vasnprintf-posix-tests (Depends-on): Add float.
74498         * tests/test-vasprintf-posix.c (zerol): Remove variable.
74499         (minus_zerol): New variable.
74500         (test_function): Use minus_zerol instead of -zerol.
74501         * modules/vasprintf-posix-tests (Depends-on): Add float.
74503 2008-10-07  Simon Josefsson  <simon@josefsson.org>
74505         * MODULES.html.sh (Support for building documentation): Mention
74506         pmccabe2html.  Sort entries.
74508         Add pmccabe2html module, from gnupdf.
74509         * build-aux/pmccabe.css: New file.
74510         * build-aux/pmccabe2html: New file.
74511         * m4/pmccabe2html.m4: New file.
74512         * modules/pmccabe2html: New file.
74514 2008-10-07  Richard W.M. Jones  <rjones@redhat.com>
74516         flock: new module
74517         * MODULES.html.sh: Add to list of modules.
74518         * lib/flock.c: flock implementation for Windows and Unix systems
74519         which have fcntl.
74520         * doc/glibc-functions/flock.texi: Update documentation.
74521         * lib/sys_file.in.h: <sys/file.h> header file.
74522         * m4/flock.m4: M4 macros.
74523         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
74524         * modules/flock: flock module.
74525         * modules/flock-tests: flock tests module.
74526         * modules/sys_file: sys/file.h module.
74527         * tests/test-flock.c: test suite for flock.
74529 2008-10-06  Jim Meyering  <meyering@redhat.com>
74531         bootstrap: check for LT_INIT more portably still ;-)
74532         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
74533         Spotted by Bruno Haible.
74535 2008-10-06  Eric Blake  <ebb9@byu.net>
74537         test-signbit: avoid tripping Irix cc bug on -0.0L
74538         * tests/test-signbit.c (minus_zerol): Delete, and replace with
74539         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
74540         entire testsuite consistent and avoids an Irix 6.2 bug.
74542 2008-10-05  Bruno Haible  <bruno@clisp.org>
74543             Jim Meyering  <jim@meyering.net>
74545         Add an option for ignoring EPIPE during close_stdout.
74546         * lib/closeout.h: Include <stdbool.h>.
74547         (close_stdout_set_ignore_EPIPE): New declaration.
74548         * lib/closeout.c: Include <stdbool.h>.
74549         (ignore_EPIPE): New variable.
74550         (close_stdout_set_ignore_EPIPE): New function.
74551         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
74552         * lib/close-stream.c (close_stream): Mention the possible EPIPE
74553         failure.
74554         * modules/closeout (Depends-on): Add stdbool.
74556 2008-10-05  Bruno Haible  <bruno@clisp.org>
74558         * modules/accept: New file.
74559         * modules/bind: New file.
74560         * modules/connect: New file.
74561         * modules/getpeername: New file.
74562         * modules/getsockname: New file.
74563         * modules/getsockopt: New file.
74564         * modules/listen: New file.
74565         * modules/recv: New file.
74566         * modules/recvfrom: New file.
74567         * modules/send: New file.
74568         * modules/sendto: New file.
74569         * modules/setsockopt: New file.
74570         * modules/socket: New file.
74571         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
74572         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
74573         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
74574         the particular module is requested. Add a link warning when the
74575         particular module is not requested.
74576         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
74577         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
74578         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
74579         the particular module is requested.
74580         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
74581         gl_SYS_SOCKET_H_DEFAULTS): New macros.
74582         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
74583         * modules/sys_socket (Depends-on): Add link-warning.
74584         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
74585         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
74586         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
74587         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
74588         GL_LINK_WARNING.
74589         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
74590         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
74591         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
74592         * doc/posix-functions/getpeername.texi: Mention the new module
74593         'getpeername'.
74594         * doc/posix-functions/getsockname.texi: Mention the new module
74595         'getsockname'.
74596         * doc/posix-functions/getsockopt.texi: Mention the new module
74597         'getsockopt'.
74598         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
74599         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
74600         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
74601         * doc/posix-functions/send.texi: Mention the new module 'send'.
74602         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
74603         * doc/posix-functions/setsockopt.texi: Mention the new module
74604         'setsockopt'.
74605         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
74606         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
74607         listen, connect, accept.
74608         * modules/select-tests (Depends-on): Likewise.
74610 2008-10-05  Bruno Haible  <bruno@clisp.org>
74612         * lib/winsock.c (strerror): Remove unused #undef.
74613         (rpl_close): Remove unused local variable.
74615         * modules/sys_socket (Depends-on); Add errno.
74617 2008-10-05  Bruno Haible  <bruno@clisp.org>
74619         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
74620         (select): Add a link warning when the 'select' module is not used.
74621         * modules/sys_select (Depends-on): Add link-warning.
74622         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
74623         Suggested by Paolo Bonzini.
74625 2008-10-05  Jim Meyering  <meyering@redhat.com>
74627         bootstrap: check for LT_INIT more portably
74628         * build-aux/bootstrap: Avoid using grep -E, since it's not
74629         portable enough.  Suggestion from Bruno Haible.
74631 2008-10-05  Bruno Haible  <bruno@clisp.org>
74633         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
74634         as being fixed by gnulib.
74636 2008-10-05  Bruno Haible  <bruno@clisp.org>
74638         * modules/select-tests: New file, mostly copied from
74639         modules/sys_select-tests.
74640         * tests/test-select.c: New file, mostly copied from
74641         tests/test-sys_select.c.
74642         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
74643         * modules/sys_select-tests (Depends-on): Remove all dependencies.
74644         (Makefile.am): Remove test_sys_select_LDADD.
74646         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
74647         to an undefined symbol, for an error message.
74648         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
74649         (gl_SYS_SELECT_H_DEFAULTS): New macro.
74650         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
74651         winsock-select.c here.
74652         * modules/sys_select (Files): Remove lib/winsock-select.c.
74653         (Depends-on): Remove alloca.
74654         (Makefile.am): Substitute GNULIB_SELECT.
74655         * modules/select: New file.
74656         * doc/posix-functions/select.texi: Update.
74658 2008-10-05  Bruno Haible  <bruno@clisp.org>
74660         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
74661         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
74662         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
74663         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
74664         getdtablesize.
74665         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
74666         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
74668 2008-10-05  Bruno Haible  <bruno@clisp.org>
74670         * modules/getdtablesize-tests: New file.
74671         * tests/test-getdtablesize.c: New file.
74673         New module 'getdtablesize'.
74674         * lib/unistd.in.h (getdtablesize): New declaration.
74675         * lib/getdtablesize.c: New file.
74676         * m4/getdtablesize.m4: New file.
74677         * modules/getdtablesize: New file.
74678         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
74679         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
74680         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
74681         HAVE_GETDTABLESIZE.
74682         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
74684 2008-10-05  Bruno Haible  <bruno@clisp.org>
74686         * modules/sched (Makefile.am): Fix typo.
74687         Reported by Simon Josefsson.
74689 2008-10-05  Jim Meyering  <meyering@redhat.com>
74691         bootstrap: check for LT_INIT, too
74692         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
74693         are deprecated.  Suggestion from Ralf Wildenhues.
74695 2008-10-05  Bruno Haible  <bruno@clisp.org>
74697         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
74698         overriding them by ours.
74699         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
74701 2008-10-05  Jim Meyering  <meyering@redhat.com>
74703         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
74704         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
74705         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
74707 2008-10-04  Bruno Haible  <bruno@clisp.org>
74709         * modules/dup2 (License): Change to LGPLv2+.
74710         * modules/sleep (License): Likewise.
74711         * modules/perror (License): Likewise.
74712         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
74713         Blake.
74714         * modules/signal (License): Likewise.
74715         * modules/sigprocmask (License): Likewise.
74716         * modules/raise (License): Change to LGPLv2+, with approval by Jim
74717         Meyering.
74719 2008-10-04  Bruno Haible  <bruno@clisp.org>
74721         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
74722         Reported by Rainer Tammer <tammer@tammer.net>.
74724 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
74725             Bruno Haible  <bruno@clisp.org>
74727         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
74728         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
74729         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
74731 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
74733         filevercmp: new module
74734         * lib/filevercmp.h: New function filevercmp comparing version strings.
74735         * lib/filevercmp.c: Implementation of filevercmp function.
74736         * modules/filevercmp: Module metadata.
74737         * tests/test-filevercmp.c: Unit test for new module.
74738         * modules/filevercmp-tests: Unit test metadata.
74739         * MODULES.html.sh: Add filevercmp module.
74741 2008-10-03  Bruno Haible  <bruno@clisp.org>
74743         * lib/c-ctype.h: Add comment.
74744         Reported by Jim Meyering.
74746 2008-10-02  Bruno Haible  <bruno@clisp.org>
74748         * modules/posix_spawn-internal (Depends-on): Add 'open'.
74750 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
74752         * build-aux/bootstrap: Allow renaming bootstrap, and change the
74753         name of bootstrap.conf accordingly.
74755 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
74757         * build-aux/bootstrap: Install git-merge-changelog configuration
74758         items into .gitconfig if needed.
74760 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
74762         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
74763         git repository, and initialize/update it accordingly.
74765 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
74767         * modules/fsync-tests: New file.
74768         * tests/test-fsync.c: New file.
74770         New module 'fsync'.
74771         * lib/fsync.c: New file.
74772         * m4/fsync.m4: New file.
74773         * modules/fsync: New file.
74774         * lib/unistd.in.h (fsync): New declaration.
74775         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
74776         GNULIB_FSYNC and HAVE_FSYNC.
74777         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
74778         * MODULES.html.sh (posix_functions): Add fsync.
74779         * doc/posix-functions/fsync.texi: Mention the new module.
74781 2008-10-02  Jim Meyering  <meyering@redhat.com>
74783         fts.c: sync with similar code from coreutils' remove.c
74784         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
74785         Guard also with "#if defined __linux__", since for now at least,
74786         this code is Linux-kernel-specific.
74788 2008-10-02  Jim Meyering  <meyering@redhat.com>
74790         fts: bug fixes
74791         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
74792         Include <sys/vfs.h>, not <sys/statfs.h>.
74794         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
74795         Include <sys/vfs.h>, not <sys/statfs.h>.
74797 2008-10-01  Bruno Haible  <bruno@clisp.org>
74799         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
74800         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
74801         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
74802         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
74803         * doc/posix-functions/posix_spawnp.texi: Likewise.
74804         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
74805         whether posix_spawn actually works.
74806         * m4/pipe.m4 (gl_PIPE): Likewise.
74807         * modules/execute (Files): Add m4/posix_spawn.m4.
74808         * modules/pipe (Files): Add m4/posix_spawn.m4.
74809         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
74811 2008-10-01  Jim Meyering  <meyering@redhat.com>
74813         remove trailing spaces
74814         * NEWS: Likewise.
74815         * lib/poll.c (poll): Likewise.
74816         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
74817         * lib/winsock.c (rpl_close): Likewise.
74818         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
74819         * modules/yield: Likewise.
74820         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
74821         * tests/test-sys_select.c (connect_to_socket): Likewise.
74823         fts.c: adjust a new interface to be more generally useful
74824         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
74825         (fts_build): Adjust caller.
74827 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74829         * modules/cond-tests: New file.
74830         * tests/test-cond.c: New file.
74832 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74833             Bruno Haible  <bruno@clisp.org>
74835         * modules/cond (Dependencies): Add errno, time.
74836         * lib/glthread/cond.h: Include <time.h>.
74837         (gl_cond_define, gl_cond_define_initialized): Use the same definition
74838         across platforms.
74840 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74841             Bruno Haible  <bruno@clisp.org>
74843         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
74845 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74846             Bruno Haible  <bruno@clisp.org>
74848         * modules/tls-tests (Depends-on): Add thread, yield.
74849         (configure.ac): Remove all checks.
74850         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
74851         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
74852         gl_thread_self): Remove definitions. Include glthread/thread.h and
74853         glthread/yield.h instead.
74854         (test_tls): Pass an additional NULL argument to gl_thread_join.
74856 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74857             Bruno Haible  <bruno@clisp.org>
74859         * modules/lock-tests (Depends-on): Add thread, yield.
74860         (configure.ac): Remove all checks.
74861         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
74862         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
74863         gl_thread_self): Remove definitions. Include glthread/thread.h and
74864         glthread/yield.h instead.
74865         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
74866         additional NULL argument to gl_thread_join.
74868 2008-09-30  Bruno Haible  <bruno@clisp.org>
74870         Fix the Win32 implementation of the 'thread' module.
74871         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
74872         pointer type.
74873         (gl_thread_self): Invoke gl_thread_self_func.
74874         (gl_thread_self_func): New declaration.
74875         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
74876         (do_init_self_key, init_self_key): New functions.
74877         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
74878         Remove some fields.
74879         (running_threads, running_lock): Remove variables.
74880         (get_current_thread_handle): New function.
74881         (gl_thread_self_func, wrapper_func, glthread_create_func,
74882         glthread_join_func, gl_thread_exit_func): Largely rewritten and
74883         simplified.
74885 2008-09-30  Bruno Haible  <bruno@clisp.org>
74887         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
74888         files.
74890 2008-09-30  Jim Meyering  <meyering@redhat.com>
74892         fts.m4: correct the test for statfs.f_type
74893         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
74894         when checking for statfs.f_type.
74896 2008-09-15  Simon Josefsson  <simon@josefsson.org>
74898         tests: avoid some compiler warnings
74899         * tests/test-memchr.c (main): Pass NULL indirectly.
74900         * tests/test-getdate.c (main): Remove unused variable 'ret'.
74902 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
74904         getdate.y: disallow countable dayshifts like "4 yesterday ago"
74905         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
74906         exactly specified dayshifts.
74907         (dayshift): New rule.
74908         (rel): Add dayshift.
74909         (relative_time_table) [tomorrow, yesterday, today, now]:
74910         Use tDAY_SHIFT in place of tDAY_UNIT.
74911         * tests/test-getdate.c: Add tests for now-disallowed countable
74912         dayshifts, e.g., "4 yesterday ago".
74914 2008-09-29  Bruno Haible  <bruno@clisp.org>
74916         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
74917         * tests/test-posix_spawn1.in.sh: Renamed from
74918         tests/test-posix_spawn.in.sh.
74919         * tests/test-posix_spawn2.c: New file.
74920         * tests/test-posix_spawn2.in.sh: New file.
74921         * modules/posix_spawnp-tests (Files): Update.
74922         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
74924 2008-09-29  Bruno Haible  <bruno@clisp.org>
74926         Propagate effects of putenv/setenv/unsetenv to child processes.
74927         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
74928         * lib/pipe.c (create_pipe): Likewise.
74930 2008-09-29  Bruno Haible  <bruno@clisp.org>
74932         Enable use of shell scripts as executables in mingw.
74933         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
74934         run the program as a shell script.
74935         * lib/pipe.c (create_pipe): Likewise.
74936         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
74937         resulting array.
74939 2008-09-29  Eric Blake  <ebb9@byu.net>
74941         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
74943 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
74945         * doc/posix-functions/accept.texi: Update mingw problems.
74946         * doc/posix-functions/bind.texi: Update mingw problems.
74947         * doc/posix-functions/close.texi: Update mingw problems.
74948         * doc/posix-functions/connect.texi: Update mingw problems.
74949         * doc/posix-functions/getpeername.texi: Update mingw problems.
74950         * doc/posix-functions/getsockname.texi: Update mingw problems.
74951         * doc/posix-functions/getsockopt.texi: Update mingw problems.
74952         * doc/posix-functions/ioctl.texi: Update mingw problems.
74953         * doc/posix-functions/listen.texi: Update mingw problems.
74954         * doc/posix-functions/recv.texi: Update mingw problems.
74955         * doc/posix-functions/recvfrom.texi: Update mingw problems.
74956         * doc/posix-functions/select.texi: Update mingw problems.
74957         * doc/posix-functions/send.texi: Update mingw problems.
74958         * doc/posix-functions/sendto.texi: Update mingw problems.
74959         * doc/posix-functions/setsockopt.texi: Update mingw problems.
74960         * doc/posix-functions/socket.texi: Update mingw problems.
74962 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
74963             Bruno Haible  <bruno@clisp.org>
74965         * lib/sys_select.in.h: Include sys/time.h.
74966         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
74967         * modules/sys_select: Depend on sys_time.
74968         * tests/test-sys_select.c: Test that sys/select.h defines struct
74969         timeval fully.
74971 2008-09-29  Bruno Haible  <bruno@clisp.org>
74973         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
74974         * lib/sys_select.in.h: Likewise.
74976 2008-09-29  Bruno Haible  <bruno@clisp.org>
74978         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
74980 2008-09-29  Bruno Haible  <bruno@clisp.org>
74982         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
74983         Set LIBSOCKET instead of augmenting LIBS.
74984         * modules/sockets (Link): New section.
74985         * modules/sockets-tests (test_sockets_LDADD): New variable.
74986         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
74987         * modules/poll-tests (test_poll_LDADD): New variable.
74988         * NEWS: Document the change.
74990 2008-09-29  Bruno Haible  <bruno@clisp.org>
74992         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
74993         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
74994         ARPA_INET_H directly.
74995         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
74997 2008-09-28  Bruno Haible  <bruno@clisp.org>
74999         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
75000         from gl_HEADER_SYS_SOCKET.
75001         (gl_HEADER_SYS_SOCKET): Invoke it.
75002         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
75004 2008-09-28  Bruno Haible  <bruno@clisp.org>
75006         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
75007         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
75008         Needed on OSF/1 4.0.
75010 2008-09-28  Bruno Haible  <bruno@clisp.org>
75012         Override open more carefully.
75013         * lib/open.c (orig_open): New function.
75014         (rpl_open): Use orig_open instead of open.
75015         * lib/fcntl.in.h: Add special invocation convention.
75016         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
75017         (gl_FUNC_OPEN): Invoke it.
75019         Override freopen more carefully.
75020         * lib/freopen.c (orig_freopen): New function.
75021         (rpl_freopen): Use orig_freopen instead of freopen.
75022         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
75023         (gl_FUNC_FREOPEN): Invoke it.
75025         Override fopen more carefully.
75026         * lib/fopen.c (orig_fopen): New function.
75027         (rpl_fopen): Use orig_fopen instead of fopen.
75028         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
75029         (gl_FUNC_FOPEN): Invoke it.
75030         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
75032 2008-09-28  Bruno Haible  <bruno@clisp.org>
75034         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
75035         SIGPIPE.
75037 2008-09-28  Bruno Haible  <bruno@clisp.org>
75039         * tests/test-sigaction.c (handler, main): Disable the check whether
75040         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
75041         glibc systems with LinuxThreads.
75043 2008-09-28  Bruno Haible  <bruno@clisp.org>
75045         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
75047         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
75048         with AIX xlc.
75049         * lib/fcntl.in.h (open): Likewise.
75050         Reported by Rainer Tammer <tammer@tammer.net>.
75052 2008-09-28  Bruno Haible  <bruno@clisp.org>
75054         * modules/posix_spawnp-tests: New file.
75055         * tests/test-posix_spawn.c: New file.
75056         * tests/test-posix_spawn.in.sh: New file.
75058         New module 'posix_spawnp'.
75059         * modules/posix_spawnp: New file.
75060         * lib/spawnp.c: New file, from GNU libc with modifications.
75061         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
75063         New module 'posix_spawn'.
75064         * modules/posix_spawn: New file.
75065         * lib/spawn.c: New file, from GNU libc with modifications.
75066         * doc/posix-functions/posix_spawn.texi: Mention the new module.
75068         New module 'posix_spawnattr_destroy'.
75069         * modules/posix_spawnattr_destroy: New file.
75070         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
75071         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
75072         module.
75074         New module 'posix_spawnattr_setsigmask'.
75075         * modules/posix_spawnattr_setsigmask: New file.
75076         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
75077         modifications.
75078         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
75079         new module.
75081         New module 'posix_spawnattr_getsigmask'.
75082         * modules/posix_spawnattr_getsigmask: New file.
75083         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
75084         modifications.
75085         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
75086         new module.
75088         New module 'posix_spawnattr_setsigdefault'.
75089         * modules/posix_spawnattr_setsigdefault: New file.
75090         * lib/spawnattr_setdefault.c: New file, from GNU libc with
75091         modifications.
75092         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
75093         new module.
75095         New module 'posix_spawnattr_getsigdefault'.
75096         * modules/posix_spawnattr_getsigdefault: New file.
75097         * lib/spawnattr_getdefault.c: New file, from GNU libc with
75098         modifications.
75099         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
75100         new module.
75102         New module 'posix_spawnattr_setschedpolicy'.
75103         * modules/posix_spawnattr_setschedpolicy: New file.
75104         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
75105         modifications.
75106         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
75107         new module.
75109         New module 'posix_spawnattr_getschedpolicy'.
75110         * modules/posix_spawnattr_getschedpolicy: New file.
75111         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
75112         modifications.
75113         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
75114         new module.
75116         New module 'posix_spawnattr_setschedparam'.
75117         * modules/posix_spawnattr_setschedparam: New file.
75118         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
75119         modifications.
75120         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
75121         new module.
75123         New module 'posix_spawnattr_getschedparam'.
75124         * modules/posix_spawnattr_getschedparam: New file.
75125         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
75126         modifications.
75127         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
75128         new module.
75130         New module 'posix_spawnattr_setpgroup'.
75131         * modules/posix_spawnattr_setpgroup: New file.
75132         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
75133         modifications.
75134         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
75135         module.
75137         New module 'posix_spawnattr_getpgroup'.
75138         * modules/posix_spawnattr_getpgroup: New file.
75139         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
75140         modifications.
75141         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
75142         module.
75144         New module 'posix_spawnattr_setflags'.
75145         * modules/posix_spawnattr_setflags: New file.
75146         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
75147         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
75148         module.
75150         New module 'posix_spawnattr_getflags'.
75151         * modules/posix_spawnattr_getflags: New file.
75152         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
75153         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
75154         module.
75156         New module 'posix_spawnattr_init'.
75157         * modules/posix_spawnattr_init: New file.
75158         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
75159         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
75160         module.
75162         New module 'posix_spawn_file_actions_destroy'.
75163         * modules/posix_spawn_file_actions_destroy: New file.
75164         * lib/spawn_faction_destroy.c: New file, from GNU libc with
75165         modifications.
75166         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
75167         the new module.
75169         New module 'posix_spawn_file_actions_addopen'.
75170         * modules/posix_spawn_file_actions_addopen: New file.
75171         * lib/spawn_faction_addopen.c: New file, from GNU libc with
75172         modifications.
75173         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
75174         the new module.
75176         New module 'posix_spawn_file_actions_adddup2'.
75177         * modules/posix_spawn_file_actions_adddup2: New file.
75178         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
75179         modifications.
75180         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
75181         the new module.
75183         New module 'posix_spawn_file_actions_addclose'.
75184         * modules/posix_spawn_file_actions_addclose: New file.
75185         * lib/spawn_faction_addclose.c: New file, from GNU libc with
75186         modifications.
75187         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
75188         the new module.
75190         New module 'posix_spawn_file_actions_init'.
75191         * modules/posix_spawn_file_actions_init: New file.
75192         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
75193         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
75194         new module.
75196         New module 'posix_spawn-internal'.
75197         * modules/posix_spawn-internal: New file.
75198         * lib/spawn_int.h: New file, from GNU libc with modifications.
75199         * lib/spawni.c: New file, from GNU libc with modifications.
75200         * m4/posix_spawn.m4: New file.
75202         New module 'spawn'.
75203         * modules/spawn: New file.
75204         * lib/spawn.in.h: New file, from GNU libc with modifications.
75205         * m4/spawn_h.m4: New file.
75206         * doc/posix-headers/spawn.texi: Mention the new module.
75208 2008-09-28  Bruno Haible  <bruno@clisp.org>
75210         * modules/sched-tests: New file.
75211         * tests/test-sched.c: New file.
75213         New module 'sched'.
75214         * modules/sched: New file.
75215         * lib/sched.in.h: New file.
75216         * m4/sched_h.m4: New file.
75217         * doc/posix-headers/sched.texi: Mention the new module.
75219 2008-09-27  Eric Blake  <ebb9@byu.net>
75221         Fix previous patch, and tweak references to $0.
75222         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
75223         (func_version, func_gnulib_dir): Don't call this program
75224         gnulib-tool.
75225         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
75226         with using $0 in function.
75227         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
75228         (func_fatal_error): Reuse the name the user invoked us with.
75230 2008-09-27  Bruno Haible  <bruno@clisp.org>
75232         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
75233         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
75234         (gl_ICONV_H): Not here.
75235         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
75236         instead of assigning ICONV_H directly.
75238         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
75239         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
75240         WCHAR_H directly.
75242 2008-09-27  Bruno Haible  <bruno@clisp.org>
75244         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
75245         * modules/arpa_inet (Depends-on): Add link-warning.
75246         (Makefile.am): Insert the definition of GL_LINK-WARNING.
75247         * modules/unistd (Makefile.am): Likewise.
75249 2008-09-26  Bruno Haible  <bruno@clisp.org>
75251         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
75252         variables.
75253         (func_version): Essentially copied from gnulib-tool.
75254         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
75255         func_readlink): Copied from gnulib-tool.
75257 2008-09-26  Bruno Haible  <bruno@clisp.org>
75259         * gnulib-tool (func_version): Change directory to $gnulib_dir before
75260         invoking git-version-gen.
75262 2008-09-26  Bruno Haible  <bruno@clisp.org>
75264         * posix-modules: Update to directory names changed on 2008-01-19.
75265         Remove commas in output before splitting into words. No more need to
75266         avoid 'ftruncate' since 2007-02-19.
75268 2008-09-26  Bruno Haible  <bruno@clisp.org>
75270         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
75272 2008-09-26  Bruno Haible  <bruno@clisp.org>
75274         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
75275         * modules/fwriteerror (Depends-on): Add errno.
75277 2008-09-26  Bruno Haible  <bruno@clisp.org>
75279         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
75280         * tests/test-vc-list-files-cvs.sh: Likewise.
75282 2008-09-26  Bruno Haible  <bruno@clisp.org>
75284         * doc/posix-headers/sys_resource.texi: Reorder items.
75286 2008-09-26  Jim Meyering  <meyering@redhat.com>
75288         fts: tweak inode comparison function
75289         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
75290         inode numbers, as documented.
75292         fts: sort dirent entries on inode number before traversing
75293         This avoids a quadratic, seek-related performance penalty when
75294         operating on a directory containing many entries (measurable at 10k;
75295         3.5 hours at 2 million entries with a cold cache) on certain types
75296         of file systems, including ext3 and ext4, but not tmpfs.
75297         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
75298         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
75299         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
75300         (fs_handles_readdir_ordered_dirents_efficiently): New function.
75301         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
75302         (fts_build): Set the stat.st_ino member from D_INO.
75303         If it is likely to be useful, sort dirent entries on inode number.
75305         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
75306         and the struct statfs.f_type member.
75307         * modules/fts (Depends-on): Add d-ino.
75309 2008-09-26  Bruno Haible  <bruno@clisp.org>
75311         * modules/sigpipe-die (Depends-on): Add sigpipe.
75313         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
75314         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
75315         and GNULIB_STDIO_H_SIGPIPE are set.
75316         * lib/stdio-write.c: New file.
75317         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
75318         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
75319         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
75320         REPLACE_STDIO_WRITE_FUNCS.
75321         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
75322         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
75323         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
75324         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
75325         * modules/stdio (Files): Add lib/stdio-write.c.
75326         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
75327         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
75328         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
75329         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
75330         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
75331         REPLACE_FPRINTF_POSIX.
75332         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
75333         REPLACE_PRINTF_POSIX.
75334         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
75335         REPLACE_VFPRINTF_POSIX.
75336         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
75337         REPLACE_VPRINTF_POSIX.
75338         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
75339         SIGPIPE issue.
75340         * doc/posix-functions/fputc.texi: Likewise.
75341         * doc/posix-functions/fputs.texi: Likewise.
75342         * doc/posix-functions/fwrite.texi: Likewise.
75343         * doc/posix-functions/printf.texi: Likewise.
75344         * doc/posix-functions/putc.texi: Likewise.
75345         * doc/posix-functions/putchar.texi: Likewise.
75346         * doc/posix-functions/puts.texi: Likewise.
75347         * doc/posix-functions/vfprintf.texi: Likewise.
75348         * doc/posix-functions/vprintf.texi: Likewise.
75350         * modules/safe-write (Depends-on): Add write.
75352         * modules/sigpipe-tests: New file.
75353         * tests/test-sigpipe.c: New file.
75354         * tests/test-sigpipe.sh: New file.
75356         * modules/write: New file.
75357         * lib/unistd.in.h: Include <sys/types.h>.
75358         (write): New declaration.
75359         * lib/write.c: New file.
75360         * m4/write.m4: New file.
75361         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
75362         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
75363         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
75364         GNULIB_WRITE, REPLACE_WRITE.
75365         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
75366         and the SIGPIPE issue.
75368         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
75369         (raise): New declaration.
75370         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
75371         (ext_signal): New function.
75372         (rpl_raise): New function.
75373         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
75374         GNULIB_SIGNAL_H_SIGPIPE.
75375         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
75376         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
75378         * modules/sigpipe: New file.
75379         * m4/sigpipe.m4: New file.
75381 2008-09-25  Derek Price  <derek@ximbiot.com>
75382             Bruno Haible  <bruno@clisp.org>
75384         * gnulib-tool (func_import): Report all license incompatibilities, not
75385         just the first one.
75387 2008-09-25  Bruno Haible  <bruno@clisp.org>
75389         * gnulib-tool (func_import): When computing the edits, consider not
75390         only the Makefile.ams that exist but also those that will be generated.
75392 2008-09-25  Simon Josefsson  <simon@josefsson.org>
75394         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
75395         fixes gnulib-tool --test warning about duplicate dependency.
75397 2008-09-25  Bruno Haible  <bruno@clisp.org>
75399         * gnulib-tool: Don't ask the user to perform edits in the generated
75400         Makefile.ams.
75401         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
75402         apply to the Makefile.am being generated.
75403         (func_emit_tests_Makefile_am): Execute edits that apply to the
75404         Makefile.am being generated.
75405         (func_import): Setup list of Makefile.am edits before emitting the
75406         Makefile.ams, not at the end.
75407         (func_create_testdir): Update.
75408         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
75410 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75412         * gnulib-tool (func_import): Store the --tests-base option in the
75413         comment in gnulib-cache.m4.
75415 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
75417         * NEWS: Document increased portability that sys_select now provides.
75419         * lib/sys_select.in.h: Install select wrapper.
75420         * lib/sys_socket.in.h: Use more descriptive name when there is no
75421         select wrapper.
75422         * lib/winsock-select.c: New.
75423         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
75424         Require gl_HEADER_SYS_SOCKET.
75425         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
75426         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
75427         * tests/test-sys_select.c: Add functional tests.
75429 2008-09-24  Eric Blake  <ebb9@byu.net>
75431         open, fopen: close fd leak in last patch
75432         * lib/open.c (rpl_open): Close fd before returning error.
75433         * lib/fopen.c (rpl_fopen): Close fd before returning error.
75434         * doc/posix-functions/open.texi (open): Document that Irix also
75435         has the bug.
75436         * doc/posix-functions/fopen.texi (fopen): Likewise.
75437         Reported by Paolo Bonzini.
75439 2008-09-24  Bruno Haible  <bruno@clisp.org>
75441         Ensure that a filename ending in a slash cannot be used to access a
75442         non-directory.
75443         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
75444         to check whether it's really a directory.
75445         * lib/fopen.c: Include fcntl.h, unistd.h.
75446         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
75447         and fdopen().
75448         * modules/fopen (Depends-on): Add unistd.
75449         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
75450         * tests/test-fopen.c (main): Likewise.
75451         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
75452         * doc/posix-functions/fopen.texi: Likewise.
75453         Reported by Eric Blake.
75455 2008-09-23  Eric Blake  <ebb9@byu.net>
75457         c-stack: avoid compiler optimizations when provoking overflow
75458         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
75459         recursion harder to optimize, to ensure a stack overflow occurs.
75460         * tests/test-c-stack.c (recurse): Likewise.
75461         Borrowed from libsigsegv.
75463         c-stack: work around Irix sigaltstack bug
75464         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
75465         whether sigaltstack uses wrong end of stack_t (copied in part from
75466         libsigsegv).
75467         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
75468         Irix bug, without requiring an over-allocation.
75469         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
75470         bug.
75472         fopen: document mingw bug on directories
75473         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
75474         not allowing a stream visiting a directory, even though reading
75475         from such a stream is not portable.
75477 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
75479         * lib/poll.c: Rewrite.
75480         * modules/poll: Depend on alloca.
75482 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
75484         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
75485         instead define prototypes for a full set of wrappers.  Ensure
75486         that Cygwin does not use the compatibility code, which is only
75487         for MinGW.
75488         * lib/winsock.c: New.
75489         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
75490         * modules/sys_socket: Add lib/winsock.c.
75492         * modules/poll-tests: Add errno and perror.
75493         * tests/test-poll.c: Use ioctl, not ioctlsocket.
75495 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
75497         * tests/test-poll.c: Downgrade minimum needed Winsock version.
75499 2008-09-23  Bruno Haible  <bruno@clisp.org>
75501         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
75502         * doc/glibc-functions/*: Likewise.
75504 2008-09-23  Simon Josefsson  <simon@josefsson.org>
75506         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
75507         success.
75509 2008-09-22  Eric Blake  <ebb9@byu.net>
75510             Bruno Haible  <bruno@clisp.org>
75512         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
75513         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
75514         supply %A but mishandle pseudo-NaN.
75515         Reported by Simon Josefsson.
75517 2008-09-21  Bruno Haible  <bruno@clisp.org>
75519         * tests/test-lock.c (main): Tweak skip message.
75520         * tests/test-tls.c (main): Likewise.
75522 2008-09-21  Bruno Haible  <bruno@clisp.org>
75524         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
75525         whether 'struct sigaction' has sa_sigaction here...
75526         (gl_PREREQ_SIG_HANDLER_H): ... not here.
75527         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
75529 2008-09-21  Bruno Haible  <bruno@clisp.org>
75531         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
75532         section.
75533         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
75534         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
75535         the new section.
75536         (Support for obsolete systems lacking POSIX:2001): New section.
75537         (String handling <string.h>): Move strdup to the new section.
75538         Suggested by Simon Josefsson and Paolo Bonzini.
75540 2008-09-21  Bruno Haible  <bruno@clisp.org>
75542         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
75543         exponents in %e and %g results on 'long double'. Needed for mingw's
75544         improved *printf functions.
75545         * tests/test-vasprintf-posix.c (test_function): Likewise.
75546         * tests/test-snprintf-posix.h (test_function): Likewise.
75547         * tests/test-sprintf-posix.h (test_function): Likewise.
75548         Reported by Eric Blake.
75550 2008-09-21  Bruno Haible  <bruno@clisp.org>
75552         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
75553         * tests/test-sprintf-posix.h (test_function): Likewise.
75555 2008-09-21  Bruno Haible  <bruno@clisp.org>
75557         * modules/getpass (Depends-on): Add strdup-posix.
75559         New module 'strdup-posix'.
75560         * modules/strdup-posix: New file.
75561         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
75562         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
75563         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
75564         REPLACE_STRDUP.
75565         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
75566         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
75567         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75568         strdup-posix.
75570         * modules/strdup (Depends-on): Remove malloc-posix.
75572 2008-09-20  Bruno Haible  <bruno@clisp.org>
75574         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
75575         Wildenhues.
75577 2008-09-20  Bruno Haible  <bruno@clisp.org>
75579         Ensure that wint_t gets defined on IRIX 5.3.
75580         * lib/wchar.in.h (wint_t): Define if not defined by the system.
75581         * lib/wctype.in.h (wint_t): Likewise.
75582         (__wctype_wint_t): Remove type.
75583         (isw*): Use wint_t instead of __wctype_wint_t.
75584         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
75585         * modules/wchar (Files): Add m4/wint_t.m4.
75586         (Makefile.am): Substitute HAVE_WINT_T.
75587         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
75588         * tests/test-wctype.c: Check that wint_t is defined.
75589         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
75590         * doc/posix-headers/wctype.texi: Likewise.
75591         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
75593 2008-09-18  Bruno Haible  <bruno@clisp.org>
75595         * gnulib-tool (func_exit): Update comment.
75597 2008-09-18  Simon Josefsson  <simon@josefsson.org>
75599         * modules/getaddrinfo (Depends-on): Remove strdup, this module
75600         assumes strdup exists and does not depend on strdup to return
75601         ENOMEM on out of memory conditions.
75603 2008-09-18  Bruno Haible  <bruno@clisp.org>
75605         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
75606         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
75607         digits for the exponent.
75609 2008-09-18  Jim Meyering  <meyering@redhat.com>
75610             Bruno Haible  <bruno@clisp.org>
75612         * lib/vasnprintf.c (decimal_point_char): Define also if
75613         NEED_PRINTF_INFINITE_LONG_DOUBLE.
75615 2008-09-16  Bruno Haible  <bruno@clisp.org>
75616         and Eric Blake  <ebb9@byu.net>
75618         vasnprintf: support Irix 5.3
75619         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
75620         that mishandle long double infinity.
75621         Reported by Tom G. Christensen.
75623 2008-09-16  Bruno Haible  <bruno@clisp.org>
75625         * doc/glibc-functions/scandir.texi: Mention the function is missing on
75626         Solaris 9.
75627         * doc/glibc-functions/alphasort.texi: Likewise.
75628         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
75630 2008-09-16  Jim Meyering  <meyering@redhat.com>
75632         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
75633         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
75634         a umask modification leak out of a subshell.  Otherwise, the
75635         opensolaris /bin/sh would be accepted and thus cause unwarranted
75636         failures in the coreutils test suite.
75638 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
75640         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
75641         to succeed.
75643 2008-09-16  Jim Meyering  <meyering@redhat.com>
75645         avoid spurious test failure when library is built without ACL support
75646         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
75647         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
75648         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
75649         * tests/test-copy-acl.sh: Likewise.
75651 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75653         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
75654         based on character occurrence counts.
75656 2008-09-15  Eric Blake  <ebb9@byu.net>
75658         tests: avoid some compiler warnings
75659         * tests/test-memchr.c (main): Pass NULL indirectly.
75660         * tests/test-closein.c (main): Avoid unused variable.
75662 2008-09-15  Bruno Haible  <bruno@clisp.org>
75664         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
75665         are missing on OpenBSD 4.0 individually.
75666         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
75668 2008-09-15  Bruno Haible  <bruno@clisp.org>
75670         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
75671         * doc/posix-functions/strerror.texi: Mention also Cygwin.
75672         * doc/posix-functions/perror.texi: Likewise.
75673         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
75674         is missing.
75675         Reported by Eric Blake.
75677         * lib/errno.in.h: Use replacement values >= 2000.
75678         Reported by Eric Blake.
75680 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75682         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
75683         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
75684         limit.
75685         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
75686         compareseq was aborted.
75688 2008-09-14  Bruno Haible  <bruno@clisp.org>
75690         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
75691         yvec_edit_count.
75692         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
75693         (fstrcmp_bounded): Simplify result computation accordingly.
75695 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75697         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
75698         (fstrcmp): Define in terms of fstrcmp_bounded.
75699         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
75700         lower_bound argument.
75701         Return quickly if the result is certainly < lower_bound.
75702         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
75704 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75706         * lib/diffseq.h (EARLY_ABORT): New macro.
75707         (compareseq): Change return type to bool. Return true when EARLY_ABORT
75708         evaluates to true.
75710 2008-09-14  Bruno Haible  <bruno@clisp.org>
75712         * modules/perror-tests: New file.
75713         * tests/test-perror.sh: New file.
75714         * tests/test-perror.c: New file.
75716         New module 'perror'.
75717         * lib/stdio.in.h (perror): New declaration.
75718         * lib/perror.c: New file.
75719         * m4/perror.m4: New file.
75720         * modules/perror: New file.
75721         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
75722         * doc/posix-functions/perror.texi: Mention the perror module.
75723         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
75724         REPLACE_PERROR.
75725         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
75726         REPLACE_PERROR.
75728 2008-09-14  Bruno Haible  <bruno@clisp.org>
75730         * modules/stdio (Makefile.am): Reorder to match the order in
75731         lib/stdio.in.h.
75732         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
75734 2008-09-13  Bruno Haible  <bruno@clisp.org>
75736         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
75738 2008-09-13  Bruno Haible  <bruno@clisp.org>
75740         Extend strerror to cover the added errno values.
75741         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
75742         (rpl_strerror): Provide error messages for the added errno values and
75743         for the WSA* values.
75744         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
75745         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
75746         strerror.
75747         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
75748         * modules/strerror (Depends-on): Add errno.
75749         * doc/posix-functions/strerror.texi: Document the change.
75750         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
75751         and EOVERFLOW.
75753 2008-09-13  Bruno Haible  <bruno@clisp.org>
75755         * modules/EOVERFLOW: Remove file.
75756         * m4/eoverflow.m4: Remove file.
75757         * modules/EOVERFLOW-tests: Remove file.
75758         * tests/test-EOVERFLOW.c: Remove file.
75759         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
75760         * modules/ftell (Depends-on): Likewise.
75761         * modules/getdelim (Depends-on): Likewise.
75762         * modules/getugroups (Depends-on): Likewise.
75763         * modules/poll (Depends-on): Likewise.
75764         * modules/snprintf (Depends-on): Likewise.
75765         * modules/sprintf-posix (Depends-on): Likewise.
75766         * modules/vasnprintf (Depends-on): Likewise.
75767         * modules/vasprintf (Depends-on): Likewise.
75768         * modules/vfprintf-posix (Depends-on): Likewise.
75769         * modules/vsnprintf (Depends-on): Likewise.
75770         * modules/vsprintf-posix (Depends-on): Likewise.
75771         * modules/xvasprintf (Depends-on): Likewise.
75772         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
75773         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
75774         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
75775         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
75776         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
75777         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
75778         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
75779         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
75780         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
75781         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
75782         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
75783         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
75784         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
75785         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
75786         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
75787         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
75788         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
75789         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
75790         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
75791         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
75792         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
75793         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
75794         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
75795         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
75796         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
75797         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
75798         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
75799         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
75800         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
75801         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
75802         * MODULES.html.sh: Remove EOVERFLOW.
75803         * NEWS: Mention the change.
75805 2008-09-13  Bruno Haible  <bruno@clisp.org>
75807         * modules/errno-tests: New file.
75808         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
75810         * lib/errno.in.h: New file.
75811         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
75812         * modules/errno: New file.
75813         * doc/posix-headers/errno.texi: Update documentation.
75814         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
75816 2008-09-13  Bruno Haible  <bruno@clisp.org>
75818         * tests/test-poll.c: Use #if for native Windows, rather than testing
75819         __MSVCRT__.
75821 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75822             Bruno Haible  <bruno@clisp.org>
75824         * lib/glob.c: Don't include <pwd.h> on native Windows.
75825         (WINDOWS32): New macro.
75826         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
75828 2008-09-13  Bruno Haible  <bruno@clisp.org>
75830         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
75831         (ETIMEDOUT): Remove macro.
75832         (glthread_cond_timedwait_multithreaded): New declaration.
75833         (glthread_cond_timedwait): Use it.
75834         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
75835         (glthread_cond_timedwait_multithreaded): New function.
75837 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
75839         * modules/poll-tests: Do not check for io.h.
75840         * tests/test-poll.c: Check for __MSVCRT__ instead.
75842 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
75844         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
75845         * modules/poll-tests: Add inet_pton, stdbool, sockets.
75846         * tests/test-poll.c: Use them.  Use _pipe on Windows.
75848 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
75850         * modules/poll-tests: New.
75851         * tests/test-poll.c: New.
75853 2008-09-12  Eric Blake  <ebb9@byu.net>
75855         frexp: test for NetBSD failure on -0.0
75856         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
75857         not all, bugs from NetBSD 3.0 have been fixed.
75858         * doc/posix-functions/frexp.texi (frexp): Document bug.
75859         Reported by Thomas Klausner.
75861         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
75862         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
75863         literal -0.0.
75864         Reported by Jonathan C. Patschke <jp@centtech.com>.
75866 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75868         * lib/glthread/cond.h: Use dummy implementation also if
75869         USE_WIN32_THREADS.
75871 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75873         * modules/fnmatch-posix (License): Change to LGPLv2+.
75874         * modules/fnmatch-gnu (License): Likewise.
75876 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75878         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
75880 2008-09-11  Jim Meyering  <meyering@redhat.com>
75882         * users.txt: Add gtk-vnc.
75884 2008-09-08  Simon Josefsson  <simon@josefsson.org>
75886         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
75887         rotate amounts.
75889         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
75890         required for 16-bit and 8-bit rotates.
75891         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
75892         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
75893         UINT8_MAX instead of hard-coded constants.
75894         Suggested by Paul Eggert.
75896 2008-09-07  Bruno Haible  <bruno@clisp.org>
75898         * tests/test-striconveh.c (main): Check behaviour when converting from
75899         UTF-7.
75901         Make striconveh work better with stateful encodings.
75902         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
75903         that iconv does not increment the inptr when returning -1/EINVAL.
75905 2008-09-07  Bruno Haible  <bruno@clisp.org>
75907         * build-aux/config.rpath: Update according to libtool-2.2.6.
75908         * build-aux/config.libpath: Likewise.
75910 2008-09-06  Bruno Haible  <bruno@clisp.org>
75912         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
75913         * lib/freadptr.c (freadptr): Likewise.
75914         * lib/freadseek.c (freadptrinc): Likewise.
75915         Reported by Simon Josefsson.
75917 2008-09-06  Bruno Haible  <bruno@clisp.org>
75919         * modules/freadptr (License): Change to LGPLv2+.
75920         * modules/freadseek (License): Likewise.
75921         Suggested by Eric Blake.
75923         * modules/memchr2 (License): Change to LGPLv2+.
75924         Approved by Eric Blake.
75926 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75927             Bruno Haible  <bruno@clisp.org>
75929         Make gnulib-tool work with native 'sed' on AIX.
75930         * gnulib-tool (sed_noop): New variable.
75931         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
75932         func_add_or_update, func_create_testdir): Use it to initialize sed
75933         script variables.
75934         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
75936 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
75937             Bruno Haible  <bruno@clisp.org>
75939         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
75940         also works after #include directives.
75942 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
75944         getdate.y: reject an out-of-range timezone value
75945         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
75946         the range [-24...+24].  When specified with only one or two digits,
75947         * tests/test-getdate.c: Tests for the fix.
75948         * doc/getdate.texi: Document this change.
75950 2008-09-03  Bruno Haible  <bruno@clisp.org>
75952         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
75954 2008-09-02  Simon Josefsson  <simon@josefsson.org>
75956         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
75957         <bruce.korb@gmail.com> with ideas from Ben Pfaff
75958         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
75959         Blake <ebb9@byu.net>.
75961         * tests/test-bitrotate.c: Add more test vectors.
75963 2008-09-02  Eric Blake  <ebb9@byu.net>
75965         vasnprintf-posix: handle large precision via %.*d
75966         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
75967         when handling it ourselves.
75968         * tests/test-vasnprintf-posix.c (test_function): Add test.
75969         * tests/test-snprintf-posix.h (test_function): Likewise.
75970         * tests/test-sprintf-posix.h (test_function): Likewise.
75971         * tests/test-vasprintf-posix.c (test_function): Likewise.
75972         Reported by Alain Guibert.
75974 2008-09-01  Eric Blake  <ebb9@byu.net>
75976         c-stack: make configure-time check more robust
75977         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
75978         successful sigaction call.
75979         Reported by Tom G. Christensen.
75981 2008-09-01  Bruno Haible  <bruno@clisp.org>
75983         New module 'findprog-lgpl'.
75984         * modules/findprog-lgpl: New file.
75985         * lib/findprog-lgpl.c: New file.
75986         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
75987         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
75988         to decide whether to use strdup or xstrdup, concatenated_filename or
75989         xconcatenated_filename.
75991 2008-09-01  Bruno Haible  <bruno@clisp.org>
75993         Split module 'concat-filename' into 'concat-filename' (LGPL) and
75994         'xconcat-filename' (GPL).
75995         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
75996         (License): Change to LGPLv2+.
75997         * modules/xconcat-filename: New file.
75998         * lib/concat-filename.h (concatenated_filename): Change specification.
75999         (xconcatenated_filename): New declaration.
76000         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
76001         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
76002         memory situations.
76003         * lib/xconcat-filename.c: New file.
76004         * NEWS: Mention the change.
76005         * lib/findprog.c: Include concat-filename.h, not filename.h.
76006         (find_in_path): Use xconcatenated_filename instead of
76007         concatenated_filename.
76008         * lib/javacomp.c: Include concat-filename.h, not filename.h.
76009         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
76010         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
76011         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
76012         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
76013         instead of concatenated_filename.
76014         * lib/javaexec.c: Include concat-filename.h, not filename.h.
76015         (execute_java_class): Use xconcatenated_filename instead of
76016         concatenated_filename.
76017         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
76018         * modules/javacomp (Depends-on): Likewise.
76019         * modules/javaexec (Depends-on): Likewise.
76021 2008-09-01  Bruno Haible  <bruno@clisp.org>
76023         Split module 'filename' into 'filename' and 'concat-filename'.
76024         * modules/filename: Keep only lib/filename.h.
76025         (License): Change to LGPLv2+.
76026         * modules/concat-filename: New file, extracted from modules/filename.
76027         * lib/filename.h (concatenated_filename): Remove declaration.
76028         * lib/concat-filename.h: New file, extracted from lib/filename.h.
76029         * lib/concat-filename.c: Include concat-filename.h.
76030         * NEWS: Mention the change.
76032 2008-09-01  Simon Josefsson  <simon@josefsson.org>
76034         * lib/bitrotate.h (rotl8, rotr8): Add.
76036         * modules/bitrotate (configure.ac): Need
76037         AC_REQUIRE([AC_C_INLINE]).
76038         (Description): Mention stdint.h.  Reported by Bruno Haible
76039         <bruno@clisp.org>.
76041         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
76042         Paolo Bonzini <bonzini@gnu.org>.
76044 2008-08-31  Bruno Haible  <bruno@clisp.org>
76046         Assume Solaris specific bi-arch conventions on Solaris systems.
76047         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
76048         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
76049         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
76050         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
76051         like acl_libdirstem.
76052         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
76053         acl_libdirstem.
76054         * NEWS: Mention the change.
76055         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
76057 2008-08-31  Jim Meyering  <meyering@redhat.com>
76059         * lib/strftime.h: Add comments describing the two added arguments.
76061         remove duplicate #include directives
76062         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
76063         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
76065 2008-08-31  Bruno Haible  <bruno@clisp.org>
76067         New module 'sigpipe-die'.
76068         * modules/sigpipe-die: New file.
76069         * lib/sigpipe-die.h: New file.
76070         * lib/sigpipe-die.c: New file.
76071         * MODULES.html.sh (Signal handling): Add sigpipe-die.
76073 2008-08-31  Bruno Haible  <bruno@clisp.org>
76075         Don't override previously installed signal handlers.
76076         * lib/fatal-signal.c (saved_sigactions): New variable.
76077         (uninstall_handlers): Reset the signal to the saved handler, not
76078         to SIG_DFL (except when ignored).
76079         (install_handlers): Save the previous handlers.
76081 2008-08-30  Bruno Haible  <bruno@clisp.org>
76083         * gnulib-tool (func_reset_sigpipe): New function.
76084         (func_get_automake_snippet, func_modules_transitive_closure,
76085         func_import): Invoke it before a join command that reads from stdin,
76086         to avoid "echo: write error: Broken pipe" error messages on stderr.
76087         Reported by Sam Steingold <sds@gnu.org>.
76089 2008-08-30  Bruno Haible  <bruno@clisp.org>
76091         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
76092         Code copied from m4/open.m4.
76093         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
76094         access and the filename ends in a slash. Code copied from lib/open.c.
76095         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
76096         * tests/test-fopen.c (main): Check against bug with trailing slash.
76098 2008-08-29  Bruno Haible  <bruno@clisp.org>
76100         Avoid some "gcc -pedantic" warnings.
76101         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
76102         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
76103         * lib/dirent.in.h: Likewise.
76104         * lib/fcntl.in.h: Likewise.
76105         * lib/float.in.h: Likewise.
76106         * lib/iconv.in.h: Likewise.
76107         * lib/inttypes.in.h: Likewise.
76108         * lib/locale.in.h: Likewise.
76109         * lib/math.in.h: Likewise.
76110         * lib/netinet_in.in.h: Likewise.
76111         * lib/search.in.h: Likewise.
76112         * lib/signal.in.h: Likewise.
76113         * lib/stdarg.in.h: Likewise.
76114         * lib/stdint.in.h: Likewise.
76115         * lib/stdio.in.h: Likewise.
76116         * lib/stdlib.in.h: Likewise.
76117         * lib/string.in.h: Likewise.
76118         * lib/strings.in.h: Likewise.
76119         * lib/sys_select.in.h: Likewise.
76120         * lib/sys_socket.in.h: Likewise.
76121         * lib/sys_stat.in.h: Likewise.
76122         * lib/sys_time.in.h: Likewise.
76123         * lib/sysexits.in.h: Likewise.
76124         * lib/time.in.h: Likewise.
76125         * lib/unistd.in.h: Likewise.
76126         * lib/wchar.in.h: Likewise.
76127         * lib/wctype.in.h: Likewise.
76128         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
76129         * modules/fchdir (Makefile.am): Likewise.
76130         * modules/fcntl (Makefile.am): Likewise.
76131         * modules/float (Makefile.am): Likewise.
76132         * modules/iconv_open (Makefile.am): Likewise.
76133         * modules/inttypes (Makefile.am): Likewise.
76134         * modules/locale (Makefile.am): Likewise.
76135         * modules/math (Makefile.am): Likewise.
76136         * modules/netinet_in (Makefile.am): Likewise.
76137         * modules/search (Makefile.am): Likewise.
76138         * modules/signal (Makefile.am): Likewise.
76139         * modules/stdarg (Makefile.am): Likewise.
76140         * modules/stdint (Makefile.am): Likewise.
76141         * modules/stdio (Makefile.am): Likewise.
76142         * modules/stdlib (Makefile.am): Likewise.
76143         * modules/string (Makefile.am): Likewise.
76144         * modules/strings (Makefile.am): Likewise.
76145         * modules/sys_select (Makefile.am): Likewise.
76146         * modules/sys_socket (Makefile.am): Likewise.
76147         * modules/sys_stat (Makefile.am): Likewise.
76148         * modules/sys_time (Makefile.am): Likewise.
76149         * modules/sysexits (Makefile.am): Likewise.
76150         * modules/time (Makefile.am): Likewise.
76151         * modules/unistd (Makefile.am): Likewise.
76152         * modules/wchar (Makefile.am): Likewise.
76153         * modules/wctype (Makefile.am): Likewise.
76154         Reported by Reuben Thomas <rrt@sc3d.org>.
76156 2008-08-29  Bruno Haible  <bruno@clisp.org>
76158         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
76159         any more.
76161 2008-08-29  Simon Josefsson  <simon@josefsson.org>
76163         * MODULES.html.sh (Misc): Add bitrotate.
76165         * modules/bitrotate: New file.
76167         * lib/bitrotate.h: New file.
76169         * modules/bitrotate-tests: New file.
76171         * tests/test-bitrotate.c: New file.
76173         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
76174         on the bitrotate module.
76176         * lib/arctwo.c: Use new bitrotate module.
76178 2008-08-29  Jim Meyering  <meyering@redhat.com>
76180         bootstrap: merge changes from coreutils
76181         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
76182         of copied files.  Remove a kludge, now that this is fixed.
76183         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
76184         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
76185         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
76187 2008-08-29  Bruno Haible  <bruno@clisp.org>
76189         * MODULES.html.sh: Remove --cvs-urls option.
76191 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
76193         maint.mk: adjust to file name change
76194         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
76196 2008-08-28  Jim Meyering  <meyering@redhat.com>
76198         * modules/getndelim2 (License): Relicense to LGPLv2+.
76199         Approved by Richard Stallman for the version of 1995, and by
76200         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
76202 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
76204         * lib/getdelim.c (flockfile, funlockfile): Make all of them
76205         dummy if one is not available.  Do not touch them if
76206         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
76207         (getc_maybe_unlocked): New.
76208         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
76210 2008-08-26  Eric Blake  <ebb9@byu.net>
76212         doc/INSTALL: resync from autoconf
76213         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
76214         (INSTALL_PRELUDE): Delete; this is done more efficiently by
76215         moving...
76216         * install.texi [!autoconf]: ...here.  Resync from autoconf.
76217         * INSTALL: Regenerate.
76218         * INSTALL.ISO: New file.
76219         * INSTALL.UTF-8: Likewise.
76221 2008-08-26  Jim Meyering  <meyering@redhat.com>
76223         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
76224         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
76225         these definitions conditional, so that they may be overridden, too.
76227 2008-08-26  Bruno Haible  <bruno@clisp.org>
76229         Generate INSTALL file variants with prettier quotes.
76230         * doc/Makefile (INSTALL_PRELUDE): New macro.
76231         (INSTALL): Use it.
76232         (INSTALL.ISO, INSTALL.UTF-8): New rules.
76234 2008-08-26  Bruno Haible  <bruno@clisp.org>
76236         Run makeinfo in an English locale.
76237         * doc/Makefile (MAKEINFO): New variable.
76239 2008-08-26  Bruno Haible  <bruno@clisp.org>
76241         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
76242         Suggested by Eric Blake.
76244 2008-08-25  Bruno Haible  <bruno@clisp.org>
76246         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
76248 2008-08-25  Eric Blake  <ebb9@byu.net>
76250         c-stack: test that stack overflow can be caught
76251         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
76252         that platform allows handling stack overflow; at least OS/2 EMX
76253         has sigaltstack, but crashes before transferring control to
76254         handler on stack overflow.
76255         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
76256         check for HAVE_STACK_OVERFLOW_HANDLING.
76257         Reported by Elbert Pol.
76259 2008-08-25  Bruno Haible  <bruno@clisp.org>
76261         * doc/posix-functions/strftime.texi: Fix description of strftime
76262         module.
76264 2008-08-24  Bruno Haible  <bruno@clisp.org>
76266         * tests/uniwidth/test-uc_width2.c: New file.
76267         * tests/uniwidth/test-uc_width2.sh: New file.
76268         * modules/uniwidth/width-tests (Files): Add the new files.
76269         (TESTS): Add uniwidth/test-uc_width2.sh.
76270         (TESTS_ENVIRONMENT): New variable.
76271         (check_PROGRAMS): Add test-uc_width2.
76272         (test_uc_width2_SOURCES): New variable.
76274         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
76275         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
76276         not 0x00AB.
76277         Reported by Alexander V. Lukyanov <lav@netis.ru>.
76279 2008-08-22  Eric Blake  <ebb9@byu.net>
76281         test-lock, test-tls: mention why a test is skipped
76282         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
76283         skipped.
76284         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
76286         count-one-bits: relax license
76287         * modules/count-one-bits (License): Relicense to LGPLv2+.
76288         Suggested by Ludovic Courtès, approved by Ben Pfaff.
76290 2008-08-22  Andreas Schwab  <schwab@suse.de>
76292         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
76293         Remove spurious space in assignment.
76295 2008-08-21  Simon Josefsson  <simon@josefsson.org>
76297         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
76298         Paul Eggert <eggert@CS.UCLA.EDU>.
76300 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
76302         * modules/gettext: Add m4/threadlib.m4.
76304 2008-08-19  Eric Blake  <ebb9@byu.net>
76306         test-c-stack: fix compilation failure on FreeBSD 5.0
76307         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
76308         headers before <sys/resource.h>.
76309         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
76310         the bug.
76311         Reported by Nelson H. F. Beebe.
76313         strverscmp: migrate from "strverscmp.h" to <string.h>
76314         * modules/string (Makefile.am): Add new hooks.
76315         * modules/strverscmp (Files): Remove strverscmp.h.
76316         (Depends-on): Add string.
76317         (configure.ac): Add indicator.
76318         (Include): Mention new header.
76319         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
76320         defaults.
76321         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
76322         results.
76323         * lib/strverscmp.h: Delete.
76324         * lib/string.in.h (strverscmp): Provide declaration, when needed.
76325         * tests/test-strverscmp.c (includes): Adjust client.
76326         * lib/check-version.c (includes): Likewise.
76327         * NEWS: Document the change.
76329         strverscmp: add unit test
76330         * modules/strverscmp-tests: New file.
76331         * tests/test-strverscmp.c: Likewise.
76333 2008-08-19  Simon Josefsson  <simon@josefsson.org>
76335         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
76336         regarding Windows crypto stuff, from Mono.
76338 2008-08-19  Adam Strzelecki  <ono@java.pl>  (tiny change)
76340         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
76341         if present, for intel RND.  Return error on failures.
76343 2008-08-18  Ben Pfaff  <blp@gnu.org>
76345         gitlog-to-changelog: give better diagnostic for failed pipe-open
76346         * build-aux/gitlog-to-changelog: Improve error message: suggest
76347         that the version of Git may be too old.
76349 2008-08-18  Simon Josefsson  <simon@josefsson.org>
76351         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
76352         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
76354 2008-08-18  Bruno Haible  <bruno@clisp.org>
76356         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
76357         pthread_in_use().
76359 2008-08-18  Bruno Haible  <bruno@clisp.org>
76361         * lib/glthread/threadlib.c: Include <pthread.h>.
76363 2008-08-18  Bruno Haible  <bruno@clisp.org>
76365         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
76366         glthread_recursive_lock_* macros.
76367         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
76368         Fix syntax error.
76370 2008-08-18  Bruno Haible  <bruno@clisp.org>
76372         * lib/glthread/thread.c: Avoid forcing a context switch right after
76373         thread creation.
76375 2008-08-17  Bruno Haible  <bruno@clisp.org>
76377         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
76378         * lib/glthread/thread.h: Provide Win32 specific implementation.
76379         * modules/thread (Files): Add lib/glthread/thread.c.
76380         (Depends-on): Add lock.
76381         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
76383 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76385         New module 'yield'.
76386         * modules/yield: New file.
76387         * lib/glthread/yield.h: New file.
76388         * m4/yield.m4: New file.
76389         * MODULES.html.sh (Multithreading): Add yield.
76391 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76393         New module 'thread'.
76394         * modules/thread: New file.
76395         * lib/glthread/thread.h: New file.
76396         * m4/thread.m4: New file.
76397         * MODULES.html.sh (Multithreading): Add thread.
76399 2008-08-17  Bruno Haible  <bruno@clisp.org>
76401         * lib/glthread/lock.h: Include <stdlib.h> always.
76402         * lib/glthread/tls.h: Likewise.
76403         * lib/glthread/cond.h: Likewise.
76405 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76407         New module 'cond'.
76408         * modules/cond: New file.
76409         * lib/glthread/cond.h: New file.
76410         * lib/glthread/cond.c: New file.
76411         * m4/cond.m4: New file.
76412         * MODULES.html.sh (Multithreading): Add cond.
76414 2008-08-16  Eric Blake  <ebb9@byu.net>
76416         c-stack: fix regression on Irix 5.3 from 2008-06-21
76417         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
76418         sa_sigaction...
76419         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
76420         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
76421         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
76422         * modules/signal (Makefile.am): Use the value.
76423         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
76424         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
76425         * doc/posix-headers/signal.texi (signal.h): Document this
76426         portability issue.
76427         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
76428         Reported by Tom G. Christensen.
76430 2008-08-17  Bruno Haible  <bruno@clisp.org>
76432         New module 'threadlib'.
76433         * modules/threadlib: New file.
76434         * lib/glthread/threadlib.c: New file, extracted from
76435         lib/glthread/lock.c.
76436         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
76437         functions.
76438         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
76439         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
76440         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
76441         macros.
76442         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
76443         (gl_DISABLE_THREADS): Remove macro.
76444         * modules/lock (Files): Remove build-aux/config.rpath.
76445         (Depends-on): Remove havelib. Add threadlib.
76446         (configure.ac-early): Remove section.
76447         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
76448         * modules/tls (Depends-on): Remove lock. Add threadlib.
76449         (Link): New section, copied from threadlib.
76450         * MODULES.html.sh (Multithreading): Add threadlib.
76452 2008-08-14  Bruno Haible  <bruno@clisp.org>
76454         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
76455         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
76456         glthread_rwlock_unlock, glthread_rwlock_destroy,
76457         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
76458         glthread_recursive_lock_destroy): Define as macros always.
76459         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
76460         glthread_lock_lock.
76461         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
76462         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
76463         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
76464         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
76465         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
76466         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
76467         (glthread_recursive_lock_lock_func): Renamed from
76468         glthread_recursive_lock_lock.
76469         (glthread_recursive_lock_unlock_func): Renamed from
76470         glthread_recursive_lock_unlock.
76471         (glthread_recursive_lock_destroy_func): Renamed from
76472         glthread_recursive_lock_destroy.
76474 2008-08-14  Bruno Haible  <bruno@clisp.org>
76476         * lib/glthread/lock.h: Renamed from lib/lock.h.
76477         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
76478         * lib/glthread/tls.h: Renamed from lib/tls.h.
76479         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
76480         * lib/fstrcmp.c: Update includes.
76481         * lib/strsignal.c: Update includes.
76482         * modules/lock (Files, Makefile.am): Update.
76483         (Include): Change to "glthread/lock.h".
76484         * modules/tls (Files, Makefile.am): Update.
76485         (Include): Change to "glthread/tls.h".
76486         * tests/test-lock.c: Update includes.
76487         * tests/test-tls.c: Update includes.
76488         * NEWS: Mention the renamed header files.
76490 2008-08-11  Jim Meyering  <meyering@redhat.com>
76492         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
76494 2008-08-11  Eric Blake  <ebb9@byu.net>
76496         test-c-stack: avoid C99-ism
76497         * tests/test-c-stack.c (main): Fix whitespace, move declaration
76498         before statement.
76499         Reported by Alain Guibert.
76501 2008-08-10  Jim Meyering  <meyering@redhat.com>
76503         ensure that return value of uinttostr et al are not ignored
76504         * lib/inttostr.h (__GNUC_PREREQ): Define.
76505         (__attribute_warn_unused_result__): Define.
76506         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
76508 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
76510         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
76511         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
76513 2008-08-07  Jim Meyering  <meyering@redhat.com>
76515         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
76517         * modules/mkstemp (License): Relicense under LGPLv2+.
76518         * modules/tempname (License): Likewise.
76520 2008-08-06  Bruno Haible  <bruno@clisp.org>
76522         * lib/poll.c (poll): Further micro-optimization.
76524 2008-08-06  Jim Meyering  <meyering@redhat.com>
76526         inet_pton.c: use locale-independent tolower
76527         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
76528         (inet_pton6): Use c_tolower rather than tolower.
76529         * modules/inet_pton (Depends-on): Add c-ctype.
76531 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
76533         * lib/poll.c (poll): Avoid division when timeout is 0, cache
76534         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
76536 2008-08-06  Jim Meyering  <meyering@redhat.com>
76538         * modules/inet_pton (License): Relicense under LGPLv2+.
76540 2008-08-03  Bruno Haible  <bruno@clisp.org>
76542         Additional non-aborting API for lock and tls.
76543         * lib/lock.h: Include <errno.h>.
76544         (glthread_lock_init): New macro/function.
76545         (gl_lock_init): Define as wrapper around glthread_lock_init.
76546         (glthread_lock_lock): New macro/function.
76547         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
76548         (glthread_lock_unlock): New macro/function.
76549         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
76550         (glthread_lock_destroy): New macro/function.
76551         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
76552         (glthread_rwlock_init): New macro/function.
76553         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
76554         (glthread_rwlock_rdlock): New macro/function.
76555         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
76556         (glthread_rwlock_wrlock): New macro/function.
76557         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
76558         (glthread_rwlock_unlock): New macro/function.
76559         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
76560         (glthread_rwlock_destroy): New macro/function.
76561         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
76562         (glthread_recursive_lock_init): New macro/function.
76563         (gl_recursive_lock_init): Define as wrapper around
76564         glthread_recursive_lock_init.
76565         (glthread_recursive_lock_lock): New macro/function.
76566         (gl_recursive_lock_lock): Define as wrapper around
76567         glthread_recursive_lock_lock.
76568         (glthread_recursive_lock_unlock): New macro/function.
76569         (gl_recursive_lock_unlock): Define as wrapper around
76570         glthread_recursive_lock_unlock.
76571         (glthread_recursive_lock_destroy): New macro/function.
76572         (gl_recursive_lock_destroy): Define as wrapper around
76573         glthread_recursive_lock_destroy.
76574         (glthread_once): New macro/function.
76575         (gl_once): Define as wrapper around glthread_once.
76576         Update function declarations.
76577         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
76578         glthread_rwlock_init. Return error code.
76579         (glthread_rwlock_rdlock_multithreaded): Renamed from
76580         glthread_rwlock_rdlock. Return error code.
76581         (glthread_rwlock_wrlock_multithreaded): Renamed from
76582         glthread_rwlock_wrlock. Return error code.
76583         (glthread_rwlock_unlock_multithreaded): Renamed from
76584         glthread_rwlock_unlock. Return error code.
76585         (glthread_rwlock_destroy_multithreaded): Renamed from
76586         glthread_rwlock_destroy. Return error code.
76587         (glthread_recursive_lock_init_multithreaded): Renamed from
76588         glthread_recursive_lock_init. Return error code.
76589         (glthread_recursive_lock_lock_multithreaded): Renamed from
76590         glthread_recursive_lock_lock. Return error code.
76591         (glthread_recursive_lock_unlock_multithreaded): Renamed from
76592         glthread_recursive_lock_unlock. Return error code.
76593         (glthread_recursive_lock_destroy_multithreaded): Renamed from
76594         glthread_recursive_lock_destroy. Return error code.
76595         (glthread_once_call): Make static.
76596         (glthread_once_multithreaded): Renamed from glthread_once.
76597         * lib/tls.h: Include <errno.h>.
76598         (glthread_tls_key_init): New macro/function.
76599         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
76600         (glthread_tls_set): New macro/function.
76601         (gl_tls_set): Define as wrapper around glthread_tls_set.
76602         (glthread_tls_key_destroy): New macro/function.
76603         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
76604         Update function declarations.
76605         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
76606         glthread_tls_get.
76607         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
76609 2008-08-04  Eric Blake  <ebb9@byu.net>
76611         gnumakefile: use space, not TAB, outside of targets
76612         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
76614 2008-08-02  Jim Meyering  <meyering@redhat.com>
76616         getdate.y: avoid locale-dependent date parsing failure
76617         In Turkish locales, getdate would fail to recognize keywords
76618         containing a lowercase "i".  The solution is not to rely on
76619         locale-sensitive case-conversion.
76620         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
76621         (lookup_word): Use c_toupper in place of toupper.
76622         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
76623         Reported by Vefa Bicakci <bicave@superonline.com> in
76624         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
76625         * modules/getdate (Depends-on): Add c-ctype.
76627 2008-08-02  Bruno Haible  <bruno@clisp.org>
76629         * gnulib-tool (func_import): When updating or creating a .gitignore
76630         file, prepend each added line with a slash, and ignore leading slashes
76631         from the existing lines.
76632         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
76634 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76636         Portability fix for GNU make 3.79.1.
76637         * top/GNUmakefile: Avoid 'else COND', which older GNU make
76638         versions do not understand.
76640 2008-08-01  Bruno Haible  <bruno@clisp.org>
76642         Work around bug of HP-UX 10.20 cc with -0.0 literal.
76643         * tests/test-isnanf.h (zero): New variable.
76644         (main): Avoid literal -0.0f.
76645         * tests/test-isnand.h (zero): New variable.
76646         (main): Avoid literal -0.0.
76647         * tests/test-isnanl.h (zero): New variable.
76648         (main): Avoid literal -0.0L.
76649         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
76650         (test_float, test_double, test_long_double): Avoid literals -0.0f,
76651         -0.0, -0.0L.
76652         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
76653         (test_signbitd): Avoid literal -0.0.
76654         (test_signbitl): Avoid literal -0.0L.
76655         * tests/test-ceilf1.c (zero): New variable.
76656         (main): Avoid literal -0.0f.
76657         * tests/test-ceill.c (zero): New variable.
76658         (main): Avoid literal -0.0L.
76659         * tests/test-floorf1.c (zero): New variable.
76660         (main): Avoid literal -0.0f.
76661         * tests/test-floorl.c (zero): New variable.
76662         (main): Avoid literal -0.0L.
76663         * tests/test-roundf1.c (zero): New variable.
76664         (main): Avoid literal -0.0f.
76665         * tests/test-round1.c (zero): New variable.
76666         (main): Avoid literal -0.0.
76667         * tests/test-roundl.c (zero): New variable.
76668         (main): Avoid literal -0.0L.
76669         * tests/test-truncf1.c (zero): New variable.
76670         (main): Avoid literal -0.0f.
76671         * tests/test-trunc1.c (zero): New variable.
76672         (main): Avoid literal -0.0.
76673         * tests/test-truncl.c (zero): New variable.
76674         (main): Avoid literal -0.0L.
76675         * tests/test-frexp.c (zero): New variable.
76676         (main): Avoid literal -0.0.
76677         * tests/test-frexpl.c (zero): New variable.
76678         (main): Avoid literal -0.0L.
76679         * tests/test-ldexpl.c (zero): New variable.
76680         (main): Avoid literal -0.0L.
76681         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
76682         (zerod, zerol): New variables.
76683         (test_function): Avoid literals -0.0, -0.0L.
76684         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
76685         (zerod, zerol): New variables.
76686         (test_function): Avoid literals -0.0, -0.0L.
76687         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
76688         (zerod, zerol): New variables.
76689         (test_function): Avoid literals -0.0, -0.0L.
76690         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
76691         (zerod, zerol): New variables.
76692         (test_function): Avoid literals -0.0, -0.0L.
76693         * tests/test-strtod.c (zero): New variable.
76694         (main): Avoid literal -0.0.
76695         Reported by Jonathan C. Patschke <jp@centtech.com>.
76697 2008-07-31  Jim Meyering  <meyering@redhat.com>
76699         sha256.h: correct definition of SHA224_DIGEST_SIZE
76700         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
76701         Reported by Paulie Pena IV <paulie4@gmail.com>.
76702         Define as 224 / 8, rather than as a literal.
76703         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
76704         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
76705         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
76707 2008-07-31  Bruno Haible  <bruno@clisp.org>
76709         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
76710         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
76711         Reported by Jonathan Patschke <jp@centtech.com>.
76713 2008-07-31  Bruno Haible  <bruno@clisp.org>
76715         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
76716         Reported by Paolo Bonzini <bonzini@gnu.org>.
76718 2008-07-30  Eric Blake  <ebb9@byu.net>
76720         test-strtod: allow compilation without -lm
76721         * tests/test-strtod.c (main): Avoid link dependence on fabs.
76722         Reported by Dennis Clarke <blastwave@gmail.com>.
76724 2008-07-28  Jim Meyering  <meyering@redhat.com>
76726         bootstrap: work also when there are no .po files in po/
76727         * build-aux/bootstrap (update_po_files): Complete the change
76728         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
76730 2008-07-27  Jim Meyering  <meyering@redhat.com>
76732         * users.txt: Add zile.
76734 2008-07-26  Ben Pfaff  <blp@gnu.org>
76736         Add missing dependencies on new m4/exponent[fdl].m4 files.
76737         * modules/isnanf-nolibm: Add m4/exponentf.m4.
76738         * modules/isnand-nolibm: Add m4/exponentd.m4.
76739         * modules/isnanl-nolibm: Add m4/exponentl.m4.
76740         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
76741         m4/isnan[fdl].m4, because the macros actually used moved.
76742         Reported by Jim Meyering.
76744 2008-07-14  Ben Pfaff  <blp@gnu.org>
76746         Add isinf module.
76747         * lib/isinf.c: New file.
76748         * lib/math.in.h: Define isinf macro if we have decided to replace
76749         it.
76750         * m4/isinf.m4: New file.
76751         * m4/math_h.m4: Initialize and substitute variables for isinf
76752         module.
76753         * modules/isinf: New file.
76754         * modules/isinf-tests: New file.
76755         * modules/math: Add substitutions for new module.
76756         * tests/test-isinf.c: New file.
76757         * doc/posix-functions/isinf.texi: Mention new module.
76758         * MODULES.html.sh: Mention new module.
76760 2008-07-14  Ben Pfaff  <blp@gnu.org>
76762         Factor out some macros for use by additional modules.
76763         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
76764         exponentf.m4.
76765         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
76766         exponentd.m4.
76767         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
76768         file exponentl.m4.
76769         * m4/exponentf.m4: New file.
76770         * m4/exponentd.m4: New file.
76771         * m4/exponentl.m4: New file.
76772         * modules/isnanf: Use new file m4/exponentf.m4.
76773         * modules/isnand: Use new file m4/exponentd.m4.
76774         * modules/isnanl: Use new file m4/exponentl.m4.
76776 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
76778         mktime.c: normalize tp->tm_isdst value to -1/0/1.
76779         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
76780         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
76781         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
76783         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
76784         readlink on platforms without PATH_MAX.
76786 2008-07-21  Eric Blake  <ebb9@byu.net>
76788         Warn, not fail, on stale version.
76789         * top/GNUmakefile (_curr-ver): Tone down previous patch.
76791         Don't allow installation with stale devel version number.
76792         * top/GNUmakefile (_is-install-target): New macro.
76793         (_curr-ver): Forbid installation with stale version number.
76795 2008-07-20  Bruno Haible  <bruno@clisp.org>
76797         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
76798         TESTS_ENVIRONMENT.
76799         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
76801 2008-07-20  Bruno Haible  <bruno@clisp.org>
76803         * lib/c-stack.h (c_stack_action): Add documentation.
76804         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
76806 2008-07-20  Bruno Haible  <bruno@clisp.org>
76808         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
76809         * modules/readlink (License): Likewise.
76811 2008-07-17  Eric Blake  <ebb9@byu.net>
76813         * modules/c-stack (Link): Fix typo.
76815         Make c-stack use libsigsegv, when available.
76816         * modules/c-stack (Depends-on): Add libsigsegv.
76817         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
76818         needed.
76819         * lib/c-stack.c (SIGSTKSZ): Define fallback.
76820         (segv_handler, overflow_handler, c_stack_action)
76821         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
76822         implementation when libsigsegv is available, but only when using
76823         the library is necessary.
76824         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
76825         comment, explaining why XSI check fails on Linux.
76826         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
76827         * tests/test-c-stack2.sh: Tweak skip message.
76828         * NEWS: Document new link-time requirements.
76830 2008-07-16  Eric Blake  <ebb9@byu.net>
76832         c-stack: Expose false positives when not using libsigsegv.
76833         * modules/c-stack-tests (Files): Expand test.
76834         * tests/test-c-stack.c (main): Add means to conditionally trigger
76835         non-overflow SIGSEGV.
76836         * tests/test-c-stack2.sh: New file.
76838 2008-07-14  Bruno Haible  <bruno@clisp.org>
76840         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
76841         Reported by Eric Blake.
76843 2008-07-14  Sam Steingold  <sds@gnu.org>
76844             Bruno Haible  <bruno@clisp.org>
76846         New module libsigsegv.
76847         * modules/libsigsegv: New file.
76848         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
76849         modifications.
76850         * MODULES.html.sh (Signal handling): New section.
76852 2008-07-14  Bruno Haible  <bruno@clisp.org>
76854         * modules/unictype/ctype-* (Description): Add the word "function".
76855         Improves the resulting doc in MODULES.html.
76857 2008-07-12  Ben Pfaff  <blp@gnu.org>
76859         Add longlong module.
76860         * modules/longlong: New file.
76862 2008-07-12  Bruno Haible  <bruno@clisp.org>
76864         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
76865         to empty.
76867 2008-07-10  Ben Pfaff  <blp@gnu.org>
76869         Add isnan module.
76870         * doc/posix-functions/isnan.texi: Mention new module.
76871         * lib/math.in.h: Define isnan macro if we have decided to replace
76872         it.
76873         * m4/isnan.m4: New file.
76874         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
76875         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
76876         also.
76877         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
76878         redundancy.
76879         * m4/math_h.m4: Initialize and substitute variables for isnan
76880         module.
76881         * modules/isnan: New file.
76882         * modules/isnan-tests: New file.
76883         * modules/math: Add substitutions for new module.
76884         * tests/test-isnan.c: New file.
76885         * MODULES.html.sh: Mention new module.
76887 2008-07-10  Ben Pfaff  <blp@gnu.org>
76889         Add isnanf module.
76890         * lib/isnanf.m4: New file.
76891         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
76892         (gl_HAVE_ISNANF_IN_LIBM): New macro.
76893         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
76894         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
76895         * modules/isnanf: New file.
76896         * modules/isnanf-tests: New file.
76897         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
76898         files.
76899         * tests/test-isnanf-nolibm.c: factored most of its contents into
76900         new file tests/test-isnanf.h.
76901         * tests/test-isnanf.h: New file.
76902         * tests/test-isnanf.c: New file.
76903         * MODULES.html.sh: Mention new module.
76904         * doc/glibc-functions/isnanf.texi: Mention new module.
76906 2008-07-10  Ben Pfaff  <blp@gnu.org>
76908         Add isnand module.
76909         * lib/isnand.h: New file.
76910         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
76911         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
76912         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
76913         functionality also.
76914         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
76915         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
76916         (gl_HAVE_ISNAND_IN_LIBM): New macro.
76917         * modules/isnand: New file.
76918         * modules/isnand-tests: New file.
76919         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
76920         files.
76921         * tests/test-isnand-nolibm.c: factored most of its contents into
76922         new file tests/test-isnand.h.
76923         * tests/test-isnand.h: New file.
76924         * tests/test-isnand.c: New file.
76925         * MODULES.html.sh: Mention new module.
76927 2008-07-10  Ben Pfaff  <blp@gnu.org>
76929         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
76930         * lib/isnand.h: Rename lib/isnand-nolibm.h.
76931         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
76932         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
76933         * modules/isnanf-nolibm: Update references to renamed files.
76934         * modules/isnand-nolibm: Likewise.
76935         * modules/isnanf-nolibm-tests: Likewise.
76936         * modules/isnand-nolibm-tests: Likewise.
76937         * lib/frexp.c: Likewise.
76938         * lib/isfinite.c: Likewise.
76939         * lib/signbitd.c: Likewise.
76940         * lib/signbitf.c: Likewise.
76941         * lib/vasnprintf.c: Likewise.
76942         * tests/test-ceilf1.c: Likewise.
76943         * tests/test-ceilf2.c: Likewise.
76944         * tests/test-floorf1.c: Likewise.
76945         * tests/test-floorf2.c: Likewise.
76946         * tests/test-frexp.c: Likewise.
76947         * tests/test-round1.c: Likewise.
76948         * tests/test-round2.c: Likewise.
76949         * tests/test-roundf1.c: Likewise.
76950         * tests/test-strtod.c: Likewise.
76951         * tests/test-trunc1.c: Likewise.
76952         * tests/test-trunc2.c: Likewise.
76953         * tests/test-truncf1.c: Likewise.
76954         * tests/test-truncf2.c: Likewise.
76955         * NEWS: Mention the renamed header files.
76957 2008-07-11  Jim Meyering  <meyering@redhat.com>
76959         vc-list-files: make the last-resort awk code more portable
76960         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
76961         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
76962         does not support it.
76964 2008-07-10  Eric Blake  <ebb9@byu.net>
76966         Work with tar's bootstrap.
76967         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
76968         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
76969         an m4 comment.
76971 2008-07-09  Jim Meyering  <meyering@redhat.com>
76973         posix-shell.m4: fix typo that made this test malfunction
76974         * m4/posix-shell.m4: Remove capitalization in variable name.
76976 2008-07-08  Bruno Haible  <bruno@clisp.org>
76978         * m4/onceonly.m4: Update comments.
76979         Reported by Ben Pfaff <blp@cs.stanford.edu>.
76981 2008-07-04  Jim Meyering  <meyering@redhat.com>
76983         * users.txt: Add vc-dwim.
76984         (bison, coreutils): Use the gitweb URL.
76986 2008-07-03  Jim Meyering  <meyering@redhat.com>
76988         * users.txt: Add libffcall.  From Sam Steingold.
76990 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
76992         getdate.y: do not ignore TZ with relative day, month or year offset
76993         * lib/getdate.y (get_date): Move the tz-handling block to follow the
76994         relative-date-handling, since otherwise, the latter would clobber the
76995         sole output (an updated Start value) of the tz-handling block.
76996         * tests/test-getdate.c: Tests for the fix
76998 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77000         Recognize 'foo_LIBRARIES += libgnu.a'.
77001         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
77002         makefile snippet has already specified an installation location,
77003         also using '+='.
77005 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
77007         getdate.y: factor out common actions
77008         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
77009         Use them in place of open-coded actions.
77011 2008-07-01  Simon Josefsson  <simon@josefsson.org>
77013         Add self-test for getdate module.
77014         * modules/getdate-tests: New file.
77015         * tests/test-getdate.c: New file.
77017 2008-06-29  Bruno Haible  <bruno@clisp.org>
77019         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
77020         .gitignore.
77021         Reported by Sylvain Beucler <beuc@beuc.net>.
77023 2008-06-29  Bruno Haible  <bruno@clisp.org>
77025         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
77026         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
77028 2008-06-29  Bruno Haible  <bruno@clisp.org>
77030         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
77031         EXTRA_DIST.
77032         Reported by Sylvain Beucler <beuc@beuc.net>.
77034 2008-06-26  Jim Meyering  <meyering@redhat.com>
77036         make several modules depend on the "open" module
77037         This provides slightly increased consistency when opening-for-write
77038         the name of a non-directory spelled with a trailing slash.
77039         * modules/chdir-safer: Likewise.
77040         * modules/chown: Likewise.
77041         * modules/clean-temp: Likewise.
77042         * modules/copy-file: Likewise.
77043         * modules/fchdir: Likewise.
77044         * modules/fcntl-safer: Likewise.
77045         * modules/pipe: Likewise.
77046         * modules/utime: Likewise.
77047         Prompted by Eric Blake and Bruno Haible.
77049 2008-06-24  Andreas Schwab  <schwab@suse.de>
77051         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
77052         literals can be used as initializers for global variables.
77054 2008-06-23  Eric Blake  <ebb9@byu.net>
77056         Make gnulib-cache.m4 easier to diff.
77057         * gnulib-tool (func_import): Allow newlines when reading cached
77058         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
77060 2008-06-23  Bruno Haible  <bruno@clisp.org>
77062         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
77063         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
77064         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
77065         m4/signalblocking.m4.
77066         (gl_PREREQ_SIGACTION): Don't invoke it.
77067         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
77068         gl_PREREQ_SIG_HANDLER_H.
77069         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
77070         Don't check for sigaction here.
77072 2008-06-23  Bruno Haible  <bruno@clisp.org>
77074         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
77075         (install_handlers): Don't set the SA_RESETHAND flag.
77077 2008-06-23  Bruno Haible  <bruno@clisp.org>
77079         * m4/sigaction.m4: Comment fixes.
77080         * lib/signal.in.h: Likewise.
77082 2008-06-23  Eric Blake  <ebb9@byu.net>
77084         Fix typo.
77085         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
77087         Avoid SA_ namespace.
77088         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
77089         Reported by Ralf Wildenhues.
77091         Avoid test failure due to SA_RESTORER.
77092         * tests/test-sigaction.c (SA_MASK): New macro.
77093         (main): Avoid failing due to extension flags being set.
77094         Reported by Jim Meyering.
77096         Revert use of sig-handler.h in sigprocmask.c.
77097         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
77098         it requires the existence of struct sigaction.
77099         * lib/sigprocmask.c (handler_t): Restore typedef.
77100         (rpl_signal, old_handlers): Use local type.
77102 2008-06-22  Bruno Haible  <bruno@clisp.org>
77104         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
77105         conditionally.
77106         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
77108 2008-06-22  Bruno Haible  <bruno@clisp.org>
77110         * doc/posix-functions/siginterrupt.texi: Move note.
77112         * lib/signal.in.h (SA_RESTART): New macro.
77113         * lib/sigaction.c: Update comment.
77115         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
77117         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
77118         (gl_PREREQ_SIGPROCMASK): Invoke it.
77119         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
77121         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
77123         * lib/sigprocmask.c: Update a comment.
77125 2008-06-21  Eric Blake  <ebb9@byu.net>
77127         Use sigaction module rather than signal().
77128         * modules/c-stack (Depends-on): Add sigaction.
77129         * modules/fatal-signal (Depends-on): Likewise.
77130         * modules/nanosleep (Depends-on): Likewise.
77131         * modules/sigprocmask (Files): Add sig-handler.h.
77132         * modules/sigaction (Files): Likewise.
77133         * lib/sig-handler.h (get_handler): New file, suggested by Paul
77134         Eggert.
77135         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
77136         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
77137         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
77138         (init_fatal_signals): Likewise.
77139         * lib/nanosleep.c (rpl_nanosleep): Likewise.
77140         (siginterrupt): Delete fallback.
77141         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
77142         instead.
77143         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
77144         siginterrupt.
77146         New module sigaction, for mingw.
77147         * modules/sigaction: New module...
77148         * modules/sigaction-tests: ...and its test.
77149         * m4/sigaction.m4: New file.
77150         * lib/sigaction.c: Likewise.
77151         * tests/test-sigaction.c: Likewise.
77152         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
77153         * modules/signal (Makefile.am): Likewise.
77154         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
77155         needed.
77156         * doc/posix-headers/signal.texi (signal.h): Mention provided
77157         types.
77158         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
77159         that sigaction is preferable.
77160         * doc/posix-functions/sigaction.texi (sigaction): Mention new
77161         module.
77162         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77163         sigaction.
77165         Improve robustness of sigprocmask by overriding signal.
77166         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
77167         is in use.
77168         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
77169         (SIGKILL, SIGSTOP): Provide fallbacks.
77170         (rpl_signal): Implement.
77171         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
77172         signal can be called inside handlers.
77174         Fix nanosleep module on mingw.
77175         * modules/nanosleep (Depends-on): Add sys_select.
77176         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
77178         Fix licensing of sigprocmask.
77179         * modules/raise (License): Relicense as LGPL.
77181 2008-06-21  Bruno Haible  <bruno@clisp.org>
77183         * lib/propername.c (proper_name_utf8): Don't use the transliterated
77184         result if it contains question marks.
77185         Reported by Michael Geng <linux@michaelgeng.de>.
77187 2008-06-19  Bruno Haible  <bruno@clisp.org>
77189         Fix CVS-ism.
77190         * doc/gnulib.texi: Include updated-stamp.texi.
77191         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
77192         (updated-stamp.texi): New rule.
77193         (gnulib.info): Depend on it.
77194         * doc/.gitignore: Add updated-stamp.texi.
77195         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
77197 2008-06-19  Bruno Haible  <bruno@clisp.org>
77199         * doc/Makefile (gnulib.info): Update and simplify dependencies.
77200         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
77202 2008-06-19  Eric Blake  <ebb9@byu.net>
77204         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
77205         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
77206         Reported by Stepan Kasal.
77208 2008-06-18  Bruno Haible  <bruno@clisp.org>
77210         * lib/fatal-signal.c (init_fatal_signals): Add comment.
77211         Reported by Eric Blake.
77213 2008-06-18  Eric Blake  <ebb9@byu.net>
77215         Work around cygwin 1.5.25 strsignal bug.
77216         * tests/test-strsignal.c: Allow for const char *.
77217         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
77219 2008-06-18  Simon Josefsson  <simon@josefsson.org>
77221         * users.txt: Update URL to article and add author/date
77222         information.
77224 2008-06-17  Bruno Haible  <bruno@clisp.org>
77226         New macro gl_DISABLE_THREADS.
77227         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
77228         if the user did not pass --enable-threads or --disable-threads option.
77229         (gl_DISABLE_THREADS): New macro.
77230         Reported by Eric Blake <ebb9@byu.net>.
77232 2008-06-17  Bruno Haible  <bruno@clisp.org>
77234         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
77235         when the macro ignores it.
77236         Based on a patch by Eric Blake <ebb9@byu.net>.
77238 2008-06-17  Bruno Haible  <bruno@clisp.org>
77240         * modules/tls (License): Change to LGPLv2+.
77241         Reported by Eric Blake.
77243 2008-06-17  Eric Blake  <ebb9@byu.net>
77245         Simplify c-stack prerequisites.
77246         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
77247         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
77248         no longer requires <ucontext.h> to exist.  Optimize setrlimit
77249         check.
77250         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
77251         <sys/resource.h>.
77253         Move c-stack test into testsuite.
77254         * modules/c-stack-tests: New file.
77255         * lib/c-stack.c [DEBUG]: Move test program...
77256         * tests/test-c-stack.c: ...into this new file.  Skip rather than
77257         fail test if sigaltstack is lacking.
77258         * tests/test-c-stack.sh: New driver file.
77260 2008-06-16  Eric Blake  <ebb9@byu.net>
77262         Use raise module consistently.
77263         * modules/fatal-signal (Depends-on): Add raise.
77264         * modules/sigprocmask (Depends-on): Likewise.
77265         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
77266         * lib/sigprocmask.c (sigprocmask): Likewise.
77267         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
77268         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
77270         Fix compliance bug in sigpending.
77271         * lib/sigprocmask.c (sigpending): Return pending array via
77272         parameter, not return value.
77274 2008-06-14  Eric Blake  <ebb9@byu.net>
77276         Improve obstack-printf test code.
77277         * tests/test-obstack-printf.c (test_function): Fix comment, and
77278         simplify usage of obstack_* in macros.  Add a test for coverage.
77279         Reported by Bruno Haible.
77281 2008-06-14  Bruno Haible  <bruno@clisp.org>
77283         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
77284         array size as a constant, not as a const variable.
77285         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
77286         AC_USE_SYSTEM_EXTENSIONS.
77287         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
77288         Test whether the obstack_printf function actually exists.
77289         * modules/obstack-printf (Depends-on): Add extensions.
77290         (Include): Remove obstack.h.
77291         * modules/obstack-printf-posix (Depends-on): Add extensions.
77292         (Include): Remove obstack.h.
77294 2008-06-13  Eric Blake  <ebb9@byu.net>
77296         Add obstack-printf and obstack-printf-posix modules.
77297         * modules/obstack-printf: New file.
77298         * modules/obstack-printf-posix: Likewise.
77299         * MODULES.html.sh (Misc): Mention them.
77300         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
77301         Likewise.
77302         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
77303         Likewise.
77304         * modules/stdio (Makefile.am): Accomodate new modules.
77305         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
77306         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
77307         Declare.
77308         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
77309         functions.
77310         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
77311         (gl_REPLACE_OBSTACK_PRINTF): New macros
77312         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
77313         * tests/test-obstack-printf.c: New file.
77314         * modules/obstack-printf-tests: Likewise.
77315         * modules/obstack-printf-posix-tests: Likewise.
77317 2008-06-11  Bruno Haible  <bruno@clisp.org>
77319         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
77320         * lib/open.c: Include errno.h.
77321         (open): Fail when attempting to write to a file that has a trailing
77322         slash.
77323         * tests/test-open.c (main): Test against trailing slash bug.
77324         * doc/posix-functions/open.texi: Mention the trailing slash bug.
77326 2008-06-10  Bruno Haible  <bruno@clisp.org>
77328         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
77329         for $? to work inside the trap command, with various /bin/sh-s.
77330         * tests/test-vc-list-files-cvs.sh: Likewise.
77332 2008-06-10  Bruno Haible  <bruno@clisp.org>
77334         * lib/acl-internal.h: Don't include gettext.h here.
77335         * lib/set-mode-acl.c: Include gettext.h here.
77336         * lib/copy-acl.c: Likewise.
77338 2008-06-10  Bruno Haible  <bruno@clisp.org>
77340         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
77341         * lib/wait-process.c (wait_subprocess): Likewise.
77342         * lib/execute.h (execute): Add termsigp argument.
77343         * lib/execute.c (execute): Likewise.
77344         * lib/csharpcomp.c (compile_csharp_using_pnet,
77345         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
77346         * lib/csharpexec.c (execute_csharp_using_pnet,
77347         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
77348         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
77349         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
77350         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
77351         is_jikes_present): Update.
77352         * lib/javaexec.c (execute_java_class): Update.
77353         * lib/javaversion.c (execute_and_read_line): Update.
77354         * NEWS: Document the changes.
77355         Reported by Eric Blake.
77357 2008-06-10  Eric Blake  <ebb9@byu.net>
77359         Add missing include.
77360         * tests/test-strstr.c (includes): Add <signal.h>.
77361         * tests/test-strcasestr.c (includes): Likewise.
77362         * tests/test-memmem.c (includes): Likewise.
77364 2008-06-10  Bruno Haible  <bruno@clisp.org>
77366         * lib/wait-process.c (wait_subprocess): Add an assertion.
77368 2008-06-10  Bruno Haible  <bruno@clisp.org>
77370         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
77372 2008-06-10  Bruno Haible  <bruno@clisp.org>
77374         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
77375         using alarm().
77376         * tests/test-strcasestr.c (main): Likewise.
77377         * tests/test-strstr.c (main): Likewise.
77379 2008-06-09  Bruno Haible  <bruno@clisp.org>
77381         Work around the Solaris 10 ACE ACLs ABI change.
77382         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
77383         declare if ACL_NO_TRIVIAL is present.
77384         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
77385         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
77386         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
77387         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
77388         define if ACL_NO_TRIVIAL is present.
77389         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
77390         and use the current ABI.
77391         (file_has_acl): Use same #if condition as elsewhere.
77392         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
77393         in use, and use the current ABI.
77394         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
77395         Reported by Jim Meyering.
77397 2008-06-09  Eric Blake  <ebb9@byu.net>
77399         Work around environments that (stupidly) ignore SIGALRM.
77400         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
77401         before using alarm().
77402         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
77403         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
77404         Reported by Ian Beckwith <ianb@erislabs.net>.
77406         Produce autobuild blurb earlier in log.
77407         * modules/autobuild (configure.ac-early): Move AB_INIT here.
77409 2008-06-09  Jim Meyering  <meyering@redhat.com>
77410         and Ondřej Vašík  <ovasik@redhat.com>
77412         utimens.c: correct kernel bug work-around
77413         Ondřej Vašík found that the invalid return value of 280 indicates
77414         failure, not success, and the kernel bug we're trying to work
77415         around affects not just the utimensat call, but also the fallback
77416         futimens call.
77417         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
77418         not success.
77419         [HAVE_FUTIMENS]: Use the same work-around, here.
77421 2008-06-09  Jim Meyering  <meyering@redhat.com>
77423         add more guards around definition of ACE_-related code
77424         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
77425         ALLOW and ACE_OWNER are also defined.
77427 2008-06-08  Bruno Haible  <bruno@clisp.org>
77429         * lib/acl-internal.h: Add me as co-author.
77430         * lib/file-has-acl.c: Likewise.
77431         * lib/set-mode-acl.c: Likewise.
77432         * lib/copy-acl.c: Likewise.
77434 2008-06-08  Bruno Haible  <bruno@clisp.org>
77436         Add support for AIX ACLs.
77437         * lib/acl-internal.h (acl_nontrivial): New declaration.
77438         * lib/file-has-acl.c (acl_nontrivial): New function.
77439         (file_has_acl): Add implementation using AIX 4 ACL API.
77440         * lib/set-mode-acl.c (qset_acl): Likewise.
77441         * lib/copy-acl.c (qcopy_acl): Likewise.
77443 2008-06-08  Bruno Haible  <bruno@clisp.org>
77445         Add support for HP-UX ACLs.
77446         * lib/acl-internal.h (acl_nontrivial): New declaration.
77447         * lib/file-has-acl.c (acl_nontrivial): New function.
77448         (file_has_acl): Add implementation using HP-UX 11 ACL API.
77449         * lib/set-mode-acl.c (qset_acl): Likewise.
77450         * lib/copy-acl.c (qcopy_acl): Likewise.
77452 2008-06-08  Bruno Haible  <bruno@clisp.org>
77454         Add support for Cygwin ACLs.
77455         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
77456         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
77457         the chmod_or_fchmod call.
77458         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
77460 2008-06-08  Bruno Haible  <bruno@clisp.org>
77462         Fix bug with setuid modes in Solaris 10+ code.
77463         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
77464         succeeded, when the mode contains some special bits.
77466 2008-06-08  Bruno Haible  <bruno@clisp.org>
77468         Add support for Solaris 7..10 ACLs.
77469         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
77470         declarations.
77471         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
77472         functions.
77473         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
77474         * lib/set-mode-acl.c (qset_acl): Likewise.
77475         * lib/copy-acl.c (qcopy_acl): Likewise.
77477 2008-06-08  Bruno Haible  <bruno@clisp.org>
77479         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
77480         declaration.
77481         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
77482         (acl_access_nontrivial): Remove MacOS X case.
77483         (file_has_acl): Use acl_extended_nontrivial.
77484         * lib/copy-acl.c (qcopy_acl): Likewise.
77486 2008-06-08  Bruno Haible  <bruno@clisp.org>
77488         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
77490 2008-06-08  Jim Meyering  <meyering@redhat.com>
77492         * modules/acl (Maintainer): Add Bruno Haible.
77494 2008-06-07  Bruno Haible  <bruno@clisp.org>
77496         Improve support for Tru64 ACLs.
77497         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
77498         ACL on OSF/1.
77500 2008-06-07  Bruno Haible  <bruno@clisp.org>
77502         Add support for MacOS X ACLs.
77503         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
77504         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
77505         * lib/set-mode-acl.c (qset_acl): Likewise.
77506         * lib/copy-acl.c (qcopy_acl): Likewise.
77508 2008-06-07  Bruno Haible  <bruno@clisp.org>
77510         Fix memory leak introduced on 2008-05-22.
77511         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
77512         use.
77514 2008-06-07  Bruno Haible  <bruno@clisp.org>
77516         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
77517         to construct an empty ACL.
77519 2008-06-07  Bruno Haible  <bruno@clisp.org>
77521         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
77522         precisely.
77523         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
77525 2008-06-07  Bruno Haible  <bruno@clisp.org>
77527         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
77528         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
77530 2008-06-07  Bruno Haible  <bruno@clisp.org>
77532         * doc/posix-functions/_setjmp.texi: Explain the use of this function
77533         regardless of POSIX.
77534         * doc/posix-functions/_longjmp.texi: Likewise.
77535         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
77536         SystemV platform in this case.
77538 2008-06-06  Eric Blake  <ebb9@byu.net>
77540         Document abort() bugs.
77541         * doc/posix-functions/abort.texi (abort): Mention anomalies.
77543         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
77544         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
77545         sigsetjmp.
77546         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
77547         siglongjmp, but only as a macro.
77548         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
77549         is obsolete.
77550         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
77552         Tweak documentation to cover cygwin argz bugs.
77553         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
77554         argz bug fix; no code change needed since no cygwin releases
77555         occurred between the last fix and the bug being tested.
77556         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
77557         module and recently fixed cygwin bugs.
77558         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
77559         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
77560         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
77561         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
77562         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
77563         Likewise.
77564         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
77565         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
77566         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
77567         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
77568         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
77569         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
77570         Likewise.
77572         Avoid gcc warning on cygwin.
77573         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
77574         !ACL_NO_TRIVIAL]: Avoid unused variable.
77576 2008-06-05  Eric Blake  <ebb9@byu.net>
77578         Be tolerant of UNKNOWN version in gnulib-tool test dir.
77579         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
77580         git-version-gen fails to come up with a version.
77581         Reported by Simon Josefsson.
77583 2008-06-05  Jim Meyering  <meyering@redhat.com>
77584             Paul Eggert  <eggert@cs.ucla.edu>
77586         utimens.c: work around a probable Linux kernel bug
77587         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
77588         appears to be a kernel bug that causes utimensat to return 280
77589         instead of 0, indicating success.
77591 2008-06-04  Bruno Haible  <bruno@clisp.org>
77593         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
77594         2008-06-01 commit.
77596 2008-06-04  Bruno Haible  <bruno@clisp.org>
77598         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
77599         * lib/file-has-acl.c (acl_access_nontrivial): New function.
77600         (file_has_acl): Use it. Save errno afterwards.
77601         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
77603 2008-06-03  Bruno Haible  <bruno@clisp.org>
77605         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
77606         draft code. Simplify #ifs.
77607         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
77608         Put Solaris code after POSIX-draft code. Fix comments regarding
77609         Solaris 10, HP-UX. Mention Cygwin.
77610         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
77612 2008-06-03  Eric Blake  <ebb9@byu.net>
77614         Provide fallback for older kernels.
77615         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
77616         Provide runtime fallback if kernel lacks support.
77617         Reported by Mike Frysinger.
77619 2008-06-02  Bruno Haible  <bruno@clisp.org>
77621         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
77622         it exists.
77624 2008-06-02  Bruno Haible  <bruno@clisp.org>
77626         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
77627         * lib/copy-acl.c (qcopy_acl): Update comment.
77629 2008-06-02  Bruno Haible  <bruno@clisp.org>
77631         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
77632         like ACL APIs.
77634 2008-06-02  Bruno Haible  <bruno@clisp.org>
77636         * tests/test-file-has-acl.sh: Use different code for Cygwin.
77637         * tests/test-set-mode-acl.sh: Likewise.
77638         * tests/test-copy-acl.sh: Likewise.
77639         * tests/test-copy-file.sh: Likewise.
77641 2008-06-02  Bruno Haible  <bruno@clisp.org>
77643         * tests/test-file-has-acl.sh: Remove unused code.
77645 2008-06-01  Bruno Haible  <bruno@clisp.org>
77647         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
77648         (copy_acl): Just a wrapper around qcopy_acl that emits the error
77649         messages.
77650         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
77652 2008-06-01  Bruno Haible  <bruno@clisp.org>
77654         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
77655         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
77656         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
77657         APIs.
77658         * modules/acl-tests (configure.ac): Remove tests now contained in
77659         m4/acl.m4.
77661 2008-06-02  Jim Meyering  <meyering@redhat.com>
77663         announce-gen: use a better key-server host name
77664         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
77665         it may be more consistently reliable.  Suggested by Werner Koch
77666         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
77668 2008-06-01  Bruno Haible  <bruno@clisp.org>
77670         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
77671         Reported by Voroskoi Andras <voroskoi@gmail.com>.
77673 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
77675         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
77677 2008-06-01  Bruno Haible  <bruno@clisp.org>
77679         New ACL tests.
77680         * tests/test-file-has-acl.sh: New file.
77681         * tests/test-file-has-acl.c: New file.
77682         * tests/test-set-mode-acl.sh: New file.
77683         * tests/test-set-mode-acl.c: New file.
77684         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
77685         * tests/test-copy-acl.c: New file.
77686         * modules/acl-tests: New file, based on modules/copy-file-tests.
77687         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
77688         (Depends-on): Add acl-tests.
77689         (configure.ac): Remove checks.
77690         (Makefile.am): Don't create test-sameacls program here any more.
77692 2008-06-01  Bruno Haible  <bruno@clisp.org>
77694         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
77695         * tests/test-sameacls.c: Include progname.h.
77696         (main): Invoke set_program_name. Portability fixes for MacOS X,
77697         Solaris, HP-UX.
77699 2008-06-01  Bruno Haible  <bruno@clisp.org>
77701         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
77702         function.
77703         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
77705 2008-06-01  Bruno Haible  <bruno@clisp.org>
77707         * modules/rpmatch (Depends-on): Add strdup.
77709 2008-06-01  Bruno Haible  <bruno@clisp.org>
77711         * lib/pipe.c: Include unistd-safer.h.
77712         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
77713         * modules/pipe (Depends-on): Add unistd-safer.
77715 2008-05-30  Simon Josefsson  <simon@josefsson.org>
77717         * modules/autobuild (configure.ac): Call AB_INIT.
77719 2008-05-30  Simon Josefsson  <simon@josefsson.org>
77721         * tests/test-getaddrinfo.c: Don't print debug messages by default.
77722         Suggested by Bruno Haible <bruno@clisp.org>.
77724 2008-05-30  Simon Josefsson  <simon@josefsson.org>
77726         * tests/test-base64.c: Cast size_t to unsigned long when invoking
77727         printf.  Use %lu instead of %d.  Reported by Bruno Haible
77728         <bruno@clisp.org>.
77730 2008-05-29  Eric Blake  <ebb9@byu.net>
77732         Prefer new POSIX 200x interfaces over futimesat.
77733         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
77734         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
77735         when available.
77736         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
77738 2008-05-28  Bruno Haible  <bruno@clisp.org>
77740         * modules/stpcpy (License): Change to LGPLv2+.
77741         Requested by David Lutterkort <dlutter@redhat.com>.
77743 2008-05-27  Bruno Haible  <bruno@clisp.org>
77745         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
77746         current mingw.
77747         Reported by Jose E. Marchesi <jemarch@gnu.org>.
77749 2008-05-27  Bruno Haible  <bruno@clisp.org>
77751         * modules/iconv_open (Link): New section, from module 'iconv'.
77752         * modules/striconv (Link): Likewise.
77753         * modules/striconveh (Link): Likewise.
77754         * modules/xstriconv (Link): Likewise.
77755         * modules/unicodeio (Link): Likewise.
77756         * modules/propername (Link): Likewise.
77757         Reported by Jim Meyering.
77759 2008-05-26  Jim Meyering  <meyering@redhat.com>
77761         sha256: do not artificially restrict buffer length to be < 2^32
77762         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
77763         uint32_t to size_t.
77764         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
77765         to match.
77767         avoid unaligned access errors, e.g., on sparc
77768         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
77769         direct access through a possibly-unaligned uint64* pointer.
77770         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
77771         direct access through a possibly-unaligned uint32* pointer.
77772         Prompted by this patch from Tom "spot" Callaway:
77773         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
77775         sha512.c: fix typo in comment
77776         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
77778 2008-05-25  Bruno Haible  <bruno@clisp.org>
77780         * lib/set-mode-acl.c: Renamed from lib/acl.c.
77781         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
77782         (Makefile.am): Update lib_SOURCES.
77784 2008-05-25  Bruno Haible  <bruno@clisp.org>
77786         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
77788 2008-05-25  Jim Meyering  <meyering@redhat.com>
77790         useless-if-before-free: freed expr may have white-space differences
77791         * build-aux/useless-if-before-free: Recognize cases in which the
77792         freed expression differs from the tested one in embedded white
77793         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
77794         $1 was used, so we can't make any regexp shy.  Improved tests now
77795         detect this.
77797         useless-if-before-free: accept white space in the expression.
77798         * build-aux/useless-if-before-free: For now, any white space
77799         in the expression must be identical in the free argument.
77801         useless-if-before-free: efficiency tweak
77802         * build-aux/useless-if-before-free: Make the expression-matching
77803         regexp "shy".
77804         Make the *outer* regexp shy, not the expr-matching one.
77806         update code-in-comment to accept cast of free arg
77807         * build-aux/useless-if-before-free: Update regexp.
77809 2008-05-25  Bruno Haible  <bruno@clisp.org>
77811         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
77812         * modules/copy-file-tests (Files, Makefile.am): Update.
77813         * tests/test-copy-file.c (func_test_copy): Update.
77815 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
77817         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
77819 2008-05-23  Bruno Haible  <bruno@clisp.org>
77821         Improve support for ACLs on OSF/1.
77822         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
77823         Remove fallback for unknown flavors of ACLs.
77825 2008-05-22  Bruno Haible  <bruno@clisp.org>
77827         Add support for ACLs on OSF/1.
77828         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
77829         replacements.
77830         (acl_free_text): New macro fallback.
77831         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
77832         acl_free.
77833         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
77834         acl_free_text function. Require AC_C_INLINE.
77836 2008-05-22  Bruno Haible  <bruno@clisp.org>
77838         Make copy_acl work on MacOS X 10.5.
77839         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
77840         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
77841         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
77842         If MODE_INSIDE_ACL, don't assume that every system has the same text
77843         representation for ACLs as FreeBSD.
77844         * lib/copy-acl.c (copy_acl): Add support for platforms with
77845         !MODE_INSIDE_ACL.
77846         * lib/file-has-acl.c (file_has_acl): Likewise.
77847         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
77848         FreeBSD, MacOS X, or IRIX, respectively.
77850 2008-05-22  Bruno Haible  <bruno@clisp.org>
77852         * lib/acl.h: Don't include <sys/acl.h>.
77853         (GETACLCNT): Move fallback to lib/acl-internal.h.
77854         * lib/acl-internal.h: Include <sys/acl.h> here.
77855         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
77857 2008-05-22  Bruno Haible  <bruno@clisp.org>
77859         Split off copy_acl function to separate file.
77860         * lib/copy-acl.c: New file, extracted from lib/acl.c.
77861         * lib/acl.c (copy_acl): Moved function to separate file.
77862         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
77863         * modules/acl (Files): Add lib/copy-acl.c.
77864         (Makefiles.am): Augment lib_SOURCES.
77866 2008-05-22  Bruno Haible  <bruno@clisp.org>
77868         * modules/copy-file-tests: New file.
77869         * tests/test-copy-file.sh: New file.
77870         * tests/test-copy-file.c: New file.
77871         * tests/test-copy-file-sameacls.c: New file.
77873 2008-05-22  Eric Blake  <ebb9@byu.net>
77875         Avoid gcc warning.
77876         * tests/test-memcmp.c (main): Pass NULL indirectly.
77878 2008-05-21  Bruno Haible  <bruno@clisp.org>
77880         Add reference doc about ACLs.
77881         * doc/acl-resources.txt: New file.
77882         * doc/acl-cygwin.txt: New file.
77884 2008-05-21  Bruno Haible  <bruno@clisp.org>
77886         Avoid one more warning from gcc.
77887         * lib/vasnprintf.c (IF_LINT): Update comments.
77888         (VASNPRINTF): Use it also for the 'prefix' array initializer.
77890 2008-05-21  Jim Meyering  <meyering@redhat.com>
77892         avoid a warning from gcc
77893         * lib/vasnprintf.c (IF_LINT): Define.
77894         (scale10_round_decimal_long_double):
77895         Use it to avoid a "may be used uninitialized" warning.
77896         (scale10_round_decimal_double): Likewise.
77898 2008-05-21  Simon Josefsson  <simon@josefsson.org>
77900         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
77901         declared.
77903 2008-05-20  Bruno Haible  <bruno@clisp.org>
77905         * tests/test-memcmp.c (main): Test also the sign of the result. Test
77906         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
77908 2008-05-20  Simon Josefsson  <simon@josefsson.org>
77910         * modules/memcmp-tests: New file.
77911         * tests/test-memcmp.c: New file.
77913 2008-05-19  Bruno Haible  <bruno@clisp.org>
77915         * modules/propername (Notice, configure.ac): Put quoted "..." into
77916         --keyword option.
77917         * lib/propername.h: Update comments accordingly.
77918         Reported by Eric Blake.
77920 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
77922         * modules/getpass-gnu (Depends-on): Add fseeko.
77924 2008-05-19  Simon Josefsson  <simon@josefsson.org>
77926         * modules/base64-tests: New file.
77928 2008-05-19  Bo Borgerson  <gigabo@gmail.com>
77930         * lib/base64.c (base64_decode_ctx): If a decode context structure
77931         was passed in use it to ignore newlines.  If a context structure
77932         was _not_ passed in, continue to treat newlines as garbage (this
77933         is the historical behavior).  Formerly base64_decode.
77934         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
77935         takes a decode context structure.
77936         * lib/base64.h (base64_decode): Macro for four-argument calls.
77937         (base64_decode_alloc): Likewise.
77938         * lib/base64.c (base64_decode_ctx): If a decode context structure
77939         was passed in use it to ignore newlines.  If a context structure
77940         was _not_ passed in, continue to treat newlines as garbage (this
77941         is the historical behavior).  Formerly base64_decode.
77942         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
77943         takes a decode context structure.
77944         * lib/base64.h (base64_decode): Macro for four-argument calls.
77945         (base64_decode_alloc): Likewise.
77947 2008-05-19  Jim Meyering  <meyering@redhat.com>
77949         avoid a warning from gcc
77950         * lib/trim.c (IF_LINT): Define.
77951         (trim2): Use it to avoid a "may be used uninitialized" warning.
77953         Fix doc typo.
77954         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
77956 2008-05-19  Bruno Haible  <bruno@clisp.org>
77958         * doc/glibc-functions/getpass.texi: Document limits of other
77959         implementations.
77961 2008-05-19  Simon Josefsson  <simon@josefsson.org>
77962             Bruno Haible <bruno@clisp.org>
77964         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
77966 2008-05-18  Bruno Haible  <bruno@clisp.org>
77968         * modules/propername: New file, from GNU gettext.
77969         * lib/propername.h: New file, from GNU gettext.
77970         * lib/propername.c: New file, from GNU gettext.
77971         * MODULES.html.sh (Internationalization functions): Add propername.
77973 2008-05-16  Jim Meyering  <meyering@redhat.com>
77974             Bruno Haible  <bruno@clisp.org>
77976         Avoid some warnings from "gcc -Wshadow".
77977         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
77979 2008-05-15  Eric Blake  <ebb9@byu.net>
77981         Extend previous patch to cygwin 1.7.0.
77982         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
77983         fast implementation in cygwin >= 1.7.0.
77984         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
77985         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
77987 2008-05-15  Bruno Haible  <bruno@clisp.org>
77989         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
77990         implementation in glibc >= 2.9.
77991         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
77992         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
77994 2008-05-15  Bruno Haible  <bruno@clisp.org>
77996         * MODULES.html.sh (Internationalization functions): Remove linebreak.
77997         (Unicode string functions): Add unilbrk/*.
77998         Reported by Karl Berry.
78000 2008-05-15  Eric Blake  <ebb9@byu.net>
78002         Fix violation of <stdbool.h> replacement in regex.
78003         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
78004         * lib/regexec.c (re_search_internal): Likewise.
78005         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
78007 2008-05-15  Jim Meyering  <meyering@redhat.com>
78009         avoid distracting test output when git or cvs is not found
78010         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
78011         * tests/test-vc-list-files-git.sh: Likewise.
78013 2008-05-15  Eric Blake  <ebb9@byu.net>
78015         Glibc finally accepted the memmem speedup code, bugzilla #5514.
78016         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
78017         glibc version.
78018         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
78019         * doc/posix-functions/strstr.texi (strstr): Likewise.
78020         * lib/str-two-way.h (MAX): Sychronize with glibc.
78022 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
78024         * lib/regcomp.c (optimize_utf8): Add a note on why we test
78025         opr.ctx_type.
78026         (calc_first): Initialize constraint field.
78027         (duplicate_node_closure): Use it instead of special casing ANCHORS.
78028         Fix grammar.
78029         (duplicate_node): Merge constraint field for all node types.
78030         (calc_eclosure_iter): Look at constraint field for all node types.
78031         * lib/regex_internal.c (create_cd_newstate): Don't look at
78032         opr.ctx_type.
78034 2008-05-14  Bruno Haible  <bruno@clisp.org>
78036         Help GCC to do better code generation.
78037         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
78038         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
78039         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
78040         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
78041         Declare with attribute 'malloc' if supported.
78043 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
78045         use "echo STR|wc -c" rather than unportable "expr length STR"
78046         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
78047         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
78049 2008-05-14  Jim Meyering  <meyering@redhat.com>
78051         use dd ibs=$n count=1 ... rather than less-portable head -c$n
78052         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
78053         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
78054         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
78055         via Collin Lasse.
78057 2008-05-14  Eric Blake  <ebb9@byu.net>
78059         Avoid quadratic growth in gl_LIBSOURCES.
78060         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
78061         Suggested by Bruno Haible.
78063         Test xmemdup0.
78064         * modules/xmemdup0-tests: New file.
78065         * tests/test-xmemdup0.c: Likewise.
78067 2008-05-13  Eric Blake  <ebb9@byu.net>
78069         Split xmemdup0 into its own module.
78070         * modules/xmemdup0: New file.
78071         * lib/xmemdup0.h: Likewise.
78072         * lib/xmemdup0.c: Likewise.
78073         * MODULES.html.sh (Memory management functions): Add xmemdup0.
78074         * lib/xalloc.h (xmemdup0): Remove.
78075         * lib/xmalloc.c (xmemdup0): Likewise.
78077 2008-05-13  Eric Blake  <ebb9@byu.net>
78078             Bruno Haible  <bruno@clisp.org>
78080         Reduce number of forks required during autoconf.
78081         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
78082         and gl_LIBSOURCES_DIR.
78083         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
78084         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
78085         m4_syscmd per file.
78086         <m4_foreach_w>: Move...
78087         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
78089 2008-05-13  Eric Blake  <ebb9@byu.net>
78091         * gnulib-tool: Fix various comment typos.
78093 2008-05-12  Bruno Haible  <bruno@clisp.org>
78095         Tailor the linebreaking algorithm.
78096         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
78098 2008-05-12  Bruno Haible  <bruno@clisp.org>
78100         Update to Unicode 5.0.0.
78101         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
78102         LBP_JV, LBP_JT. Redistribute values.
78103         (unilbrk_table): Change size.
78104         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
78105         Unicode TR#14 rev. 22.
78106         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
78107         LBP_JV, LBP_JT. Redistribute values.
78108         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
78109         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
78110         Update.
78111         * lib/unilbrk/lbrkprop1.h: Regenerated.
78112         * lib/unilbrk/lbrkprop2.h: Regenerated.
78113         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
78114         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
78115         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
78116         Likewise.
78117         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
78118         Likewise.
78119         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
78120         result.
78121         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
78122         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
78123         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
78124         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
78125         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
78126         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
78128 2008-05-11  Bruno Haible  <bruno@clisp.org>
78130         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
78132 2008-05-11  Bruno Haible  <bruno@clisp.org>
78134         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
78135         * modules/unilbrk/gen-lbrk: New file.
78137 2008-05-11  Bruno Haible  <bruno@clisp.org>
78139         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
78140         * m4/sha512.m4 (gl_SHA512): Likewise.
78142 2008-05-11  Jim Meyering  <meyering@redhat.com>
78144         New modules: crypto/sha256, crypto/sha512 (from coreutils)
78145         * modules/crypto/sha256: New file.
78146         * modules/crypto/sha512: Likewise.
78147         * lib/sha256.c: Likewise.
78148         * lib/sha256.h: Likewise.
78149         * lib/sha512.c: Likewise.
78150         * lib/sha512.h: Likewise.
78151         * lib/u64.h: Likewise.
78152         * m4/sha256.m4: Likewise.
78153         * m4/sha512.m4: Likewise.
78154         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
78156 2008-05-10  Bruno Haible  <bruno@clisp.org>
78158         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
78159         (Input/Output <stdio.h>): Add xprintf.
78160         (Signal handling <signal.h>): Add strsignal.
78161         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
78162         (Core language properties): Add func.
78163         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
78164         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
78165         strings.
78166         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
78167         (Input/output): New section.
78168         (File system functions): Add openat-die, stat-macros.
78169         (Networking functions): Add sockets.
78170         (Unicode string functions): Add unictype/*.
78171         (Support for building libraries and executables): Add gperf.
78172         (Support for building documentation): Add agpl-3.0.
78173         (Misc): Add nocrash.
78175 2008-05-10  Bruno Haible  <bruno@clisp.org>
78177         * modules/unictype/gen-ctype: New file.
78179 2008-05-10  Jim Meyering  <meyering@redhat.com>
78181         Make chdir-safer.c more efficient on a system with no symlinks.
78182         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
78183         also if ELOOP is zero.  Suggested by Bruno Haible.
78185         Make chdir-safer.c slightly safer.
78186         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
78187         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
78189         Avoid compile failure on systems without ELOOP (like mingw).
78190         * lib/chdir-safer.c (ELOOP): Define if not already defined.
78191         Reported by Bruno Haible.
78193 2008-05-10  Bruno Haible  <bruno@clisp.org>
78195         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
78196         (is_utf8_encoding): Use a case-insensitive comparison.
78197         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
78198         streq.
78200 2008-05-10  Bruno Haible  <bruno@clisp.org>
78202         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
78203         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
78204         * lib/unilbrk/ulc-common.h (iconv_string_length,
78205         iconv_string_keeping_offsets): Remove declarations.
78206         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
78207         Don't include <iconv.h>, streq.h, xsize.h.
78208         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
78209         conversion.
78210         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
78211         <iconv.h>, streq.h, xsize.h.
78212         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
78213         conversion.
78214         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
78215         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
78216         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
78217         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
78219 2008-05-10  Bruno Haible  <bruno@clisp.org>
78221         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
78222         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
78224         * modules/unilbrk/u32-width-linebreaks-tests: New file.
78225         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
78227         * modules/unilbrk/u16-width-linebreaks-tests: New file.
78228         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
78230         * modules/unilbrk/u8-width-linebreaks-tests: New file.
78231         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
78233         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
78234         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
78236         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
78237         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
78239         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
78240         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
78242         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
78243         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
78245 2008-05-10  Bruno Haible  <bruno@clisp.org>
78247         Split up 'linebreak' module.
78248         * lib/unilbrk.h: New file, based on lib/linebreak.h.
78249         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
78250         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
78251         modifications.
78252         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
78253         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
78254         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
78255         lib/linebreak.c.
78256         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
78257         lib/linebreak.c.
78258         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
78259         lib/linebreak.c.
78260         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
78261         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
78262         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
78263         lib/linebreak.c.
78264         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
78265         lib/linebreak.c.
78266         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
78267         lib/linebreak.c.
78268         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
78269         lib/linebreak.c.
78270         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
78271         lib/linebreak.c.
78272         * modules/unilbrk/base: New file.
78273         * modules/unilbrk/tables: New file.
78274         * modules/unilbrk/u8-possible-linebreaks: New file.
78275         * modules/unilbrk/u16-possible-linebreaks: New file.
78276         * modules/unilbrk/u32-possible-linebreaks: New file.
78277         * modules/unilbrk/ulc-common: New file.
78278         * modules/unilbrk/ulc-possible-linebreaks: New file.
78279         * modules/unilbrk/u8-width-linebreaks: New file.
78280         * modules/unilbrk/u16-width-linebreaks: New file.
78281         * modules/unilbrk/u32-width-linebreaks: New file.
78282         * modules/unilbrk/ulc-width-linebreaks: New file.
78283         * lib/linebreak.h: Remove file.
78284         * lib/linebreak.c: Remove file.
78285         * m4/linebreak.m4: Remove file.
78286         * modules/linebreak: Remove file.
78287         * NEWS: Mention the changes.
78289 2008-05-09  Eric Blake  <ebb9@byu.net>
78291         Add xmemdup0.
78292         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
78293         implementation.
78294         * lib/xmalloc.c (xmemdup0): New C implementation.
78296 2008-05-08  Bruno Haible  <bruno@clisp.org>
78298         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
78300 2008-05-07  Eric Blake  <ebb9@byu.net>
78302         Support cross-compilation of <wctype.h>.
78303         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
78304         AC_CACHE_CHECK.
78306 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
78308         * build-aux/vc-list-files: Add support for bzr.
78310 2008-05-03  Jim Meyering  <meyering@redhat.com>
78312         avoid failed assertion with tight malloc
78313         * tests/test-getndelim2.c: Correct an off-by-one assertion.
78315 2008-05-03  Simon Josefsson  <simon@josefsson.org>
78317         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
78318         are needed from arpa/inet.h.
78319         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
78320         Reported by Bruno Haible.
78322 2008-05-02  Jim Meyering  <meyering@redhat.com>
78324         avoid compilation error on FreeBSD 6
78325         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
78327 2008-05-01  Jim Meyering  <meyering@redhat.com>
78329         useless-if-before-free: correct --help's exit status description
78330         * build-aux/useless-if-before-free (usage): Like grep, exit 0
78331         for one or more matches, etc.  Reported by Bruno Haible.
78333         vc-list-files: make the stand-alone gnulib test work
78334         * modules/vc-list-files-tests (configure.ac):
78335         Define and AC_SUBST abs_aux_dir.
78336         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
78337         $(abs_top_srcdir) to each script and having each of them
78338         duplicate the work of setting PATH, set PATH here, using
78339         the new variable, abs_aux_dir instead.
78340         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
78341         * tests/test-vc-list-files-git.sh: Likewise.
78342         Reported by Bruno Haible.
78344 2008-05-01  Bruno Haible  <bruno@clisp.org>
78346         * lib/getndelim2.c (getndelim2): Fix newsize computation during
78347         reallocation. Rename 'done' to 'found_delimiter'.
78349 2008-05-01  Jim Meyering  <meyering@redhat.com>
78351         vc-list-files: accommodate /bin/sh like the one from Solaris 10
78352         * build-aux/vc-list-files: Use `...`, not $(...).
78354 2008-04-30  Jim Meyering  <meyering@redhat.com>
78356         add tests for vc-list-files
78357         * modules/vc-list-files-tests: New module.
78358         * tests/test-vc-list-files-cvs.sh: New file.
78359         * tests/test-vc-list-files-git.sh: New file.
78361         avoid a warning from gcc
78362         * lib/getndelim2.c (IF_LINT): Define.
78363         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
78365         vc-list-files: work properly with build-aux/cvsu, too
78366         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
78367         to all cvs-based clauses.
78369         vc-list-files: work properly in the CVS+awk case, too
78370         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
78372         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
78373         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
78374         take more than one file argument, so .  Add quotes, just in case $dir
78375         ever contains a shell meta-character.  Prompted by Soren Hansen in
78376         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
78378 2008-04-29  Eric Blake  <ebb9@byu.net>
78380         Optimize getndelim2 to use block operations when possible.
78381         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
78382         freadseek, and memchr2.
78383         * lib/getndelim2.c (getndelim2): Use them for block reads.
78385 2008-04-29  Bruno Haible  <bruno@clisp.org>
78387         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
78388         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
78389         * modules/inet_ntop (Depends-on): Add extensions.
78390         * modules/inet_pton (Depends-on): Likewise.
78391         Reported by Simon Josefsson.
78393 2008-04-29  Jim Meyering  <meyering@redhat.com>
78395         When the is more than one match in a block, match all of them.
78396         * build-aux/useless-if-before-free: Iterate through each block
78397         until there are no more matches.
78399         Fix broken useless-if-before-free script.
78400         * build-aux/useless-if-before-free: Fix typo: missing "?" after
78401         the expression to match cast of argument to free-like function.
78403 2008-04-29  Eric Blake  <ebb9@byu.net>
78405         Use new header.
78406         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
78408 2008-04-29  Jim Meyering  <meyering@redhat.com>
78410         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
78411         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
78412         by gnulib to exist and to declare e.g., inet_ntop.
78413         Don't include "inet_ntop.h", now removed.
78415         * m4/arpa_inet_h.m4: Remove trailing blanks.
78417 2008-04-29  Eric Blake  <ebb9@byu.net>
78419         Silence valgrind on safe reads beyond potential array bounds.
78420         * lib/rawmemchr.valgrind: New file.
78421         * lib/strchrnul.valgrind: Likewise.
78422         * modules/rawmemchr (Files): Distribute new file.
78423         * modules/strchrnul (Files): Likewise.
78424         Suggested by Bruno Haible.
78426 2008-04-29  Bruno Haible  <bruno@clisp.org>
78428         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
78429         (inet_ntop, inet_pton): Change portability warning's wording.
78430         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
78431         Invoke gl_CHECK_NEXT_HEADERS.
78432         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
78433         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
78434         set ARPA_INET_H.
78435         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
78436         * modules/arpa_inet (Description): No longer only for systems that
78437         lack it.
78438         (Depends-on): Add include_next.
78439         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
78440         HAVE_ARPA_INET_H.
78442 2008-04-29  Jim Meyering  <meyering@redhat.com>
78444         * modules/mkdir (License): Re-license as LGPLv2+.
78446 2008-04-29  Bruno Haible  <bruno@clisp.org>
78448         * modules/rawmemchr (Maintainer): Set to Eric.
78449         * modules/strchrnul (Maintainer): Likewise.
78451 2008-04-29  Simon Josefsson  <simon@josefsson.org>
78453         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
78454         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
78456         * modules/arpa_inet (arpa/inet.h): Use them.
78458 2008-04-28  Eric Blake  <ebb9@byu.net>
78460         Test getndelim2.
78461         * modules/getndelim2-tests: New file.
78462         * tests/test-getndelim2.c: Likewise.
78463         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
78464         stream.
78465         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
78467         * MODULES.html.sh: Document new module.
78469 2008-04-20  Bruno Haible  <bruno@clisp.org>
78471         * lib/c-stack.c (die): Use raise.
78472         * modules/c-stack (Depends-on): Add raise.
78474 2008-04-28  Bruno Haible  <bruno@clisp.org>
78476         Expect rpmatch to be declared.
78477         * lib/yesno.c (rpmatch): Remove declaration.
78479         Declare rpmatch.
78480         * lib/stdlib.in.h (rpmatch): New declaration.
78481         * lib/rpmatch.c: Include <stdlib.h> first.
78482         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
78483         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
78484         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
78485         HAVE_RPMATCH.
78486         * modules/rpmatch (Depends-on): Add stdlib, extensions.
78487         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
78488         (Include): Set to <stdlib.h>.
78489         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
78490         HAVE_RPMATCH.
78491         * NEWS: Document the change.
78493 2008-04-28  Bruno Haible  <bruno@clisp.org>
78495         Change rpmatch to use nl_langinfo when appropriate.
78496         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
78497         (N_): New macro.
78498         (localized_pattern): New function/macro.
78499         (try): Remove match, nomatch arguments. Copy the pattern into safe
78500         memory before caching it.
78501         (rpmatch): Use localized_pattern. Add translator comments.
78502         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
78503         Suggested by Eric Blake.
78504         * modules/rpmatch (Depends-on): Add stdbool.
78506 2008-04-28  Eric Blake  <ebb9@byu.net>
78508         Add rawmemchr module, matching glibc.
78509         * modules/string (Makefile.am): New indicator.
78510         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
78511         * lib/string.in.h (rawmemchr): Declare when appropriate.
78512         * modules/rawmemchr: New file.
78513         * m4/rawmemchr.m4: Likewise.
78514         * lib/rawmemchr.c: Likewise.
78515         * modules/rawmemchr-tests: Likewise.
78516         * tests/test-rawmemchr.c: Likewise.
78517         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
78518         module.
78519         * modules/strchrnul (Depends-on): Add rawmemchr.
78520         * lib/strchrnul.c (strchrnul): Optimize a corner case.
78522         Whitespace cleanup.
78523         * tests/test-strchrnul.c: Reindent.
78524         * lib/strchrnul.c: Likewise.
78526         Optimize and test strchrnul.
78527         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
78528         * modules/strchrnul-tests: New file.
78529         * tests/test-strchrnul.c: Likewise.
78531         Remove intprops dependency.
78532         * modules/memchr (Depends-on): Remove intprops.
78533         * modules/memrchr (Depends-on): Likewise.
78534         * modules/memchr2 (Depends-on): Likewise.
78535         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
78536         * lib/memrchr.c (__memrchr): Likewise.
78537         * lib/memrchr2.c (memchr2): Likewise.
78538         Reported by Simon Josefsson.
78540 2008-04-28  Simon Josefsson  <simon@josefsson.org>
78542         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
78543         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78545 2008-04-28  Simon Josefsson  <simon@josefsson.org>
78547         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
78549         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
78551         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
78553         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
78554         declarations.
78555         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
78557         * m4/inet_pton.m4: Don't check for header files.
78559         * m4/inet_ntop.m4: Don't check for header files.
78561 2008-04-28  Simon Josefsson  <simon@josefsson.org>
78563         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
78564         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
78565         trigger for cygwin).
78566         Reported by Bruno Haible  <bruno@clisp.org>.
78568 2008-04-28  Bruno Haible  <bruno@clisp.org>
78570         * doc/posix-functions/strdup.texi: Mention mingw problem.
78572 2008-04-27  Bruno Haible  <bruno@clisp.org>
78574         * modules/stat-time-tests (Depends-on): Add sleep.
78575         * tests/test-stat-time.c (force_unlink): New function.
78576         (cleanup): Use it.
78577         (test_mtime): Remove the ctime related tests.
78578         (test_ctime): New function, containing the ctime related tests.
78579         (main): Call test_ctime, except on native Windows platforms.
78581 2008-04-27  Bruno Haible  <bruno@clisp.org>
78583         * lib/rpmatch.c (rpmatch): Add some comments.
78584         Reported by James Youngman <jay@gnu.org>.
78586 2008-04-27  Bruno Haible  <bruno@clisp.org>
78588         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
78589         quiet NaNs.
78591 2008-04-27  Bruno Haible  <bruno@clisp.org>
78593         Make test-yesno.sh work on mingw.
78594         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
78595         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
78596         (main): Set stdin to binary mode.
78597         * modules/yesno-tests (Depends-on): Add binary-io.
78599 2008-04-27  Bruno Haible  <bruno@clisp.org>
78601         Fix 'isfinite' on x86, x86_64, ia64 platforms.
78602         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
78603         argument that lie outside the IEEE 854 domain.
78604         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
78605         (gl_ISFINITE): Use it.
78606         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
78608 2008-04-27  Bruno Haible  <bruno@clisp.org>
78610         Allow local renaming in config.h.
78611         * lib/memrchr.c (memrchr): Don't undefine outside libc.
78613 2008-04-27  Bruno Haible  <bruno@clisp.org>
78615         * lib/memchr.c (__memchr): Change type of 'i'.
78616         * lib/memchr2.c (memchr2): Likewise.
78618 2008-04-26  Eric Blake  <ebb9@byu.net>
78619         and Bruno Haible  <bruno@clisp.org>
78621         Optimize and test memrchr.
78622         * modules/memrchr (Depends-on): Add intprops.
78623         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
78624         * modules/memrchr-tests: New file.
78625         * tests/test-memrchr.c: New file.
78627 2008-04-26  Bruno Haible  <bruno@clisp.org>
78629         Add tentative support for DragonFly BSD.
78630         * lib/stdio-impl.h: Add macros for DragonFly BSD.
78631         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
78632         fp.
78633         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
78634         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
78635         * lib/fpurge.c (fpurge): Likewise.
78636         * lib/freadable.c (freaadable): Likewise.
78637         * lib/freadahead.c (freadahead): Likewise.
78638         * lib/freading.c (freading): Likewise.
78639         * lib/freadptr.c (freadptr): Likewise.
78640         * lib/freadseek.c (freadptrinc): Likewise.
78641         * lib/fseeko.c (fseeko): Likewise.
78642         * lib/fseterr.c (fseterr): Likewise.
78643         * lib/fwritable.c (fwritable): Likewise.
78644         * lib/fwriting.c (fwriting): Likewise.
78646 2008-04-26  Bruno Haible  <bruno@clisp.org>
78648         * lib/stdio-impl.h: New file.
78649         * lib/fbufmode.c: Include stdio-impl.h.
78650         (fbufmode): Use fp_, remove redundant #defines.
78651         * lib/fflush.c: Include stdio-impl.h.
78652         (clear_ungetc_buffer): Remove redundant #defines.
78653         * lib/fpurge.c: Include stdio-impl.h.
78654         (fpurge): Remove redundant #defines.
78655         * lib/freadable.c: Include stdio-impl.h.
78656         (freadable): Remove redundant #defines.
78657         * lib/freadahead.c: Include stdio-impl.h.
78658         (freadahead): Remove redundant #defines.
78659         * lib/freading.c: Include stdio-impl.h.
78660         (freading): Remove redundant #defines.
78661         * lib/freadptr.c: Include stdio-impl.h.
78662         (freadptr): Remove redundant #defines.
78663         * lib/freadseek.c: Include stdio-impl.h.
78664         (freadptrinc): Remove redundant #defines.
78665         * lib/fseeko.c: Include stdio-impl.h.
78666         (rpl_fseeko): Remove redundant #defines.
78667         * lib/fseterr.c: Include stdio-impl.h.
78668         (fseterr): Remove redundant #defines.
78669         * lib/fwritable.c: Include stdio-impl.h.
78670         (fwritable: Remove redundant #defines.
78671         * lib/fwriting.c: Include stdio-impl.h.
78672         (fwriting): Remove redundant #defines.
78673         * modules/fbufmode (Files): Add lib/stdio-impl.h.
78674         * modules/fflush (Files): Likewise.
78675         * modules/fpurge (Files): Likewise.
78676         * modules/freadable (Files): Likewise.
78677         * modules/freadahead (Files): Likewise.
78678         * modules/freading (Files): Likewise.
78679         * modules/freadptr (Files): Likewise.
78680         * modules/freadseek (Files): Likewise.
78681         * modules/fseeko (Files): Likewise.
78682         * modules/fseterr (Files): Likewise.
78683         * modules/fwritable (Files): Likewise.
78684         * modules/fwriting (Files): Likewise.
78686 2008-04-26  Bruno Haible  <bruno@clisp.org>
78688         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
78689         restore_seek_optimization, update_fpos_cache): New functions, extracted
78690         from rpl_fflush.
78691         (rpl_fflush): Use them.
78692         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
78693         (gl_REPLACE_FFLUSH): Use it.
78695 2008-04-26  Bruno Haible  <bruno@clisp.org>
78697         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
78698         on Solaris.
78699         * tests/test-xstrtoimax.sh: Likewise.
78700         * tests/test-xstrtoumax.sh: Likewise.
78701         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78703 2008-04-26  Bruno Haible  <bruno@clisp.org>
78705         * modules/memchr-tests: New file.
78706         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
78708 2008-04-26  Eric Blake  <ebb9@byu.net>
78709             Bruno Haible  <bruno@clisp.org>
78711         * lib/memchr.c: Include intprops.h.
78712         (__memchr): Optimize parallel detection of matching bytes. Rename local
78713         variables. Add explanatory comments.
78715 2008-04-26  Bruno Haible  <bruno@clisp.org>
78717         Fix module 'memchr', broken since 2000-10-28.
78718         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
78720 2008-04-26  Bruno Haible  <bruno@clisp.org>
78722         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
78723         comments.
78725 2008-04-25  Eric Blake  <ebb9@byu.net>
78727         Use native fstatat on cygwin 1.7.0.
78728         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
78729         first.
78731 2008-04-23  Eric Blake  <ebb9@byu.net>
78733         Improve memchr2 performance.
78734         * lib/memchr2.c (memchr2): Further optimize parallel detection of
78735         NUL bytes.
78736         * modules/memchr2 (Depends-on): Use intprops.h.
78738 2008-04-23  Simon Josefsson  <simon@josefsson.org>
78740         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
78741         an inline function instead of a CPP macro.  Patch by Ben Pfaff
78742         <blp@cs.stanford.edu>.
78744 2008-04-23  Simon Josefsson  <simon@josefsson.org>
78746         * lib/arpa_inet.in.h: New file.
78748         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
78749         (Makefile.am): Sed in substitute header file.
78751         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
78752         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
78754         * modules/inet_ntop (configure.ac): Use
78755         gl_ARPA_INET_MODULE_INDICATOR.
78757         * modules/inet_pton (configure.ac): Use
78758         gl_ARPA_INET_MODULE_INDICATOR.
78760 2008-04-22  Jim Meyering  <meyering@redhat.com>
78762         * modules/verify (License): Re-license as LGPLv2+.
78764 2008-04-22  Simon Josefsson  <simon@josefsson.org>
78766         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
78767         parameter to void* as per POSIX standard (MinGW uses char*).
78769 2008-04-21  Bruno Haible  <bruno@clisp.org>
78771         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
78772         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
78773         Define to replacements if REPLACE_ISWCNTRL is 1.
78774         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
78775         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
78776         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
78777         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
78778         what it fixes.
78779         * doc/posix-functions/iswalpha.texi: Likewise.
78780         * doc/posix-functions/iswblank.texi: Likewise.
78781         * doc/posix-functions/iswcntrl.texi: Likewise.
78782         * doc/posix-functions/iswdigit.texi: Likewise.
78783         * doc/posix-functions/iswgraph.texi: Likewise.
78784         * doc/posix-functions/iswlower.texi: Likewise.
78785         * doc/posix-functions/iswprint.texi: Likewise.
78786         * doc/posix-functions/iswpunct.texi: Likewise.
78787         * doc/posix-functions/iswspace.texi: Likewise.
78788         * doc/posix-functions/iswupper.texi: Likewise.
78789         * doc/posix-functions/iswxdigit.texi: Likewise.
78790         Reported by Alain Guibert.
78792 2008-04-21  Bruno Haible  <bruno@clisp.org>
78794         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
78795         Patch by Alain Guibert.
78797 2008-04-21  Bruno Haible  <bruno@clisp.org>
78799         Fix test failures on mingw.
78800         * tests/test-xstrtol.c (print_no_progname): New function.
78801         (main): Install it in error_print_progname hook.
78802         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
78803         * tests/test-xstrtoimax.sh: Likewise.
78804         * tests/test-xstrtoumax.sh: Likewise.
78806 2008-04-21  Bruno Haible  <bruno@clisp.org>
78808         Fix test failure on mingw.
78809         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
78811 2008-04-21  Bruno Haible  <bruno@clisp.org>
78813         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
78814         Actually assign a value.
78816 2008-04-20  Bruno Haible  <bruno@clisp.org>
78818         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
78819         take 2.
78820         * lib/canonicalize.c (canonicalize_file_name): Elide if the
78821         'canonicalize-lgpl' module is also used.
78822         * lib/canonicalize-lgpl.c: Undo last change.
78823         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
78825 2008-04-20  Bruno Haible  <bruno@clisp.org>
78827         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
78828         config.h. Provide _mkdir based fallback for mingw.
78829         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
78830         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
78831         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
78832         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
78833         rather than defining mkdir in config.h.
78834         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
78835         (gl_SYS_STAT_H_DEFAULTS): New macro.
78836         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
78837         HAVE_IO_H any more.
78838         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
78839         HAVE_DECL_MKDIR and HAVE_IO_H.
78841 2008-04-20  Bruno Haible  <bruno@clisp.org>
78843         * lib/isapipe.c: Port to native Windows platforms.
78845 2008-04-20  Bruno Haible  <bruno@clisp.org>
78847         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
78849 2008-04-21  Eric Blake  <ebb9@byu.net>
78851         Work around preprocessors that don't handle UINTMAX_MAX.
78852         * lib/memchr2.c (memchr2): Avoid embedded #if.
78853         Reported by Alain Guibert, fix suggested by Bruno Haible.
78855 2008-04-21  Simon Josefsson  <simon@josefsson.org>
78857         * doc/posix-functions/strftime.texi (strftime): Explain better
78858         Windows incompatibility.  Suggested by Micah Cowan
78859         <micah@cowan.name>.
78861 2008-04-20  Bruno Haible  <bruno@clisp.org>
78863         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
78864         unistr/u8-mblen.
78866 2008-04-20  Bruno Haible  <bruno@clisp.org>
78868         Fix test failure on platforms with non-GNU iconv.
78869         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
78870         (U_TO_U8): Use it, rather than u16_to_u8.
78871         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
78872         units at the end of the input string.
78873         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
78875 2008-04-20  Bruno Haible  <bruno@clisp.org>
78877         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
78878         when the resulting length is 0.
78879         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
78881 2008-04-20  Bruno Haible  <bruno@clisp.org>
78883         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
78884         works.
78885         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
78887 2008-04-20  Bruno Haible  <bruno@clisp.org>
78889         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
78890         * modules/tsearch-tests (configure.ac): Test for initstate function.
78892 2008-04-20  Bruno Haible  <bruno@clisp.org>
78894         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
78895         for nlink_t if missing.
78896         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
78898 2008-04-19  Bruno Haible  <bruno@clisp.org>
78900         Work around snprintf bug on Linux libc5.
78901         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
78902         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
78903         gl_SNPRINTF_SIZE1.
78904         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
78905         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
78906         that test failed.
78907         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
78908         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
78909         * modules/snprintf (Files): Add m4/printf.m4.
78910         * modules/vsnprintf (Files): Likewise.
78911         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
78912         * doc/posix-functions/vsnprintf.texi: Likewise.
78914 2008-04-19  Bruno Haible  <bruno@clisp.org>
78916         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
78917         from 0.0058 to less than 10^-7.
78919 2008-04-19  Bruno Haible  <bruno@clisp.org>
78921         Fix rounding when a precision is given.
78922         * lib/vasnprintf.c (is_borderline): New function.
78923         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
78924         9...9x.
78925         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
78926         %e, %g.
78927         * tests/test-vasprintf-posix.c (test_function): Likewise.
78928         * tests/test-snprintf-posix.h (test_function): Likewise.
78929         * tests/test-sprintf-posix.h (test_function): Likewise.
78930         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
78931         * tests/test-printf-posix.h (test_function): Likewise.
78932         * tests/test-printf-posix.output: Update.
78933         Reported by John Darrington <john@darrington.wattle.id.au> via
78934         Ben Pfaff <blp@cs.stanford.edu>.
78936 2008-04-18  Simon Josefsson  <simon@josefsson.org>
78938         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
78939         Suggested by Bruno Haible <bruno@clisp.org>.
78941 2008-04-17  Bruno Haible  <bruno@clisp.org>
78943         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
78944         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
78945         implementation.
78946         Patch by Bruce Merry <bmerry@gmail.com>.
78948 2008-04-17  Simon Josefsson  <simon@josefsson.org>
78950         * doc/posix-functions/strftime.texi (strftime): Mention that %e
78951         doesn't work under Windows.
78953 2008-04-16  Bruno Haible  <bruno@clisp.org>
78955         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
78956         New macros.
78957         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
78958         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
78959         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
78960         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
78961         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
78962         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
78963         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
78964         macros.
78965         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
78966         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
78967         Northern Sotho, Uighur.
78969 2008-04-16  Bruno Haible  <bruno@clisp.org>
78971         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
78972         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
78973         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
78974         Reported by Daniel Bergström <daniel@octocode.com>.
78976 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
78977             Bruno Haible  <bruno@clisp.org>
78979         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
78980         function.
78981         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
78982         New functions, mostly extracted from gl_locale_name_default.
78983         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
78985 2008-04-16  Eric Blake  <ebb9@byu.net>
78987         Adjust strtod detection to catch glibc 2.7 bug.
78988         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
78989         Reported by John Gatewood Ham.
78991 2008-04-16  Bruno Haible  <bruno@clisp.org>
78993         Add tentative support for Linux libc5.
78994         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
78995         * lib/fpurge.c (fpurge): Likewise.
78996         * lib/freadable.c (freadable): Likewise.
78997         * lib/freadahead.c (freadahead): Likewise.
78998         * lib/freading.c (freading): Likewise.
78999         * lib/freadptr.c (freadptr): Likewise.
79000         * lib/freadseek.c (freadptrinc): Likewise.
79001         * lib/fseeko.c (rpl_fseeko): Likewise.
79002         * lib/fseterr.c (fseterr): Likewise.
79003         * lib/fwritable.c (fwritable): Likewise.
79004         * lib/fwriting.c (fwriting): Likewise.
79005         Reported by Alain Guibert <alguibert+bts@free.fr>.
79007 2008-04-15  Bruno Haible  <bruno@clisp.org>
79009         * modules/mathl (configure.ac): Define module indicator.
79011 2008-04-15  Bruno Haible  <bruno@clisp.org>
79013         * lib/logl.c (logl): Remove unused variables.
79015 2008-04-15  Bruno Haible  <bruno@clisp.org>
79017         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
79018         fails.
79020 2008-04-15  Bruno Haible  <bruno@clisp.org>
79022         * lib/trim.c (trim2): Fix argument of isspace() macro.
79024 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
79026         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
79027         to 0.
79028         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
79030 2008-04-14  Bruno Haible  <bruno@clisp.org>
79032         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
79033         AC_LANG_PROGRAM argument.
79034         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
79035         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
79036         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
79037         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
79038         * m4/math_h.m4 (gl_MATH_H): Likewise.
79039         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
79040         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
79041         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
79042         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
79043         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
79044         * m4/regex.m4 (gl_REGEX): Likewise.
79045         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
79046         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
79047         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
79048         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
79049         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
79050         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
79051         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
79052         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
79054 2008-04-14  Jim Meyering  <meyering@redhat.com>
79056         test-strtod: fix typos: s/abs/fabs/
79057         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
79059 2008-04-13  Bruno Haible  <bruno@clisp.org>
79061         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
79062         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
79063         module is also used and while not building the reloc-wrapper.
79065 2008-04-13  Bruno Haible  <bruno@clisp.org>
79067         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
79069 2008-04-13  Bruno Haible  <bruno@clisp.org>
79071         Fix AIX compilation failure introduced on 2008-04-02.
79072         * tests/test-frexp.c (exp): Undefine before redefining.
79073         * tests/test-frexpl.c (exp): Likewise.
79075 2008-04-13  Bruno Haible  <bruno@clisp.org>
79077         Work around a HP-UX stdio bug.
79078         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
79079         * tests/test-ftello.c (main): Likewise.
79080         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
79081         * doc/posix-functions/ftello.texi: Likewise.
79083 2008-04-13  Bruno Haible  <bruno@clisp.org>
79085         Make test-signbit pass on HP-UX/hppa.
79086         * tests/test-signbit.c (minus_zerol): New variable.
79087         (test_signbitl): Use it.
79089 2008-04-13  Bruno Haible  <bruno@clisp.org>
79091         Make truncl work on OSF/1 4.0.
79092         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
79093         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
79094         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
79095         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
79096         HAVE_DECL_TRUNCL.
79097         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
79098         HAVE_DECL_TRUNCL.
79099         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
79101 2008-04-13  Bruno Haible  <bruno@clisp.org>
79103         * lib/unictype.h: Remove trailing comma from enumeration definitions.
79105 2008-04-13  Bruno Haible  <bruno@clisp.org>
79107         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
79108         expression, so as to avoid HP-UX 11 cc compiler bug.
79110 2008-04-13  Bruno Haible  <bruno@clisp.org>
79112         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
79114 2008-04-13  Bruno Haible  <bruno@clisp.org>
79116         * lib/git-merge-changelog.c: Remove empty declaration outside of
79117         functions.
79119 2008-04-13  Bruno Haible  <bruno@clisp.org>
79121         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
79123 2008-04-13  Bruno Haible  <bruno@clisp.org>
79125         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
79126         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
79127         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
79128         also if it exists but lacks definitions of the SHUT_* macros.
79129         * modules/sys_socket (Description): Update.
79130         Reported by Elbert Pol <e.pol@chello.nl>.
79132 2008-04-13  Bruno Haible  <bruno@clisp.org>
79134         * lib/localcharset.c (OS2): Don't redefine if already defined.
79135         Reported by Elbert Pol <e.pol@chello.nl>.
79137 2008-04-13  Bruno Haible  <bruno@clisp.org>
79139         * lib/binary-io.h [__EMX__]: Include <io.h>.
79140         Reported by Elbert Pol <e.pol@chello.nl>.
79142 2008-04-12  Bruno Haible  <bruno@clisp.org>
79144         * lib/fpucw.h: Enable the definitions also for x86_64.
79145         Needed for NetBSD/x86_64.
79146         Reported by Thomas Klausner <tk@giga.or.at>.
79148 2008-04-12  Bruno Haible  <bruno@clisp.org>
79150         * tests/test-strtod.c: Include isnand.h.
79151         (main): Use isnand instead of isnan.
79152         Reported by Jim Meyering.
79154 2008-04-12  Bruno Haible  <bruno@clisp.org>
79156         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
79157         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
79159 2008-04-12  Jim Meyering  <meyering@redhat.com>
79161         * m4/math_h.m4 (gl_MATH_H): Fix typos.
79163 2008-04-12  Bruno Haible  <bruno@clisp.org>
79165         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
79166         Reported by Elbert Pol <e.pol@chello.nl>.
79168 2008-04-12  Eric Blake  <ebb9@byu.net>
79170         Work around Solaris 10 math.h bug.
79171         * m4/math_h.m4 (gl_MATH_H): Check for bug.
79172         (gl_MATH_H_DEFAULTS): Set up default.
79173         * modules/math (Makefile.am): Replace new indicators.
79174         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
79175         * tests/test-math.c (main): Test this.
79176         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
79177         * doc/posix-headers/math.texi (math.h): Mention bug.
79178         Reported by Nelson H. F. Beebe and Jim Meyering.
79180 2008-04-11  Bruno Haible  <bruno@clisp.org>
79182         Adapt to future versions of Apple GCC.
79183         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
79184         Reported by Peter O'Gorman <peter@pogma.com>.
79186 2008-04-11  Bruno Haible  <bruno@clisp.org>
79188         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
79190 2008-04-11  Bruno Haible  <bruno@clisp.org>
79192         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
79194         * modules/getaddrinfo-tests (Makefile.am): Define
79195         test_getaddrinfo_LDADD.
79197 2008-04-11  Bruno Haible  <bruno@clisp.org>
79199         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
79200         (init): Fix syntax error.
79201         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
79202         is declared.
79204 2008-04-11  Bruno Haible  <bruno@clisp.org>
79206         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
79207         * modules/glob (Depends-on): Add stdbool.
79209 2008-04-11  Bruno Haible  <bruno@clisp.org>
79211         * lib/trim.c: Include <string.h>.
79213 2008-04-11  Eric Blake  <ebb9@byu.net>
79215         Avoid compile failure on OS/2.
79216         * lib/regex_internal.h (internal_function): Disable optimization
79217         on OS/2 (__EMX__), where it caused compiler error.
79218         Reported by Elbert Pol.
79220 2008-04-11  Bruno Haible  <bruno@clisp.org>
79222         Flush the standard error stream before aborting. Needed on mingw.
79223         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
79224         * tests/test-array_list.c (ASSERT): Likewise.
79225         * tests/test-array_oset.c (ASSERT): Likewise.
79226         * tests/test-avltree_list.c (ASSERT): Likewise.
79227         * tests/test-avltree_oset.c (ASSERT): Likewise.
79228         * tests/test-avltreehash_list.c (ASSERT): Likewise.
79229         * tests/test-binary-io.c (ASSERT): Likewise.
79230         * tests/test-byteswap.c (ASSERT): Likewise.
79231         * tests/test-c-ctype.c (ASSERT): Likewise.
79232         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
79233         * tests/test-c-strcasestr.c (ASSERT): Likewise.
79234         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
79235         * tests/test-c-strstr.c (ASSERT): Likewise.
79236         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
79237         * tests/test-canonicalize.c (ASSERT): Likewise.
79238         * tests/test-carray_list.c (ASSERT): Likewise.
79239         * tests/test-ceilf1.c (ASSERT): Likewise.
79240         * tests/test-ceilf2.c (ASSERT): Likewise.
79241         * tests/test-ceill.c (ASSERT): Likewise.
79242         * tests/test-count-one-bits.c (ASSERT): Likewise.
79243         * tests/test-fbufmode.c (ASSERT): Likewise.
79244         * tests/test-fflush2.c (ASSERT): Likewise.
79245         * tests/test-floorf1.c (ASSERT): Likewise.
79246         * tests/test-floorf2.c (ASSERT): Likewise.
79247         * tests/test-floorl.c (ASSERT): Likewise.
79248         * tests/test-fopen.c (ASSERT): Likewise.
79249         * tests/test-fpending.c (ASSERT): Likewise.
79250         * tests/test-fprintf-posix.c (ASSERT): Likewise.
79251         * tests/test-fpurge.c (ASSERT): Likewise.
79252         * tests/test-freadable.c (ASSERT): Likewise.
79253         * tests/test-freadahead.c (ASSERT): Likewise.
79254         * tests/test-freading.c (ASSERT): Likewise.
79255         * tests/test-freadptr.c (ASSERT): Likewise.
79256         * tests/test-freadptr2.c (ASSERT): Likewise.
79257         * tests/test-freadseek.c (ASSERT): Likewise.
79258         * tests/test-freopen.c (ASSERT): Likewise.
79259         * tests/test-frexp.c (ASSERT): Likewise.
79260         * tests/test-frexpl.c (ASSERT): Likewise.
79261         * tests/test-fseek.c (ASSERT): Likewise.
79262         * tests/test-fseeko.c (ASSERT): Likewise.
79263         * tests/test-fstrcmp.c (ASSERT): Likewise.
79264         * tests/test-ftell.c (ASSERT): Likewise.
79265         * tests/test-ftello.c (ASSERT): Likewise.
79266         * tests/test-func.c (ASSERT): Likewise.
79267         * tests/test-fwritable.c (ASSERT): Likewise.
79268         * tests/test-fwriting.c (ASSERT): Likewise.
79269         * tests/test-getdelim.c (ASSERT): Likewise.
79270         * tests/test-getline.c (ASSERT): Likewise.
79271         * tests/test-i-ring.c (ASSERT): Likewise.
79272         * tests/test-iconv-utf.c (ASSERT): Likewise.
79273         * tests/test-iconv.c (ASSERT): Likewise.
79274         * tests/test-isfinite.c (ASSERT): Likewise.
79275         * tests/test-isnand.c (ASSERT): Likewise.
79276         * tests/test-isnanf.c (ASSERT): Likewise.
79277         * tests/test-isnanl.h (ASSERT): Likewise.
79278         * tests/test-ldexpl.c (ASSERT): Likewise.
79279         * tests/test-linked_list.c (ASSERT): Likewise.
79280         * tests/test-linkedhash_list.c (ASSERT): Likewise.
79281         * tests/test-localename.c (ASSERT): Likewise.
79282         * tests/test-lseek.c (ASSERT): Likewise.
79283         * tests/test-mbscasecmp.c (ASSERT): Likewise.
79284         * tests/test-mbscasestr1.c (ASSERT): Likewise.
79285         * tests/test-mbscasestr2.c (ASSERT): Likewise.
79286         * tests/test-mbscasestr3.c (ASSERT): Likewise.
79287         * tests/test-mbscasestr4.c (ASSERT): Likewise.
79288         * tests/test-mbschr.c (ASSERT): Likewise.
79289         * tests/test-mbscspn.c (ASSERT): Likewise.
79290         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
79291         * tests/test-mbspbrk.c (ASSERT): Likewise.
79292         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
79293         * tests/test-mbsrchr.c (ASSERT): Likewise.
79294         * tests/test-mbsspn.c (ASSERT): Likewise.
79295         * tests/test-mbsstr1.c (ASSERT): Likewise.
79296         * tests/test-mbsstr2.c (ASSERT): Likewise.
79297         * tests/test-mbsstr3.c (ASSERT): Likewise.
79298         * tests/test-memchr2.c (ASSERT): Likewise.
79299         * tests/test-memmem.c (ASSERT): Likewise.
79300         * tests/test-open.c (ASSERT): Likewise.
79301         * tests/test-printf-frexp.c (ASSERT): Likewise.
79302         * tests/test-printf-frexpl.c (ASSERT): Likewise.
79303         * tests/test-printf-posix.c (ASSERT): Likewise.
79304         * tests/test-quotearg.c (ASSERT): Likewise.
79305         * tests/test-rbtree_list.c (ASSERT): Likewise.
79306         * tests/test-rbtree_oset.c (ASSERT): Likewise.
79307         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
79308         * tests/test-round1.c (ASSERT): Likewise.
79309         * tests/test-roundf1.c (ASSERT): Likewise.
79310         * tests/test-roundl.c (ASSERT): Likewise.
79311         * tests/test-signbit.c (ASSERT): Likewise.
79312         * tests/test-sleep.c (ASSERT): Likewise.
79313         * tests/test-snprintf-posix.c (ASSERT): Likewise.
79314         * tests/test-snprintf.c (ASSERT): Likewise.
79315         * tests/test-sprintf-posix.c (ASSERT): Likewise.
79316         * tests/test-stat-time.c (ASSERT): Likewise.
79317         * tests/test-strcasestr.c (ASSERT): Likewise.
79318         * tests/test-strerror.c (ASSERT): Likewise.
79319         * tests/test-striconv.c (ASSERT): Likewise.
79320         * tests/test-striconveh.c (ASSERT): Likewise.
79321         * tests/test-striconveha.c (ASSERT): Likewise.
79322         * tests/test-strsignal.c (ASSERT): Likewise.
79323         * tests/test-strstr.c (ASSERT): Likewise.
79324         * tests/test-strtod.c (ASSERT): Likewise.
79325         * tests/test-trunc1.c (ASSERT): Likewise.
79326         * tests/test-trunc2.c (ASSERT): Likewise.
79327         * tests/test-truncf1.c (ASSERT): Likewise.
79328         * tests/test-truncf2.c (ASSERT): Likewise.
79329         * tests/test-truncl.c (ASSERT): Likewise.
79330         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
79331         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
79332         * tests/test-vasnprintf.c (ASSERT): Likewise.
79333         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
79334         * tests/test-vasprintf.c (ASSERT): Likewise.
79335         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
79336         * tests/test-vprintf-posix.c (ASSERT): Likewise.
79337         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
79338         * tests/test-vsnprintf.c (ASSERT): Likewise.
79339         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
79340         * tests/test-wcwidth.c (ASSERT): Likewise.
79341         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
79342         * tests/test-xprintf-posix.c (ASSERT): Likewise.
79343         * tests/test-xvasprintf.c (ASSERT): Likewise.
79344         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
79345         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
79346         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
79347         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
79348         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
79349         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
79350         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
79351         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
79352         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
79353         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
79354         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
79355         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
79356         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
79357         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
79358         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
79359         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
79360         * tests/unictype/test-block_list.c (ASSERT): Likewise.
79361         * tests/unictype/test-block_of.c (ASSERT): Likewise.
79362         * tests/unictype/test-block_test.c (ASSERT): Likewise.
79363         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
79364         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
79365         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
79366         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
79367         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
79368         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
79369         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
79370         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
79371         * tests/unictype/test-combining.c (ASSERT): Likewise.
79372         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
79373         * tests/unictype/test-digit.c (ASSERT): Likewise.
79374         * tests/unictype/test-mirror.c (ASSERT): Likewise.
79375         * tests/unictype/test-numeric.c (ASSERT): Likewise.
79376         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
79377         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
79378         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
79379         * tests/unictype/test-scripts.c (ASSERT): Likewise.
79380         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
79381         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
79382         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
79383         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
79384         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
79385         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
79386         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
79387         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
79388         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
79389         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
79390         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
79391         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
79392         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
79393         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
79394         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
79395         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
79396         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
79397         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
79398         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
79399         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
79400         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
79401         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
79402         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
79403         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
79404         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
79405         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
79406         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
79407         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
79408         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
79409         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
79410         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
79411         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
79412         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
79413         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
79414         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
79415         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
79416         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
79417         Reported by Eric Blake.
79419 2008-04-11  Bruno Haible  <bruno@clisp.org>
79421         * lib/wchar.in.h: Tweak comment.
79423 2008-04-11  Bruno Haible  <bruno@clisp.org>
79425         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
79426         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
79427         gl_COMMON.
79428         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
79430 2008-04-11  Bruno Haible  <bruno@clisp.org>
79432         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
79434 2008-04-11  Simon Josefsson  <simon@josefsson.org>
79436         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
79437         of attempting to use non-existing /dev/*random.  Based on patch
79438         from Adam Strzelecki <ono@java.pl> in
79439         <http://lists.gnu.org/r/help-gsasl/2008-02/msg00000.html>.
79441 2008-04-08  Bruno Haible  <bruno@clisp.org>
79443         Add tentative support for emx+gcc.
79444         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
79445         * lib/fpurge.c (fpurge): Likewise.
79446         * lib/freadable.c (freadable): Likewise.
79447         * lib/freadahead.c (freadahead): Likewise.
79448         * lib/freading.c (freading): Likewise.
79449         * lib/freadptr.c (freadptr): Likewise.
79450         * lib/freadseek.c (freadptrinc): Likewise.
79451         * lib/fseeko.c (rpl_fseeko): Likewise.
79452         * lib/fseterr.c (fseterr): Likewise.
79453         * lib/fwritable.c (fwritable): Likewise.
79454         * lib/fwriting.c (fwriting): Likewise.
79455         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
79457 2008-04-09  Eric Blake  <ebb9@byu.net>
79459         Avoid some autoconf warnings.
79460         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
79461         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
79462         * m4/afs.m4 (gl_AFS): Likewise.
79463         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
79464         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
79465         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
79466         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
79467         (gl_INTEGER_TYPE_SUFFIX): Likewise.
79468         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
79469         (AC_CHECK_DECLS_ONCE): Likewise.
79470         Rename file...
79471         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
79472         gnulib-tool requires autoconf 2.59 or better.
79473         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
79475 2008-04-08  Eric Blake  <ebb9@byu.net>
79477         Use 'git describe --match' if present (added in git 1.5.5).
79478         * build-aux/git-version-gen: Limit result to tags that match 'v*'
79479         if possible.
79481 2008-04-08  Bruno Haible  <bruno@clisp.org>
79483         Add tentative support for OpenServer.
79484         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
79485         _ptr, _cnt.
79486         * lib/fpurge.c (fpurge): Likewise.
79487         * lib/freadable.c (freadable): Likewise.
79488         * lib/freadahead.c (freadahead): Likewise.
79489         * lib/freading.c (freading): Likewise.
79490         * lib/freadptr.c (freadptr): Likewise.
79491         * lib/freadseek.c (freadptrinc): Likewise.
79492         * lib/fseeko.c (rpl_fseeko): Likewise.
79493         * lib/fseterr.c (fseterr): Likewise.
79494         * lib/fwritable.c (fwritable): Likewise.
79495         * lib/fwriting.c (fwriting): Likewise.
79496         Reported by Roger Cornelius <rac@tenzing.org> and
79497         Brian K. White <brian@aljex.com>.
79499 2008-04-06  Jim Meyering  <meyering@redhat.com>
79501         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
79503 2008-04-06  Bruno Haible  <bruno@clisp.org>
79505         Avoid possible error with non-ASCII bytes in UTF-8 locales.
79506         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
79507         * tests/test-printf-posix.sh: Likewise.
79508         * tests/test-vfprintf-posix.sh: Likewise.
79509         * tests/test-vprintf-posix.sh: Likewise.
79510         * tests/test-xprintf-posix.sh: Likewise.
79512 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79514         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
79515         hide error from 'ls', needed on OS/2.
79516         Report by Elbert Pol <elbert.pol@gmail.com>.
79518 2008-04-04  Eric Blake  <ebb9@byu.net>
79520         Make test-fseeko.c failures meaningful.
79521         * tests/test-fseeko.c: Print line number on failure.
79522         * tests/test-fseek.c: Likewise.
79523         Reported by Nelson H. F. Beebe.
79525         Improve strtod bug detection check.
79526         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
79527         required for Solaris 10.
79528         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
79530 2008-04-04  Bruno Haible  <bruno@clisp.org>
79532         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
79533         by m4/setenv.m4.
79535 2008-04-03  Eric Blake  <ebb9@byu.net>
79537         Ensure sane .version contents.
79538         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
79539         version string.
79540         * build-aux/git-version-gen: Improve documentation.
79542         Make GNU make output nicer.
79543         * top/GNUmakefile [!_have-Makefile]: Add dependency on
79544         MAKECMDGOALS to enforce message for all command line targets.  Set
79545         srcdir for use in maint.mk.
79547         Another maintainer tweak.
79548         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
79549         a target that regenerates version.
79551 2008-04-03  Jim Meyering  <meyering@redhat.com>
79553         vc-list-files: don't cause coreutils "make po-check" failure
79554         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
79556 2008-04-03  Eric Blake  <ebb9@byu.net>
79558         Allow VPATH usage of vc-list-files.
79559         * build-aux/vc-list-files (scriptversion): Add timestamp.
79560         (options): Add --help, --version, -C.
79561         (CVS): Support installed cvsu.
79563 2008-04-02  Bruno Haible  <bruno@clisp.org>
79565         Avoid some "statement with no effect" warnings from gcc.
79566         * tests/test-wctype.c (main): Explicitly ignore unused values.
79567         Reported by Jim Meyering.
79569 2008-04-02  Jim Meyering  <meyering@redhat.com>
79571         Avoid some warnings from "gcc -Wshadow".
79572         * tests/test-frexp.c (exp): Define to a different identifier.
79573         * tests/test-frexpl.c (exp): Likewise.
79575 2008-04-03  Jim Meyering  <meyering@redhat.com>
79577         bootstrap: remove dangling *.[ch] symlinks from lib
79578         * build-aux/bootstrap [dangling symlink removal]: Move find's
79579         -depth option to precede all others, to avoid a warning.
79580         Remove *.[ch] files too, and from "$source_base" (usually lib/).
79582 2008-04-02  Bruno Haible  <bruno@clisp.org>
79584         Avoid some warnings from "gcc -Wshadow".
79585         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
79586         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
79587         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
79588         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
79589         Reported by Jim Meyering.
79591 2008-04-01  Bruno Haible  <bruno@clisp.org>
79593         Fix test to work on IRIX 6.5 with cc.
79594         * tests/test-math.c (numeric_equal): New function.
79595         (main): Use it.
79597 2008-04-01  Bruno Haible  <bruno@clisp.org>
79599         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
79601 2008-04-01  Bruno Haible  <bruno@clisp.org>
79603         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
79604         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
79605         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
79606         (Depends-on): Remove math.
79608         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
79609         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
79610         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
79611         (Depends-on): Remove math.
79613         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
79614         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
79615         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
79616         (Depends-on): Remove math.
79617         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
79618         (Depends-on): Remove math.
79620         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
79621         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
79622         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
79623         (Depends-on): Remove math.
79624         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
79625         (Depends-on): Remove math.
79627         * tests/test-round1.c: Include nan.h.
79628         (main): Use NaNd instead of NAN.
79629         * modules/round-tests (Files): Add tests/nan.h.
79631         * tests/test-trunc1.c: Include nan.h.
79632         (main): Use NaNd instead of NAN.
79633         * modules/trunc-tests (Files): Add tests/nan.h.
79635         * tests/test-roundf1.c: Include nan.h.
79636         (main): Use NaNf instead of NAN.
79637         * modules/roundf-tests (Files): Add tests/nan.h.
79639         * tests/test-truncf1.c: Include nan.h.
79640         (main): Use NaNf instead of NAN.
79641         * modules/truncf-tests (Files): Add tests/nan.h.
79643         * tests/test-ceilf1.c: Include nan.h.
79644         (main): Use NaNf instead of NAN.
79645         * modules/ceilf-tests (Files): Add tests/nan.h.
79647         * tests/test-floorf1.c: Include nan.h.
79648         (main): Use NaNf instead of NAN.
79649         * modules/floorf-tests (Files): Add tests/nan.h.
79651         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
79652         (main): Use NaNf instead of NAN.
79653         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
79655         * tests/test-isnand.c: Include nan.h instead of <math.h>.
79656         (main): Use NaNd instead of NAN.
79657         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
79659         * tests/test-frexp.c: Include nan.h.
79660         (main): Use NaNd instead of NAN.
79661         * modules/frexp-tests (Files): Add tests/nan.h.
79663         * lib/isnan.c: Don't include <math.h>.
79664         (FUNC): Don't use NAN macro.
79665         * modules/isnand-nolibm (Depends-on): Remove math.
79666         * modules/isnanf-nolibm (Depends-on): Remove math.
79667         * modules/isnanl (Depends-on): Remove math.
79668         * modules/isnanl-nolibm (Depends-on): Remove math.
79670         * tests/nan.h: New file.
79672 2008-04-01  Eric Blake  <ebb9@byu.net>
79674         Fix typos.
79675         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
79676         values to be the right type.
79678         For now, cater to gnulib strtod inaccuracies.
79679         * tests/test-strtod.c (main): Allow 1-ulp error on expected
79680         fractional results.  While not as nice from a QoI perspective, it
79681         is a quicker patch than correctly implementing decimal to binary
79682         rounding.
79684 2008-03-31  Eric Blake  <ebb9@byu.net>
79686         Guarantee a definition of NAN.
79687         * lib/math.in.h (NAN): Define if missing.
79688         * tests/test-math.c (main): Test it.
79689         * doc/posix-headers/math.texi (math.h): Document this.
79690         * lib/isnan.c (rpl_isnand): Use it.
79691         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
79692         * tests/test-floorf1.c (NaN): Likewise.
79693         * tests/test-frexp.c (NaN): Likewise.
79694         * tests/test-isnand.c (NaN): Likewise.
79695         * tests/test-isnanf.c (NaN): Likewise.
79696         * tests/test-round1.c (NaN): Likewise.
79697         * tests/test-roundf1.c (NaN): Likewise.
79698         * tests/test-snprintf-posix.h (NaN): Likewise.
79699         * tests/test-sprintf-posix.h (NaN): Likewise.
79700         * tests/test-trunc1.c (NaN): Likewise.
79701         * tests/test-truncf1.c (NaN): Likewise.
79702         * tests/test-vasnprintf-posix.c (NaN): Likewise.
79703         * tests/test-vasprintf-posix.c (NaN): Likewise.
79704         * modules/isnand-nolibm (Depends-on): Add math.
79705         * modules/isnanf-nolibm (Depends-on): Likewise.
79706         * modules/isnanl (Depends-on): Likewise.
79707         * modules/isnanl-nolibm (Depends-on): Likewise.
79708         * modules/snprintf-posix-tests (Depends-on): Likewise.
79709         * modules/sprintf-posix-tests (Depends-on): Likewise.
79710         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
79711         * modules/vsprintf-posix-tests (Depends-on): Likewise.
79712         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
79713         * modules/vasprintf-posix-tests (Depends-on): Likewise.
79715 2008-03-31  Bruno Haible  <bruno@clisp.org>
79717         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
79718         * doc/posix-functions/strtod.texi: Likewise.
79720 2008-03-31  Bruno Haible  <bruno@clisp.org>
79722         * tests/test-strtod.c (main): Don't use C99 syntax.
79724 2008-03-31  Bruno Haible  <bruno@clisp.org>
79726         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
79727         Reported by Eric Blake.
79729 2008-03-31  Jim Meyering  <meyering@redhat.com>
79731         Don't compare actual signbit return values.
79732         * tests/test-strtod.c (main): Rather, compare only their
79733         zero/non-zero nature.
79735 2008-03-31  Eric Blake  <ebb9@byu.net>
79737         More strtod documentation.
79738         * doc/posix-functions/strtod.texi (strtod): Interpret more test
79739         failures as distinct bugs.
79741 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
79743         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
79744         Problem reported by Erik Benada in
79745         <http://lists.gnu.org/r/bug-gnulib/2008-03/msg00249.html>.
79747 2008-03-30  Bruno Haible  <bruno@clisp.org>
79749         * tests/test-strtod.c: Add comments about which assertion fails on which
79750         platform.
79751         * doc/posix-functions/strtod.texi: Add info about many more platforms.
79753 2008-03-30  Eric Blake  <ebb9@byu.net>
79755         Test signbit behavior on zeros.
79756         * tests/test-signbit.c (test_signbitf): Add tests for zero.
79757         (test_signbitd, test_signbitl): Likewise.
79759         More strtod touchups.
79760         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
79761         sign of negative underflow, for now.  Use .5, not .1.
79762         * doc/posix-functions/strtod.texi (strtod): Mention these
79763         limitations.
79764         Reported by Jim Meyering.
79766 2008-03-30  Bruno Haible  <bruno@clisp.org>
79768         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
79769         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
79771 2008-03-30  Bruno Haible  <bruno@clisp.org>
79773         Avoid failure when attempting to return empty iconv results on some
79774         platforms.
79775         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
79776         allocation, don't report ENOMEM when the resulting string is empty.
79778 2008-03-30  Bruno Haible  <bruno@clisp.org>
79780         Fix buffer overrun.
79781         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
79782         Don't consider the width for tmp_length. Check count against tmp_length
79783         before doing the padding. Ensure enough allocation during padding.
79785 2008-03-30  Eric Blake  <ebb9@byu.net>
79787         strtod touchups.
79788         * lib/strtod.c (strtod): Avoid compiler warnings.
79789         Reported by Jim Meyering.
79791 2008-03-30  Bruno Haible  <bruno@clisp.org>
79793         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
79794         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
79795         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
79796         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
79797         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
79798         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
79799         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
79800         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
79802         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
79803         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
79804         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
79805         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
79806         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
79807         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
79808         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
79809         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
79811         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
79812         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
79813         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
79814         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
79815         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
79816         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
79817         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
79818         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
79820         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
79821         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
79823         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
79824         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
79826         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
79827         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
79829         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
79830         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
79831         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
79833         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
79834         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
79835         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
79837         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
79838         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
79839         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
79841         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
79842         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
79843         * modules/vasprintf (Depends-on): Add EOVERFLOW.
79845         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
79846         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
79847         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
79848         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
79849         (Depends-on): Add EOVERFLOW.
79850         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
79851         (Depends-on): Add EOVERFLOW.
79852         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
79853         (Depends-on): Add EOVERFLOW.
79854         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
79855         (Depends-on): Add EOVERFLOW.
79856         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
79857         (Depends-on): Add EOVERFLOW.
79858         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
79859         (Depends-on): Add EOVERFLOW.
79860         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
79861         (Depends-on): Add EOVERFLOW.
79862         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
79863         (Depends-on): Add EOVERFLOW.
79865         * lib/sprintf.c (EOVERFLOW): Remove fallback.
79866         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
79867         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
79869         * lib/snprintf.c (EOVERFLOW): Remove fallback.
79870         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
79871         * modules/snprintf (Depends-on): Add EOVERFLOW.
79873         * lib/poll.c (EOVERFLOW): Remove fallback.
79874         * modules/poll (Depends-on): Add EOVERFLOW.
79876         * lib/getugroups.c (EOVERFLOW): Remove fallback.
79877         * modules/getugroups (Depends-on): Add EOVERFLOW.
79879         * lib/getdelim.c (EOVERFLOW): Remove fallback.
79880         * modules/getdelim (Depends-on): Add EOVERFLOW.
79882         * lib/ftell.c (EOVERFLOW): Remove fallback.
79883         * modules/ftell (Depends-on): Add EOVERFLOW.
79885         * lib/fprintf.c (EOVERFLOW): Remove fallback.
79886         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
79887         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
79889         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
79891         * modules/EOVERFLOW-tests: New file.
79892         * tests/test-EOVERFLOW.c: New file.
79894         * modules/EOVERFLOW: New file.
79895         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
79897 2008-03-30  Bruno Haible  <bruno@clisp.org>
79899         Fix bug introduced on 2007-06-10.
79900         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
79901         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
79903 2008-03-30  Bruno Haible  <bruno@clisp.org>
79905         Improve freadseek's efficiency after ungetc.
79906         * lib/freadseek.c: Include freadahead.h.
79907         (freadptrinc): New function, extracted from freadseek.
79908         (freadseek): Use it in a loop. Use freadahead to determine the number
79909         of loop iterations.
79910         * modules/freadseek (Depends-on): Add freadahead.
79911         (configure.ac): Require AC_C_INLINE.
79913 2008-03-30  Bruno Haible  <bruno@clisp.org>
79915         * lib/freadseek.c (freadseek): Don't ignore the return value of
79916         freadptr.
79918 2008-03-29  Eric Blake  <ebb9@byu.net>
79920         Add hex float support.
79921         * modules/strtod (Depends-on): Add c-ctype.
79922         (Link): Mention POW_LIB.
79923         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
79924         whitespace between 'e' and exponent.
79925         * tests/test-strtod.c (main): Enable hex float tests.
79926         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
79927         now provides.
79929         Document various strtod bugs, with some fixes.
79930         * doc/posix-functions/strtod.texi (strtod): Document bugs with
79931         "-0x", "inf", "nan", and hex constants.
79932         * doc/posix-functions/atof.texi (atof): Likewise.
79933         * modules/stdlib (Makefile.am): Support strtod.
79934         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
79935         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
79936         detect additional strtod bugs.
79937         * lib/stdlib.in.h (rpl_strtod): Add declarations.
79938         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
79939         bool where appropriate.  Parse 'inf' and 'nan'.
79940         * tests/test-strtod.c: New file.
79941         * modules/strtod (Depends-on): Add stdbool, stdlib.
79942         (configure.ac): Turn on module indicator.
79943         * modules/strtod-tests: New module.
79945 2008-03-29  Eric Blake  <ebb9@byu.net>
79947         Fix ftell on mingw.
79948         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
79949         * modules/ftell-tests (Depends-on): Add binary-io.
79950         * modules/ftello-tests (Depends-on): Likewise.
79951         * tests/test-ftell.c (main): Enhance test to cover behavior after
79952         ungetc.  Enforce binary mode.
79953         * tests/test-ftello.c (main): Likewise.
79955         Pass test-freadseek on cygwin.
79956         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
79957         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
79958         ungetc buffer.
79960         * tests/test-fflush2.c (main): Fix typo.
79962 2008-03-29  Bruno Haible  <bruno@clisp.org>
79964         * tests/test-fflush2.c (main): Temporarily disable the contents of
79965         this test.
79966         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
79967         Reported by Eric Blake.
79969 2008-03-28  Simon Josefsson  <simon@josefsson.org>
79971         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
79972         (GC_SHA224_DIGEST_SIZE): Add.
79974         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
79975         (gc_hash_digest_length): Likewise.
79976         (gc_hash_buffer): Likewise.
79978 2008-03-25  Bruno Haible  <bruno@clisp.org>
79980         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
79981         detail which gettext release to use.
79982         Reported by Simon Josefsson.
79984 2008-03-26  Jim Meyering  <meyering@redhat.com>
79986         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
79987         * modules/gnumakefile (clean-GNUmakefile): Also, use
79988         test ... && ... || : syntax rather than if-then ... fi.
79990         gnumakefile: Don't double-quote-expand $(VPATH) value.
79991         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
79993 2008-03-24  Eric Blake  <ebb9@byu.net>
79995         Alter GNUmakefile to install into top directory.
79996         * modules/maintainer-makefile: Split, and add dependency...
79997         * modules/gnumakefile: to this new module.
79998         * build-aux/GNUmakefile: Move...
79999         * top/GNUmakefile: ...here.
80000         * build-aux/maint.mk: Move...
80001         * top/maint.mk: ...here.
80002         * MODULES.html.sh (Support for maintaining...): Document new
80003         module.
80005 2008-03-23  Bruno Haible  <bruno@clisp.org>
80007         * gnulib-tool: New options --vc-files, --no-vc-files.
80008         (func_usage): Document them.
80009         (vc_files): New variable.
80010         (func_import): Consider vc_files.
80011         (func_create_testdir): Set vc_files to empty.
80012         Suggested by Jim Meyering and Karl Berry.
80014 2008-03-23  Bruno Haible  <bruno@clisp.org>
80016         Fix regex compilation error on HP-UX 11.
80017         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
80018         * modules/regex (Files): Add m4/mbstate_t.m4.
80019         Reported by Ton Voon <ton.voon@altinity.com>.
80021 2008-03-23  Bruno Haible  <bruno@clisp.org>
80023         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
80025 2008-03-23  Eric Blake  <ebb9@byu.net>
80026             Bruno Haible  <bruno@clisp.org>
80028         Install files from top/ in the destination directory.
80029         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
80030         augmentation also for the files from top/.
80031         (func_import, func_create_testdir): Rewrite file names:
80032         top/filename -> filename.
80034 2008-03-23  Bruno Haible  <bruno@clisp.org>
80036         Tweak "gnulib --version" output.
80037         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
80039 2008-03-23  Bruno Haible  <bruno@clisp.org>
80041         Tweak "gnulib --version" output.
80042         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
80043         rather than contents of ChangeLog, when possible.
80045 2008-03-21  Eric Blake  <ebb9@byu.net>
80047         More --version tweaks.
80048         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
80049         date of last ChangeLog entry.
80051 2008-03-21  Jim Meyering  <meyering@redhat.com>
80053         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
80055 2008-03-20  Eric Blake  <ebb9@byu.net>
80057         VPATH fix.
80058         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
80060 2008-03-20  Simon Josefsson  <simon@josefsson.org>
80062         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
80063         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
80065 2008-03-20  Eric Blake  <ebb9@byu.net>
80067         Sync GNUmakefile with coreutils.
80068         * build-aux/GNUmakefile (have-Makefile): Rename...
80069         (_have-Makefile): ...to this, for namespace consideration.
80070         (GNUmakefile.cfg): Include, if present.
80071         (_autoreconf): Define a default.
80072         (_is-dist-target): New rule for rebuilds to pick up intra-release
80073         version.
80074         (maint-cfg.mk): Rename...
80075         (cfg.mk): ...to this.
80077 2008-03-18  Jim Meyering  <meyering@redhat.com>
80079         New script and module: mktempd
80080         * MODULES.html.sh (maint+release support): Add mktempd.
80081         * build-aux/mktempd: New file.
80082         * modules/mktempd: New file.
80084 2008-03-15  Jim Meyering  <meyering@redhat.com>
80086         Undo last change.
80087         * lib/sha1.c, lib/md5.c: 63 != ~63.
80088         Reported by Andreas Schwab.
80090         sha1.c, md5.c: Hoist a redundant expression.
80091         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
80092         "ctx->buflen" only once, before calling *_process_block.
80093         * lib/md5.c (md5_process_bytes): Likewise.
80095 2008-03-14  Eric Blake  <ebb9@byu.net>
80097         Bump copyright year in files generated by gnulib-tool.
80098         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
80099         gnulib-tool, rather than hard-coding it.
80101         Fix 'gnulib-tool --version' output to work with git.
80102         * gnulib-tool (func_gnulib_dir): New function, extracted from...
80103         (startup): ...here.
80104         (func_version): Use it to invoke git-version-gen, rather than
80105         relying on CVS keyword expansion.  Modernize wording.
80106         (cvsdatestamp, last_checkin_date, version): Kill unused
80107         variables.
80109 2008-03-12  Jim Meyering  <meyering@redhat.com>
80111         Recognize optional cast of the argument to free.
80112         * build-aux/useless-if-before-free: Update regexps.
80114         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
80116 2008-03-11  Bruno Haible  <bruno@clisp.org>
80118         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
80119         by a single package.
80120         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
80121         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
80122         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
80123         Reported by Sam Steingold <sds@gnu.org>.
80125 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
80127         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
80128         repositories.
80130 2008-03-11  Bruno Haible  <bruno@clisp.org>
80132         Avoid conflicts between local macro definitions.
80133         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
80134         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
80136 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
80137             Bruno Haible  <bruno@clisp.org>
80139         Make va_copy work with some version of xlc on AIX 5.1.
80140         * lib/stdarg.in.h: New file.
80141         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
80142         On AIX, use a <stdarg.h> file substitute.
80143         * modules/stdarg (Files): Add lib/stdarg.in.h.
80144         (Depends-on): Add include_next.
80145         (Makefile.am): Build a stdarg.h substitute if requested.
80146         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
80148 2008-03-10  Bruno Haible  <bruno@clisp.org>
80150         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
80151         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
80152         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
80154 2008-03-10  Bruno Haible  <bruno@clisp.org>
80156         * modules/stdlib (Depends-on): Add include_next, remove
80157         absolute-header.
80159 2008-03-09  Bruno Haible  <bruno@clisp.org>
80161         * lib/freadahead.h (freadahead): Document more precisely.
80162         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
80163         the sum of both buffer sizes.
80164         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
80165         * NEWS: Document the change.
80167 2008-03-09  Bruno Haible  <bruno@clisp.org>
80169         Extend freadptr to return also the buffer size.
80170         * lib/freadptr.h (freadptr): Add sizep argument.
80171         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
80172         (freadptr): Add sizep argument. Determine buffer size like freadahead
80173         does.
80174         * tests/test-freadptr.c: Don't include freadahead.h.
80175         (main): Adapt for new calling convention of freadptr.
80176         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
80177         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
80178         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
80179         tests/test-freadptr2.sh.
80180         (Depends): Remove freadahead.
80181         (TESTS): Add test-freadptr2.sh.
80182         (check_PROGRAMS): Add test-freadptr2.
80184 2008-03-09  Bruno Haible  <bruno@clisp.org>
80186         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
80187         Report and solution by Simon Josefsson.
80189 2008-03-06  Bruno Haible  <bruno@clisp.org>
80191         Make fflush after ungetc work on BSD platforms.
80192         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
80193         * tests/test-fflush2.c: New file.
80194         * tests/test-fflush2.sh: New file.
80195         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
80196         tests/test-fflush2.c.
80197         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
80198         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
80200 2008-03-06  Eric Blake  <ebb9@byu.net>
80202         Likewise for ftello.
80203         * modules/ftello (Dependencies): Add extensions.
80204         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
80206 2008-03-06  Bruno Haible  <bruno@clisp.org>
80208         * modules/fseeko (Dependencies): Add extensions.
80209         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
80210         Needed on glibc systems.
80212 2008-03-06  Bruno Haible  <bruno@clisp.org>
80214         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
80215         email address.
80216         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
80218 2008-03-06  Bruno Haible  <bruno@clisp.org>
80220         * users.txt: Add libgnupdf.
80222 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
80224         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
80225         (Header File Substitutes, Function Substitutes,
80226         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
80227         (Build robot for gnulib): Fix typo.
80229 2008-03-06  Bruno Haible  <bruno@clisp.org>
80231         * doc/gnulib-tool.texi (VCS Issues): Small updates.
80232         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
80234 2008-03-06  Bruno Haible  <bruno@clisp.org>
80236         * doc/func.texi: New file, extracted from doc/gnulib.texi.
80237         * doc/gnulib.texi: Include it.
80239 2008-03-06  Simon Josefsson  <simon@josefsson.org>
80241         * modules/func (License): Change license to unlimited; there was
80242         no LGPL parts in the module anyway.
80244 2008-03-06  Simon Josefsson  <simon@josefsson.org>
80246         * modules/__func__: Renamed to modules/func.
80247         * modules/__func__-tests: Renamed to modules/func-tests.
80248         * tests/test-__func__.c: Renamed to tests/test-func.c.
80249         * m4/__func__.m4: Renamed to m4/func.m4.
80250         * doc/gnulib.texi (__func__): Section renamed to func.
80251         Suggested by Eric Blake <ebb9@byu.net>.
80253 2008-03-06  Simon Josefsson  <simon@josefsson.org>
80255         * doc/gnulib.texi (__func__): Use C99 terminology when talking
80256         about __func__.  Make example self-contained.  Suggested by Eric
80257         Blake <ebb9@byu.net>.
80259         * tests/test-__func__.c (main): Avoid extraneous () around __func.
80260         Suggested by Eric Blake <ebb9@byu.net>.
80262 2008-03-06  Simon Josefsson  <simon@josefsson.org>
80264         * modules/__func__: New file.
80265         * modules/__func__-tests: New file.
80266         * tests/test-__func__.c: New file.
80267         * m4/__func__.m4: New file.
80268         * doc/gnulib.texi (__func__): Document __func__ module.
80270 2008-03-05  Simon Josefsson  <simon@josefsson.org>
80272         * modules/byteswap (License): Re-license as LGPLv2+.
80274 2008-03-05  Simon Josefsson  <simon@josefsson.org>
80276         * doc/Makefile: Add pdf target.
80278 2008-03-05  Simon Josefsson  <simon@josefsson.org>
80280         * modules/inline (License): Use 'unlimited', since there are only
80281         *.m4 files in this module.
80283 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
80284             Bruno Haible  <bruno@clisp.org>
80286         Add support for HP C 7.1 on OpenVMS 8.3.
80287         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
80289 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
80291         Update VMS specifics.
80292         * lib/getopt.c [VMS]: Remove include of unixlib.h.
80294 2008-03-02  Jim Meyering  <meyering@redhat.com>
80296         Remove the last dependency on the "free" module.
80297         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
80298         Reported by Bob Proulx.
80300         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
80302         Remove useless "if" tests before free.  Deprecate "free" module.
80303         * doc/posix-functions/free.texi: Mention that this
80304         module is no longer useful.
80305         * modules/free (Notice): Say this module is obsolete.
80306         * modules/readutmp (Depends-on): Remove free.
80307         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
80308         * lib/putenv.c (putenv): Likewise.
80309         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
80310         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
80311         * tests/test-c-strcasestr.c (main): Likewise.
80312         * tests/test-c-strstr.c (main): Likewise.
80313         * tests/test-mbscasestr1.c (main): Likewise.
80314         * tests/test-mbscasestr2.c (main): Likewise.
80315         * tests/test-mbsstr1.c (main): Likewise.
80316         * tests/test-mbsstr2.c (main): Likewise.
80317         * tests/test-memmem.c (main): Likewise.
80318         * tests/test-strcasestr.c (main): Likewise.
80319         * tests/test-striconv.c (main): Likewise.
80320         * tests/test-striconveh.c (main): Likewise.
80321         * tests/test-striconveha.c (main): Likewise.
80322         * tests/test-strstr.c (main): Likewise.
80324         * build-aux/git-version-gen: Adjust a comment and the Usage string.
80326         bootstrap: sync from coreutils again
80327         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
80329 2008-03-01  Jim Meyering  <meyering@redhat.com>
80331         bootstrap: sync from coreutils
80332         * build-aux/bootstrap (update_po_files): Copy a .po file into place
80333         also when the target doesn't exist.
80335 2008-03-01  Eric Blake  <ebb9@byu.net>
80337         Fix bugs in last patch.
80338         * lib/memchr2.c (memchr2): Fix typo.
80339         * tests/test-memchr2.c: Test previous bug, and don't use GNU
80340         extension.
80341         Reported by Bruce Korb.
80343         New module 'memchr2'.
80344         * modules/memchr2: New file.
80345         * modules/memchr2-tests: Likewise.
80346         * lib/memchr2.h: Likewise.
80347         * lib/memchr2.c: Likewise, based on memchr.c.
80348         * tests/test-memchr2.c: New test.
80349         * MODULES.html.sh (String handling): Add memchr2.
80351 2008-02-29  Bruno Haible  <bruno@clisp.org>
80353         * modules/freadseek-tests: New file.
80354         * tests/test-freadseek.sh: New file.
80355         * tests/test-freadseek.c: New file.
80357         New module 'freadseek'.
80358         * modules/freadseek: New file.
80359         * lib/freadseek.h: New file.
80360         * lib/freadseek.c: New file.
80361         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
80363 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
80365         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
80366         wydawca.
80368         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
80369         program_invocation_name and program_invocation_short_name are
80370         present.
80372 2008-02-28  Bruno Haible  <bruno@clisp.org>
80374         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
80375         * tests/test-freadptr.sh: Also test non-seekable stdin.
80377 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
80379         * build-aux/bootstrap (source_base, m4_base)
80380         (doc_base, tests_base): New variables.
80381         (gnulib_tool_options): Do not hardcode base directories, use
80382         the above variables instead.
80384 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
80386         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
80388 2008-02-28  Bruno Haible  <bruno@clisp.org>
80390         * modules/freadptr-tests: New file.
80391         * tests/test-freadptr.sh: New file.
80392         * tests/test-freadptr.c: New file.
80394         New module 'freadptr'.
80395         * modules/freadptr: New file.
80396         * lib/freadptr.h: New file.
80397         * lib/freadptr.c: New file.
80398         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
80400 2008-02-26  Karl Berry  <karl@freefriends.org>
80402         Sync from Libtool:
80403         * libltdl/argz.c (argz_add, argz_count): New functions.
80404         * libltdl/argz.in.h: Declare them.
80405         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
80407 2008-02-22  Bruno Haible  <bruno@clisp.org>
80409         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
80410         is a pointer type.  Needed for HP-UX 10.
80411         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
80412         * doc/posix-functions/gmtime_r.texi: Likewise.
80413         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
80415 2008-02-24  Bruno Haible  <bruno@clisp.org>
80417         * modules/environ-tests: New file.
80418         * tests/test-environ.c: New file.
80420         New module 'environ'.
80421         * modules/environ: New file.
80422         * lib/unistd.in.h (environ): New declaration.
80423         * m4/environ.m4: New file.
80424         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
80425         after use.
80426         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
80427         HAVE_DECL_ENVIRON.
80428         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
80429         HAVE_DECL_ENVIRON.
80430         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
80431         wrong claim that 'environ' is missing on some systems.
80432         * modules/execute (Depends-on): Add environ.
80433         * lib/execute.c (environ): Remove fallback declaration.
80434         * modules/pipe (Depends-on): Add environ.
80435         * lib/pipe.c (environ): Remove fallback declaration.
80436         * modules/setenv (Depends-on): Add environ.
80437         * lib/setenv.c (environ): Remove fallback declaration.
80438         * modules/unsetenv (Depends-on): Add environ.
80439         * lib/unsetenv.c (environ): Remove fallback declaration.
80440         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
80441         m4/environ.m4.
80442         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
80443         (gl_PREREQ_UNSETENV): Likewise.
80445 2008-02-24  Bruno Haible  <bruno@clisp.org>
80447         * doc/posix-functions/environ.texi: Document the MacOS X problem.
80449 2008-02-20  Bob Proulx  <bob@proulx.com>
80451         Enable use of older two part flavor 'git describe'.
80452         * build-aux/git-version-gen: If using the older two part flavor of
80453         git version then recreate the third part now present in the
80454         newer three part flavor of git describe.
80456 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
80458         * lib/fts.c (fts_build): Typo correction to comment.
80460 2008-02-17  Bruno Haible  <bruno@clisp.org>
80462         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
80463         generating no-op conflicts.
80465 2008-02-17  Bruno Haible  <bruno@clisp.org>
80467         Speed up by 10%.
80468         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
80469         result_entries, rather than an index-based loop.
80471 2008-02-17  Bruno Haible  <bruno@clisp.org>
80473         Speed up by 25%.
80474         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
80475         'hashcode_cached'.
80476         (entry_create): New function.
80477         (entry_hashcode): Use the cached hashcode if possible.
80478         (read_changelog_file, try_split_merged_entry): Use entry_create.
80480 2008-02-17  Bruno Haible  <bruno@clisp.org>
80482         Speed up from O(n^2) to O(n) for long ChangeLog files.
80483         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
80484         (read_changelog_file): Change implementation of entries_reversed list
80485         to rbtreehash.
80486         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
80488 2008-02-17  Bruno Haible  <bruno@clisp.org>
80490         New option --split-merged-entry.
80491         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
80492         (find_paragraph_end, try_split_merged_entry): New functions.
80493         (long_options): Add option --split-merged-entry.
80494         (usage): Document option --split-merged-entry.
80495         (main): Implement option --split-merged-entry.
80496         Reported by Eric Blake.
80498 2008-02-17  Bruno Haible  <bruno@clisp.org>
80500         * lib/git-merge-changelog.c: Include c-strstr.h.
80501         (main): Support the "git pull --rebase" situation.
80502         * modules/git-merge-changelog (Depends-on): Add c-strstr.
80503         Reported by Eric Blake.
80505 2008-02-16  Eric Blake  <ebb9@byu.net>
80507         Avoid doubling \ in common case of "c-maybe" quoting style.
80508         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
80509         eliding outer quotes.
80510         * lib/quotearg.h: Document this.
80511         * tests/test-quotearg.c (result_strings, inputs, results_g)
80512         (flag_results, locale_results): Test it by adding a new string to
80513         each test group.
80514         (compare_strings): Test new string.
80516 2008-02-13  Eric Blake  <ebb9@byu.net>
80518         Avoid trigraph quoting in default output.
80519         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
80520         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
80521         unless explicitly requested.
80522         * tests/test-quotearg.c (flag_results, main): Add additional tests.
80524 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
80526         Don't rely on signed integer overflowing to negative value.
80527         * lib/getugroups.c (getugroups): Include <limits.h>.
80528         Instead, compare against INT_MAX, and increment only if the test passes.
80530 2008-02-13  Jim Meyering  <meyering@redhat.com>
80531         and Eric Blake  <ebb9@byu.net>
80533         Avoid shadowing warning and compile errors on Linux.
80534         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
80535         forwarding macros on Linux.
80536         (dcgettext): Define a stub, for Linux.
80537         (results_g, main): Avoid warnings.
80539 2008-02-12  Eric Blake  <ebb9@byu.net>
80541         Silence warning in last patch.
80542         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
80544         Quotearg part 4: add tests, fix c-maybe colon quoting.
80545         * lib/quotearg.h: Improve documentation.
80546         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
80547         escapes when adding outer quotes.  When quoting trigraphs, use
80548         valid C notation.  When quoting NUL, omit extra characters if next
80549         character is not digit.  Alter prototype.
80550         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
80551         callers.
80552         * modules/quotearg-tests: New module.
80553         * tests/test-quotearg.c: New test.
80555 2008-02-07  Eric Blake  <ebb9@byu.net>
80557         Quotearg part 3: add flag to control outer quote elision.
80558         * lib/quotearg.h (c_maybe_quoting_style): New style.
80559         (enum quoting_flags): Better documentation of flags.
80560         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
80561         c-maybe style.
80562         (quotearg_buffer_restyled): Handle new flag to elide outer
80563         quotes.
80565         Quotearg part 2: add flag that can control NUL elision.
80566         * lib/quotearg.h (set_quoting_flags): New prototype.
80567         * lib/quotearg.c (struct quoting_options): Add flag field.
80568         (set_quoting_flags): New function.
80569         (quotearg_buffer_restyled): Add flags parameter.
80570         (quotearg_alloc_mem): Set the flag if length cannot be returned.
80571         (quotearg_n_options): Set the flag, since length cannot be
80572         returned.
80573         (quoting_options_from_style): Default flags correctly.
80575         Quotearg part 1: more wrappers, restore quotearg_char state.
80576         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
80577         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
80578         (quotearg_colon_mem): New wrappers.
80579         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
80580         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
80581         functions.
80582         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
80583         (quotearg_colon_mem): New functions.
80585 2008-02-11  Bruno Haible  <bruno@clisp.org>
80587         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
80588         library in the current directory: it does not work with parallel make.
80589         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
80591 2008-02-11  Bruno Haible  <bruno@clisp.org>
80593         * .gitattributes: New file.
80595 2008-02-11  Jim Meyering  <meyering@redhat.com>
80597         useless-if-before-free: Fix reversed exit values.
80598         * build-aux/useless-if-before-free: Use correct values
80599         for EXIT_MATCH and EXIT_NO_MATCH.
80601         * build-aux/useless-if-before-free: Close stdout carefully.
80603 2008-02-10  Bruno Haible  <bruno@clisp.org>
80605         New module 'git-merge-changelog'.
80606         * modules/git-merge-changelog: New file.
80607         * lib/git-merge-changelog.c: New file.
80609 2008-02-10  Jim Meyering  <meyering@redhat.com>
80611         useless-if-before-free: New option: --list (-l).
80613         useless-if-before-free: Don't exit immediately upon open failure.
80614         * build-aux/useless-if-before-free: Exit 2 for errors.
80615         Upon failure to open a file, don't exit immediately.
80616         Rather, just warn and continue with any remaining files.
80618 2008-02-10  Bruno Haible  <bruno@clisp.org>
80620         New abstract list operation 'node_set_value'.
80621         * lib/gl_list.h (gl_list_node_set_value): New function.
80622         (struct gl_list_implementation): New field node_set_value.
80623         * lib/gl_list.c (gl_list_node_set_value): New function.
80624         * lib/gl_array_list.c (gl_array_node_set_value): New function.
80625         (gl_array_list_implementation): Update.
80626         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
80627         (gl_carray_list_implementation): Update.
80628         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
80629         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
80630         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
80631         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
80632         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
80633         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
80634         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
80635         Update.
80636         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
80637         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
80638         (gl_sublist_list_implementation): Update.
80640 2008-02-10  Bruno Haible  <bruno@clisp.org>
80642         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
80643         Needed when ELEMENT is #defined to 'some_type *'.
80645 2008-02-10  Jim Meyering  <meyering@redhat.com>
80647         New script and module: useless-if-before-free
80648         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
80649         * build-aux/useless-if-before-free: New file.
80650         * modules/useless-if-before-free: New file.
80652         * build-aux/gitlog-to-changelog: Use committer date, not author date.
80654         xstrtol_error: Fix typo.
80655         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
80656         s/exit_failure/exit_status/.
80658 2008-02-09  Jim Meyering  <meyering@redhat.com>
80660         New script and module: gitlog-to-changelog
80661         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
80662         * modules/gitlog-to-changelog: New file.
80663         * build-aux/gitlog-to-changelog: New file.
80665 2008-02-08  Jim Meyering  <meyering@redhat.com>
80667         Avoid two "parameter unused" warnings.
80668         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
80669         Mark "st" as used.
80671         Use "git COMMAND", not "git-COMMAND".
80672         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
80673         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
80674         * build-aux/git-version-gen: Use "git status", not "git-status".
80676 2008-02-07  Bruno Haible  <bruno@clisp.org>
80678         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
80679         Avoids a crash on Windows Vista.
80680         Reported by Adam Strzelecki <ono@java.pl> via
80681         Simon Josefsson <simon@josefsson.org>.
80683 2008-02-06  Bruno Haible  <bruno@clisp.org>
80685         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
80686         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
80687         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
80688         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
80689         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
80690         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
80691         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
80692         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
80693         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
80694         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
80695         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
80696         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
80697         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
80698         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
80699         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
80700         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
80701         left-adjust flag.
80702         * tests/test-snprintf-posix.h (test_function): Likewise.
80703         * tests/test-sprintf-posix.h (test_function): Likewise.
80704         * tests/test-vasprintf-posix.c (test_function): Likewise.
80705         * doc/posix-functions/fprintf.texi: Update.
80706         * doc/posix-functions/printf.texi: Update.
80707         * doc/posix-functions/snprintf.texi: Update.
80708         * doc/posix-functions/sprintf.texi: Update.
80709         * doc/posix-functions/vfprintf.texi: Update.
80710         * doc/posix-functions/vprintf.texi: Update.
80711         * doc/posix-functions/vsnprintf.texi: Update.
80712         * doc/posix-functions/vsprintf.texi: Update.
80713         Reported by Peter Fales <psfales@alcatel-lucent.com>.
80715 2008-02-06  Bruno Haible  <bruno@clisp.org>
80717         Fix bug introduced on 2008-01-26.
80718         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
80720 2008-02-06  Bruno Haible  <bruno@clisp.org>
80722         Fix bug introduced on 2007-06-10.
80723         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
80724         !NEED_PRINTF_FLAG_ZERO.
80726 2008-02-05  Peter O'Gorman  <pogma@thewrittenword.com>
80728         getloadavg: use libperfstat on AIX5
80729         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
80731 2008-02-03  Bruno Haible  <bruno@clisp.org>
80733         * lib/diffseq.h: Add comments about required #includes.
80734         Reported by Michael Biggs <gnulib@doubleplum.net>.
80736 2008-02-01  Bruno Haible  <bruno@clisp.org>
80738         * users.txt: Add gnuit.
80740 2008-01-31  Bruno Haible  <bruno@clisp.org>
80742         * lib/md4.c (set_uint32): Mark as inline.
80743         * lib/md5.c (set_uint32): Likewise.
80744         * lib/sha1.c (set_uint32): Likewise.
80745         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
80746         * m4/md5.m4 (gl_MD5): Likewise.
80747         * m4/sha1.m4 (gl_SHA1): Likewise.
80749 2008-01-31  Jim Meyering  <meyering@redhat.com>
80751         Use "sizeof VAR", rather than a literal "4".
80752         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
80753         * lib/md4.c (md4_read_ctx): Likewise.
80754         * lib/sha1.c (sha1_read_ctx): Likewise.
80756 2008-01-31  Simon Josefsson  <simon@josefsson.org>
80758         * tests/test-sha1.c: New file, based on test-md5.c.
80760         * modules/crypto/sha1-tests: New file.
80762 2008-01-31  Simon Josefsson  <simon@josefsson.org>
80764         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
80766 2008-01-31  Jim Meyering  <meyering@redhat.com>
80768         Prefer "sizeof v" over the equivalent "4".
80769         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
80770         * lib/md5.c (set_uint32): Likewise.
80771         * lib/sha1.c (set_uint32): Likewise.
80773 2008-01-31  Simon Josefsson  <simon@josefsson.org>
80775         * lib/sha1.c (set_uint32): Mark function as static.
80777 2008-01-31  Simon Josefsson  <simon@josefsson.org>
80779         md2: clarify comments to say that alignment is not required.
80780         * lib/md2.h: Remove warning about alignment in comment.
80781         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
80782         never been required.
80784 2008-01-31  Simon Josefsson  <simon@josefsson.org>
80786         md4: adapt alignment constraint fix from sha1.
80787         * lib/md4.c (set_uint32): New function, from sha1.c
80788         (md4_read_ctx): Use it.
80789         (md4_finish_ctx): Doc fix.
80790         * lib/md4.h: Doc fix.
80792 2008-01-31  Simon Josefsson  <simon@josefsson.org>
80794         md5: adapt alignment constraint fix from sha1.
80795         * lib/md5.c (set_uint32): New function, from sha1.c
80796         (md5_read_ctx): Use it.
80797         (md5_finish_ctx): Doc fix.
80798         * lib/md5.h: Doc fix.
80800 2008-01-30  Peter Palfrader  <weasel@debian.org>
80802         sha1: remove the result buffer alignment constraint
80803         * lib/sha1.c (set_uint32): New function.
80804         (sha1_read_ctx): Rewrite to remove the result buffer alignment
80805         constraint.
80806         (sha1_finish_ctx): Remove comment warning about alignment constraint.
80807         * lib/sha1.h: Likewise.
80809 2008-01-30  Andreas Schwab  <schwab@suse.de>
80810             Bruno Haible  <bruno@clisp.org>
80812         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
80813         correct definition of LDBL_MIN_EXP.
80815 2008-01-30  Karl Berry  <karl@gnu.org>
80817         * config/srclist-update: try to preserve x bit on updates.
80818         * config/srclistvars.sh: update for karl.
80820 2008-01-29  Jim Meyering  <meyering@redhat.com>
80822         vasnprintf.c: Avoid warning about unused label
80823         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
80824         "overflow" label definition and associated code with the
80825         same cpp condition that guards the sole use of that label.
80827 2008-01-26  Bruno Haible  <bruno@clisp.org>
80829         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
80830         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
80831         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
80832         * lib/isnanl-nolibm.h (isnanl): Likewise.
80833         Reported by Paul Eggert <eggert@cs.ucla.edu>.
80835 2008-01-26  Bruno Haible  <bruno@clisp.org>
80837         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
80838         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
80840 2008-01-26  Bruno Haible  <bruno@clisp.org>
80842         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
80843         GCC >= 4.0 built-in.
80844         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
80846 2008-01-26  Bruno Haible  <bruno@clisp.org>
80848         Rename isnan, applicable to 'double' only, to isnand.
80849         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
80850         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
80851         (configure.ac): Update.
80852         (Include): Replace "isnan.h" with "isnand.h".
80853         * m4/isnand.m4: Renamed from m4/isnan.m4.
80854         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
80855         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
80856         instead of isnan.c.
80857         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
80858         instead of HAVE_ISNAN_IN_LIBC.
80859         (isnand): Renamed from isnan.
80860         * lib/isnand.c: New file.
80861         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
80862         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
80863         (Makefile.am): Update.
80864         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
80865         Include isnand.h instead of isnan.h.
80866         (main): Test isnand instead of isnan.
80867         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
80868         isnan-nolibm.
80869         * modules/frexp (Depends-on): Likewise.
80870         * modules/frexp-tests (Depends-on): Likewise.
80871         * modules/frexp-nolibm (Depends-on): Likewise.
80872         * modules/frexp-nolibm-tests (Depends-on): Likewise.
80873         * modules/isfinite (Depends-on): Likewise.
80874         * modules/round-tests (Depends-on): Likewise.
80875         * modules/signbit (Depends-on): Likewise.
80876         * modules/signbit-tests (Depends-on): Likewise.
80877         * modules/snprintf-posix (Depends-on): Likewise.
80878         * modules/sprintf-posix (Depends-on): Likewise.
80879         * modules/trunc-tests (Depends-on): Likewise.
80880         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
80881         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
80882         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
80883         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
80884         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
80885         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
80886         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
80887         * modules/vasnprintf-posix (Depends-on): Likewise.
80888         * modules/vasprintf-posix (Depends-on): Likewise.
80889         * modules/vfprintf-posix (Depends-on): Likewise.
80890         * modules/vsnprintf-posix (Depends-on): Likewise.
80891         * modules/vsprintf-posix (Depends-on): Likewise.
80892         * lib/frexp.c: Include isnand.h instead of isnan.h.
80893         (ISNAN): Set to isnand instead of isnan.
80894         * lib/isfinite.c: Include isnand.h instead of isnan.h.
80895         (gl_isfinited): Use isnand instead of isnan.
80896         * lib/signbitd.c: Include isnand.h instead of isnan.h.
80897         (gl_signbitd): Use isnand instead of isnan.
80898         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
80899         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
80900         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
80901         (main): Use isnand instead of isnan.
80902         * tests/test-round1.c: Include isnand.h.
80903         (main): Use isnand instead of isnan.
80904         * tests/test-round2.c: Include isnand.h instead of isnan.h.
80905         (ISNAN): Set to isnand instead of isnan.
80906         * tests/test-trunc1.c: Include isnand.h.
80907         (main): Use isnand instead of isnan.
80908         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
80909         (equal): Use isnand instead of isnan.
80910         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
80911         isnand-nolibm.
80912         * NEWS: Mention the change.
80914 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
80915             Bruno Haible  <bruno@clisp.org>
80917         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
80918         the GCC builtins for signbits are present and set
80919         REPLACE_SIGNBIT_USING_GCC if so.
80920         * lib/math.in.h (signbit): Define using GCC builtins if
80921         REPLACE_SIGNBIT_USING_GCC is set.
80922         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
80923         REPLACE_SIGNBIT_USING_GCC.
80924         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
80926 2008-01-25  Jim Meyering  <meyering@redhat.com>
80928         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
80929         * lib/poll.c: Include <config.h>, not "config.h".
80930         * tests/test-getaddrinfo.c: Likewise.
80932 2008-01-25  Simon Josefsson  <simon@josefsson.org>
80934         * modules/sockets-tests: New file.
80936 2008-01-24  Simon Josefsson  <simon@josefsson.org>
80938         * modules/sockets: New module, can be used to call WSA_Startup and
80939         WSA_Cleanup when needed.
80941         * lib/sockets.h, lib/sockets.c: New files.
80943         * m4/sockets.m4: New file.
80945         * tests/test-sockets.c: New file.
80947 2008-01-19  Bruno Haible  <bruno@clisp.org>
80949         * doc/posix-headers: Renamed from doc/headers.
80950         * doc/posix-functions: Renamed from doc/functions.
80951         * doc/gnulib.texi: Update.
80953 2008-01-19  Bruno Haible  <bruno@clisp.org>
80955         * doc/glibc-functions/strcasestr.texi: Include contents of
80956         doc/functions/strcasestr.texi, fixing the list of platforms.
80957         * doc/functions/strcasestr.texi: Remove file.
80959 2008-01-19  Bruno Haible  <bruno@clisp.org>
80961         * doc/glibc-functions/memmem.texi: Include contents of
80962         doc/functions/memmem.texi.
80963         * doc/functions/memmem.texi: Remove file.
80965 2008-01-18  Bruno Haible  <bruno@clisp.org>
80967         * doc/glibc-functions/*.texi: New files.
80968         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
80969         to use the new files.
80971 2008-01-17  Bruno Haible  <bruno@clisp.org>
80973         * tests/test-gethostname.c (main): Fix printf statement.
80975 2008-01-17  Simon Josefsson  <simon@josefsson.org>
80977         * modules/gethostname-tests: New file.
80979         * tests/test-gethostname.c: New file.
80981 2008-01-17  Simon Josefsson  <simon@josefsson.org>
80983         * lib/gethostname.c: Include string.h unconditionally, strncpy is
80984         used by the UNAME case.  Reported by Bruno Haible
80985         <bruno@clisp.org>.
80987 2008-01-17  Eric Blake  <ebb9@byu.net>
80989         Convert c-strcasestr to be more efficient.
80990         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
80991         (Depends-on): Add c-strcase, remove malloca, strnlen.
80992         * tests/test-c-strcasestr.c (main): Enhance test.
80993         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
80995 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
80997         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
80998         Use it in creating po/Makevars.
81000 2008-01-15  Simon Josefsson  <simon@josefsson.org>
81002         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
81003         Applications that requires it should initialize libgcrypt
81004         manually.
81006 2008-01-16  Simon Josefsson  <simon@josefsson.org>
81008         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
81010 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
81012         Fix problem with getdate on mingw32 reported by Simon Josefsson
81013         in <http://lists.gnu.org/r/bug-gnulib/2008-01/msg00192.html>.
81014         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
81015         tzname", when deciding whether to declare tzname.
81016         * lib/strftime.c (tzname): Likewise.
81018 2008-01-15  Bruno Haible  <bruno@clisp.org>
81020         Work around a MacOS X 10.5 bug in frexpl().
81021         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
81022         * doc/functions/frexpl.texi: Document the bug.
81023         Reported by Elias Pipping <pipping@gentoo.org>.
81025 2008-01-14  Eric Blake  <ebb9@byu.net>
81027         Touch up previous patch.
81028         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
81029         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
81031         Convert strcasestr module to use Two-Way algorithm.
81032         * modules/strcasestr-simple: New module, based on the old
81033         strcasestr, but with Two-Way rather than KMP.
81034         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
81035         * lib/string.in.h (rpl_strcasestr): Declare.
81036         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
81037         performance.
81038         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
81039         * modules/string (Makefile.am): Support strcasestr.
81040         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
81041         * modules/strcasestr-tests (Depends-on): Check for alarm.
81042         * tests/test-strcasestr.c: Augment test.
81043         * lib/str-two-way.h: Clean up stray macro.
81044         * NEWS: Document new module.
81045         * MODULES.html.sh (string handling): Likewise.
81046         * doc/functions/strcasestr.texi: New file.
81047         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
81048         here, since it is not a POSIX function.
81050 2008-01-14  Colin Watson  <cjwatson@debian.org>
81051             Bruno Haible  <bruno@clisp.org>
81053         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
81054         works fine; if not, set REPLACE_STRSIGNAL.
81055         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
81056         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
81057         REPLACE_STRSIGNAL.
81058         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
81059         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
81060         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
81062 2008-01-14  Bruno Haible  <bruno@clisp.org>
81064         * modules/strsignal (Include): Change to <string.h>.
81066 2008-01-14  Colin Watson  <cjwatson@debian.org>
81068         * modules/argp (Notice): Add a notice recommending to change
81069         XGETTEXT_OPTIONS.
81070         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
81072 2008-01-13  Colin Watson  <cjwatson@debian.org>
81074         * modules/strsignal-tests: New file.
81075         * tests/test-strsignal.c: New file.
81077         * lib/strsignal.c: New file, from glibc with modifications.
81078         * lib/siglist.h: New file, from glibc with modifications.
81079         * lib/string.in.h (strsignal): New declaration.
81080         * m4/strsignal.m4: New file.
81081         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
81082         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
81083         * modules/strsignal: New file.
81084         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
81085         HAVE_DECL_STRSIGNAL.
81087 2008-01-13  Bruno Haible  <bruno@clisp.org>
81089         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
81090         locale encoding is not ASCII. Needed for OpenBSD 4.0.
81091         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
81092         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
81094 2008-01-13  Bruno Haible  <bruno@clisp.org>
81096         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
81097         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
81098         * lib/argp.h (__attribute__): Likewise.
81099         * lib/c-stack.c (__attribute__): Likewise.
81100         * lib/error.h (__attribute__): Likewise.
81101         * lib/fts.c (__attribute__): Likewise.
81102         * lib/openat.h (__attribute__): Likewise.
81103         * lib/stdio.in.h (__attribute__): Likewise.
81104         * lib/string.in.h (__attribute__): Likewise.
81105         * lib/utimens.c (__attribute__): Likewise.
81106         * lib/vasnprintf.h (__attribute__): Likewise.
81107         * lib/xalloc.h (__attribute__): Likewise.
81108         * lib/xprintf.h (__attribute__): Likewise.
81109         * lib/xstrtol.h (__attribute__): Likewise.
81110         * lib/xvasprintf.h (__attribute__): Likewise.
81112 2008-01-12  Bruno Haible  <bruno@clisp.org>
81114         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
81115         * doc/glibc-headers/a.out.texi: New file.
81116         * doc/glibc-headers/aliases.texi: New file.
81117         * doc/glibc-headers/alloca.texi: New file.
81118         * doc/glibc-headers/ar.texi: New file.
81119         * doc/glibc-headers/argp.texi: New file.
81120         * doc/glibc-headers/argz.texi: New file.
81121         * doc/glibc-headers/byteswap.texi: New file.
81122         * doc/glibc-headers/crypt.texi: New file.
81123         * doc/glibc-headers/endian.texi: New file.
81124         * doc/glibc-headers/envz.texi: New file.
81125         * doc/glibc-headers/err.texi: New file.
81126         * doc/glibc-headers/error.texi: New file.
81127         * doc/glibc-headers/execinfo.texi: New file.
81128         * doc/glibc-headers/fpu_control.texi: New file.
81129         * doc/glibc-headers/fstab.texi: New file.
81130         * doc/glibc-headers/fts.texi: New file.
81131         * doc/glibc-headers/getopt.texi: New file.
81132         * doc/glibc-headers/ieee754.texi: New file.
81133         * doc/glibc-headers/ifaddrs.texi: New file.
81134         * doc/glibc-headers/libintl.texi: New file.
81135         * doc/glibc-headers/mcheck.texi: New file.
81136         * doc/glibc-headers/mntent.texi: New file.
81137         * doc/glibc-headers/obstack.texi: New file.
81138         * doc/glibc-headers/paths.texi: New file.
81139         * doc/glibc-headers/printf.texi: New file.
81140         * doc/glibc-headers/pty.texi: New file.
81141         * doc/glibc-headers/resolv.texi: New file.
81142         * doc/glibc-headers/shadow.texi: New file.
81143         * doc/glibc-headers/sysexits.texi: New file.
81144         * doc/glibc-headers/ttyent.texi: New file.
81146 2008-01-12  Jim Meyering  <meyering@redhat.com>
81148         announce-gen: emit Gnulib's git-based version string.
81149         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
81150         New option --gnulib-version=V, where V is expected to be
81151         the output of running git describe in the gnulib directory.
81152         (get_tool_versions): Request feedback on xdelta.  I suspect it's
81153         not useful, and plan to stop publishing an xdelta file with each
81154         coreutils release.
81156         * build-aux/announce-gen: Also check for lzma-compressed files.
81158 2008-01-11  Bruno Haible  <bruno@clisp.org>
81160         * tests/test-memmem.c (main): Increase maximum allowed time.
81161         * tests/test-strstr.c (main): Likewise.
81163 2008-01-11  Bruno Haible  <bruno@clisp.org>
81165         * doc/functions/memmem.texi: Add more precisions about platforms.
81166         * doc/functions/strstr.texi: Likewise.
81168 2008-01-10  Eric Blake  <ebb9@byu.net>
81170         * m4/strstr.m4: Delete cruft from copy-n-paste.
81171         Reported by Bruno Haible.
81173 2008-01-10  Bruno Haible  <bruno@clisp.org>
81175         Make c-strstr rely on strstr.
81176         * lib/c-strstr.c: Don't include str-kmp.h.
81177         (c_strstr): Define in terms of strstr.
81178         * modules/c-strstr (Files): Remove lib/str-kmp.h.
81179         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
81181 2008-01-10  Bruno Haible  <bruno@clisp.org>
81183         * doc/gnulib.texi (String Functions in C Locale): New section.
81184         * doc/c-ctype.texi: New file.
81185         * doc/c-strcase.texi: New file.
81186         * doc/c-strcaseeq.texi: New file.
81187         * doc/c-strcasestr.texi: New file.
81188         * doc/c-strstr.texi: New file.
81189         * doc/c-strtod.texi: New file.
81190         * doc/c-strtold.texi: New file.
81192 2008-01-10  Eric Blake  <ebb9@byu.net>
81194         * lib/relocatable.h: Fix a comment.
81196 2008-01-10  Eric Blake  <ebb9@byu.net>
81198         Share two-way algorithm.
81199         * lib/str-two-way.h: New file, merged from...
81200         * lib/memmem.c: ...here...
81201         * lib/strstr.c: ...and here.
81202         * modules/memmem (Files): Use it.
81203         * modules/strstr (Files): Likewise.
81205         Avoid quadratic strstr implementations.
81206         * lib/strstr.c: New file.
81207         * m4/strstr.m4: Likewise.
81208         * modules/strstr: Likewise.
81209         * modules/strstr-tests: Likewise.
81210         * tests/test-strstr.c: Likewise.
81211         * lib/string.in.h (rpl_strstr): Declare.
81212         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
81213         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
81214         * modules/string (Makefile.am): Likewise.
81215         * MODULES.html.sh (string handling): Mention new module.
81216         * doc/functions/strstr.texi (strstr): Document the bug.
81218 2008-01-10  Bruno Haible  <bruno@clisp.org>
81220         * lib/relocatable.h (relocate): State whether result is freshly
81221         allocated or not.
81222         * lib/relocatable.c (relocate): Return a freshly allocated string
81223         instead of a pointer to a privately held string.
81224         Reported by Sylvain Beucler <beuc@gnu.org>.
81226 2008-01-10  Colin Watson  <cjwatson@debian.org>
81228         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
81229         s/S_ISNLK/S_ISLNK/.
81231 2008-01-09  Bruno Haible  <bruno@clisp.org>
81233         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
81234         and other files.
81235         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
81236         if it's only a guess.
81237         * modules/memmem: Simplify by depending on memmem-simple.
81239 2008-01-09  Bruno Haible  <bruno@clisp.org>
81241         Work around OpenBSD 4.0 tdelete() bug.
81242         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
81243         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
81244         macros and don't redefine the enum values.
81245         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
81246         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
81247         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
81249 2008-01-09  Bruno Haible  <bruno@clisp.org>
81251         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
81252         (main): Don't perform the tests if setlocale did not install a UTF-8
81253         locale. Needed on OpenBSD 4.0.
81254         * modules/wcwidth-tests (Depends-on): Add localcharset.
81256 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
81258         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
81259         See <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00149.html>.
81260         * NEWS: announce this.
81261         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
81263 2008-01-09  Simon Josefsson  <simon@josefsson.org>
81264         and Eric Blake  <ebb9@byu.net>
81266         Add memmem-simple module.
81267         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
81268         (gl_FUNC_MEMMEM): Separate performance from presence checks.
81269         * modules/memmem-simple: New file.
81270         * modules/memmem (Description): Tweak.
81271         * MODULES.html.sh (string handling): Mention new module.
81272         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
81273         addressed by memmem-simple.
81274         * NEWS: Document the difference.
81276 2008-01-09  Eric Blake  <ebb9@byu.net>
81278         Give gcc some memmem optimization hints.
81279         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
81280         (strcasestr): Declare as pure.
81281         * modules/memmem (Maintainer): Claim my implementation.
81283 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81285         Support AIX 6.1 and higher.
81286         * build-aux/config.libpath: Likewise.
81287         * build-aux/config.rpath: Likewise.
81289 2008-01-08  Jim Meyering  <meyering@redhat.com>
81290             Bruno Haible  <bruno@clisp.org>
81292         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
81293         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
81294         Reported by Peter Fales in
81295         <http://lists.gnu.org/r/bug-coreutils/2007-12/msg00148.html>.
81297 2008-01-08  Bruno Haible  <bruno@clisp.org>
81299         * modules/unictype/category-of (Depends-on): Add
81300         unictype/category-none.
81301         * modules/unictype/category-and-tests (Depends-on): Add
81302         unictype/category-{L,N,Lu,Nd}.
81303         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
81304         * modules/unictype/category-or-tests (Depends-on): Add
81305         unictype/category-{L,N}.
81306         * modules/unictype/category-name-tests (Depends-on): Add
81307         unictype/category-{Z,Nl}.
81308         Reported by Simon Josefsson.
81310 2008-01-08  Bruno Haible  <bruno@clisp.org>
81312         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
81313         convention better.
81314         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
81315         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
81316         Reported by Peter Miller <millerp@canb.auug.org.au>.
81318 2008-01-08  Eric Blake  <ebb9@byu.net>
81320         Rewrite memmem to guarantee linear complexity without malloc.
81321         * lib/memmem.c (memmem): Use Two-Way rather than
81322         Knuth-Morris-Pratt, to allow O(1) space usage.
81323         (critical_factorization, two_way_short_needle)
81324         (two_way_long_needle): New functions.
81325         (knuth_morris_pratt): Delete.
81326         * modules/memmem (Depends-on): No longer need malloca or stdbool.
81327         Add stdint.
81328         * tests/test-memmem.c (main): Add tests for periodic needle and
81329         sublinear performance.
81330         * doc/functions/memmem.texi (memmem): Document other deficiencies
81331         in cygwin and older glibc.
81333 2008-01-08  Bruno Haible  <bruno@clisp.org>
81335         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
81336         augmentation.
81338 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
81340         Add a configure time option: --disable-acl.
81341         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
81342         AC_ARG_ENABLE(acl).
81344 2008-01-06  Simon Josefsson  <simon@josefsson.org>
81346         * tests/test-localename.c: Don't include obsolete "setenv.h".
81348         * modules/localename-tests (Depends-on): Need unsetenv.
81350 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81352         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
81354 2008-01-06  Colin Watson  <cjwatson@debian.org>
81356         * users.txt: Add man-db.
81358 2008-01-07  Bruno Haible  <bruno@clisp.org>
81360         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
81361         previous section name.
81363 2008-01-07  Bruno Haible  <bruno@clisp.org>
81365         * lib/progname.c (set_program_name): Don't strip off a leading
81366         "lt-" prefix outside a .libs directory.
81367         Suggested by Paul Eggert.
81369 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
81370             Bruno Haible  <bruno@clisp.org>
81372         Improve memory cleanup in 'relocatable' module.
81373         * lib/relocatable.h (compute_curr_prefix): Change return type to
81374         'char *'.
81375         * lib/relocatable.c (compute_curr_prefix): Change return type to
81376         'char *'. Free curr_installdir after use.
81377         (relocate): Free curr_prefix_better after use.
81378         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
81380 2008-01-01  Bruno Haible  <bruno@clisp.org>
81382         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
81383         failure on older glibc systems.
81384         Reported by Peter Fales <psfales@alcatel-lucent.com>.
81386 2008-01-05  Eric Blake  <ebb9@byu.net>
81388         Avoid quadratic system memmem.
81389         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
81390         Reported by Ralf Wildenhues.
81392         Fix memmem test for mingw.
81393         * modules/memmem-tests (configure.ac): Check for alarm.
81394         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
81395         it.
81396         * doc/functions/memmem.texi: New file.
81397         * doc/gnulib.texi (Function Substitutes): Add memmem.
81398         Reported by Bruno Haible.
81400 2008-01-04  Bruno Haible  <bruno@clisp.org>
81402         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
81403         Require gl_HEADER_STRINGS_H_DEFAULTS, not
81404         gl_HEADER_STRING_H_DEFAULTS.
81406 2008-01-04  Eric Blake  <ebb9@byu.net>
81408         Shorten duration of memmem test.
81409         * tests/test-memmem.c (main): Use alarm to declare failure if test
81410         is taking too long.
81411         Reported by Ralf Wildenhues.
81413 2007-12-21  Simon Josefsson  <simon@josefsson.org>
81415         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
81416         string, needed by strerror.
81418 2008-01-03  Colin Watson  <cjwatson@debian.org>
81419             Bruno Haible  <bruno@clisp.org>
81421         * doc/gnulib-tool.texi (Localization): New section.
81423 2008-01-02  Bruno Haible  <bruno@clisp.org>
81425         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
81426         variables to 'unsigned char *' type.
81427         Reported by Paul Eggert.
81429 2008-01-02  Jim Meyering  <jim@meyering.net>
81431         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
81433 2007-12-31  Jim Meyering  <jim@meyering.net>
81435         Avoid use of private FTS type name.
81436         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
81438 2007-12-30  Karl Berry  <karl@gnu.org>
81440         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
81441         work around defect in Texinfo and/or the standalone Info browser.
81443 2007-12-30  Bruno Haible  <bruno@clisp.org>
81445         Unify 5 copies of the KMP code.
81446         * lib/str-kmp.h: New file.
81447         * lib/c-strcasestr.c: Include str-kmp.h.
81448         (knuth_morris_pratt): Remove function.
81449         (c_strcasestr): Update.
81450         * lib/c-strstr.c: Include str-kmp.h.
81451         (knuth_morris_pratt): Remove function.
81452         (c_strcasestr): Update.
81453         * lib/mbscasestr.c: Include str-kmp.h.
81454         (knuth_morris_pratt_unibyte): Remove function.
81455         * lib/mbsstr.c: Include str-kmp.h.
81456         (knuth_morris_pratt_unibyte): Remove function.
81457         * lib/strcasestr.c: Include str-kmp.h.
81458         (knuth_morris_pratt): Remove function.
81459         (strcasestr): Update.
81460         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
81461         * modules/c-strstr (Files): Likewise.
81462         * modules/mbscasestr (Files): Likewise.
81463         * modules/mbsstr (Files): Likewise.
81464         * modules/strcasestr (Files): Likewise.
81465         Suggested by Paul Eggert.
81467 2007-12-30  Bruno Haible  <bruno@clisp.org>
81469         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
81470         defined.
81472 2007-12-30  Bruno Haible  <bruno@clisp.org>
81474         * lib/xmalloca.h: Include xalloc.h.
81475         (xnmalloca): New macro.
81477 2007-12-30  Bruno Haible  <bruno@clisp.org>
81479         * lib/malloca.h (nmalloca): New macro.
81480         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
81481         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
81482         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
81483         knuth_morris_pratt_multibyte): Likewise.
81484         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
81485         knuth_morris_pratt_multibyte): Likewise.
81486         * lib/memmem.c (knuth_morris_pratt): Likewise.
81487         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
81489 2007-12-25  Bruno Haible  <bruno@clisp.org>
81491         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
81492         * lib/glob.c: Don't include openat.h.
81493         (link_exists2_p): Add back the code that deals with the
81494         !GLOB_ALTDIRFUNC case.
81495         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
81496         let it do the filename concatenation.
81497         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
81498         * modules/glob (Depends-on): Remove openat.
81500 2007-12-31  Bruno Haible  <bruno@clisp.org>
81502         * modules/dirfd (License): Change to LGPLv2+.
81503         Approved by Jim Meyering.
81505 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
81507         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
81508         when multiplying M by sizeof (size_t).
81510 2007-12-10  Martin Lambers  <marlam@marlam.de>
81512         Override getpagesize on mingw.
81513         * lib/getpagesize.c: New file.
81514         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
81515         * modules/getpagesize (Files): Add lib/getpagesize.c.
81516         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
81517         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
81518         REPLACE_GETPAGESIZE.
81519         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
81521 2007-12-25  Bruno Haible  <bruno@clisp.org>
81523         * modules/localcharset (Notice): New field.
81524         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
81525         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
81527 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
81528             Bruno Haible  <bruno@clisp.org>
81530         Avoid using the syntax symbol() in formatted documentation.
81531         * MODULES.html.sh (func_module): When replacing symbol() with a
81532         hyperlink, remove the parentheses. Show an error if some remain.
81533         Recognize and render the '...' syntax.
81534         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
81535         Rework. Add paragraph about GCC's inlining.
81536         * doc/alloca.texi: Likewise.
81537         * doc/error.texi: Remove parentheses from symbol reference.
81538         * doc/gnulib-intro.texi: Likewise.
81539         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
81540         * modules/fnmatch (Description): Reword to say "the ... function".
81541         * modules/full-read (Description): Likewise.
81542         * modules/full-write (Description): Likewise.
81543         * modules/safe-read (Description): Likewise.
81544         * modules/safe-write (Description): Likewise.
81545         * modules/strchrnul (Description): Likewise.
81546         * modules/trim (Description): Likewise.
81547         * modules/error (Description): Remove parentheses from symbol
81548         references.
81549         * modules/verror (Description): Likewise.
81550         Reported by Karl Berry.
81552 2007-12-25  Bruno Haible  <bruno@clisp.org>
81554         Fixup after 2007-10-16 commit.
81555         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
81557 2007-12-24  Bruno Haible  <bruno@clisp.org>
81559         Make --enable-relocatable work with DESTDIR.
81560         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
81561         to compute installdir from destprog.
81562         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
81563         also set the RELOC_DESTDIR variable.
81564         Reported by Левашев Иван <octagram@bluebottle.com>.
81566 2007-12-24  Bruno Haible  <bruno@clisp.org>
81568         Fix link error due to xalloc_die().
81569         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
81570         of xreadlink.
81571         * lib/relocwrapper.c: Update comments.
81572         * build-aux/install-reloc: Remove xreadlink.c from file list.
81573         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
81574         xreadlink.c.
81575         Reported by Левашев Иван <octagram@bluebottle.com>.
81577 2007-12-24  Bruno Haible  <bruno@clisp.org>
81579         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
81580         * lib/setenv.h: Remove file.
81581         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
81582         lib/setenv.h.
81583         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
81584         (Depends-on): Add stdlib.
81585         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
81586         gl_FUNC_UNSETENV.
81587         (Include): Replace setenv.h with <stdlib.h>.
81588         * modules/unsetenv: New file.
81589         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
81590         * lib/unsetenv.c: Include <stdlib.h> first.
81591         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
81592         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
81593         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
81594         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
81595         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
81596         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
81597         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
81598         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
81599         * doc/functions/unsetenv.texi: Update.
81600         * modules/xsetenv (Depends-on): Add unsetenv.
81601         * modules/getdate (Depends-on): Likewise.
81602         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
81603         * lib/xsetenv.c: Don't include setenv.h.
81604         * lib/getdate.y: Likewise.
81605         * lib/relocwrapper.c: Likewise.
81606         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
81607         (Depends-on): Add stdlib.
81608         * NEWS: Mention the changes.
81609         Reported by Левашев Иван <octagram@bluebottle.com>.
81611 2007-12-23  Bruno Haible  <bruno@clisp.org>
81613         * lib/memmem.c (memmem): Use lowercase variable names. Tab
81614         indentation.
81616 2007-12-23  Bruno Haible  <bruno@clisp.org>
81618         * lib/c-strcasestr.c: Add more comments.
81619         * lib/c-strstr.c: Likewise.
81620         * lib/mbscasestr.c: Likewise.
81621         * lib/mbsstr.c: Likewise.
81622         * lib/strcasestr.c: Likewise.
81623         * lib/memmem.c: Likewise.
81625 2007-12-23  Bruno Haible  <bruno@clisp.org>
81627         * tests/test-memmem.c: Include <string.h> first.
81629 2007-12-22  Bruno Haible  <bruno@clisp.org>
81631         * gnulib-tool (func_create_testdir): Change $auxdir while generating
81632         the contents of $testsbase.
81633         Reported by Ralf Wildenhues.
81635 2007-12-22  Bruno Haible  <bruno@clisp.org>
81637         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
81638         two variables local_ldadd_before, local_ldadd_last.
81640 2007-12-20  Eric Blake  <ebb9@byu.net>
81642         Work around circular library issue when cross-compiling.
81643         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
81644         that progname.o does not need to pull in rpl_memcmp.
81646 2007-12-19  Eric Blake  <ebb9@byu.net>
81648         Fix memmem to avoid O(n^2) worst-case complexity.
81649         * lib/memmem.c (knuth_morris_pratt): New function.
81650         (memmem): Use it if first few naive iterations fail.
81651         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
81652         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
81653         * modules/memchr (License): Likewise.
81654         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
81655         malloca.
81656         * tests/test-memmem.c: Rewrite, borrowing ideas from
81657         test-mbsstr1.c; the old version wouldn't even compile!
81658         * modules/memmem-tests: New file.
81659         * lib/string.in.h (rpl_memmem): Add declaration.
81660         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
81661         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
81662         REPLACE_MEMMEM.
81664 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
81666         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
81667         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
81668         before any system include files, and undef after them all.  This
81669         should fix a problem on VMS reported by John E. Malmberg in
81670         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00118.html>.
81672 2007-12-17  Eric Blake  <ebb9@byu.net>
81674         Revert addition of verify, for BSD/OS.
81675         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
81676         can't handle large files, for the sake of obsolete platforms.
81677         * modules/fseeko (Depends-on): Remove verify.
81678         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
81679         * doc/functions/ftello.texi (ftello): Likewise.
81680         * doc/functions/fgetpos.texi (fgetpos): Likewise.
81681         Reported by Larry Jones.
81683 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
81685         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
81686         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
81688 2007-12-17  Jim Meyering  <meyering@redhat.com>
81690         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
81691         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
81692         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
81693         * modules/getcwd (Depends-on): Add openat.
81694         Reported by Petr Salinger.
81696 2007-12-17  Bruno Haible  <bruno@clisp.org>
81698         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
81699         avoid a segmentation fault of the configure test on x86_64 systems.
81701 2007-12-15  Jim Meyering  <meyering@redhat.com>
81703         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
81705 2007-12-13  Eric Blake  <ebb9@byu.net>
81707         Another fseek test.
81708         * tests/test-fseek.c (main): Also test ungetc handling.
81709         * tests/test-fseeko.c (main): Likewise.
81710         * modules/fseeko (Depends-on): Add verify.
81711         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
81712         large.
81713         Reported by Larry Jones.
81715         Fix fseeko on mingw.
81716         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
81717         seek.
81719         Beef up fseek tests.
81720         * tests/test-fseek.c (main): Also test eof handling.
81721         * tests/test-fseeko.c (main): Likewise.
81722         Reported by Larry Jones.
81724 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
81726         Fix fseeko on BSD-based platforms.
81727         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
81728         successful seek.
81730 2007-12-12  Eric Blake  <ebb9@byu.net>
81732         Allow circular dependency of separate libtests.a
81733         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
81734         when use_libtests.
81736 2007-12-11  Eric Blake  <ebb9@byu.net>
81738         Fix bug with -0.0L in previous patch.
81739         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
81740         * tests/test-isnan.c (main): Also test on zeroes.
81741         * tests/test-isnanf.c (main): Likewise.
81742         * tests/test-isnanl.h (main): Likewise.
81744         Detect pseudo-denormals on x86 even when cross-compiling.
81745         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
81746         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
81747         invalid bit patterns that happen to satisfy ==.
81749         Avoid link failures with separate libtests.a.
81750         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
81751         last, to satisfy circular dependencies.
81753 2007-12-11  Eric Blake  <ebb9@byu.net>
81754         and Bruno Haible  <bruno@clisp.org>
81756         Fix OpenBSD 4.0 <float.h> handling of long double.
81757         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
81758         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
81759         * doc/headers/float.texi (float.h): Document OpenBSD bug.
81761 2007-12-11  Jim Meyering  <meyering@redhat.com>
81763         * users.txt: Add libvirt.
81765         Support versions of autoconf prior to 2.59c.
81766         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
81767         if it is not already defined.
81769 2007-12-09  Bruno Haible  <bruno@clisp.org>
81771         Let 'gnulib-tool --import' collect sources needed for the tests in
81772         tests/ rather than in lib/.
81773         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
81774         argument. If true, add rules to generate libtests.a, and put libtests.a
81775         into $(LDADD). Consider source files in subdirectories and set
81776         uses_subdirs.
81777         (func_emit_initmacro_start, func_emit_initmacro_end,
81778         func_emit_initmacro_done): Pass all arguments explicitly.
81779         (func_import): Determine two module lists main_modules,
81780         testsrelated_modules. Determine use_libtests. Determine two variables
81781         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
81782         instead of just sed_transform_lib_file. Determine two variables
81783         main_files and testsrelated_files. Compute 'files' as the union of
81784         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
81785         func_add_or_update. In the generated gnulib-comp.m4, collect the
81786         object files for tests/ in different variables than those for lib/.
81787         Substitute LIBTESTS_LIBDEPS.
81788         (func_create_testdir): Combine the uses_subdirs results from
81789         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
81791 2007-12-09  Bruno Haible  <bruno@clisp.org>
81793         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
81794         the build-aux directory.
81796 2007-12-09  Bruno Haible  <bruno@clisp.org>
81798         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
81799         introduced on 2006-09-09.
81801 2007-12-07  Jim Meyering  <meyering@redhat.com>
81803         Let these macros work also with autoconf-2.59.
81804         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
81805         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
81806         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
81808 2007-12-06  Jim Meyering  <meyering@redhat.com>
81810         Avoid a configure-time syntax error in gl_FUNC_ACL.
81811         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
81812         function in each branch, before testing the cache variable.
81814 2007-12-04  Eric Blake  <ebb9@byu.net>
81816         Make scripts executable.
81817         * build-aux/config.guess: Add execute permissions.
81818         * build-aux/config.sub: Likewise.
81819         * build-aux/gendocs.sh: Likewise.
81821         Fix frexp on mingw.
81822         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
81823         cross-compiling.
81824         * doc/functions/frexp.texi (frexp): Document the bug.
81826         Make cygwin fseeko check more reliable.
81827         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
81828         version numbers, rather than unrelated feature check.
81829         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
81830         * doc/functions/ftello.texi (ftello): Likewise.
81831         Reported by Bruno Haible.
81833         * m4/strerror.m4: Bump version number.
81835 2007-12-03  Bruno Haible  <bruno@clisp.org>
81837         * doc/functions/mprotect.texi: Mention the mingw problem.
81839 2007-12-03  Eric Blake  <ebb9@byu.net>
81841         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
81842         REPLACE_STRERROR is initialized before this macro.
81844 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
81846         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
81847         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
81848         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
81849         put -lsec in even for programs other than 'ls'.  This fixes a problem
81850         for gettext reported by Bruno Haible in
81851         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00007.html>.
81852         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
81853         Add support for Solaris 10.  This isn't efficient, but should get the
81854         job done for now.
81856 2007-12-03  James Youngman  <jay@gnu.org>
81858         * doc/regexprops-generic.texi: change "an close-group" to "a
81859         close-group" and "illegal" to "not allowed".
81861 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81863         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
81864         pr_byname.h. Needed for the rare case when the maintainer has done
81865         "make maintainer-clean" in the source directory and then attempts a
81866         build outside the source directory.
81867         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
81868         scripts_byname.h.
81870 2007-12-02  Martin Lambers  <marlam@marlam.de>
81871             Bruno Haible  <bruno@clisp.org>
81873         * lib/getpagesize.h: Remove file.
81874         * lib/unistd.in.h: Include declaration of getpagesize here.
81875         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
81876         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
81877         HAVE_SYS_PARAM_H.
81878         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
81879         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
81880         * modules/getpagesize (Files): Remove lib/getpagesize.h.
81881         (Depends-on): Add unistd.
81882         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
81883         (Include): Use <unistd.h> instead of getpagesize.h.
81884         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
81885         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
81886         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
81887         gl_GETPAGESIZE invocation, already handled by module dependency.
81888         * lib/pagealign_alloc.c: Don't include getpagesize.h.
81890 2007-12-02  Bruno Haible  <bruno@clisp.org>
81892         * modules/strings-tests: New file.
81893         * tests/test-strings.c: New file.
81895         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
81896         * lib/strings.in.h: New file.
81897         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
81898         * m4/strings_h.m4: New file.
81899         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
81900         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
81901         * modules/strings: New file.
81902         * modules/string (Makefile.am): Update.
81903         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
81904         Reported by Karl Berry.
81906 2007-12-01  Eric Blake  <ebb9@byu.net>
81908         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
81909         accommodate fix in cygwin 1.5.25.
81911 2007-12-01  Jim Meyering  <meyering@redhat.com>
81913         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
81914         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
81915         that would inhibit utf8-optimization of a regexp containing line-
81916         or buffer-anchors, e.g., `^', `$'.
81918 2007-11-30  Bruno Haible  <bruno@clisp.org>
81920         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
81921         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
81922         glthread_recursive_lock_init.
81923         * lib/lock.c (glthread_recursive_lock_init)
81924         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
81925         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
81927 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
81929         New function qset_acl, like set_acl but with syscall semantics.
81930         * lib/acl.h (qset_acl): New decl.
81931         * lib/acl.c (qset_acl): New function.
81932         (set_acl): Use new function.  Use more-consistent diagnostics.
81934 2007-11-28  Jim Meyering  <meyering@redhat.com>
81936         * modules/physmem (License): Change from GPL to LGPLv2+.
81938 2007-11-26  Bruno Haible  <bruno@clisp.org>
81940         * lib/vasnprintf.c (decode_long_double): Don't abort if the
81941         'long double' type has excess precision.
81942         Reported by Jim Meyering in
81943         <http://lists.gnu.org/r/bug-gnulib/2007-11/msg00120.html>.
81945 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81947         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
81948         Sync from <http://gnu.org/licenses>.
81949         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
81950         with license text from same location.
81951         * doc/maintain.texi, doc/standards.texi:  Sync from
81952         <http://savannah.gnu.org/projects/gnustandards>.
81954 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
81955         and Jim Meyering  <meyering@redhat.com>
81957         Adjust getdate' grammar to accept a slightly more regular language.
81958         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
81959         Before, the former was rejected.
81960         * lib/getdate.y (digits_to_date_time): New function, factored
81961         out of ...
81962         (number): ...here.  Just call digits_to_date_time.
81963         (hybrid): New non-terminal to handle an <unsigned number,
81964         signed relative offset> sequence consistently.
81966 2007-11-18  Jim Meyering  <meyering@redhat.com>
81968         Pull my changes from coreutils:
81969         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
81970         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
81971         use of $gnulib_tool_option_extras, so that it's separated from the
81972         preceding argument.
81974         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
81975         * build-aux/bootstrap (cp_mark_as_generated): Create any required
81976         parent destination directories before copying a file into place.
81978 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
81980         bootstrap: work also with 4-argument variant of AC_INIT
81981         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
81983 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
81985         Port test-getaddrinfo to Solaris.
81986         Problem reported by Bruno Haible in
81987         <http://lists.gnu.org/r/bug-gnulib/2007-03/msg00171.html>.
81988         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
81989         explanation of setting 'hints'.
81990         Don't reject an implementation merely because it returns EAI_SERVICE.
81991         (EAI_SERVICE): Define to 0 if not defined.
81993 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
81995         The license of gnu-make and posix-shell is now "GPLed build tool".
81996         * modules/gnu-make (License): Likewise.
81997         * modules/posix-shell (License): Likewise.
81999         New module posix-shell, for determining a POSIX shell
82000         or perhaps something that is close enough to a POSIX shell.
82001         * m4/posix-shell.m4: New file.
82002         * modules/posix-shell: New file.
82004         * MODULES.html.sh: Mention new module.
82006         New module gnu-make, for determining whether we're using GNU Make.
82007         * m4/gnu-make.m4: New file.
82008         * modules/gnu-make: New file.
82009         * MODULES.html.sh: Mention new module.
82011 2007-11-14  Jim Meyering  <meyering@redhat.com>
82013         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
82014         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
82015         use this macro to create a function _definition_.
82016         Remove useless "#undef ARGMATCH_DIE".
82018 2007-11-14  Bruno Haible  <bruno@clisp.org>
82020         * lib/config.charset: Update for OpenBSD 4.1.
82021         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
82023 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
82025         Document 64-bit #if problems in stdint.texi.
82026         * doc/headers/stdint.texi (stdint.h): Mention problems with
82027         64-bit-#if, and how to work around them.
82029         Don't insist on 'long long int' support in the preprocessor.  It
82030         breaks too many things.  For example, PRIdMAX still uses a 'long
82031         long int' format with the latest Sun compiler, even though
82032         HAVE_LONG_LONG_INT isn't defined due to that compiler's
82033         preprocessor problem.  This causes the latest coreutils to dump
82034         core on Solaris 10 sparc with the Sun C compiler.
82035         Instead, fix the 2007-10-16 problem in a different way, by evaluating
82036         the troublesome expressions at configure-time, not at #if-time.
82037         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
82038         preprocessor.
82039         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
82040         compile-time C checks, done at 'configure'-time.
82041         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
82042         * modules/inttypes (Makefile): Substitute the new symbols that
82043         gl_INTTYPES_H now generates.
82044         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
82046 2007-11-12  Bruno Haible  <bruno@clisp.org>
82048         Tests for Unicode character classification functions.
82050         * modules/unictype/bidicategory-byname-tests: New file.
82051         * modules/unictype/bidicategory-name-tests: New file.
82052         * modules/unictype/bidicategory-of-tests: New file.
82053         * modules/unictype/bidicategory-test-tests: New file.
82054         * modules/unictype/block-list-tests: New file.
82055         * modules/unictype/block-of-tests: New file.
82056         * modules/unictype/block-test-tests: New file.
82057         * modules/unictype/category-C-tests: New file.
82058         * modules/unictype/category-Cc-tests: New file.
82059         * modules/unictype/category-Cf-tests: New file.
82060         * modules/unictype/category-Cn-tests: New file.
82061         * modules/unictype/category-Co-tests: New file.
82062         * modules/unictype/category-Cs-tests: New file.
82063         * modules/unictype/category-L-tests: New file.
82064         * modules/unictype/category-Ll-tests: New file.
82065         * modules/unictype/category-Lm-tests: New file.
82066         * modules/unictype/category-Lo-tests: New file.
82067         * modules/unictype/category-Lt-tests: New file.
82068         * modules/unictype/category-Lu-tests: New file.
82069         * modules/unictype/category-M-tests: New file.
82070         * modules/unictype/category-Mc-tests: New file.
82071         * modules/unictype/category-Me-tests: New file.
82072         * modules/unictype/category-Mn-tests: New file.
82073         * modules/unictype/category-N-tests: New file.
82074         * modules/unictype/category-Nd-tests: New file.
82075         * modules/unictype/category-Nl-tests: New file.
82076         * modules/unictype/category-No-tests: New file.
82077         * modules/unictype/category-P-tests: New file.
82078         * modules/unictype/category-Pc-tests: New file.
82079         * modules/unictype/category-Pd-tests: New file.
82080         * modules/unictype/category-Pe-tests: New file.
82081         * modules/unictype/category-Pf-tests: New file.
82082         * modules/unictype/category-Pi-tests: New file.
82083         * modules/unictype/category-Po-tests: New file.
82084         * modules/unictype/category-Ps-tests: New file.
82085         * modules/unictype/category-S-tests: New file.
82086         * modules/unictype/category-Sc-tests: New file.
82087         * modules/unictype/category-Sk-tests: New file.
82088         * modules/unictype/category-Sm-tests: New file.
82089         * modules/unictype/category-So-tests: New file.
82090         * modules/unictype/category-Z-tests: New file.
82091         * modules/unictype/category-Zl-tests: New file.
82092         * modules/unictype/category-Zp-tests: New file.
82093         * modules/unictype/category-Zs-tests: New file.
82094         * modules/unictype/category-and-not-tests: New file.
82095         * modules/unictype/category-and-tests: New file.
82096         * modules/unictype/category-byname-tests: New file.
82097         * modules/unictype/category-name-tests: New file.
82098         * modules/unictype/category-none-tests: New file.
82099         * modules/unictype/category-of-tests: New file.
82100         * modules/unictype/category-or-tests: New file.
82101         * modules/unictype/category-test-withtable-tests: New file.
82102         * modules/unictype/combining-class-tests: New file.
82103         * modules/unictype/ctype-alnum-tests: New file.
82104         * modules/unictype/ctype-alpha-tests: New file.
82105         * modules/unictype/ctype-blank-tests: New file.
82106         * modules/unictype/ctype-cntrl-tests: New file.
82107         * modules/unictype/ctype-digit-tests: New file.
82108         * modules/unictype/ctype-graph-tests: New file.
82109         * modules/unictype/ctype-lower-tests: New file.
82110         * modules/unictype/ctype-print-tests: New file.
82111         * modules/unictype/ctype-punct-tests: New file.
82112         * modules/unictype/ctype-space-tests: New file.
82113         * modules/unictype/ctype-upper-tests: New file.
82114         * modules/unictype/ctype-xdigit-tests: New file.
82115         * modules/unictype/decimal-digit-tests: New file.
82116         * modules/unictype/digit-tests: New file.
82117         * modules/unictype/mirror-tests: New file.
82118         * modules/unictype/numeric-tests: New file.
82119         * modules/unictype/property-alphabetic-tests: New file.
82120         * modules/unictype/property-ascii-hex-digit-tests: New file.
82121         * modules/unictype/property-bidi-arabic-digit-tests: New file.
82122         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
82123         * modules/unictype/property-bidi-block-separator-tests: New file.
82124         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
82125         * modules/unictype/property-bidi-common-separator-tests: New file.
82126         * modules/unictype/property-bidi-control-tests: New file.
82127         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
82128         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
82129         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
82130         * modules/unictype/property-bidi-european-digit-tests: New file.
82131         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
82132         * modules/unictype/property-bidi-left-to-right-tests: New file.
82133         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
82134         * modules/unictype/property-bidi-other-neutral-tests: New file.
82135         * modules/unictype/property-bidi-pdf-tests: New file.
82136         * modules/unictype/property-bidi-segment-separator-tests: New file.
82137         * modules/unictype/property-bidi-whitespace-tests: New file.
82138         * modules/unictype/property-byname-tests: New file.
82139         * modules/unictype/property-combining-tests: New file.
82140         * modules/unictype/property-composite-tests: New file.
82141         * modules/unictype/property-currency-symbol-tests: New file.
82142         * modules/unictype/property-dash-tests: New file.
82143         * modules/unictype/property-decimal-digit-tests: New file.
82144         * modules/unictype/property-default-ignorable-code-point-tests: New file.
82145         * modules/unictype/property-deprecated-tests: New file.
82146         * modules/unictype/property-diacritic-tests: New file.
82147         * modules/unictype/property-extender-tests: New file.
82148         * modules/unictype/property-format-control-tests: New file.
82149         * modules/unictype/property-grapheme-base-tests: New file.
82150         * modules/unictype/property-grapheme-extend-tests: New file.
82151         * modules/unictype/property-grapheme-link-tests: New file.
82152         * modules/unictype/property-hex-digit-tests: New file.
82153         * modules/unictype/property-hyphen-tests: New file.
82154         * modules/unictype/property-id-continue-tests: New file.
82155         * modules/unictype/property-id-start-tests: New file.
82156         * modules/unictype/property-ideographic-tests: New file.
82157         * modules/unictype/property-ids-binary-operator-tests: New file.
82158         * modules/unictype/property-ids-trinary-operator-tests: New file.
82159         * modules/unictype/property-ignorable-control-tests: New file.
82160         * modules/unictype/property-iso-control-tests: New file.
82161         * modules/unictype/property-join-control-tests: New file.
82162         * modules/unictype/property-left-of-pair-tests: New file.
82163         * modules/unictype/property-line-separator-tests: New file.
82164         * modules/unictype/property-logical-order-exception-tests: New file.
82165         * modules/unictype/property-lowercase-tests: New file.
82166         * modules/unictype/property-math-tests: New file.
82167         * modules/unictype/property-non-break-tests: New file.
82168         * modules/unictype/property-not-a-character-tests: New file.
82169         * modules/unictype/property-numeric-tests: New file.
82170         * modules/unictype/property-other-alphabetic-tests: New file.
82171         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
82172         * modules/unictype/property-other-grapheme-extend-tests: New file.
82173         * modules/unictype/property-other-id-continue-tests: New file.
82174         * modules/unictype/property-other-id-start-tests: New file.
82175         * modules/unictype/property-other-lowercase-tests: New file.
82176         * modules/unictype/property-other-math-tests: New file.
82177         * modules/unictype/property-other-uppercase-tests: New file.
82178         * modules/unictype/property-paired-punctuation-tests: New file.
82179         * modules/unictype/property-paragraph-separator-tests: New file.
82180         * modules/unictype/property-pattern-syntax-tests: New file.
82181         * modules/unictype/property-pattern-white-space-tests: New file.
82182         * modules/unictype/property-private-use-tests: New file.
82183         * modules/unictype/property-punctuation-tests: New file.
82184         * modules/unictype/property-quotation-mark-tests: New file.
82185         * modules/unictype/property-radical-tests: New file.
82186         * modules/unictype/property-sentence-terminal-tests: New file.
82187         * modules/unictype/property-soft-dotted-tests: New file.
82188         * modules/unictype/property-space-tests: New file.
82189         * modules/unictype/property-terminal-punctuation-tests: New file.
82190         * modules/unictype/property-test-tests: New file.
82191         * modules/unictype/property-titlecase-tests: New file.
82192         * modules/unictype/property-unassigned-code-value-tests: New file.
82193         * modules/unictype/property-unified-ideograph-tests: New file.
82194         * modules/unictype/property-uppercase-tests: New file.
82195         * modules/unictype/property-variation-selector-tests: New file.
82196         * modules/unictype/property-white-space-tests: New file.
82197         * modules/unictype/property-xid-continue-tests: New file.
82198         * modules/unictype/property-xid-start-tests: New file.
82199         * modules/unictype/property-zero-width-tests: New file.
82200         * modules/unictype/scripts-tests: New file.
82201         * modules/unictype/syntax-c-ident-tests: New file.
82202         * modules/unictype/syntax-c-whitespace-tests: New file.
82203         * modules/unictype/syntax-java-ident-tests: New file.
82204         * modules/unictype/syntax-java-whitespace-tests: New file.
82205         * tests/unictype/test-bidi_byname.c: New file.
82206         * tests/unictype/test-bidi_name.c: New file.
82207         * tests/unictype/test-bidi_of.c: New file.
82208         * tests/unictype/test-bidi_test.c: New file.
82209         * tests/unictype/test-block_list.c: New file.
82210         * tests/unictype/test-block_of.c: New file.
82211         * tests/unictype/test-block_test.c: New file.
82212         * tests/unictype/test-categ_and.c: New file.
82213         * tests/unictype/test-categ_and_not.c: New file.
82214         * tests/unictype/test-categ_byname.c: New file.
82215         * tests/unictype/test-categ_name.c: New file.
82216         * tests/unictype/test-categ_none.c: New file.
82217         * tests/unictype/test-categ_of.c: New file.
82218         * tests/unictype/test-categ_or.c: New file.
82219         * tests/unictype/test-categ_test_withtable.c: New file.
82220         * tests/unictype/test-combining.c: New file.
82221         * tests/unictype/test-decdigit.c: New file.
82222         * tests/unictype/test-digit.c: New file.
82223         * tests/unictype/test-mirror.c: New file.
82224         * tests/unictype/test-numeric.c: New file.
82225         * tests/unictype/test-pr_byname.c: New file.
82226         * tests/unictype/test-pr_test.c: New file.
82227         * tests/unictype/test-predicate-part1.h: New file.
82228         * tests/unictype/test-predicate-part2.h: New file.
82229         * tests/unictype/test-scripts.c: New file.
82230         * tests/unictype/test-sy_c_ident.c: New file.
82231         * tests/unictype/test-sy_java_ident.c: New file.
82233         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
82234         for Unicode 5.0.0.
82235         * tests/unictype/test-categ_Cc.c: Likewise.
82236         * tests/unictype/test-categ_Cf.c: Likewise.
82237         * tests/unictype/test-categ_Cn.c: Likewise.
82238         * tests/unictype/test-categ_Co.c: Likewise.
82239         * tests/unictype/test-categ_Cs.c: Likewise.
82240         * tests/unictype/test-categ_L.c: Likewise.
82241         * tests/unictype/test-categ_Ll.c: Likewise.
82242         * tests/unictype/test-categ_Lm.c: Likewise.
82243         * tests/unictype/test-categ_Lo.c: Likewise.
82244         * tests/unictype/test-categ_Lt.c: Likewise.
82245         * tests/unictype/test-categ_Lu.c: Likewise.
82246         * tests/unictype/test-categ_M.c: Likewise.
82247         * tests/unictype/test-categ_Mc.c: Likewise.
82248         * tests/unictype/test-categ_Me.c: Likewise.
82249         * tests/unictype/test-categ_Mn.c: Likewise.
82250         * tests/unictype/test-categ_N.c: Likewise.
82251         * tests/unictype/test-categ_Nd.c: Likewise.
82252         * tests/unictype/test-categ_Nl.c: Likewise.
82253         * tests/unictype/test-categ_No.c: Likewise.
82254         * tests/unictype/test-categ_P.c: Likewise.
82255         * tests/unictype/test-categ_Pc.c: Likewise.
82256         * tests/unictype/test-categ_Pd.c: Likewise.
82257         * tests/unictype/test-categ_Pe.c: Likewise.
82258         * tests/unictype/test-categ_Pf.c: Likewise.
82259         * tests/unictype/test-categ_Pi.c: Likewise.
82260         * tests/unictype/test-categ_Po.c: Likewise.
82261         * tests/unictype/test-categ_Ps.c: Likewise.
82262         * tests/unictype/test-categ_S.c: Likewise.
82263         * tests/unictype/test-categ_Sc.c: Likewise.
82264         * tests/unictype/test-categ_Sk.c: Likewise.
82265         * tests/unictype/test-categ_Sm.c: Likewise.
82266         * tests/unictype/test-categ_So.c: Likewise.
82267         * tests/unictype/test-categ_Z.c: Likewise.
82268         * tests/unictype/test-categ_Zl.c: Likewise.
82269         * tests/unictype/test-categ_Zp.c: Likewise.
82270         * tests/unictype/test-categ_Zs.c: Likewise.
82271         * tests/unictype/test-ctype_alnum.c: Likewise.
82272         * tests/unictype/test-ctype_alpha.c: Likewise.
82273         * tests/unictype/test-ctype_blank.c: Likewise.
82274         * tests/unictype/test-ctype_cntrl.c: Likewise.
82275         * tests/unictype/test-ctype_digit.c: Likewise.
82276         * tests/unictype/test-ctype_graph.c: Likewise.
82277         * tests/unictype/test-ctype_lower.c: Likewise.
82278         * tests/unictype/test-ctype_print.c: Likewise.
82279         * tests/unictype/test-ctype_punct.c: Likewise.
82280         * tests/unictype/test-ctype_space.c: Likewise.
82281         * tests/unictype/test-ctype_upper.c: Likewise.
82282         * tests/unictype/test-ctype_xdigit.c: Likewise.
82283         * tests/unictype/test-decdigit.h: Likewise.
82284         * tests/unictype/test-digit.h: Likewise.
82285         * tests/unictype/test-numeric.h: Likewise.
82286         * tests/unictype/test-pr_alphabetic.c: Likewise.
82287         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
82288         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
82289         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
82290         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
82291         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
82292         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
82293         * tests/unictype/test-pr_bidi_control.c: Likewise.
82294         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
82295         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
82296         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
82297         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
82298         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
82299         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
82300         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
82301         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
82302         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
82303         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
82304         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
82305         * tests/unictype/test-pr_combining.c: Likewise.
82306         * tests/unictype/test-pr_composite.c: Likewise.
82307         * tests/unictype/test-pr_currency_symbol.c: Likewise.
82308         * tests/unictype/test-pr_dash.c: Likewise.
82309         * tests/unictype/test-pr_decimal_digit.c: Likewise.
82310         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
82311         * tests/unictype/test-pr_deprecated.c: Likewise.
82312         * tests/unictype/test-pr_diacritic.c: Likewise.
82313         * tests/unictype/test-pr_extender.c: Likewise.
82314         * tests/unictype/test-pr_format_control.c: Likewise.
82315         * tests/unictype/test-pr_grapheme_base.c: Likewise.
82316         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
82317         * tests/unictype/test-pr_grapheme_link.c: Likewise.
82318         * tests/unictype/test-pr_hex_digit.c: Likewise.
82319         * tests/unictype/test-pr_hyphen.c: Likewise.
82320         * tests/unictype/test-pr_id_continue.c: Likewise.
82321         * tests/unictype/test-pr_id_start.c: Likewise.
82322         * tests/unictype/test-pr_ideographic.c: Likewise.
82323         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
82324         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
82325         * tests/unictype/test-pr_ignorable_control.c: Likewise.
82326         * tests/unictype/test-pr_iso_control.c: Likewise.
82327         * tests/unictype/test-pr_join_control.c: Likewise.
82328         * tests/unictype/test-pr_left_of_pair.c: Likewise.
82329         * tests/unictype/test-pr_line_separator.c: Likewise.
82330         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
82331         * tests/unictype/test-pr_lowercase.c: Likewise.
82332         * tests/unictype/test-pr_math.c: Likewise.
82333         * tests/unictype/test-pr_non_break.c: Likewise.
82334         * tests/unictype/test-pr_not_a_character.c: Likewise.
82335         * tests/unictype/test-pr_numeric.c: Likewise.
82336         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
82337         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
82338         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
82339         * tests/unictype/test-pr_other_id_continue.c: Likewise.
82340         * tests/unictype/test-pr_other_id_start.c: Likewise.
82341         * tests/unictype/test-pr_other_lowercase.c: Likewise.
82342         * tests/unictype/test-pr_other_math.c: Likewise.
82343         * tests/unictype/test-pr_other_uppercase.c: Likewise.
82344         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
82345         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
82346         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
82347         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
82348         * tests/unictype/test-pr_private_use.c: Likewise.
82349         * tests/unictype/test-pr_punctuation.c: Likewise.
82350         * tests/unictype/test-pr_quotation_mark.c: Likewise.
82351         * tests/unictype/test-pr_radical.c: Likewise.
82352         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
82353         * tests/unictype/test-pr_soft_dotted.c: Likewise.
82354         * tests/unictype/test-pr_space.c: Likewise.
82355         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
82356         * tests/unictype/test-pr_titlecase.c: Likewise.
82357         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
82358         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
82359         * tests/unictype/test-pr_uppercase.c: Likewise.
82360         * tests/unictype/test-pr_variation_selector.c: Likewise.
82361         * tests/unictype/test-pr_white_space.c: Likewise.
82362         * tests/unictype/test-pr_xid_continue.c: Likewise.
82363         * tests/unictype/test-pr_xid_start.c: Likewise.
82364         * tests/unictype/test-pr_zero_width.c: Likewise.
82365         * tests/unictype/test-sy_c_whitespace.c: Likewise.
82366         * tests/unictype/test-sy_java_whitespace.c: Likewise.
82368 2007-11-12  Bruno Haible  <bruno@clisp.org>
82370         Unicode character classification functions.
82371         * lib/unictype.h: New file.
82372         * modules/unictype/base: New file.
82373         * modules/unictype/category-L: New file.
82374         * modules/unictype/category-Lu: New file.
82375         * modules/unictype/category-Ll: New file.
82376         * modules/unictype/category-Lt: New file.
82377         * modules/unictype/category-Lm: New file.
82378         * modules/unictype/category-Lo: New file.
82379         * modules/unictype/category-M: New file.
82380         * modules/unictype/category-Mn: New file.
82381         * modules/unictype/category-Mc: New file.
82382         * modules/unictype/category-Me: New file.
82383         * modules/unictype/category-N: New file.
82384         * modules/unictype/category-Nd: New file.
82385         * modules/unictype/category-Nl: New file.
82386         * modules/unictype/category-No: New file.
82387         * modules/unictype/category-P: New file.
82388         * modules/unictype/category-Pc: New file.
82389         * modules/unictype/category-Pd: New file.
82390         * modules/unictype/category-Ps: New file.
82391         * modules/unictype/category-Pe: New file.
82392         * modules/unictype/category-Pi: New file.
82393         * modules/unictype/category-Pf: New file.
82394         * modules/unictype/category-Po: New file.
82395         * modules/unictype/category-S: New file.
82396         * modules/unictype/category-Sm: New file.
82397         * modules/unictype/category-Sc: New file.
82398         * modules/unictype/category-Sk: New file.
82399         * modules/unictype/category-So: New file.
82400         * modules/unictype/category-Z: New file.
82401         * modules/unictype/category-Zs: New file.
82402         * modules/unictype/category-Zl: New file.
82403         * modules/unictype/category-Zp: New file.
82404         * modules/unictype/category-C: New file.
82405         * modules/unictype/category-Cc: New file.
82406         * modules/unictype/category-Cf: New file.
82407         * modules/unictype/category-Cs: New file.
82408         * modules/unictype/category-Co: New file.
82409         * modules/unictype/category-Cn: New file.
82410         * modules/unictype/category-or: New file.
82411         * modules/unictype/category-of: New file.
82412         * modules/unictype/category-test: New file.
82413         * modules/unictype/category-test-withtable: New file.
82414         * modules/unictype/category-byname: New file.
82415         * modules/unictype/category-none: New file.
82416         * modules/unictype/category-and: New file.
82417         * modules/unictype/category-and-not: New file.
82418         * modules/unictype/category-name: New file.
82419         * modules/unictype/combining-class: New file.
82420         * modules/unictype/category-all: New file.
82421         * modules/unictype/bidicategory-all: New file.
82422         * modules/unictype/bidicategory-byname: New file.
82423         * modules/unictype/bidicategory-name: New file.
82424         * modules/unictype/bidicategory-of: New file.
82425         * modules/unictype/bidicategory-test: New file.
82426         * modules/unictype/decimal-digit: New file.
82427         * modules/unictype/digit: New file.
82428         * modules/unictype/numeric: New file.
82429         * modules/unictype/mirror: New file.
82430         * modules/unictype/property-white-space: New file.
82431         * modules/unictype/property-alphabetic: New file.
82432         * modules/unictype/property-other-alphabetic: New file.
82433         * modules/unictype/property-not-a-character: New file.
82434         * modules/unictype/property-default-ignorable-code-point: New file.
82435         * modules/unictype/property-other-default-ignorable-code-point: New
82436         file.
82437         * modules/unictype/property-deprecated: New file.
82438         * modules/unictype/property-logical-order-exception: New file.
82439         * modules/unictype/property-variation-selector: New file.
82440         * modules/unictype/property-private-use: New file.
82441         * modules/unictype/property-unassigned-code-value: New file.
82442         * modules/unictype/property-uppercase: New file.
82443         * modules/unictype/property-other-uppercase: New file.
82444         * modules/unictype/property-lowercase: New file.
82445         * modules/unictype/property-other-lowercase: New file.
82446         * modules/unictype/property-titlecase: New file.
82447         * modules/unictype/property-soft-dotted: New file.
82448         * modules/unictype/property-id-start: New file.
82449         * modules/unictype/property-other-id-start: New file.
82450         * modules/unictype/property-id-continue: New file.
82451         * modules/unictype/property-other-id-continue: New file.
82452         * modules/unictype/property-xid-start: New file.
82453         * modules/unictype/property-xid-continue: New file.
82454         * modules/unictype/property-pattern-white-space: New file.
82455         * modules/unictype/property-pattern-syntax: New file.
82456         * modules/unictype/property-join-control: New file.
82457         * modules/unictype/property-grapheme-base: New file.
82458         * modules/unictype/property-grapheme-extend: New file.
82459         * modules/unictype/property-other-grapheme-extend: New file.
82460         * modules/unictype/property-grapheme-link: New file.
82461         * modules/unictype/property-bidi-control: New file.
82462         * modules/unictype/property-bidi-left-to-right: New file.
82463         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
82464         * modules/unictype/property-bidi-arabic-right-to-left: New file.
82465         * modules/unictype/property-bidi-european-digit: New file.
82466         * modules/unictype/property-bidi-eur-num-separator: New file.
82467         * modules/unictype/property-bidi-eur-num-terminator: New file.
82468         * modules/unictype/property-bidi-arabic-digit: New file.
82469         * modules/unictype/property-bidi-common-separator: New file.
82470         * modules/unictype/property-bidi-block-separator: New file.
82471         * modules/unictype/property-bidi-segment-separator: New file.
82472         * modules/unictype/property-bidi-whitespace: New file.
82473         * modules/unictype/property-bidi-non-spacing-mark: New file.
82474         * modules/unictype/property-bidi-boundary-neutral: New file.
82475         * modules/unictype/property-bidi-pdf: New file.
82476         * modules/unictype/property-bidi-embedding-or-override: New file.
82477         * modules/unictype/property-bidi-other-neutral: New file.
82478         * modules/unictype/property-hex-digit: New file.
82479         * modules/unictype/property-ascii-hex-digit: New file.
82480         * modules/unictype/property-ideographic: New file.
82481         * modules/unictype/property-unified-ideograph: New file.
82482         * modules/unictype/property-radical: New file.
82483         * modules/unictype/property-ids-binary-operator: New file.
82484         * modules/unictype/property-ids-trinary-operator: New file.
82485         * modules/unictype/property-zero-width: New file.
82486         * modules/unictype/property-space: New file.
82487         * modules/unictype/property-non-break: New file.
82488         * modules/unictype/property-iso-control: New file.
82489         * modules/unictype/property-format-control: New file.
82490         * modules/unictype/property-dash: New file.
82491         * modules/unictype/property-hyphen: New file.
82492         * modules/unictype/property-punctuation: New file.
82493         * modules/unictype/property-line-separator: New file.
82494         * modules/unictype/property-paragraph-separator: New file.
82495         * modules/unictype/property-quotation-mark: New file.
82496         * modules/unictype/property-sentence-terminal: New file.
82497         * modules/unictype/property-terminal-punctuation: New file.
82498         * modules/unictype/property-currency-symbol: New file.
82499         * modules/unictype/property-math: New file.
82500         * modules/unictype/property-other-math: New file.
82501         * modules/unictype/property-paired-punctuation: New file.
82502         * modules/unictype/property-left-of-pair: New file.
82503         * modules/unictype/property-combining: New file.
82504         * modules/unictype/property-composite: New file.
82505         * modules/unictype/property-decimal-digit: New file.
82506         * modules/unictype/property-numeric: New file.
82507         * modules/unictype/property-diacritic: New file.
82508         * modules/unictype/property-extender: New file.
82509         * modules/unictype/property-ignorable-control: New file.
82510         * modules/unictype/property-test: New file.
82511         * modules/unictype/property-byname: New file.
82512         * modules/unictype/property-all: New file.
82513         * modules/unictype/scripts: New file.
82514         * modules/unictype/scripts-all: New file.
82515         * modules/unictype/block-of: New file.
82516         * modules/unictype/block-test: New file.
82517         * modules/unictype/block-list: New file.
82518         * modules/unictype/block-all: New file.
82519         * modules/unictype/syntax-c-whitespace: New file.
82520         * modules/unictype/syntax-java-whitespace: New file.
82521         * modules/unictype/syntax-c-ident: New file.
82522         * modules/unictype/syntax-java-ident: New file.
82523         * modules/unictype/ctype-alnum: New file.
82524         * modules/unictype/ctype-alpha: New file.
82525         * modules/unictype/ctype-cntrl: New file.
82526         * modules/unictype/ctype-digit: New file.
82527         * modules/unictype/ctype-graph: New file.
82528         * modules/unictype/ctype-lower: New file.
82529         * modules/unictype/ctype-print: New file.
82530         * modules/unictype/ctype-punct: New file.
82531         * modules/unictype/ctype-space: New file.
82532         * modules/unictype/ctype-upper: New file.
82533         * modules/unictype/ctype-xdigit: New file.
82534         * modules/unictype/ctype-blank: New file.
82535         * lib/unictype/bidi_byname.c: New file.
82536         * lib/unictype/bidi_name.c: New file.
82537         * lib/unictype/bidi_of.c: New file.
82538         * lib/unictype/bidi_test.c: New file.
82539         * lib/unictype/bitmap.h: New file.
82540         * lib/unictype/block_test.c: New file.
82541         * lib/unictype/blocks.c: New file.
82542         * lib/unictype/categ_C.c: New file.
82543         * lib/unictype/categ_Cc.c: New file.
82544         * lib/unictype/categ_Cf.c: New file.
82545         * lib/unictype/categ_Cn.c: New file.
82546         * lib/unictype/categ_Co.c: New file.
82547         * lib/unictype/categ_Cs.c: New file.
82548         * lib/unictype/categ_L.c: New file.
82549         * lib/unictype/categ_Ll.c: New file.
82550         * lib/unictype/categ_Lm.c: New file.
82551         * lib/unictype/categ_Lo.c: New file.
82552         * lib/unictype/categ_Lt.c: New file.
82553         * lib/unictype/categ_Lu.c: New file.
82554         * lib/unictype/categ_M.c: New file.
82555         * lib/unictype/categ_Mc.c: New file.
82556         * lib/unictype/categ_Me.c: New file.
82557         * lib/unictype/categ_Mn.c: New file.
82558         * lib/unictype/categ_N.c: New file.
82559         * lib/unictype/categ_Nd.c: New file.
82560         * lib/unictype/categ_Nl.c: New file.
82561         * lib/unictype/categ_No.c: New file.
82562         * lib/unictype/categ_P.c: New file.
82563         * lib/unictype/categ_Pc.c: New file.
82564         * lib/unictype/categ_Pd.c: New file.
82565         * lib/unictype/categ_Pe.c: New file.
82566         * lib/unictype/categ_Pf.c: New file.
82567         * lib/unictype/categ_Pi.c: New file.
82568         * lib/unictype/categ_Po.c: New file.
82569         * lib/unictype/categ_Ps.c: New file.
82570         * lib/unictype/categ_S.c: New file.
82571         * lib/unictype/categ_Sc.c: New file.
82572         * lib/unictype/categ_Sk.c: New file.
82573         * lib/unictype/categ_Sm.c: New file.
82574         * lib/unictype/categ_So.c: New file.
82575         * lib/unictype/categ_Z.c: New file.
82576         * lib/unictype/categ_Zl.c: New file.
82577         * lib/unictype/categ_Zp.c: New file.
82578         * lib/unictype/categ_Zs.c: New file.
82579         * lib/unictype/categ_and.c: New file.
82580         * lib/unictype/categ_and_not.c: New file.
82581         * lib/unictype/categ_byname.c: New file.
82582         * lib/unictype/categ_name.c: New file.
82583         * lib/unictype/categ_none.c: New file.
82584         * lib/unictype/categ_of.c: New file.
82585         * lib/unictype/categ_or.c: New file.
82586         * lib/unictype/categ_test.c: New file.
82587         * lib/unictype/combining.c: New file.
82588         * lib/unictype/ctype_alnum.c: New file.
82589         * lib/unictype/ctype_alpha.c: New file.
82590         * lib/unictype/ctype_blank.c: New file.
82591         * lib/unictype/ctype_cntrl.c: New file.
82592         * lib/unictype/ctype_digit.c: New file.
82593         * lib/unictype/ctype_graph.c: New file.
82594         * lib/unictype/ctype_lower.c: New file.
82595         * lib/unictype/ctype_print.c: New file.
82596         * lib/unictype/ctype_punct.c: New file.
82597         * lib/unictype/ctype_space.c: New file.
82598         * lib/unictype/ctype_upper.c: New file.
82599         * lib/unictype/ctype_xdigit.c: New file.
82600         * lib/unictype/decdigit.c: New file.
82601         * lib/unictype/digit.c: New file.
82602         * lib/unictype/identsyntaxmap.h: New file.
82603         * lib/unictype/mirror.c: New file.
82604         * lib/unictype/numeric.c: New file.
82605         * lib/unictype/pr_alphabetic.c: New file.
82606         * lib/unictype/pr_ascii_hex_digit.c: New file.
82607         * lib/unictype/pr_bidi_arabic_digit.c: New file.
82608         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
82609         * lib/unictype/pr_bidi_block_separator.c: New file.
82610         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
82611         * lib/unictype/pr_bidi_common_separator.c: New file.
82612         * lib/unictype/pr_bidi_control.c: New file.
82613         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
82614         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
82615         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
82616         * lib/unictype/pr_bidi_european_digit.c: New file.
82617         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
82618         * lib/unictype/pr_bidi_left_to_right.c: New file.
82619         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
82620         * lib/unictype/pr_bidi_other_neutral.c: New file.
82621         * lib/unictype/pr_bidi_pdf.c: New file.
82622         * lib/unictype/pr_bidi_segment_separator.c: New file.
82623         * lib/unictype/pr_bidi_whitespace.c: New file.
82624         * lib/unictype/pr_byname.c: New file.
82625         * lib/unictype/pr_byname.gperf: New file.
82626         * lib/unictype/pr_combining.c: New file.
82627         * lib/unictype/pr_composite.c: New file.
82628         * lib/unictype/pr_currency_symbol.c: New file.
82629         * lib/unictype/pr_dash.c: New file.
82630         * lib/unictype/pr_decimal_digit.c: New file.
82631         * lib/unictype/pr_default_ignorable_code_point.c: New file.
82632         * lib/unictype/pr_deprecated.c: New file.
82633         * lib/unictype/pr_diacritic.c: New file.
82634         * lib/unictype/pr_extender.c: New file.
82635         * lib/unictype/pr_format_control.c: New file.
82636         * lib/unictype/pr_grapheme_base.c: New file.
82637         * lib/unictype/pr_grapheme_extend.c: New file.
82638         * lib/unictype/pr_grapheme_link.c: New file.
82639         * lib/unictype/pr_hex_digit.c: New file.
82640         * lib/unictype/pr_hyphen.c: New file.
82641         * lib/unictype/pr_id_continue.c: New file.
82642         * lib/unictype/pr_id_start.c: New file.
82643         * lib/unictype/pr_ideographic.c: New file.
82644         * lib/unictype/pr_ids_binary_operator.c: New file.
82645         * lib/unictype/pr_ids_trinary_operator.c: New file.
82646         * lib/unictype/pr_ignorable_control.c: New file.
82647         * lib/unictype/pr_iso_control.c: New file.
82648         * lib/unictype/pr_join_control.c: New file.
82649         * lib/unictype/pr_left_of_pair.c: New file.
82650         * lib/unictype/pr_line_separator.c: New file.
82651         * lib/unictype/pr_logical_order_exception.c: New file.
82652         * lib/unictype/pr_lowercase.c: New file.
82653         * lib/unictype/pr_math.c: New file.
82654         * lib/unictype/pr_non_break.c: New file.
82655         * lib/unictype/pr_not_a_character.c: New file.
82656         * lib/unictype/pr_numeric.c: New file.
82657         * lib/unictype/pr_other_alphabetic.c: New file.
82658         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
82659         * lib/unictype/pr_other_grapheme_extend.c: New file.
82660         * lib/unictype/pr_other_id_continue.c: New file.
82661         * lib/unictype/pr_other_id_start.c: New file.
82662         * lib/unictype/pr_other_lowercase.c: New file.
82663         * lib/unictype/pr_other_math.c: New file.
82664         * lib/unictype/pr_other_uppercase.c: New file.
82665         * lib/unictype/pr_paired_punctuation.c: New file.
82666         * lib/unictype/pr_paragraph_separator.c: New file.
82667         * lib/unictype/pr_pattern_syntax.c: New file.
82668         * lib/unictype/pr_pattern_white_space.c: New file.
82669         * lib/unictype/pr_private_use.c: New file.
82670         * lib/unictype/pr_punctuation.c: New file.
82671         * lib/unictype/pr_quotation_mark.c: New file.
82672         * lib/unictype/pr_radical.c: New file.
82673         * lib/unictype/pr_sentence_terminal.c: New file.
82674         * lib/unictype/pr_soft_dotted.c: New file.
82675         * lib/unictype/pr_space.c: New file.
82676         * lib/unictype/pr_terminal_punctuation.c: New file.
82677         * lib/unictype/pr_test.c: New file.
82678         * lib/unictype/pr_titlecase.c: New file.
82679         * lib/unictype/pr_unassigned_code_value.c: New file.
82680         * lib/unictype/pr_unified_ideograph.c: New file.
82681         * lib/unictype/pr_uppercase.c: New file.
82682         * lib/unictype/pr_variation_selector.c: New file.
82683         * lib/unictype/pr_white_space.c: New file.
82684         * lib/unictype/pr_xid_continue.c: New file.
82685         * lib/unictype/pr_xid_start.c: New file.
82686         * lib/unictype/pr_zero_width.c: New file.
82687         * lib/unictype/scripts.c: New file.
82688         * lib/unictype/sy_c_ident.c: New file.
82689         * lib/unictype/sy_c_whitespace.c: New file.
82690         * lib/unictype/sy_java_ident.c: New file.
82691         * lib/unictype/sy_java_whitespace.c: New file.
82693         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
82694         Unicode 5.0.0.
82695         * lib/unictype/blocks.h: Likewise.
82696         * lib/unictype/categ_C.h: Likewise.
82697         * lib/unictype/categ_Cc.h: Likewise.
82698         * lib/unictype/categ_Cf.h: Likewise.
82699         * lib/unictype/categ_Cn.h: Likewise.
82700         * lib/unictype/categ_Co.h: Likewise.
82701         * lib/unictype/categ_Cs.h: Likewise.
82702         * lib/unictype/categ_L.h: Likewise.
82703         * lib/unictype/categ_Ll.h: Likewise.
82704         * lib/unictype/categ_Lm.h: Likewise.
82705         * lib/unictype/categ_Lo.h: Likewise.
82706         * lib/unictype/categ_Lt.h: Likewise.
82707         * lib/unictype/categ_Lu.h: Likewise.
82708         * lib/unictype/categ_M.h: Likewise.
82709         * lib/unictype/categ_Mc.h: Likewise.
82710         * lib/unictype/categ_Me.h: Likewise.
82711         * lib/unictype/categ_Mn.h: Likewise.
82712         * lib/unictype/categ_N.h: Likewise.
82713         * lib/unictype/categ_Nd.h: Likewise.
82714         * lib/unictype/categ_Nl.h: Likewise.
82715         * lib/unictype/categ_No.h: Likewise.
82716         * lib/unictype/categ_P.h: Likewise.
82717         * lib/unictype/categ_Pc.h: Likewise.
82718         * lib/unictype/categ_Pd.h: Likewise.
82719         * lib/unictype/categ_Pe.h: Likewise.
82720         * lib/unictype/categ_Pf.h: Likewise.
82721         * lib/unictype/categ_Pi.h: Likewise.
82722         * lib/unictype/categ_Po.h: Likewise.
82723         * lib/unictype/categ_Ps.h: Likewise.
82724         * lib/unictype/categ_S.h: Likewise.
82725         * lib/unictype/categ_Sc.h: Likewise.
82726         * lib/unictype/categ_Sk.h: Likewise.
82727         * lib/unictype/categ_Sm.h: Likewise.
82728         * lib/unictype/categ_So.h: Likewise.
82729         * lib/unictype/categ_Z.h: Likewise.
82730         * lib/unictype/categ_Zl.h: Likewise.
82731         * lib/unictype/categ_Zp.h: Likewise.
82732         * lib/unictype/categ_Zs.h: Likewise.
82733         * lib/unictype/categ_of.h: Likewise.
82734         * lib/unictype/combining.h: Likewise.
82735         * lib/unictype/ctype_alnum.h: Likewise.
82736         * lib/unictype/ctype_alpha.h: Likewise.
82737         * lib/unictype/ctype_blank.h: Likewise.
82738         * lib/unictype/ctype_cntrl.h: Likewise.
82739         * lib/unictype/ctype_digit.h: Likewise.
82740         * lib/unictype/ctype_graph.h: Likewise.
82741         * lib/unictype/ctype_lower.h: Likewise.
82742         * lib/unictype/ctype_print.h: Likewise.
82743         * lib/unictype/ctype_punct.h: Likewise.
82744         * lib/unictype/ctype_space.h: Likewise.
82745         * lib/unictype/ctype_upper.h: Likewise.
82746         * lib/unictype/ctype_xdigit.h: Likewise.
82747         * lib/unictype/decdigit.h: Likewise.
82748         * lib/unictype/digit.h: Likewise.
82749         * lib/unictype/mirror.h: Likewise.
82750         * lib/unictype/numeric.h: Likewise.
82751         * lib/unictype/pr_alphabetic.h: Likewise.
82752         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
82753         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
82754         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
82755         * lib/unictype/pr_bidi_block_separator.h: Likewise.
82756         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
82757         * lib/unictype/pr_bidi_common_separator.h: Likewise.
82758         * lib/unictype/pr_bidi_control.h: Likewise.
82759         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
82760         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
82761         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
82762         * lib/unictype/pr_bidi_european_digit.h: Likewise.
82763         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
82764         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
82765         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
82766         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
82767         * lib/unictype/pr_bidi_pdf.h: Likewise.
82768         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
82769         * lib/unictype/pr_bidi_whitespace.h: Likewise.
82770         * lib/unictype/pr_combining.h: Likewise.
82771         * lib/unictype/pr_composite.h: Likewise.
82772         * lib/unictype/pr_currency_symbol.h: Likewise.
82773         * lib/unictype/pr_dash.h: Likewise.
82774         * lib/unictype/pr_decimal_digit.h: Likewise.
82775         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
82776         * lib/unictype/pr_deprecated.h: Likewise.
82777         * lib/unictype/pr_diacritic.h: Likewise.
82778         * lib/unictype/pr_extender.h: Likewise.
82779         * lib/unictype/pr_format_control.h: Likewise.
82780         * lib/unictype/pr_grapheme_base.h: Likewise.
82781         * lib/unictype/pr_grapheme_extend.h: Likewise.
82782         * lib/unictype/pr_grapheme_link.h: Likewise.
82783         * lib/unictype/pr_hex_digit.h: Likewise.
82784         * lib/unictype/pr_hyphen.h: Likewise.
82785         * lib/unictype/pr_id_continue.h: Likewise.
82786         * lib/unictype/pr_id_start.h: Likewise.
82787         * lib/unictype/pr_ideographic.h: Likewise.
82788         * lib/unictype/pr_ids_binary_operator.h: Likewise.
82789         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
82790         * lib/unictype/pr_ignorable_control.h: Likewise.
82791         * lib/unictype/pr_iso_control.h: Likewise.
82792         * lib/unictype/pr_join_control.h: Likewise.
82793         * lib/unictype/pr_left_of_pair.h: Likewise.
82794         * lib/unictype/pr_line_separator.h: Likewise.
82795         * lib/unictype/pr_logical_order_exception.h: Likewise.
82796         * lib/unictype/pr_lowercase.h: Likewise.
82797         * lib/unictype/pr_math.h: Likewise.
82798         * lib/unictype/pr_non_break.h: Likewise.
82799         * lib/unictype/pr_not_a_character.h: Likewise.
82800         * lib/unictype/pr_numeric.h: Likewise.
82801         * lib/unictype/pr_other_alphabetic.h: Likewise.
82802         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
82803         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
82804         * lib/unictype/pr_other_id_continue.h: Likewise.
82805         * lib/unictype/pr_other_id_start.h: Likewise.
82806         * lib/unictype/pr_other_lowercase.h: Likewise.
82807         * lib/unictype/pr_other_math.h: Likewise.
82808         * lib/unictype/pr_other_uppercase.h: Likewise.
82809         * lib/unictype/pr_paired_punctuation.h: Likewise.
82810         * lib/unictype/pr_paragraph_separator.h: Likewise.
82811         * lib/unictype/pr_pattern_syntax.h: Likewise.
82812         * lib/unictype/pr_pattern_white_space.h: Likewise.
82813         * lib/unictype/pr_private_use.h: Likewise.
82814         * lib/unictype/pr_punctuation.h: Likewise.
82815         * lib/unictype/pr_quotation_mark.h: Likewise.
82816         * lib/unictype/pr_radical.h: Likewise.
82817         * lib/unictype/pr_sentence_terminal.h: Likewise.
82818         * lib/unictype/pr_soft_dotted.h: Likewise.
82819         * lib/unictype/pr_space.h: Likewise.
82820         * lib/unictype/pr_terminal_punctuation.h: Likewise.
82821         * lib/unictype/pr_titlecase.h: Likewise.
82822         * lib/unictype/pr_unassigned_code_value.h: Likewise.
82823         * lib/unictype/pr_unified_ideograph.h: Likewise.
82824         * lib/unictype/pr_uppercase.h: Likewise.
82825         * lib/unictype/pr_variation_selector.h: Likewise.
82826         * lib/unictype/pr_white_space.h: Likewise.
82827         * lib/unictype/pr_xid_continue.h: Likewise.
82828         * lib/unictype/pr_xid_start.h: Likewise.
82829         * lib/unictype/pr_zero_width.h: Likewise.
82830         * lib/unictype/scripts.h: Likewise.
82831         * lib/unictype/scripts_byname.gperf: Likewise.
82832         * lib/unictype/sy_c_ident.h: Likewise.
82833         * lib/unictype/sy_c_whitespace.h: Likewise.
82834         * lib/unictype/sy_java_ident.h: Likewise.
82835         * lib/unictype/sy_java_whitespace.h: Likewise.
82837         * lib/unictype/Makefile: New file.
82838         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
82839         glibc.
82840         * lib/unictype/3level.h: New file, copied from glibc.
82841         * lib/unictype/3levelbit.h: New file.
82843 2007-11-11  Bruno Haible  <bruno@clisp.org>
82845         * modules/gperf: New file.
82846         * modules/iconv_open (Depends-on): Add it.
82847         (Makefile.am): Remove the GPERF definition.
82849 2007-11-11  Bruno Haible  <bruno@clisp.org>
82851         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
82852         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
82854 2007-11-11  Bruno Haible  <bruno@clisp.org>
82856         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
82857         (usage): Remove function.
82859 2007-11-11  Bruno Haible  <bruno@clisp.org>
82861         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
82862         gl_FUNC_CEILF_LIBS.
82863         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
82864         gl_FUNC_CEIL_LIBS.
82865         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
82866         gl_FUNC_CEILL_LIBS.
82867         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
82868         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
82869         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
82871 2007-11-11  Bruno Haible  <bruno@clisp.org>
82873         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
82874         roundf were declared but do not exist on functions.
82875         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
82876         roundl were declared but do not exist on functions.
82877         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
82878         HAVE_FLOORL_AND_CEILL, respectively.
82879         Needed for Sun C on Solaris 10.
82881 2007-11-11  Bruno Haible  <bruno@clisp.org>
82883         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
82884         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
82885         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
82886         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
82887         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
82888         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
82889         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
82890         HAVE_DECL_ROUNDF.
82891         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
82892         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
82893         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
82894         of HAVE_DECL_ROUND*.
82895         * modules/math (Makefile.am): Update.
82897 2007-11-10  Bruno Haible  <bruno@clisp.org>
82899         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
82900         ptrdiff_t as m4/intl.m4.
82902 2007-11-10  Jim Meyering  <meyering@redhat.com>
82904         Avoid link failure for the argmatch test.
82905         * tests/test-argmatch.c (usage): Define function to avoid a link
82906         failure: argmatch_die requires a usage function.
82908 2007-11-09  Bruno Haible  <bruno@clisp.org>
82910         * doc/functions/snprintf.texi: Mention BeOS deficiency.
82911         * doc/functions/vsnprintf.texi: Likewise.
82912         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
82913         with a size argument < 2.
82915 2007-11-09  Bruno Haible  <bruno@clisp.org>
82917         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
82918         buffer. Fixes an inefficiency introduced on 2007-11-03.
82920 2007-11-09  Bruno Haible  <bruno@clisp.org>
82922         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
82923         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
82925 2007-11-08  Jim Meyering  <meyering@redhat.com>
82927         Change cache variable name prefix "jm_" to "gl_" everywhere.
82928         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
82929         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
82930         * m4/uptime.m4: s/gl_/jm_/
82932 2007-11-07  Bruno Haible  <bruno@clisp.org>
82934         Update to GNU gettext 0.17.
82935         * m4/intl.m4: Update to GNU gettext 0.17.
82936         * m4/po.m4: Likewise.
82937         * modules/gettext (Files): Remove m4/ulonglong.m4.
82938         (configure.ac): Require gettext infrastructure from version 0.17.
82940 2007-11-06  Bruno Haible  <bruno@clisp.org>
82942         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
82943         symbolic values are not defined in a public header.
82944         * lib/freadable.c (freadable) [QNX]: Likewise.
82945         * lib/freadahead.c (freadahead) [QNX]: Likewise.
82946         * lib/freading.c (freading) [QNX]: Likewise.
82947         * lib/fseterr.c (fseterr) [QNX]: Likewise.
82948         * lib/fwritable.c (fwritable) [QNX]: Likewise.
82949         * lib/fwriting.c (fwriting) [QNX]: Likewise.
82950         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
82951         Reported by Alain Magloire.
82953         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
82955 2007-11-05  Bruno Haible  <bruno@clisp.org>
82957         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
82958         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
82959         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
82960         Reported by Eric Blake.
82962 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82963             Bruno Haible  <bruno@clisp.org>
82965         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
82966         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
82967         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
82968         (malloc): Undefine also before including <stdlib.h>.
82969         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
82970         Needed on OSF/1 4.0.
82972 2007-11-05  Jim Meyering  <meyering@redhat.com>
82974         git-version-gen: sync from coreutils.
82975         * build-aux/git-version-gen: Add comments.
82976         Change the first '-' to '.' in the snapshot version string,
82977         e.g., 6.9-377-08144 -> 6.9.377-08144
82978         Remove first parameter.
82979         Don't declare a version "-dirty" merely because a time
82980         stamp has changed.
82982 2007-11-04  Bruno Haible  <bruno@clisp.org>
82984         * lib/lock.h: Protect all macro definitions containing an 'if'
82985         statement through a "do { ... } while (0)".
82986         * lib/tls.h: Likewise.
82988 2007-11-04  Bruno Haible  <bruno@clisp.org>
82990         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
82992 2007-11-04  Bruno Haible  <bruno@clisp.org>
82994         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
82995         * modules/fprintf-posix (Depends-on): Add nocrash.
82996         * modules/snprintf-posix (Depends-on): Likewise.
82997         * modules/sprintf-posix (Depends-on): Likewise.
82998         * modules/vasnprintf-posix (Depends-on): Likewise.
82999         * modules/vasprintf-posix (Depends-on): Likewise.
83000         * modules/vfprintf-posix (Depends-on): Likewise.
83001         * modules/vsnprintf-posix (Depends-on): Likewise.
83002         * modules/vsprintf-posix (Depends-on): Likewise.
83003         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
83004         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
83005         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
83006         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
83007         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
83008         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
83009         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
83011 2007-11-04  Bruno Haible  <bruno@clisp.org>
83013         * modules/nocrash: New file.
83014         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
83015         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
83017 2007-11-04  Bruno Haible  <bruno@clisp.org>
83019         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
83020         precision handling.
83021         * tests/test-vasprintf-posix.c (test_function): Likewise.
83022         * tests/test-snprintf-posix.h (test_function): Likewise.
83023         * tests/test-sprintf-posix.h (test_function): Likewise.
83025         Fix *printf behaviour for large precisions on mingw and BeOS.
83026         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
83027         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
83028         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
83029         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
83030         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
83031         gl_PRINTF_PRECISION and test its result. Invoke
83032         gl_PREREQ_VASNPRINTF_PRECISION.
83033         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
83034         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
83035         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
83036         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
83037         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
83038         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
83039         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
83040         * doc/functions/fprintf.texi: Update.
83041         * doc/functions/printf.texi: Update.
83042         * doc/functions/snprintf.texi: Update.
83043         * doc/functions/sprintf.texi: Update.
83044         * doc/functions/vfprintf.texi: Update.
83045         * doc/functions/vprintf.texi: Update.
83046         * doc/functions/vsnprintf.texi: Update.
83047         * doc/functions/vsprintf.texi: Update.
83049 2007-11-04  Bruno Haible  <bruno@clisp.org>
83051         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
83053 2007-11-04  Bruno Haible  <bruno@clisp.org>
83055         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
83056         Reported by Sylvain Beucler <beuc@gnu.org>.
83058 2007-11-03  Bruno Haible  <bruno@clisp.org>
83060         * tests/test-fprintf-posix2.sh: New file.
83061         * tests/test-fprintf-posix2.c: New file.
83062         * modules/fprintf-posix-tests (Files): Add them.
83063         (TESTS): Add test-fprintf-posix2.sh.
83064         (configure.ac): Check for getrlimit and setrlimit.
83065         (check_PROGRAMS): Add test-fprintf-posix2.
83067         * tests/test-printf-posix2.sh: New file.
83068         * tests/test-printf-posix2.c: New file.
83069         * modules/printf-posix-tests (Files): Add them.
83070         (TESTS): Add test-printf-posix2.sh.
83071         (configure.ac): Check for getrlimit and setrlimit.
83072         (check_PROGRAMS): Add test-printf-posix2.
83074         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
83075         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
83076         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
83077         (decode_double): New function, copied from decode_long_double.
83078         (scale10_round_decimal_decoded): New function, extracted from
83079         scale10_round_decimal_long_double.
83080         (scale10_round_decimal_long_double): Use it.
83081         (scale10_round_decimal_double): New function.
83082         (floorlog10): New function.
83083         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
83084         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
83085         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
83086         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
83087         gl_PRINTF_ENOMEM and test its result. Invoke
83088         gl_PREREQ_VASNPRINTF_ENOMEM.
83089         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
83090         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
83091         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
83092         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
83093         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
83094         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
83095         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
83096         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
83097         * modules/snprintf-posix (Depends-on): Likewise.
83098         * modules/sprintf-posix (Depends-on): Likewise.
83099         * modules/vasnprintf-posix (Depends-on): Likewise.
83100         * modules/vasprintf-posix (Depends-on): Likewise.
83101         * modules/vfprintf-posix (Depends-on): Likewise.
83102         * modules/vsnprintf-posix (Depends-on): Likewise.
83103         * modules/vsprintf-posix (Depends-on): Likewise.
83104         * doc/functions/fprintf.texi: Update.
83105         * doc/functions/printf.texi: Update.
83106         * doc/functions/snprintf.texi: Update.
83107         * doc/functions/sprintf.texi: Update.
83108         * doc/functions/vfprintf.texi: Update.
83109         * doc/functions/vprintf.texi: Update.
83110         * doc/functions/vsnprintf.texi: Update.
83111         * doc/functions/vsprintf.texi: Update.
83113 2007-11-03  Bruno Haible  <bruno@clisp.org>
83115         * modules/frexp-nolibm-tests: New file.
83117         * modules/frexp-nolibm: New file.
83118         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
83120 2007-11-03  Bruno Haible  <bruno@clisp.org>
83122         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
83123         value is C99 compliant.
83124         Needed for OSF/1 5.1.
83126 2007-11-03  Bruno Haible  <bruno@clisp.org>
83128         Fix out-of-memory handling of vasnprintf.
83129         * lib/printf-parse.c: Include <errno.h>.
83130         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
83131         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
83132         is already set.
83134 2007-11-02  Eric Blake  <ebb9@byu.net>
83136         Fix tests on cygwin.
83137         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
83139 2007-11-01  Bruno Haible  <bruno@clisp.org>
83141         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
83142         warning.
83143         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
83144         needed for POSIX compatibility.
83146 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
83148         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
83149         for compatibility with GNU.
83151 2007-11-01  Bruno Haible  <bruno@clisp.org>
83153         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
83154         (putenv): Renamed from rpl_putenv. Change argument type from
83155         'const char *' to 'char *'.
83156         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
83157         of defining putenv in config.h, just set REPLACE_PUTENV.
83158         * modules/putenv (Depends-on): Add stdlib.
83159         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
83160         (Include): Use <stdlib.h>.
83161         * lib/stdlib.in.h (putenv): New declaration.
83162         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
83163         REPLACE_PUTENV.
83164         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
83165         REPLACE_PUTENV.
83166         Needed for MacOS X 10.5.0.
83167         Reported by Peter O'Gorman <peter@pogma.com>.
83169 2007-11-01  Jim Meyering  <meyering@redhat.com>
83171         Treat an empty date string exactly like "0".
83172         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
83173         if the remaining date string (to be parsed) is empty, use "0".
83174         Reported by Mischa Molhoek and discussed in this thread:
83175         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
83177 2007-10-31  Bruno Haible  <bruno@clisp.org>
83179         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
83180         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
83181         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
83182         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
83183         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
83184         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
83186 2007-10-31  Bruno Haible  <bruno@clisp.org>
83188         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
83189         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
83190         (AC_TYPE_LONG_LONG_INT): Use it.
83191         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
83192         it as well.
83193         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
83194         to m4/longlong.m4.
83195         * modules/stdint (Files): Remove m4/ulonglong.m4.
83196         * modules/strtoull (Files): Use m4/longlong.m4 instead of
83197         m4/ulonglong.m4.
83198         * modules/strtoumax (Files): Likewise.
83200 2007-10-30  Bruno Haible  <bruno@clisp.org>
83202         * modules/xvasprintf-posix: New file.
83203         Suggested by Eric Blake.
83205 2007-10-30  Bruno Haible  <bruno@clisp.org>
83207         * modules/xprintf-posix-tests: New file.
83208         * tests/test-xprintf-posix.sh: New file.
83209         * tests/test-xprintf-posix.c: New file.
83210         * tests/test-xfprintf-posix.c: New file.
83212         * modules/xprintf-posix: New file.
83214 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83216         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
83217         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
83218         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
83220 2007-10-29  Bruno Haible  <bruno@clisp.org>
83222         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
83223         contain the special marker '_cv_'.
83224         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
83225         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
83226         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
83227         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
83228         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
83229         Reported by Ralf Wildenhues.
83231 2007-10-29  Bruno Haible  <bruno@clisp.org>
83233         * gnulib-tool (func_import): When --lgpl is not specified, set
83234         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
83235         GPLv3.
83236         Reported by Simon Josefsson.
83238 2007-10-28  Bruno Haible  <bruno@clisp.org>
83240         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
83241         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
83242         HAVE_DECL_ISFINITE.
83243         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
83244         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
83245         HAVE_DECL_ISFINITE.
83247 2007-10-28  Bruno Haible  <bruno@clisp.org>
83249         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
83250         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
83252 2007-10-28  Bruno Haible  <bruno@clisp.org>
83254         Fix link errors with Sun C 5.0 on Solaris 10.
83255         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
83256         function is declared but not present in the compiler's libm.
83257         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
83258         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
83259         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
83260         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
83261         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
83262         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
83263         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
83264         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
83265         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
83266         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
83267         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
83268         HAVE_DECL_FLOORL.
83270 2007-10-28  Bruno Haible  <bruno@clisp.org>
83272         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
83273         gl_FUNC_FLOORL. Cache the result.
83274         (gl_FUNC_FLOORL): Use it.
83275         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
83276         gl_FUNC_CEILL. Cache the result.
83277         (gl_FUNC_CEILL): Use it.
83279         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
83280         gl_FUNC_FLOOR. Cache the result.
83281         (gl_FUNC_FLOOR): Use it.
83282         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
83283         gl_FUNC_CEIL. Cache the result.
83284         (gl_FUNC_CEIL): Use it.
83286         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
83287         gl_FUNC_FLOORF. Cache the result.
83288         (gl_FUNC_FLOORF): Use it.
83289         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
83290         gl_FUNC_CEILF. Cache the result.
83291         (gl_FUNC_CEILF): Use it.
83293 2007-10-28  Bruno Haible  <bruno@clisp.org>
83295         * gnulib-tool: Allow specifying the LGPL version number through
83296         --lgpl=2 or --lgpl=3.
83297         (func_usage): Document --lgpl with argument.
83298         Handle --lgpl=... arguments.
83299         (func_import): Recognize also gl_LGPL calls with an argument. When
83300         --lgpl=2 is used and the module's license is just LGPL, report an
83301         error. Set sed_transform_lib_file according to the lgpl variable. In
83302         the generated files, use --lgpl or gl_LGPL invocations with argument,
83303         if necessary.
83304         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
83305         an LGPv2+ license.
83306         * doc/gnulib-tool.texi (Modified imports): Update explanation of
83307         gl_LGPL macro.
83309 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83310             Bruno Haible  <bruno@clisp.org>
83312         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
83313         (u16_uctomb_aux): Likewise.
83314         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
83315         !HAVE_INLINE.
83316         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
83318 2007-10-28  Bruno Haible  <bruno@clisp.org>
83320         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
83321         Invoke AM_GETTEXT_OPTION if it exists.
83322         * modules/vasprintf: Likewise.
83323         * modules/verror: Likewise.
83324         * modules/xprintf: Likewise.
83325         * modules/xvasprintf: Likewise.
83327 2007-10-27  Ben Pfaff  <blp@gnu.org>
83329         * lib/math.in.h: Define isfinite macro and prototypes for
83330         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
83331         implementations.
83332         * m4/math_h.m4: New substitutions for isfinite module.
83333         * lib/isfinite.c: New file.
83334         * m4/isfinite.m4: New file.
83335         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
83336         * modules/isfinite: New file.
83337         * modules/isfinite-tests: New file.
83338         * tests/tests-isfinite.c: New file.
83339         * doc/functions/isfinite.texi: Mention isfinite module.
83340         * MODULES.html.sh: Mention new module.
83342 2007-10-27  Ben Pfaff  <blp@gnu.org>
83344         Ralf Wildenhues reported that Tru64 4.0D declares the round
83345         functions but does not have definitions.
83346         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
83347         cannot be found in any library, set the output variable to
83348         "missing" instead of "".
83349         * m4/round.m4: Also use our substitute if we cannot find round in
83350         any library, even if it is declared.
83351         * m4/roundf.m4: Likewise for roundf.
83352         * m4/roundl.m4: Likewise for roundl.
83353         * lib/math.in.h: Undefine roundf, round, roundl before defining
83354         their replacements, to allow for hypothetical systems where these
83355         may be defined as macros but not available in libraries.
83357 2007-10-27  Bruno Haible  <bruno@clisp.org>
83359         * doc/gnulib.texi: Invoke @firstparagraphindent.
83360         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
83361         changes in gnulib.
83362         (Source changes): New section.
83364 2007-10-26  Bruno Haible  <bruno@clisp.org>
83366         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
83367         borrowed from autoconf.
83369 2007-10-26  Bruno Haible  <bruno@clisp.org>
83371         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
83372         strerror returned the empty string. Needed on HP-UX 11.00.
83374 2007-10-24  Micah Cowan  <micah@cowan.name>
83376         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
83377         * build-aux/bootstrap: Remove support for now-unnecessary option,
83378         --cvs-user, and envvars CVS_USER, CVS_RSH.
83380 2007-10-24  Jim Meyering  <meyering@redhat.com>
83382         Avoid diagnostics from sha1sum when there is no cached checksum.
83383         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
83384         if the po.s1 file hasn't been created yet.
83386         * build-aux/bootstrap: Sync from coreutils:
83387         2007-10-24  Jim Meyering  <meyering@redhat.com>
83388         Get gnulib from the git repository, not from an obsolete cvs one.
83389         * build-aux/bootstrap: Suggestion from Micah Cowan.
83390         2007-10-04  Jim Meyering  <jim@meyering.net>
83391         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
83392         (update_po_files): Work also when there are no .po files in po/.
83394 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
83396         * README: Append ".git" to git and cg examples.
83397         Problem reported by Benoit Sigoure.
83399 2007-10-23  Micah Cowan  <micah@cowan.name>
83401         * users.txt: Add wget.
83403 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83405         Fix linking of some unistdio tests on FreeBSD.
83406         * modules/unistdio/u16-vsnprintf-tests
83407         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
83408         * modules/unistdio/u16-vsprintf-tests
83409         (test_u16_vsnprintf1_LDADD): Likewise.
83410         * modules/unistdio/u32-vsnprintf-tests
83411         (test_u32_vsnprintf1_LDADD): Likewise.
83412         * modules/unistdio/u32-vsprintf-tests
83413         (test_u32_vsprintf1_LDADD): Likewise.
83414         * modules/unistdio/u8-vsnprintf-tests
83415         (test_u8_vsnprintf1_LDADD): Likewise.
83416         * modules/unistdio/u8-vsprintf-tests
83417         (test_u8_vsprintf1_LDADD): Likewise.
83418         * modules/unistdio/ulc-vsnprintf-tests
83419         (test_ulc_vsnprintf1_LDADD): Likewise.
83420         * modules/unistdio/ulc-vsprintf-tests
83421         (test_ulc_vsprintf1_LDADD): Likewise.
83423         Fix linking of some uniconv tests on FreeBSD.
83424         * modules/uniconv/u16-conv-from-enc-tests
83425         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
83426         * modules/uniconv/u16-conv-to-enc-tests
83427         (test_u16_conv_to_enc_LDADD): Likewise.
83428         * modules/uniconv/u16-strconv-from-enc-tests
83429         (test_u16_strconv_from_enc_LDADD): Likewise.
83430         * modules/uniconv/u16-strconv-to-enc-tests
83431         (test_u16_strconv_to_enc_LDADD): Likewise.
83432         * modules/uniconv/u32-conv-from-enc-tests
83433         (test_u32_conv_from_enc_LDADD): Likewise.
83434         * modules/uniconv/u32-conv-to-enc-tests
83435         (test_u32_conv_to_enc_LDADD): Likewise.
83436         * modules/uniconv/u32-strconv-from-enc-tests
83437         (test_u32_strconv_from_enc_LDADD): Likewise.
83438         * modules/uniconv/u32-strconv-to-enc-tests
83439         (test_u32_strconv_to_enc_LDADD): Likewise.
83440         * modules/uniconv/u8-conv-from-enc-tests
83441         (test_u8_conv_from_enc_LDADD): Likewise.
83442         * modules/uniconv/u8-conv-to-enc-tests
83443         (test_u8_conv_to_enc_LDADD): Likewise.
83444         * modules/uniconv/u8-strconv-from-enc-tests
83445         (test_u8_strconv_from_enc_LDADD): Likewise.
83446         * modules/uniconv/u8-strconv-to-enc-tests
83447         (test_u8_strconv_to_enc_LDADD): Likewise.
83449 2007-10-22  Bruno Haible  <bruno@clisp.org>
83451         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
83452         size.
83454 2007-10-22  Eric Blake  <ebb9@byu.net>
83456         Tweak x*printf documentation.
83457         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
83458         variable name and comments.
83459         Suggested by Bruno Haible.
83461 2007-10-22  Bruno Haible  <bruno@clisp.org>
83463         * lib/acl.c (copy_acl): Fix file name in comment.
83465 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
83467         Fix Tru64 problem with stdbool.h.
83468         * lib/stdbool.in.h (false, true):
83469         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
83470         Don't declare as an enum in this situation; it runs afoul of Tru64.
83471         Problem reported by Steven M. Schweda in
83472         <http://lists.gnu.org/r/bug-autoconf/2007-10/msg00019.html>.
83474 2007-10-22  Eric Blake  <ebb9@byu.net>
83476         Also wrap vf?printf.
83477         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
83478         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
83479         (xvprintf, xvfprintf): New functions.
83481 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83483         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
83484         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
83486         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
83487         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
83489 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
83491         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
83492         by Bruno Haible.
83494 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83496         * lib/getloadavg.c
83497         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
83498         Undef `sys' after including sys/table.h, for Tru64 4.0D.
83500         * tests/test-i-ring.c: Work for C89.
83502 2007-10-22  Bruno Haible  <bruno@clisp.org>
83504         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
83505         -1u, in preprocessor expression, so that we don't test for the bug
83506         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
83507         <http://lists.gnu.org/r/bug-gnulib/2007-10/msg00329.html>.
83509 2007-10-22  Eric Blake  <ebb9@byu.net>
83511         * tests/test-yesno.sh: Silence stderr during test.
83513 2007-10-22  Simon Josefsson  <simon@josefsson.org>
83515         * modules/crypto/gc-camellia: New file.
83517         * m4/gc-camellia.m4: New file.
83519         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
83521         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
83523 2007-10-22  Simon Josefsson  <simon@josefsson.org>
83525         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
83526         --help to stdout.  Reported by sms@antinode.org (Steven
83527         M. Schweda).
83529 2007-10-22  Simon Josefsson  <simon@josefsson.org>
83531         * users.txt: Fix link to libksba.
83533 2007-10-21  Ben Pfaff  <blp@gnu.org>
83535         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
83536         round.c roundf implementation that depends on floorf and ceilf to
83537         be tested unconditionally.
83539 2007-10-21  Ben Pfaff  <blp@gnu.org>
83541         * m4/check-libm-func.m4: Removed.
83542         * m4/check-math-lib.m4: New file.
83543         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
83544         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
83545         definition and lack of AC_LIBOBJ([roundf]).
83546         * m4/roundl.m4: Ditto, and similarly for roundl.
83547         * modules/round: Reference new m4 file.
83548         * modules/roundf: Ditto.
83549         * modules/roundl: Ditto.
83550         * tests/test-round2.c (main): Use ROUND instead of round.
83551         Bug report from Bruno Haible.
83553 2007-10-21  Bruno Haible  <bruno@clisp.org>
83555         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
83556         context.
83558 2007-10-21  Bruno Haible  <bruno@clisp.org>
83560         * tests/test-wcwidth.c (main): Allow negative result for some control
83561         characters.
83563         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
83564         Needed on OSF/1 5.1.
83566 2007-10-21  Bruno Haible  <bruno@clisp.org>
83568         * tests/test-floorf1.c: Include isnanf.h.
83569         (main): Use isnanf() instead of isnan().
83570         * tests/test-ceilf1.c: Include isnanf.h.
83571         (main): Use isnanf() instead of isnan().
83572         * tests/test-truncf1.c: Include isnanf.h.
83573         (main): Use isnanf() instead of isnan().
83574         * tests/test-roundf1.c: Include isnanf.h.
83575         (main): Use isnanf() instead of isnan().
83577 2007-10-21  Eric Blake  <ebb9@byu.net>
83579         * users.txt: Update URL for m4.
83581 2007-10-21  Bruno Haible  <bruno@clisp.org>
83583         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
83585 2007-10-21  Bruno Haible  <bruno@clisp.org>
83587         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
83588         Git's management files if the CVS files are not present.
83590 2007-10-20  Bruno Haible  <bruno@clisp.org>
83592         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
83593         gcc-3.4.x.
83595 2007-10-20  Ben Pfaff  <blp@gnu.org>
83597         * lib/math.in.h: Declare round, roundf, roundl if we are providing
83598         implementations.
83599         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
83600         * lib/round.c: New file.
83601         * lib/roundf.c: New file.
83602         * lib/roundl.c: New file.
83603         * m4/round.m4: New file.
83604         * m4/roundf.m4: New file.
83605         * m4/roundl.m4: New file.
83606         * m4/check-libm-func-m4: New file.
83607         * modules/math: Replace round, roundf, roundl related @VARS@ in
83608         math.in.h.
83609         * modules/round: New file.
83610         * modules/round-tests: New file.
83611         * modules/roundf: New file.
83612         * modules/roundf-tests: New file.
83613         * modules/roundl: New file.
83614         * modules/roundl-tests: New file.
83615         * tests/test-round1.c: New file.
83616         * tests/test-round2.c: New file.
83617         * tests/test-roundf1.c: New file.
83618         * tests/test-roundf2.c: New file.
83619         * tests/test-roundl.c: New file.
83620         * doc/functions/round.texi: Mention round module.
83621         * doc/functions/roundf.texi: Mention roundf module.
83622         * doc/functions/roundl.texi: Mention roundl module.
83623         * MODULES.html.sh: Mention new modules.
83624         Thanks to Bruno Haible for suggestions.
83626 2007-10-20  Jim Meyering  <meyering@redhat.com>
83628         * lib/xprintf.c: Include <config.h> unconditionally.
83630         Change xprintf's license to GPL.
83631         * modules/xprintf (License): s/LGPL/GPL/, since this module
83632         depends on modules (exit and exitfail) which are GPL.
83633         Suggestion from Bruno Haible.
83635         xprintf fixes.
83636         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
83637         Use a clearer diagnostic.
83638         Patch from Bruno Haible.
83640 2007-10-20  Bruno Haible  <bruno@clisp.org>
83642         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
83643         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
83644         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
83646 2007-10-20  Bruno Haible  <bruno@clisp.org>
83648         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
83649         precision in the comparison result > x - 1 or similar.
83650         * tests/test-ceilf2.c (correct_result_p): Likewise.
83651         * tests/test-truncf2.c (correct_result_p): Likewise.
83652         * tests/test-trunc2.c (correct_result_p): Likewise.
83653         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
83655 2007-10-20  Bruno Haible  <bruno@clisp.org>
83657         * modules/ceil: New file.
83658         * m4/ceil.m4: New file.
83659         * doc/functions/ceil.texi: Mention the 'ceil' module.
83661 2007-10-20  Bruno Haible  <bruno@clisp.org>
83663         * modules/floor: New file.
83664         * m4/floor.m4: New file.
83665         * doc/functions/floor.texi: Mention the 'floor' module.
83667 2007-10-20  Bruno Haible  <bruno@clisp.org>
83669         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
83670         of %a.
83671         * modules/floorf-tests (Depends-on): Likewise.
83672         * modules/truncf-tests (Depends-on): Likewise.
83673         * modules/trunc-tests (Depends-on): Likewise.
83674         Reported by Ben Pfaff.
83676 2007-10-19  Jim Meyering  <meyering@redhat.com>
83678         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
83679         Don't bother testing specific errno values.  Just test ferror.
83681         New module: xprintf
83682         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
83684 2007-10-19  Bruno Haible  <bruno@clisp.org>
83686         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
83687         syntax.
83688         * modules/javaexec (Makefile.am): Likewise.
83689         * modules/relocatable-prog (Makefile.am): Likewise.
83690         Suggested by Jim Meyering.
83692 2007-10-18  Bruno Haible  <bruno@clisp.org>
83694         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
83695         Reported by Jim Meyering.
83697 2007-10-18  Eric Blake  <ebb9@byu.net>
83699         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
83701 2007-10-18  Bruno Haible  <bruno@clisp.org>
83703         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
83704         the format string into writable memory. Needed in Fortify conditions.
83706 2007-10-18  Colin Watson  <cjwatson@debian.org>  (tiny change)
83707             Bruno Haible  <bruno@clisp.org>
83709         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
83710         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
83711         * modules/trim (Depends-on): Add mbchar.
83712         (configure.ac): Add gl_FUNC_MBRTOWC.
83713         (Makefile.am): Augment lib_SOURCES.
83715 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
83717         Modify glob.c to use fstatat and dirfd, to simplify it.
83718         Suggested by Eric Blake.
83719         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
83720         Don't include <stdbool.h>; not used.
83721         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
83722         (link_exists_p): Simplify implementation, since we can now assume
83723         dirfd and fstatat.
83724         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
83726 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83728         * gnulib-tool (func_get_dependencies): Fix sed script to
83729         match only tests.
83731 2007-10-17  Bruno Haible  <bruno@clisp.org>
83733         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
83734         allow locale names without encoding suffix.
83735         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
83736         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
83738 2007-10-16  Bruno Haible  <bruno@clisp.org>
83740         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
83741         * lib/getgroups.c (getgroups): Likewise.
83742         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
83744 2007-10-16  Bruno Haible  <bruno@clisp.org>
83746         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
83747         * modules/malloc-posix (License): Likewise.
83748         * modules/realloc-posix (License): Likewise.
83749         * modules/calloc-posix (License): Likewise.
83750         * modules/intprops (License): Change from GPL to LGPL, with
83751         Paul Eggert's approval.
83753 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
83755         Merge glibc changes into lib/glob.c.
83757         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
83758         2007-10-15 04:59:03 UTC.  Here are the changes:
83760         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
83762         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
83764         * lib/glob.c: Add some branch prediction throughout.
83766         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
83768         [BZ #5103]
83769         * lib/glob.c (glob): Recognize patterns starting \/.
83771         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
83773         [BZ #3996]
83774         * lib/glob.c (attribute_hidden): Define if not defined.
83775         (glob): Unescape dirname, filename or username when needed and not
83776         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
83777         is NULL.  Handle unescaped [ in pattern without closing ].
83778         Don't pass GLOB_CHECK down to recursive glob for directories.
83779         (__glob_pattern_type): New function.
83780         (__glob_pattern_p): Implement using __glob_pattern_type.
83781         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
83782         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
83783         Remove unreachable code.
83785         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
83787         * lib/glob.c (glob_in_dir): Add some comments and asserts to
83788         explain why there are no leaks.
83790         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
83792         [BZ #3253]
83793         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
83794         time, rather allocate increasingly bigger arrays of pointers, if
83795         possible with alloca, if too large with malloc.
83797 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
83799         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
83800         Problem reported by H.Merijn Brand in
83801         <http://lists.gnu.org/r/bug-tar/2007-10/msg00018.html>.
83802         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
83803         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
83805 2007-10-15  Bruno Haible  <bruno@clisp.org>
83807         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
83808         with explicit rpl_ prefix.
83809         * lib/fopen.c (fopen): Likewise.
83810         * lib/freopen.c (freopen): Likewise.
83811         * lib/iconv.c (iconv): Likewise.
83812         * lib/iconv_close.c (iconv_close): Likewise.
83814 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83816         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
83818 2007-10-15  Bruno Haible  <bruno@clisp.org>
83820         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
83821         <stddef.h> instead of <stdlib.h> since we only need NULL.
83822         Reported by Ben Pfaff <blp@cs.stanford.edu>.
83824 2007-10-15  Bruno Haible  <bruno@clisp.org>
83826         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
83827         Replace paragraph talking about LIBOBJS.
83828         Reported by Colin Watson <cjwatson@debian.org>.
83830 2007-10-15  Bruno Haible  <bruno@clisp.org>
83832         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
83833         <stdlib.h> before using NULL.
83835 2007-10-15  Simon Josefsson  <simon@josefsson.org>
83837         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
83838         Reported by Albert Chin <china@thewrittenword.com>.
83840 2007-10-14  Bruno Haible  <bruno@clisp.org>
83842         * modules/iconv_open-utf-tests: New file.
83843         * tests/test-iconv-utf.c: New file.
83845         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
83846         * modules/iconv_open-utf: New file.
83847         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
83848         (iconv, iconv_close): New declarations.
83849         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
83850         be defined.
83851         (iconv_open): Add special handling of conversion between UTF-8 and
83852         UTF-{16,32}{BE,LE}.
83853         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
83854         * lib/iconv_close.c: New file.
83855         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
83856         gl_FUNC_ICONV_OPEN.
83857         (gl_FUNC_ICONV_OPEN): Use it.
83858         (gl_FUNC_ICONV_OPEN_UTF): New macro.
83859         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
83860         and REPLACE_ICONV_UTF.
83861         * modules/iconv_open (Depends-on): Add c-strcase.
83862         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
83863         ICONV_CONST.
83864         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
83866 2007-10-13  Albert Chin  <china@thewrittenword.com>
83867             Bruno Haible  <bruno@clisp.org>
83869         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
83870         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
83872 2007-10-13  Bruno Haible  <bruno@clisp.org>
83874         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
83875         defined, use the ISO C99 inline semantics.
83876         * lib/argp.h (ARGP_EI): Likewise.
83878 2007-10-13  Bruno Haible  <bruno@clisp.org>
83880         Handle 'inline' change in gcc 4.3.0.
83881         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
83882         argp_fmtstream_write, argp_fmtstream_set_lmargin,
83883         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
83884         argp_fmtstream_point): Disable 'extern' declaration if the function
83885         definition is going to be provided inline.
83886         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
83887         semantics, not the ISO C99 inline semantics.
83888         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
83889         'extern' declaration if the function definition is going to be provided
83890         inline.
83891         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
83892         the GNU C inline semantics, not the ISO C99 inline semantics. With
83893         GCC 4.2, avoid a warning.
83895 2007-10-13  Bruno Haible  <bruno@clisp.org>
83897         * lib/freading.h (freading): Enable the use of __freading for
83898         glibc >= 2.7.
83899         * lib/freading.c (freading): Likewise.
83901 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
83903         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
83904         "warning: C99 inline functions are not supported; using GNU89".
83906 2007-10-12  Bruno Haible  <bruno@clisp.org>
83908         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
83909         of 2.
83910         * tests/test-ceilf2.c: New file.
83911         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
83913         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
83914         * modules/ceilf-tests: Update.
83916 2007-10-12  Bruno Haible  <bruno@clisp.org>
83918         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
83919         of 2.
83920         * tests/test-floorf2.c: New file.
83921         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
83923         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
83924         * modules/floorf-tests: Update.
83926 2007-10-12  Bruno Haible  <bruno@clisp.org>
83928         * tests/test-trunc2.c: New file.
83929         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
83931         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
83932         * modules/trunc-tests: Update.
83934 2007-10-12  Bruno Haible  <bruno@clisp.org>
83936         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
83937         of 2.
83938         * tests/test-truncf2.c: New file.
83939         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
83941         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
83942         * modules/truncf-tests: Update.
83944 2007-10-11  Eric Blake  <ebb9@byu.net>
83946         Don't claim strerror is broken on Interix.
83947         * doc/functions/strerror.texi (strerror): Known broken systems are
83948         now Solaris 8, and not Interix.
83949         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
83950         Interix on cross-compile.
83951         Reported by Martin Koeppe in
83952         http://lists.gnu.org/r/bug-gnulib/2007-10/msg00005.html.
83954 2007-10-11  Bruno Haible  <bruno@clisp.org>
83956         * modules/i-ring-tests: New file.
83957         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
83958         instead of assert.
83960 2007-10-11  Bruno Haible  <bruno@clisp.org>
83962         * modules/filenamecat-tests: New file.
83963         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
83964         * lib/filenamecat.c: Remove test code.
83966 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
83968         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
83970         * lib/strerror.c: Include <string.h> always, to test interface,
83971         and to remove the need for the dummy.
83972         Include intprops.h to compute width instead of doing it ourselves
83973         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
83974         (strerror): Define it to return NULL if there's no system strerror.
83975         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
83976         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
83977         ancient pre-strerror Unix systems well any more.  Saying "unknown
83978         system error" is enough.
83979         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
83980         simpler strerror.c implementation.
83981         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
83982         Simplify the tests to reflect the simpler strerror implementation.
83983         * modules/strerror (Depends-on): Add intprops.
83985 2007-10-09  Eric Blake  <ebb9@byu.net>
83987         Silence test-fpending.
83988         * modules/fpending-tests (Files): Add wrapper script.
83989         * tests/test-fpending.sh: New file.
83991 2007-10-09  Bruno Haible  <bruno@clisp.org>
83993         * MODULES.html.sh (func_module): Don't create a hyperlink for
83994         function names like 'printf_frexp'.
83995         (Misc): Add crc, memxor.
83996         (Characteristics of floating types): New section.
83997         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
83998         isnanf-nolibm, signbit, trunc, truncf, truncl.
83999         (Enhancements for ISO C 99 functions): New subsection Input/output.
84000         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
84001         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
84002         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
84003         (Compatibility checks for POSIX:2001 functions): Add clock-time.
84004         (Enhancements for POSIX:2001 functions): Add chdir-long.
84005         (File system functions): Add areadlink, chdir-safer, read-file.
84006         Remove cycle-check.
84007         (File system as inode set): New section.
84008         (Date and time): Add gethrxtime.
84009         (Multithreading): Add openmp.
84010         (Internationalization functions): Add localename.
84011         (Unicode string functions): Add unistr/u*-mbsnlen.
84012         (Support for maintaining and releasing projects): Add git-version-gen.
84013         (Lone files): Remove directories.
84015 2007-10-08  Ben Pfaff  <blp@gnu.org>
84017         * lib/xmalloca.h: Fix typo in comment.
84019 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
84021         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
84022         when avoiding problems with integer overflow.  Use a portable test
84023         instead.
84025 2007-10-08  Simon Josefsson  <simon@josefsson.org>
84027         * modules/dummy (License): Change to LGPLv2+.
84028         * modules/float (License): Likewise
84029         * modules/realloc (License): Likewise
84030         * modules/stdlib (License): Likewise
84032 2007-10-07  Bruno Haible  <bruno@clisp.org>
84034         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
84035         * floor.c (TWO_MANT_DIG): Likewise.
84036         * ceil.c (TWO_MANT_DIG): Likewise.
84037         Reported by Ben Pfaff.
84039 2007-10-07  Bruno Haible  <bruno@clisp.org>
84041         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
84042         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
84043         * lib/frexp.c (FUNC): Likewise.
84044         * lib/printf-frexp.h (printf_frexp): Likewise.
84045         * lib/printf-frexpl.h (printf_frexpl): Likewise.
84046         * lib/printf-frexp.c (FUNC): Likewise.
84047         Suggested by Jim Meyering.
84049 2007-10-07  Jim Meyering  <meyering@redhat.com>
84051         Make xnanosleep's integer overflow test more robust.
84052         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
84053         so that gcc-4.3.0 doesn't optimize away this test for overflow.
84055 2007-10-07  Bruno Haible  <bruno@clisp.org>
84057         * NEWS: Mention the license change.
84059         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
84060         abbreviations in the modules files.
84062         Change copyright notice from GPLv2+ to GPLv3+.
84063         * README: Change copyright notice.
84064         * MODULES.html.sh: Likewise.
84065         * build-aux/bootstrap.conf: Likewise.
84066         * build-aux/config.libpath: Likewise.
84067         * build-aux/csharpcomp.sh.in: Likewise.
84068         * build-aux/csharpexec.sh.in: Likewise.
84069         * build-aux/install-reloc: Likewise.
84070         * build-aux/javacomp.sh.in: Likewise.
84071         * build-aux/javaexec.sh.in: Likewise.
84072         * build-aux/ldd.sh.in: Likewise.
84073         * build-aux/reloc-ldflags: Likewise.
84074         * build-aux/relocatable.sh.in: Likewise.
84075         * build-aux/x-to-1.in: Likewise.
84076         * check-module: Likewise.
84077         * config/srclistvars.sh: Likewise.
84078         * gnulib-tool: Likewise.
84079         * lib/acl-internal.h: Likewise.
84080         * lib/acl.c: Likewise.
84081         * lib/acl.h: Likewise.
84082         * lib/acl_entries.c: Likewise.
84083         * lib/areadlink-with-size.c: Likewise.
84084         * lib/areadlink.c: Likewise.
84085         * lib/areadlink.h: Likewise.
84086         * lib/argmatch.c: Likewise.
84087         * lib/argmatch.h: Likewise.
84088         * lib/argp-ba.c: Likewise.
84089         * lib/argp-eexst.c: Likewise.
84090         * lib/argp-fmtstream.c: Likewise.
84091         * lib/argp-fmtstream.h: Likewise.
84092         * lib/argp-fs-xinl.c: Likewise.
84093         * lib/argp-help.c: Likewise.
84094         * lib/argp-namefrob.h: Likewise.
84095         * lib/argp-parse.c: Likewise.
84096         * lib/argp-pin.c: Likewise.
84097         * lib/argp-pv.c: Likewise.
84098         * lib/argp-pvh.c: Likewise.
84099         * lib/argp-xinl.c: Likewise.
84100         * lib/argp.h: Likewise.
84101         * lib/at-func.c: Likewise.
84102         * lib/atanl.c: Likewise.
84103         * lib/backupfile.c: Likewise.
84104         * lib/backupfile.h: Likewise.
84105         * lib/basename.c: Likewise.
84106         * lib/binary-io.h: Likewise.
84107         * lib/byteswap.in.h: Likewise.
84108         * lib/c-stack.c: Likewise.
84109         * lib/c-stack.h: Likewise.
84110         * lib/c-strcasestr.c: Likewise.
84111         * lib/c-strcasestr.h: Likewise.
84112         * lib/c-strstr.c: Likewise.
84113         * lib/c-strstr.h: Likewise.
84114         * lib/c-strtod.c: Likewise.
84115         * lib/calloc.c: Likewise.
84116         * lib/canon-host.c: Likewise.
84117         * lib/canon-host.h: Likewise.
84118         * lib/canonicalize-lgpl.c: Likewise.
84119         * lib/canonicalize.c: Likewise.
84120         * lib/canonicalize.h: Likewise.
84121         * lib/ceil.c: Likewise.
84122         * lib/ceilf.c: Likewise.
84123         * lib/ceill.c: Likewise.
84124         * lib/chdir-long.c: Likewise.
84125         * lib/chdir-long.h: Likewise.
84126         * lib/chdir-safer.c: Likewise.
84127         * lib/chdir-safer.h: Likewise.
84128         * lib/chown.c: Likewise.
84129         * lib/classpath.c: Likewise.
84130         * lib/classpath.h: Likewise.
84131         * lib/clean-temp.c: Likewise.
84132         * lib/clean-temp.h: Likewise.
84133         * lib/cloexec.c: Likewise.
84134         * lib/close-stream.c: Likewise.
84135         * lib/closein.c: Likewise.
84136         * lib/closein.h: Likewise.
84137         * lib/closeout.c: Likewise.
84138         * lib/closeout.h: Likewise.
84139         * lib/concat-filename.c: Likewise.
84140         * lib/copy-file.c: Likewise.
84141         * lib/copy-file.h: Likewise.
84142         * lib/count-one-bits.h: Likewise.
84143         * lib/crc.c: Likewise.
84144         * lib/crc.h: Likewise.
84145         * lib/creat-safer.c: Likewise.
84146         * lib/csharpcomp.c: Likewise.
84147         * lib/csharpcomp.h: Likewise.
84148         * lib/csharpexec.c: Likewise.
84149         * lib/csharpexec.h: Likewise.
84150         * lib/cycle-check.c: Likewise.
84151         * lib/cycle-check.h: Likewise.
84152         * lib/diacrit.c: Likewise.
84153         * lib/diacrit.h: Likewise.
84154         * lib/diffseq.h: Likewise.
84155         * lib/dirchownmod.c: Likewise.
84156         * lib/dirent.in.h: Likewise.
84157         * lib/dirfd.c: Likewise.
84158         * lib/dirfd.h: Likewise.
84159         * lib/dirname.c: Likewise.
84160         * lib/dirname.h: Likewise.
84161         * lib/dummy.c: Likewise.
84162         * lib/dup-safer.c: Likewise.
84163         * lib/dup2.c: Likewise.
84164         * lib/eealloc.h: Likewise.
84165         * lib/error.c: Likewise.
84166         * lib/error.h: Likewise.
84167         * lib/euidaccess.c: Likewise.
84168         * lib/exclude.c: Likewise.
84169         * lib/exclude.h: Likewise.
84170         * lib/execute.c: Likewise.
84171         * lib/execute.h: Likewise.
84172         * lib/exitfail.c: Likewise.
84173         * lib/exitfail.h: Likewise.
84174         * lib/expl.c: Likewise.
84175         * lib/fatal-signal.c: Likewise.
84176         * lib/fatal-signal.h: Likewise.
84177         * lib/fbufmode.c: Likewise.
84178         * lib/fbufmode.h: Likewise.
84179         * lib/fchdir.c: Likewise.
84180         * lib/fchmodat.c: Likewise.
84181         * lib/fchownat.c: Likewise.
84182         * lib/fcntl--.h: Likewise.
84183         * lib/fcntl-safer.h: Likewise.
84184         * lib/fcntl.in.h: Likewise.
84185         * lib/fd-safer.c: Likewise.
84186         * lib/fflush.c: Likewise.
84187         * lib/file-has-acl.c: Likewise.
84188         * lib/file-set.c: Likewise.
84189         * lib/file-type.c: Likewise.
84190         * lib/file-type.h: Likewise.
84191         * lib/fileblocks.c: Likewise.
84192         * lib/filemode.c: Likewise.
84193         * lib/filemode.h: Likewise.
84194         * lib/filename.h: Likewise.
84195         * lib/filenamecat.c: Likewise.
84196         * lib/filenamecat.h: Likewise.
84197         * lib/findprog.c: Likewise.
84198         * lib/findprog.h: Likewise.
84199         * lib/float.in.h: Likewise.
84200         * lib/floor.c: Likewise.
84201         * lib/floorf.c: Likewise.
84202         * lib/floorl.c: Likewise.
84203         * lib/fopen-safer.c: Likewise.
84204         * lib/fopen.c: Likewise.
84205         * lib/fpending.c: Likewise.
84206         * lib/fpending.h: Likewise.
84207         * lib/fprintf.c: Likewise.
84208         * lib/fprintftime.h: Likewise.
84209         * lib/fpucw.h: Likewise.
84210         * lib/fpurge.c: Likewise.
84211         * lib/fpurge.h: Likewise.
84212         * lib/freadable.c: Likewise.
84213         * lib/freadable.h: Likewise.
84214         * lib/freadahead.c: Likewise.
84215         * lib/freadahead.h: Likewise.
84216         * lib/freading.c: Likewise.
84217         * lib/freading.h: Likewise.
84218         * lib/free.c: Likewise.
84219         * lib/freopen.c: Likewise.
84220         * lib/frexp.c: Likewise.
84221         * lib/frexpl.c: Likewise.
84222         * lib/fseek.c: Likewise.
84223         * lib/fseterr.c: Likewise.
84224         * lib/fseterr.h: Likewise.
84225         * lib/fstatat.c: Likewise.
84226         * lib/fstrcmp.c: Likewise.
84227         * lib/fstrcmp.h: Likewise.
84228         * lib/fsusage.c: Likewise.
84229         * lib/fsusage.h: Likewise.
84230         * lib/ftell.c: Likewise.
84231         * lib/ftello.c: Likewise.
84232         * lib/fts-cycle.c: Likewise.
84233         * lib/fts.c: Likewise.
84234         * lib/fts_.h: Likewise.
84235         * lib/full-read.c: Likewise.
84236         * lib/full-read.h: Likewise.
84237         * lib/full-write.c: Likewise.
84238         * lib/full-write.h: Likewise.
84239         * lib/fwritable.c: Likewise.
84240         * lib/fwritable.h: Likewise.
84241         * lib/fwriteerror.c: Likewise.
84242         * lib/fwriteerror.h: Likewise.
84243         * lib/fwriting.c: Likewise.
84244         * lib/fwriting.h: Likewise.
84245         * lib/gcd.c: Likewise.
84246         * lib/gcd.h: Likewise.
84247         * lib/getcwd.c: Likewise.
84248         * lib/getdate.h: Likewise.
84249         * lib/getdate.y: Likewise.
84250         * lib/getdomainname.c: Likewise.
84251         * lib/getdomainname.h: Likewise.
84252         * lib/getgroups.c: Likewise.
84253         * lib/gethostname.c: Likewise.
84254         * lib/gethrxtime.c: Likewise.
84255         * lib/gethrxtime.h: Likewise.
84256         * lib/getloadavg.c: Likewise.
84257         * lib/getndelim2.c: Likewise.
84258         * lib/getndelim2.h: Likewise.
84259         * lib/getnline.c: Likewise.
84260         * lib/getnline.h: Likewise.
84261         * lib/getopt.c: Likewise.
84262         * lib/getopt.in.h: Likewise.
84263         * lib/getopt1.c: Likewise.
84264         * lib/getopt_int.h: Likewise.
84265         * lib/getpagesize.h: Likewise.
84266         * lib/getsubopt.c: Likewise.
84267         * lib/gettime.c: Likewise.
84268         * lib/getugroups.c: Likewise.
84269         * lib/getugroups.h: Likewise.
84270         * lib/getusershell.c: Likewise.
84271         * lib/gl_anyavltree_list1.h: Likewise.
84272         * lib/gl_anyavltree_list2.h: Likewise.
84273         * lib/gl_anyhash_list1.h: Likewise.
84274         * lib/gl_anyhash_list2.h: Likewise.
84275         * lib/gl_anylinked_list1.h: Likewise.
84276         * lib/gl_anylinked_list2.h: Likewise.
84277         * lib/gl_anyrbtree_list1.h: Likewise.
84278         * lib/gl_anyrbtree_list2.h: Likewise.
84279         * lib/gl_anytree_list1.h: Likewise.
84280         * lib/gl_anytree_list2.h: Likewise.
84281         * lib/gl_anytree_oset.h: Likewise.
84282         * lib/gl_anytreehash_list1.h: Likewise.
84283         * lib/gl_anytreehash_list2.h: Likewise.
84284         * lib/gl_array_list.c: Likewise.
84285         * lib/gl_array_list.h: Likewise.
84286         * lib/gl_array_oset.c: Likewise.
84287         * lib/gl_array_oset.h: Likewise.
84288         * lib/gl_avltree_list.c: Likewise.
84289         * lib/gl_avltree_list.h: Likewise.
84290         * lib/gl_avltree_oset.c: Likewise.
84291         * lib/gl_avltree_oset.h: Likewise.
84292         * lib/gl_avltreehash_list.c: Likewise.
84293         * lib/gl_avltreehash_list.h: Likewise.
84294         * lib/gl_carray_list.c: Likewise.
84295         * lib/gl_carray_list.h: Likewise.
84296         * lib/gl_linked_list.c: Likewise.
84297         * lib/gl_linked_list.h: Likewise.
84298         * lib/gl_linkedhash_list.c: Likewise.
84299         * lib/gl_linkedhash_list.h: Likewise.
84300         * lib/gl_list.c: Likewise.
84301         * lib/gl_list.h: Likewise.
84302         * lib/gl_oset.c: Likewise.
84303         * lib/gl_oset.h: Likewise.
84304         * lib/gl_rbtree_list.c: Likewise.
84305         * lib/gl_rbtree_list.h: Likewise.
84306         * lib/gl_rbtree_oset.c: Likewise.
84307         * lib/gl_rbtree_oset.h: Likewise.
84308         * lib/gl_rbtreehash_list.c: Likewise.
84309         * lib/gl_rbtreehash_list.h: Likewise.
84310         * lib/gl_sublist.c: Likewise.
84311         * lib/gl_sublist.h: Likewise.
84312         * lib/group-member.c: Likewise.
84313         * lib/group-member.h: Likewise.
84314         * lib/hard-locale.c: Likewise.
84315         * lib/hard-locale.h: Likewise.
84316         * lib/hash-pjw.c: Likewise.
84317         * lib/hash-pjw.h: Likewise.
84318         * lib/hash-triple.c: Likewise.
84319         * lib/hash.c: Likewise.
84320         * lib/hash.h: Likewise.
84321         * lib/human.c: Likewise.
84322         * lib/human.h: Likewise.
84323         * lib/i-ring.c: Likewise.
84324         * lib/i-ring.h: Likewise.
84325         * lib/idcache.c: Likewise.
84326         * lib/imaxabs.c: Likewise.
84327         * lib/imaxdiv.c: Likewise.
84328         * lib/inet_pton.c: Likewise.
84329         * lib/inet_pton.h: Likewise.
84330         * lib/intprops.h: Likewise.
84331         * lib/inttostr.c: Likewise.
84332         * lib/inttostr.h: Likewise.
84333         * lib/inttypes.in.h: Likewise.
84334         * lib/isapipe.c: Likewise.
84335         * lib/isdir.c: Likewise.
84336         * lib/isnan.c: Likewise.
84337         * lib/isnan.h: Likewise.
84338         * lib/isnanf.c: Likewise.
84339         * lib/isnanf.h: Likewise.
84340         * lib/isnanl-nolibm.h: Likewise.
84341         * lib/isnanl.c: Likewise.
84342         * lib/isnanl.h: Likewise.
84343         * lib/javacomp.c: Likewise.
84344         * lib/javacomp.h: Likewise.
84345         * lib/javaexec.c: Likewise.
84346         * lib/javaexec.h: Likewise.
84347         * lib/javaversion.c: Likewise.
84348         * lib/javaversion.h: Likewise.
84349         * lib/javaversion.java: Likewise.
84350         * lib/lbrkprop.h: Likewise.
84351         * lib/lchmod.h: Likewise.
84352         * lib/lchown.c: Likewise.
84353         * lib/ldexpl.c: Likewise.
84354         * lib/linebreak.c: Likewise.
84355         * lib/linebreak.h: Likewise.
84356         * lib/linebuffer.c: Likewise.
84357         * lib/linebuffer.h: Likewise.
84358         * lib/locale.in.h: Likewise.
84359         * lib/logl.c: Likewise.
84360         * lib/long-options.c: Likewise.
84361         * lib/long-options.h: Likewise.
84362         * lib/lstat.c: Likewise.
84363         * lib/lstat.h: Likewise.
84364         * lib/math.in.h: Likewise.
84365         * lib/mbchar.c: Likewise.
84366         * lib/mbchar.h: Likewise.
84367         * lib/mbfile.h: Likewise.
84368         * lib/mbiter.h: Likewise.
84369         * lib/mbscasecmp.c: Likewise.
84370         * lib/mbscasestr.c: Likewise.
84371         * lib/mbschr.c: Likewise.
84372         * lib/mbscspn.c: Likewise.
84373         * lib/mbslen.c: Likewise.
84374         * lib/mbsncasecmp.c: Likewise.
84375         * lib/mbsnlen.c: Likewise.
84376         * lib/mbspbrk.c: Likewise.
84377         * lib/mbspcasecmp.c: Likewise.
84378         * lib/mbsrchr.c: Likewise.
84379         * lib/mbssep.c: Likewise.
84380         * lib/mbsspn.c: Likewise.
84381         * lib/mbsstr.c: Likewise.
84382         * lib/mbstok_r.c: Likewise.
84383         * lib/mbswidth.c: Likewise.
84384         * lib/mbswidth.h: Likewise.
84385         * lib/mbuiter.h: Likewise.
84386         * lib/memcasecmp.c: Likewise.
84387         * lib/memcasecmp.h: Likewise.
84388         * lib/memchr.c: Likewise.
84389         * lib/memcmp.c: Likewise.
84390         * lib/memcoll.c: Likewise.
84391         * lib/memcoll.h: Likewise.
84392         * lib/memcpy.c: Likewise.
84393         * lib/memrchr.c: Likewise.
84394         * lib/mkancesdirs.c: Likewise.
84395         * lib/mkdir-p.c: Likewise.
84396         * lib/mkdir-p.h: Likewise.
84397         * lib/mkdir.c: Likewise.
84398         * lib/mkdirat.c: Likewise.
84399         * lib/mkdtemp.c: Likewise.
84400         * lib/mkstemp-safer.c: Likewise.
84401         * lib/mkstemp.c: Likewise.
84402         * lib/modechange.c: Likewise.
84403         * lib/modechange.h: Likewise.
84404         * lib/mountlist.c: Likewise.
84405         * lib/mountlist.h: Likewise.
84406         * lib/mpsort.c: Likewise.
84407         * lib/nanosleep.c: Likewise.
84408         * lib/obstack.c: Likewise.
84409         * lib/obstack.h: Likewise.
84410         * lib/open-safer.c: Likewise.
84411         * lib/open.c: Likewise.
84412         * lib/openat-die.c: Likewise.
84413         * lib/openat-priv.h: Likewise.
84414         * lib/openat-proc.c: Likewise.
84415         * lib/openat.c: Likewise.
84416         * lib/openat.h: Likewise.
84417         * lib/pagealign_alloc.c: Likewise.
84418         * lib/pagealign_alloc.h: Likewise.
84419         * lib/physmem.c: Likewise.
84420         * lib/physmem.h: Likewise.
84421         * lib/pipe-safer.c: Likewise.
84422         * lib/pipe.c: Likewise.
84423         * lib/pipe.h: Likewise.
84424         * lib/posixtm.c: Likewise.
84425         * lib/posixtm.h: Likewise.
84426         * lib/posixver.c: Likewise.
84427         * lib/printf-frexp.c: Likewise.
84428         * lib/printf-frexp.h: Likewise.
84429         * lib/printf-frexpl.c: Likewise.
84430         * lib/printf-frexpl.h: Likewise.
84431         * lib/printf.c: Likewise.
84432         * lib/progname.c: Likewise.
84433         * lib/progname.h: Likewise.
84434         * lib/progreloc.c: Likewise.
84435         * lib/putenv.c: Likewise.
84436         * lib/quote.c: Likewise.
84437         * lib/quote.h: Likewise.
84438         * lib/quotearg.c: Likewise.
84439         * lib/quotearg.h: Likewise.
84440         * lib/raise.c: Likewise.
84441         * lib/readline.c: Likewise.
84442         * lib/readline.h: Likewise.
84443         * lib/readlink.c: Likewise.
84444         * lib/readtokens.c: Likewise.
84445         * lib/readtokens.h: Likewise.
84446         * lib/readtokens0.c: Likewise.
84447         * lib/readtokens0.h: Likewise.
84448         * lib/readutmp.c: Likewise.
84449         * lib/readutmp.h: Likewise.
84450         * lib/realloc.c: Likewise.
84451         * lib/relocwrapper.c: Likewise.
84452         * lib/rename-dest-slash.c: Likewise.
84453         * lib/rename.c: Likewise.
84454         * lib/rmdir.c: Likewise.
84455         * lib/rpmatch.c: Likewise.
84456         * lib/safe-read.c: Likewise.
84457         * lib/safe-read.h: Likewise.
84458         * lib/safe-write.c: Likewise.
84459         * lib/safe-write.h: Likewise.
84460         * lib/same-inode.h: Likewise.
84461         * lib/same.c: Likewise.
84462         * lib/same.h: Likewise.
84463         * lib/save-cwd.c: Likewise.
84464         * lib/save-cwd.h: Likewise.
84465         * lib/savedir.c: Likewise.
84466         * lib/savedir.h: Likewise.
84467         * lib/savewd.c: Likewise.
84468         * lib/savewd.h: Likewise.
84469         * lib/search.in.h: Likewise.
84470         * lib/setenv.c: Likewise.
84471         * lib/setenv.h: Likewise.
84472         * lib/settime.c: Likewise.
84473         * lib/sh-quote.c: Likewise.
84474         * lib/sh-quote.h: Likewise.
84475         * lib/sig2str.c: Likewise.
84476         * lib/sig2str.h: Likewise.
84477         * lib/signal.in.h: Likewise.
84478         * lib/signbitd.c: Likewise.
84479         * lib/signbitf.c: Likewise.
84480         * lib/signbitl.c: Likewise.
84481         * lib/sigprocmask.c: Likewise.
84482         * lib/sincosl.c: Likewise.
84483         * lib/sleep.c: Likewise.
84484         * lib/sprintf.c: Likewise.
84485         * lib/sqrtl.c: Likewise.
84486         * lib/stat-time.h: Likewise.
84487         * lib/stdio--.h: Likewise.
84488         * lib/stdio-safer.h: Likewise.
84489         * lib/stdlib--.h: Likewise.
84490         * lib/stdlib-safer.h: Likewise.
84491         * lib/stdlib.in.h: Likewise.
84492         * lib/stpcpy.c: Likewise.
84493         * lib/stpncpy.c: Likewise.
84494         * lib/strchrnul.c: Likewise.
84495         * lib/strcspn.c: Likewise.
84496         * lib/strerror.c: Likewise.
84497         * lib/strftime.c: Likewise.
84498         * lib/strftime.h: Likewise.
84499         * lib/striconveh.c: Likewise.
84500         * lib/striconveh.h: Likewise.
84501         * lib/striconveha.c: Likewise.
84502         * lib/striconveha.h: Likewise.
84503         * lib/stripslash.c: Likewise.
84504         * lib/strnlen1.c: Likewise.
84505         * lib/strnlen1.h: Likewise.
84506         * lib/strtod.c: Likewise.
84507         * lib/strtoimax.c: Likewise.
84508         * lib/strtok_r.c: Likewise.
84509         * lib/strtol.c: Likewise.
84510         * lib/strtoll.c: Likewise.
84511         * lib/strtoul.c: Likewise.
84512         * lib/strtoull.c: Likewise.
84513         * lib/sysexits.in.h: Likewise.
84514         * lib/tempname.c: Likewise.
84515         * lib/tempname.h: Likewise.
84516         * lib/timespec.h: Likewise.
84517         * lib/tls.c: Likewise.
84518         * lib/tls.h: Likewise.
84519         * lib/tmpdir.c: Likewise.
84520         * lib/tmpdir.h: Likewise.
84521         * lib/tmpfile-safer.c: Likewise.
84522         * lib/tmpfile.c: Likewise.
84523         * lib/trigl.c: Likewise.
84524         * lib/trigl.h: Likewise.
84525         * lib/trim.c: Likewise.
84526         * lib/trim.h: Likewise.
84527         * lib/trunc.c: Likewise.
84528         * lib/truncf.c: Likewise.
84529         * lib/truncl.c: Likewise.
84530         * lib/tsearch.c: Likewise.
84531         * lib/unicodeio.c: Likewise.
84532         * lib/unicodeio.h: Likewise.
84533         * lib/unistd--.h: Likewise.
84534         * lib/unistd-safer.h: Likewise.
84535         * lib/unistdio/ulc-fprintf.c: Likewise.
84536         * lib/unistdio/ulc-vfprintf.c: Likewise.
84537         * lib/unlinkdir.c: Likewise.
84538         * lib/unlinkdir.h: Likewise.
84539         * lib/unlocked-io.h: Likewise.
84540         * lib/unsetenv.c: Likewise.
84541         * lib/userspec.c: Likewise.
84542         * lib/utime.c: Likewise.
84543         * lib/utimecmp.c: Likewise.
84544         * lib/utimecmp.h: Likewise.
84545         * lib/utimens.c: Likewise.
84546         * lib/verify.h: Likewise.
84547         * lib/verror.c: Likewise.
84548         * lib/verror.h: Likewise.
84549         * lib/version-etc-fsf.c: Likewise.
84550         * lib/version-etc.c: Likewise.
84551         * lib/version-etc.h: Likewise.
84552         * lib/vfprintf.c: Likewise.
84553         * lib/vprintf.c: Likewise.
84554         * lib/vsprintf.c: Likewise.
84555         * lib/w32spawn.h: Likewise.
84556         * lib/wait-process.c: Likewise.
84557         * lib/wait-process.h: Likewise.
84558         * lib/wcwidth.c: Likewise.
84559         * lib/write-any-file.c: Likewise.
84560         * lib/xalloc-die.c: Likewise.
84561         * lib/xalloc.h: Likewise.
84562         * lib/xasprintf.c: Likewise.
84563         * lib/xgetcwd.c: Likewise.
84564         * lib/xgetcwd.h: Likewise.
84565         * lib/xgetdomainname.c: Likewise.
84566         * lib/xgetdomainname.h: Likewise.
84567         * lib/xgethostname.c: Likewise.
84568         * lib/xmalloc.c: Likewise.
84569         * lib/xmalloca.c: Likewise.
84570         * lib/xmalloca.h: Likewise.
84571         * lib/xmemcoll.c: Likewise.
84572         * lib/xnanosleep.c: Likewise.
84573         * lib/xreadlink.c: Likewise.
84574         * lib/xreadlink.h: Likewise.
84575         * lib/xsetenv.c: Likewise.
84576         * lib/xsetenv.h: Likewise.
84577         * lib/xstriconv.c: Likewise.
84578         * lib/xstriconv.h: Likewise.
84579         * lib/xstrndup.c: Likewise.
84580         * lib/xstrndup.h: Likewise.
84581         * lib/xstrtod.c: Likewise.
84582         * lib/xstrtod.h: Likewise.
84583         * lib/xstrtol-error.c: Likewise.
84584         * lib/xstrtol.c: Likewise.
84585         * lib/xstrtol.h: Likewise.
84586         * lib/xtime.h: Likewise.
84587         * lib/xvasprintf.c: Likewise.
84588         * lib/xvasprintf.h: Likewise.
84589         * lib/yesno.c: Likewise.
84590         * lib/yesno.h: Likewise.
84591         * posix-modules: Likewise.
84592         * tests/test-alloca-opt.c: Likewise.
84593         * tests/test-arcfour.c: Likewise.
84594         * tests/test-arctwo.c: Likewise.
84595         * tests/test-argmatch.c: Likewise.
84596         * tests/test-argp-2.sh: Likewise.
84597         * tests/test-argp.c: Likewise.
84598         * tests/test-arpa_inet.c: Likewise.
84599         * tests/test-array_list.c: Likewise.
84600         * tests/test-array_oset.c: Likewise.
84601         * tests/test-atexit.c: Likewise.
84602         * tests/test-avltree_list.c: Likewise.
84603         * tests/test-avltree_oset.c: Likewise.
84604         * tests/test-avltreehash_list.c: Likewise.
84605         * tests/test-base64.c: Likewise.
84606         * tests/test-binary-io.c: Likewise.
84607         * tests/test-byteswap.c: Likewise.
84608         * tests/test-c-ctype.c: Likewise.
84609         * tests/test-c-strcasecmp.c: Likewise.
84610         * tests/test-c-strcasestr.c: Likewise.
84611         * tests/test-c-strncasecmp.c: Likewise.
84612         * tests/test-c-strstr.c: Likewise.
84613         * tests/test-canonicalize-lgpl.c: Likewise.
84614         * tests/test-canonicalize.c: Likewise.
84615         * tests/test-carray_list.c: Likewise.
84616         * tests/test-ceilf.c: Likewise.
84617         * tests/test-ceill.c: Likewise.
84618         * tests/test-count-one-bits.c: Likewise.
84619         * tests/test-crc.c: Likewise.
84620         * tests/test-dirname.c: Likewise.
84621         * tests/test-fbufmode.c: Likewise.
84622         * tests/test-fcntl.c: Likewise.
84623         * tests/test-fflush.c: Likewise.
84624         * tests/test-floorf.c: Likewise.
84625         * tests/test-floorl.c: Likewise.
84626         * tests/test-fopen.c: Likewise.
84627         * tests/test-fprintf-posix.c: Likewise.
84628         * tests/test-fprintf-posix.h: Likewise.
84629         * tests/test-fpurge.c: Likewise.
84630         * tests/test-freadable.c: Likewise.
84631         * tests/test-freadahead.c: Likewise.
84632         * tests/test-freading.c: Likewise.
84633         * tests/test-freopen.c: Likewise.
84634         * tests/test-frexp.c: Likewise.
84635         * tests/test-frexpl.c: Likewise.
84636         * tests/test-fseek.c: Likewise.
84637         * tests/test-fseeko.c: Likewise.
84638         * tests/test-fseterr.c: Likewise.
84639         * tests/test-fstrcmp.c: Likewise.
84640         * tests/test-ftell.c: Likewise.
84641         * tests/test-ftello.c: Likewise.
84642         * tests/test-fwritable.c: Likewise.
84643         * tests/test-fwriting.c: Likewise.
84644         * tests/test-getaddrinfo.c: Likewise.
84645         * tests/test-getpass.c: Likewise.
84646         * tests/test-gettimeofday.c: Likewise.
84647         * tests/test-hmac-md5.c: Likewise.
84648         * tests/test-hmac-sha1.c: Likewise.
84649         * tests/test-iconv.c: Likewise.
84650         * tests/test-iconvme.c: Likewise.
84651         * tests/test-inttypes.c: Likewise.
84652         * tests/test-isnan.c: Likewise.
84653         * tests/test-isnanf.c: Likewise.
84654         * tests/test-isnanl-nolibm.c: Likewise.
84655         * tests/test-isnanl.c: Likewise.
84656         * tests/test-isnanl.h: Likewise.
84657         * tests/test-ldexpl.c: Likewise.
84658         * tests/test-linked_list.c: Likewise.
84659         * tests/test-linkedhash_list.c: Likewise.
84660         * tests/test-locale.c: Likewise.
84661         * tests/test-localename.c: Likewise.
84662         * tests/test-lock.c: Likewise.
84663         * tests/test-lseek.c: Likewise.
84664         * tests/test-malloca.c: Likewise.
84665         * tests/test-math.c: Likewise.
84666         * tests/test-mbscasecmp.c: Likewise.
84667         * tests/test-mbscasestr1.c: Likewise.
84668         * tests/test-mbscasestr2.c: Likewise.
84669         * tests/test-mbscasestr3.c: Likewise.
84670         * tests/test-mbscasestr4.c: Likewise.
84671         * tests/test-mbschr.c: Likewise.
84672         * tests/test-mbscspn.c: Likewise.
84673         * tests/test-mbsncasecmp.c: Likewise.
84674         * tests/test-mbspbrk.c: Likewise.
84675         * tests/test-mbspcasecmp.c: Likewise.
84676         * tests/test-mbsrchr.c: Likewise.
84677         * tests/test-mbsspn.c: Likewise.
84678         * tests/test-mbsstr1.c: Likewise.
84679         * tests/test-mbsstr2.c: Likewise.
84680         * tests/test-mbsstr3.c: Likewise.
84681         * tests/test-md5.c: Likewise.
84682         * tests/test-memmem.c: Likewise.
84683         * tests/test-netinet_in.c: Likewise.
84684         * tests/test-open.c: Likewise.
84685         * tests/test-printf-frexp.c: Likewise.
84686         * tests/test-printf-frexpl.c: Likewise.
84687         * tests/test-printf-posix.c: Likewise.
84688         * tests/test-printf-posix.h: Likewise.
84689         * tests/test-rbtree_list.c: Likewise.
84690         * tests/test-rbtree_oset.c: Likewise.
84691         * tests/test-rbtreehash_list.c: Likewise.
84692         * tests/test-read-file.c: Likewise.
84693         * tests/test-rijndael.c: Likewise.
84694         * tests/test-search.c: Likewise.
84695         * tests/test-signbit.c: Likewise.
84696         * tests/test-sleep.c: Likewise.
84697         * tests/test-snprintf-posix.c: Likewise.
84698         * tests/test-snprintf-posix.h: Likewise.
84699         * tests/test-snprintf.c: Likewise.
84700         * tests/test-sprintf-posix.c: Likewise.
84701         * tests/test-sprintf-posix.h: Likewise.
84702         * tests/test-stat-time.c: Likewise.
84703         * tests/test-stdbool.c: Likewise.
84704         * tests/test-stdint.c: Likewise.
84705         * tests/test-stdio.c: Likewise.
84706         * tests/test-stdlib.c: Likewise.
84707         * tests/test-stpncpy.c: Likewise.
84708         * tests/test-strcasestr.c: Likewise.
84709         * tests/test-striconv.c: Likewise.
84710         * tests/test-striconveh.c: Likewise.
84711         * tests/test-striconveha.c: Likewise.
84712         * tests/test-string.c: Likewise.
84713         * tests/test-sys_select.c: Likewise.
84714         * tests/test-sys_socket.c: Likewise.
84715         * tests/test-sys_stat.c: Likewise.
84716         * tests/test-sys_time.c: Likewise.
84717         * tests/test-sysexits.c: Likewise.
84718         * tests/test-time.c: Likewise.
84719         * tests/test-tls.c: Likewise.
84720         * tests/test-trunc.c: Likewise.
84721         * tests/test-truncf.c: Likewise.
84722         * tests/test-truncl.c: Likewise.
84723         * tests/test-unistd.c: Likewise.
84724         * tests/test-vasnprintf-posix.c: Likewise.
84725         * tests/test-vasnprintf-posix2.c: Likewise.
84726         * tests/test-vasnprintf.c: Likewise.
84727         * tests/test-vasprintf-posix.c: Likewise.
84728         * tests/test-vasprintf.c: Likewise.
84729         * tests/test-verify.c: Likewise.
84730         * tests/test-vfprintf-posix.c: Likewise.
84731         * tests/test-vprintf-posix.c: Likewise.
84732         * tests/test-vsnprintf-posix.c: Likewise.
84733         * tests/test-vsnprintf.c: Likewise.
84734         * tests/test-vsprintf-posix.c: Likewise.
84735         * tests/test-wchar.c: Likewise.
84736         * tests/test-wctype.c: Likewise.
84737         * tests/test-wcwidth.c: Likewise.
84738         * tests/test-xstrtol.c: Likewise.
84739         * tests/test-xvasprintf.c: Likewise.
84740         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
84741         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
84742         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
84743         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
84744         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
84745         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
84746         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
84747         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
84748         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
84749         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
84750         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
84751         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
84752         * tests/uniname/test-uninames.c: Likewise.
84753         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
84754         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
84755         * tests/unistdio/test-u16-printf1.h: Likewise.
84756         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
84757         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
84758         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
84759         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
84760         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
84761         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
84762         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
84763         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
84764         * tests/unistdio/test-u32-printf1.h: Likewise.
84765         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
84766         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
84767         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
84768         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
84769         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
84770         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
84771         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
84772         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
84773         * tests/unistdio/test-u8-printf1.h: Likewise.
84774         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
84775         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
84776         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
84777         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
84778         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
84779         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
84780         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
84781         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
84782         * tests/unistdio/test-ulc-printf1.h: Likewise.
84783         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
84784         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
84785         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
84786         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
84787         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
84788         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
84789         * tests/uniwidth/test-u16-strwidth.c: Likewise.
84790         * tests/uniwidth/test-u16-width.c: Likewise.
84791         * tests/uniwidth/test-u32-strwidth.c: Likewise.
84792         * tests/uniwidth/test-u32-width.c: Likewise.
84793         * tests/uniwidth/test-u8-strwidth.c: Likewise.
84794         * tests/uniwidth/test-u8-width.c: Likewise.
84795         * tests/uniwidth/test-uc_width.c: Likewise.
84796         * config/srclist-update: Likewise.
84797         (fixlicense): Update to GPLv3+.
84799         Change copyright notice from LGPLv2.1+ to LGPLv3+.
84800         * tests/test-tsearch.c: Change copyright notice.
84802         Change copyright notice from LGPLv2.0+ to LGPLv3+.
84803         * lib/c-strcaseeq.h: Change copyright notice.
84804         * lib/streq.h: Likewise.
84805         * lib/uniconv.h: Likewise.
84806         * lib/uniconv/u-conv-from-enc.h: Likewise.
84807         * lib/uniconv/u-conv-to-enc.h: Likewise.
84808         * lib/uniconv/u-strconv-from-enc.h: Likewise.
84809         * lib/uniconv/u-strconv-to-enc.h: Likewise.
84810         * lib/uniconv/u16-conv-from-enc.c: Likewise.
84811         * lib/uniconv/u16-conv-to-enc.c: Likewise.
84812         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
84813         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
84814         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
84815         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
84816         * lib/uniconv/u32-conv-from-enc.c: Likewise.
84817         * lib/uniconv/u32-conv-to-enc.c: Likewise.
84818         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
84819         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
84820         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
84821         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
84822         * lib/uniconv/u8-conv-from-enc.c: Likewise.
84823         * lib/uniconv/u8-conv-to-enc.c: Likewise.
84824         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
84825         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
84826         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
84827         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
84828         * lib/uniname.h: Likewise.
84829         * lib/uniname/uniname.c: Likewise.
84830         * lib/unistdio.h: Likewise.
84831         * lib/unistdio/u-asnprintf.h: Likewise.
84832         * lib/unistdio/u-asprintf.h: Likewise.
84833         * lib/unistdio/u-printf-args.c: Likewise.
84834         * lib/unistdio/u-printf-args.h: Likewise.
84835         * lib/unistdio/u-printf-parse.h: Likewise.
84836         * lib/unistdio/u-snprintf.h: Likewise.
84837         * lib/unistdio/u-sprintf.h: Likewise.
84838         * lib/unistdio/u-vasprintf.h: Likewise.
84839         * lib/unistdio/u-vsnprintf.h: Likewise.
84840         * lib/unistdio/u-vsprintf.h: Likewise.
84841         * lib/unistdio/u16-asnprintf.c: Likewise.
84842         * lib/unistdio/u16-asprintf.c: Likewise.
84843         * lib/unistdio/u16-printf-parse.c: Likewise.
84844         * lib/unistdio/u16-snprintf.c: Likewise.
84845         * lib/unistdio/u16-sprintf.c: Likewise.
84846         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
84847         * lib/unistdio/u16-u16-asprintf.c: Likewise.
84848         * lib/unistdio/u16-u16-snprintf.c: Likewise.
84849         * lib/unistdio/u16-u16-sprintf.c: Likewise.
84850         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
84851         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
84852         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
84853         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
84854         * lib/unistdio/u16-vasnprintf.c: Likewise.
84855         * lib/unistdio/u16-vasprintf.c: Likewise.
84856         * lib/unistdio/u16-vsnprintf.c: Likewise.
84857         * lib/unistdio/u16-vsprintf.c: Likewise.
84858         * lib/unistdio/u32-asnprintf.c: Likewise.
84859         * lib/unistdio/u32-asprintf.c: Likewise.
84860         * lib/unistdio/u32-printf-parse.c: Likewise.
84861         * lib/unistdio/u32-snprintf.c: Likewise.
84862         * lib/unistdio/u32-sprintf.c: Likewise.
84863         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
84864         * lib/unistdio/u32-u32-asprintf.c: Likewise.
84865         * lib/unistdio/u32-u32-snprintf.c: Likewise.
84866         * lib/unistdio/u32-u32-sprintf.c: Likewise.
84867         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
84868         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
84869         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
84870         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
84871         * lib/unistdio/u32-vasnprintf.c: Likewise.
84872         * lib/unistdio/u32-vasprintf.c: Likewise.
84873         * lib/unistdio/u32-vsnprintf.c: Likewise.
84874         * lib/unistdio/u32-vsprintf.c: Likewise.
84875         * lib/unistdio/u8-asnprintf.c: Likewise.
84876         * lib/unistdio/u8-asprintf.c: Likewise.
84877         * lib/unistdio/u8-printf-parse.c: Likewise.
84878         * lib/unistdio/u8-snprintf.c: Likewise.
84879         * lib/unistdio/u8-sprintf.c: Likewise.
84880         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
84881         * lib/unistdio/u8-u8-asprintf.c: Likewise.
84882         * lib/unistdio/u8-u8-snprintf.c: Likewise.
84883         * lib/unistdio/u8-u8-sprintf.c: Likewise.
84884         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
84885         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
84886         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
84887         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
84888         * lib/unistdio/u8-vasnprintf.c: Likewise.
84889         * lib/unistdio/u8-vasprintf.c: Likewise.
84890         * lib/unistdio/u8-vsnprintf.c: Likewise.
84891         * lib/unistdio/u8-vsprintf.c: Likewise.
84892         * lib/unistdio/ulc-asnprintf.c: Likewise.
84893         * lib/unistdio/ulc-asprintf.c: Likewise.
84894         * lib/unistdio/ulc-printf-parse.c: Likewise.
84895         * lib/unistdio/ulc-snprintf.c: Likewise.
84896         * lib/unistdio/ulc-sprintf.c: Likewise.
84897         * lib/unistdio/ulc-vasnprintf.c: Likewise.
84898         * lib/unistdio/ulc-vasprintf.c: Likewise.
84899         * lib/unistdio/ulc-vsnprintf.c: Likewise.
84900         * lib/unistdio/ulc-vsprintf.c: Likewise.
84901         * lib/unistr.h: Likewise.
84902         * lib/unistr/u-cpy-alloc.h: Likewise.
84903         * lib/unistr/u-cpy.h: Likewise.
84904         * lib/unistr/u-endswith.h: Likewise.
84905         * lib/unistr/u-move.h: Likewise.
84906         * lib/unistr/u-set.h: Likewise.
84907         * lib/unistr/u-startswith.h: Likewise.
84908         * lib/unistr/u-stpcpy.h: Likewise.
84909         * lib/unistr/u-stpncpy.h: Likewise.
84910         * lib/unistr/u-strcat.h: Likewise.
84911         * lib/unistr/u-strcpy.h: Likewise.
84912         * lib/unistr/u-strcspn.h: Likewise.
84913         * lib/unistr/u-strdup.h: Likewise.
84914         * lib/unistr/u-strlen.h: Likewise.
84915         * lib/unistr/u-strncat.h: Likewise.
84916         * lib/unistr/u-strncpy.h: Likewise.
84917         * lib/unistr/u-strnlen.h: Likewise.
84918         * lib/unistr/u-strpbrk.h: Likewise.
84919         * lib/unistr/u-strspn.h: Likewise.
84920         * lib/unistr/u-strstr.h: Likewise.
84921         * lib/unistr/u-strtok.h: Likewise.
84922         * lib/unistr/u16-check.c: Likewise.
84923         * lib/unistr/u16-chr.c: Likewise.
84924         * lib/unistr/u16-cmp.c: Likewise.
84925         * lib/unistr/u16-cpy-alloc.c: Likewise.
84926         * lib/unistr/u16-cpy.c: Likewise.
84927         * lib/unistr/u16-endswith.c: Likewise.
84928         * lib/unistr/u16-mblen.c: Likewise.
84929         * lib/unistr/u16-mbsnlen.c: Likewise.
84930         * lib/unistr/u16-mbtouc-aux.c: Likewise.
84931         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
84932         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
84933         * lib/unistr/u16-mbtouc.c: Likewise.
84934         * lib/unistr/u16-mbtoucr.c: Likewise.
84935         * lib/unistr/u16-move.c: Likewise.
84936         * lib/unistr/u16-next.c: Likewise.
84937         * lib/unistr/u16-prev.c: Likewise.
84938         * lib/unistr/u16-set.c: Likewise.
84939         * lib/unistr/u16-startswith.c: Likewise.
84940         * lib/unistr/u16-stpcpy.c: Likewise.
84941         * lib/unistr/u16-stpncpy.c: Likewise.
84942         * lib/unistr/u16-strcat.c: Likewise.
84943         * lib/unistr/u16-strchr.c: Likewise.
84944         * lib/unistr/u16-strcmp.c: Likewise.
84945         * lib/unistr/u16-strcpy.c: Likewise.
84946         * lib/unistr/u16-strcspn.c: Likewise.
84947         * lib/unistr/u16-strdup.c: Likewise.
84948         * lib/unistr/u16-strlen.c: Likewise.
84949         * lib/unistr/u16-strmblen.c: Likewise.
84950         * lib/unistr/u16-strmbtouc.c: Likewise.
84951         * lib/unistr/u16-strncat.c: Likewise.
84952         * lib/unistr/u16-strncmp.c: Likewise.
84953         * lib/unistr/u16-strncpy.c: Likewise.
84954         * lib/unistr/u16-strnlen.c: Likewise.
84955         * lib/unistr/u16-strpbrk.c: Likewise.
84956         * lib/unistr/u16-strrchr.c: Likewise.
84957         * lib/unistr/u16-strspn.c: Likewise.
84958         * lib/unistr/u16-strstr.c: Likewise.
84959         * lib/unistr/u16-strtok.c: Likewise.
84960         * lib/unistr/u16-to-u32.c: Likewise.
84961         * lib/unistr/u16-to-u8.c: Likewise.
84962         * lib/unistr/u16-uctomb-aux.c: Likewise.
84963         * lib/unistr/u16-uctomb.c: Likewise.
84964         * lib/unistr/u32-check.c: Likewise.
84965         * lib/unistr/u32-chr.c: Likewise.
84966         * lib/unistr/u32-cmp.c: Likewise.
84967         * lib/unistr/u32-cpy-alloc.c: Likewise.
84968         * lib/unistr/u32-cpy.c: Likewise.
84969         * lib/unistr/u32-endswith.c: Likewise.
84970         * lib/unistr/u32-mblen.c: Likewise.
84971         * lib/unistr/u32-mbsnlen.c: Likewise.
84972         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
84973         * lib/unistr/u32-mbtouc.c: Likewise.
84974         * lib/unistr/u32-mbtoucr.c: Likewise.
84975         * lib/unistr/u32-move.c: Likewise.
84976         * lib/unistr/u32-next.c: Likewise.
84977         * lib/unistr/u32-prev.c: Likewise.
84978         * lib/unistr/u32-set.c: Likewise.
84979         * lib/unistr/u32-startswith.c: Likewise.
84980         * lib/unistr/u32-stpcpy.c: Likewise.
84981         * lib/unistr/u32-stpncpy.c: Likewise.
84982         * lib/unistr/u32-strcat.c: Likewise.
84983         * lib/unistr/u32-strchr.c: Likewise.
84984         * lib/unistr/u32-strcmp.c: Likewise.
84985         * lib/unistr/u32-strcpy.c: Likewise.
84986         * lib/unistr/u32-strcspn.c: Likewise.
84987         * lib/unistr/u32-strdup.c: Likewise.
84988         * lib/unistr/u32-strlen.c: Likewise.
84989         * lib/unistr/u32-strmblen.c: Likewise.
84990         * lib/unistr/u32-strmbtouc.c: Likewise.
84991         * lib/unistr/u32-strncat.c: Likewise.
84992         * lib/unistr/u32-strncmp.c: Likewise.
84993         * lib/unistr/u32-strncpy.c: Likewise.
84994         * lib/unistr/u32-strnlen.c: Likewise.
84995         * lib/unistr/u32-strpbrk.c: Likewise.
84996         * lib/unistr/u32-strrchr.c: Likewise.
84997         * lib/unistr/u32-strspn.c: Likewise.
84998         * lib/unistr/u32-strstr.c: Likewise.
84999         * lib/unistr/u32-strtok.c: Likewise.
85000         * lib/unistr/u32-to-u16.c: Likewise.
85001         * lib/unistr/u32-to-u8.c: Likewise.
85002         * lib/unistr/u32-uctomb.c: Likewise.
85003         * lib/unistr/u8-check.c: Likewise.
85004         * lib/unistr/u8-chr.c: Likewise.
85005         * lib/unistr/u8-cmp.c: Likewise.
85006         * lib/unistr/u8-cpy-alloc.c: Likewise.
85007         * lib/unistr/u8-cpy.c: Likewise.
85008         * lib/unistr/u8-endswith.c: Likewise.
85009         * lib/unistr/u8-mblen.c: Likewise.
85010         * lib/unistr/u8-mbsnlen.c: Likewise.
85011         * lib/unistr/u8-mbtouc-aux.c: Likewise.
85012         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
85013         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
85014         * lib/unistr/u8-mbtouc.c: Likewise.
85015         * lib/unistr/u8-mbtoucr.c: Likewise.
85016         * lib/unistr/u8-move.c: Likewise.
85017         * lib/unistr/u8-next.c: Likewise.
85018         * lib/unistr/u8-prev.c: Likewise.
85019         * lib/unistr/u8-set.c: Likewise.
85020         * lib/unistr/u8-startswith.c: Likewise.
85021         * lib/unistr/u8-stpcpy.c: Likewise.
85022         * lib/unistr/u8-stpncpy.c: Likewise.
85023         * lib/unistr/u8-strcat.c: Likewise.
85024         * lib/unistr/u8-strchr.c: Likewise.
85025         * lib/unistr/u8-strcmp.c: Likewise.
85026         * lib/unistr/u8-strcpy.c: Likewise.
85027         * lib/unistr/u8-strcspn.c: Likewise.
85028         * lib/unistr/u8-strdup.c: Likewise.
85029         * lib/unistr/u8-strlen.c: Likewise.
85030         * lib/unistr/u8-strmblen.c: Likewise.
85031         * lib/unistr/u8-strmbtouc.c: Likewise.
85032         * lib/unistr/u8-strncat.c: Likewise.
85033         * lib/unistr/u8-strncmp.c: Likewise.
85034         * lib/unistr/u8-strncpy.c: Likewise.
85035         * lib/unistr/u8-strnlen.c: Likewise.
85036         * lib/unistr/u8-strpbrk.c: Likewise.
85037         * lib/unistr/u8-strrchr.c: Likewise.
85038         * lib/unistr/u8-strspn.c: Likewise.
85039         * lib/unistr/u8-strstr.c: Likewise.
85040         * lib/unistr/u8-strtok.c: Likewise.
85041         * lib/unistr/u8-to-u16.c: Likewise.
85042         * lib/unistr/u8-to-u32.c: Likewise.
85043         * lib/unistr/u8-uctomb-aux.c: Likewise.
85044         * lib/unistr/u8-uctomb.c: Likewise.
85045         * lib/unitypes.h: Likewise.
85046         * lib/uniwidth.h: Likewise.
85047         * lib/uniwidth/cjk.h: Likewise.
85048         * lib/uniwidth/u16-strwidth.c: Likewise.
85049         * lib/uniwidth/u16-width.c: Likewise.
85050         * lib/uniwidth/u32-strwidth.c: Likewise.
85051         * lib/uniwidth/u32-width.c: Likewise.
85052         * lib/uniwidth/u8-strwidth.c: Likewise.
85053         * lib/uniwidth/u8-width.c: Likewise.
85054         * lib/uniwidth/width.c: Likewise.
85056 2007-10-07  Bruno Haible  <bruno@clisp.org>
85058         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
85059         The file is still under LGPL (see modules/inttypes).
85061 2007-10-06  Bruno Haible  <bruno@clisp.org>
85063         * modules/trunc (Dependencies): Add 'extensions'.
85064         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
85065         Reported by Ben Pfaff <blp@gnu.org>.
85067 2007-10-06  Bruno Haible  <bruno@clisp.org>
85069         * modules/freopen-tests: New file.
85070         * tests/test-freopen.c: New file.
85072         * modules/fopen-tests: New file.
85073         * tests/test-fopen.c: New file.
85075         * modules/fopen: New file.
85076         * lib/fopen.c: New file.
85077         * m4/fopen.m4: New file.
85078         * modules/freopen: New file.
85079         * lib/freopen.c: New file.
85080         * m4/freopen.m4: New file.
85081         * lib/stdio.in.h (fopen, freopen): New declarations.
85082         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
85083         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
85084         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
85085         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
85086         * doc/functions/fopen.texi: Mention the 'fopen' module.
85087         * doc/functions/freopen.texi: Mention the 'freopen' module.
85089 2007-10-06  Bruno Haible  <bruno@clisp.org>
85091         * modules/open-tests: New file.
85092         * tests/test-open.c: New file.
85094         * modules/open: New file.
85095         * lib/open.c: New file.
85096         * m4/open.m4: New file.
85097         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
85098         lib/open.c does.
85099         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
85100         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
85101         macros.
85102         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
85103         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
85104         REPLACE_OPEN.
85105         * doc/functions/open.texi: Mention the 'open' module.
85107 2007-10-04  Bruno Haible  <bruno@clisp.org>
85109         * modules/ceill-tests: New file.
85110         * tests/test-ceill.c: New file.
85112         * modules/ceill: New file.
85113         * lib/ceill.c: Replace entire file.
85114         * m4/ceill.m4: New file.
85115         * lib/math.in.h (ceill): Replace declaration.
85116         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
85117         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
85118         * doc/functions/ceill.texi: Mention the 'ceill' module.
85119         * modules/mathl (Files): Remove lib/ceill.c.
85120         (Depends-on): Add ceill.
85122 2007-10-04  Bruno Haible  <bruno@clisp.org>
85124         * modules/ceilf-tests: New file.
85125         * tests/test-ceilf.c: New file.
85127         * modules/ceilf: New file.
85128         * lib/ceil.c: New file.
85129         * lib/ceilf.c: New file.
85130         * m4/ceilf.m4: New file.
85131         * lib/math.in.h (ceilf): New declaration.
85132         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
85133         HAVE_DECL_CEILF.
85134         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
85135         HAVE_DECL_CEILF.
85136         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
85138 2007-10-04  Bruno Haible  <bruno@clisp.org>
85140         * modules/floorl-tests: New file.
85141         * tests/test-floorl.c: New file.
85143         * modules/floorl: New file.
85144         * lib/floorl.c: Replace entire file.
85145         * m4/floorl.m4: New file.
85146         * lib/math.in.h (floorl): Replace declaration.
85147         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
85148         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
85149         * doc/functions/floorl.texi: Mention the 'floorl' module.
85150         * modules/mathl (Files): Remove lib/floorl.c.
85151         (Depends-on): Add floorl.
85153 2007-10-04  Bruno Haible  <bruno@clisp.org>
85155         * modules/floorf-tests: New file.
85156         * tests/test-floorf.c: New file.
85158         * modules/floorf: New file.
85159         * lib/floor.c: New file.
85160         * lib/floorf.c: New file.
85161         * m4/floorf.m4: New file.
85162         * lib/math.in.h (floorf): New declaration.
85163         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
85164         HAVE_DECL_FLOORF.
85165         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
85166         HAVE_DECL_FLOORF.
85167         * doc/functions/floorf.texi: Mention the 'floorf' module.
85169 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
85170             Bruno Haible  <bruno@clisp.org>
85172         Advertise for the Git server instead of the CVS server.
85173         * doc/gnulib-intro.texi (Steady Development): Mention the Git
85174         repository instead of the CVS one.
85175         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
85176         about all VCS systems generically.
85177         * doc/gnulib.texi (Introduction): Capitalize `Git'.
85179 2007-10-04  Bruno Haible  <bruno@clisp.org>
85181         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
85182         means.
85183         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
85185 2007-10-04  Bruno Haible  <bruno@clisp.org>
85187         * modules/truncl-tests: New file.
85188         * tests/test-truncl.c: New file.
85190         * modules/truncl: New file.
85191         * lib/truncl.c: New file.
85192         * m4/truncl.m4: New file.
85193         * lib/math.in.h (truncl): New declaration.
85194         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
85195         HAVE_DECL_TRUNCL.
85196         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
85197         HAVE_DECL_TRUNCL.
85198         * doc/functions/truncl.texi: Mention the 'truncl' module.
85200 2007-10-04  Bruno Haible  <bruno@clisp.org>
85202         * modules/truncf-tests: New file.
85203         * tests/test-truncf.c: New file.
85205         * modules/truncf: New file.
85206         * lib/trunc.c: Make paramerizable through USE_* macros.
85207         * lib/truncf.c: New file.
85208         * m4/truncf.m4: New file.
85209         * lib/math.in.h (truncf): New declaration.
85210         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
85211         HAVE_DECL_TRUNCF.
85212         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
85213         HAVE_DECL_TRUNCF.
85214         * doc/functions/truncf.texi: Mention the 'truncf' module.
85216 2007-10-03  Bruno Haible  <bruno@clisp.org>
85218         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
85219         augmentation also for tests modules.
85220         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
85221         * modules/atexit-tests (Makefile.am): Likewise.
85222         * modules/binary-io-tests (Makefile.am): Likewise.
85223         * modules/c-strcase-tests (Makefile.am): Likewise.
85224         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
85225         * modules/canonicalize-tests (Makefile.am): Likewise.
85226         * modules/closein-tests (Makefile.am): Likewise.
85227         * modules/fprintf-posix-tests (Makefile.am): Likewise.
85228         * modules/freadahead-tests (Makefile.am): Likewise.
85229         * modules/fseek-tests (Makefile.am): Likewise.
85230         * modules/fseeko-tests (Makefile.am): Likewise.
85231         * modules/ftell-tests (Makefile.am): Likewise.
85232         * modules/ftello-tests (Makefile.am): Likewise.
85233         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
85234         * modules/isnanl-tests (Makefile.am): Likewise.
85235         * modules/lseek-tests (Makefile.am): Likewise.
85236         * modules/mbscasecmp-tests (Makefile.am): Likewise.
85237         * modules/mbscasestr-tests (Makefile.am): Likewise.
85238         * modules/mbschr-tests (Makefile.am): Likewise.
85239         * modules/mbscspn-tests (Makefile.am): Likewise.
85240         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
85241         * modules/mbspbrk-tests (Makefile.am): Likewise.
85242         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
85243         * modules/mbsrchr-tests (Makefile.am): Likewise.
85244         * modules/mbsspn-tests (Makefile.am): Likewise.
85245         * modules/mbsstr-tests (Makefile.am): Likewise.
85246         * modules/printf-posix-tests (Makefile.am): Likewise.
85247         * modules/snprintf-posix-tests (Makefile.am): Likewise.
85248         * modules/sprintf-posix-tests (Makefile.am): Likewise.
85249         * modules/tsearch-tests (Makefile.am): Likewise.
85250         * modules/uniname/uniname-tests (Makefile.am): Likewise.
85251         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
85252         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
85253         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
85254         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
85255         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
85256         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
85257         * modules/vprintf-posix-tests (Makefile.am): Likewise.
85258         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
85259         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
85260         * modules/xstrtoimax-tests (Makefile.am): Likewise.
85261         * modules/xstrtol-tests (Makefile.am): Likewise.
85262         * modules/xstrtoumax-tests (Makefile.am): Likewise.
85263         * modules/yesno-tests (Makefile.am): Likewise.
85265 2007-10-03  Bruno Haible  <bruno@clisp.org>
85267         * modules/trunc-tests: New file.
85268         * tests/test-trunc.c: New file.
85270         * modules/trunc: New file.
85271         * lib/trunc.c: New file.
85272         * m4/trunc.m4: New file.
85273         * lib/math.in.h (trunc): New declaration.
85274         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
85275         HAVE_DECL_TRUNC.
85276         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
85277         HAVE_DECL_TRUNC.
85278         * doc/functions/trunc.texi: Mention the 'trunc' module.
85280 2007-10-03  Bruno Haible  <bruno@clisp.org>
85282         * tests/test-fpending.c: New file, mostly copied
85283         from coreutils/lib/t-fpending.c.
85284         * modules/fpending-tests: New file.
85286 2007-10-03  Bruno Haible  <bruno@clisp.org>
85288         Port the stdio extensions to QNX (untested).
85289         * lib/fseterr.c (fseterr): Add support for QNX.
85290         * lib/fbufmode.c (fbufmode): Likewise.
85291         * lib/freadable.c (freadable): Likewise.
85292         * lib/fwritable.c (fwritable): Likewise.
85293         * lib/freading.c (freading): Likewise.
85294         * lib/fwriting.c (fwriting): Likewise.
85295         * lib/freadahead.c (freadahed): Likewise.
85296         * lib/fpurge.c (fpurge): Likewise.
85297         * lib/fseeko.c (rpl_fseeko): Likewise.
85299 2007-10-03  Bruno Haible  <bruno@clisp.org>
85300             Jim Meyering  <jim@meyering.net>
85301             Eric Blake  <ebb9@byu.net>
85303         * doc/relocatable.texi: Use @command instead of @program.
85305 2007-10-02  Jim Meyering  <jim@meyering.net>
85307         Perform one more "_.h" -> ".in.h" substitution.
85308         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
85309         instead of unistd_.h here, too.
85311 2007-10-01  Bruno Haible  <bruno@clisp.org>
85313         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
85314         Needed for the alloca-opt module.
85316 2007-09-30  Bruno Haible  <bruno@clisp.org>
85318         * lib/alloca.in.h: Renamed from lib/alloca_.h.
85319         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
85320         alloca_.h.
85321         * lib/argz.in.h: Renamed from lib/argz_.h.
85322         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
85323         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
85324         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
85325         byteswap_.h.
85326         * lib/dirent.in.h: Renamed from lib/dirent_.h.
85327         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
85328         dirent_.h.
85329         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
85330         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
85331         fcntl_.h.
85332         * lib/float.in.h: Renamed from lib/float_.h.
85333         * modules/float (Files, Makefile.am): Use float.in.h instead of
85334         float_.h.
85335         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
85336         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
85337         fnmatch_.h.
85338         * lib/getopt.in.h: Renamed from lib/getopt_.h.
85339         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
85340         getopt_.h.
85341         * lib/glob.in.h: Renamed from lib/glob_.h.
85342         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
85343         * lib/iconv.in.h: Renamed from lib/iconv_.h.
85344         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
85345         iconv_.h.
85346         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
85347         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
85348         inttypes_.h.
85349         * lib/locale.in.h: Renamed from lib/locale_.h.
85350         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
85351         locale_.h.
85352         * lib/math.in.h: Renamed from lib/math_.h.
85353         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
85354         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
85355         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
85356         of netinet_in_.h. Add dependency.
85357         * lib/poll.in.h: Renamed from lib/poll_.h.
85358         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
85359         * lib/search.in.h: Renamed from lib/search_.h.
85360         * modules/search (Files, Makefile.am): Use search.in.h instead of
85361         search_.h.
85362         * lib/signal.in.h: Renamed from lib/signal_.h.
85363         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
85364         _signal.h.
85365         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
85366         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
85367         stdbool_.h.
85368         * lib/stdint.in.h: Renamed from lib/stdint_.h.
85369         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
85370         stdint_.h.
85371         * lib/stdio.in.h: Renamed from lib/stdio_.h.
85372         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
85373         stdio_.h.
85374         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
85375         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
85376         stdlib_.h.
85377         * lib/string.in.h: Renamed from lib/string_.h.
85378         * modules/string (Files, Makefile.am): Use string.in.h instead of
85379         string_.h.
85380         * doc/gnulib-tool.texi (Initial import): Update.
85381         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
85382         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
85383         of sys_select_.h. Add dependency.
85384         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
85385         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
85386         of sys_socket_.h.
85387         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
85388         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
85389         sys_stat_.h.
85390         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
85391         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
85392         sys_time_.h.
85393         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
85394         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
85395         sysexits_.h.
85396         * lib/time.in.h: Renamed from lib/time_.h.
85397         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
85398         * lib/unistd.in.h: Renamed from lib/unistd_.h.
85399         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
85400         unistd_.h.
85401         * lib/wchar.in.h: Renamed from lib/wchar_.h.
85402         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
85403         wchar_.h.
85404         * lib/wctype.in.h: Renamed from lib/wctype_.h.
85405         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
85406         wctype_.h.
85407         * build-aux/bootstrap (slurp): Update.
85408         * lib/.cppi-disable: Update.
85410 2007-09-30  Bruno Haible  <bruno@clisp.org>
85412         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
85413         Needed on BeOS.
85415 2007-09-30  Bruno Haible  <bruno@clisp.org>
85417         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
85419 2007-09-29  Bruno Haible  <bruno@clisp.org>
85421         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
85423 2007-09-29  Bruno Haible  <bruno@clisp.org>
85425         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
85426         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
85427         * build-aux/install-reloc: Compile also areadlink.c.
85428         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
85430 2007-09-29  Bruno Haible  <bruno@clisp.org>
85432         * gnulib-tool (func_emit_initmacro_done): Indentation.
85434 2007-09-29  Bruno Haible  <bruno@clisp.org>
85436         * README: Add CVS checkout update instructions.
85437         Info from Bob Proulx <bob@proulx.com>.
85439 2007-09-28  Eric Blake  <ebb9@byu.net>
85441         Provide move-if-change.
85442         * build-aux/move-if-change: New file, based on best practice
85443         rather than any canonical upstream location.
85445 2007-09-28  Jim Meyering  <jim@meyering.net>
85447         Fix canonicalize loop-detection corner case.
85448         Do not attempt to stat the symlink values stored via seen_triple.
85449         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
85450         on linux-2.6.18, (but not 2.6.22).
85451         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
85452         triple_compare.  The former compares dev,ino,filename, while the latter
85453         would actually stat dirname(filename) when dev and ino were equal.
85454         * lib/hash-triple.c: Install <string.h>.
85455         (STREQ): Define.
85456         (triple_compare_ino_str): New function.
85457         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
85459 2007-09-28  Eric Blake  <ebb9@byu.net>
85461         Enforce that AC_REPLACE_FUNCS files exist.
85462         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
85463         override check for typos.
85465         Fix test-closein on Solaris 10.
85466         * tests/test-closein.c (main): Don't assume stdin can be inherited
85467         closed on all systems.
85468         * tests/test-closein.sh: Likewise.
85469         Reported by Piotr Tarnowski.
85471 2007-09-28  Jim Meyering  <jim@meyering.net>
85473         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
85475 2007-09-27  Jim Meyering  <jim@meyering.net>
85477         canonicalize: Avoid a false-positive cycle failure.
85478         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
85479         Sort.  Remove cycle-check.
85480         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
85481         not cycle-check.h.
85482         (seen_triple): New function.
85483         (canonicalize_filename_mode): Use it instead of cycle-check.
85484         * tests/test-canonicalize.c: Add a test for this bug.
85485         * tests/test-canonicalize.sh: Set up and run the test.
85487         New module, file-set, from coreutils.
85488         * modules/file-set: Define it.
85489         * lib/file-set.c, lib/file-set.h: Implement.
85491         New module, hash-triple, from coreutils.
85492         * modules/hash-triple: Define it.
85493         * lib/hash-triple.c, lib/hash-triple.h: Implement.
85495 2007-09-25  Eric Blake  <ebb9@byu.net>
85497         Fix strerror on Interix.
85498         * lib/string_.h (strerror): Declare replacement.
85499         * doc/functions/strerror.texi (strerror): Document the Interix
85500         shortcoming.
85501         * modules/string (Makefile.am): Support new hooks.
85502         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
85503         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
85504         gl_FUNC_STRERROR_SEPARATE.
85505         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
85506         * lib/strerror.c (rpl_strerror): Provide replacement.
85507         * modules/strerror (Depends-on): Add string.
85508         (configure.ac): Detect use of module.
85509         * tests/test-strerror.c: New file.
85510         * modules/strerror-tests: New test module.
85511         * modules/argp (Depends-on): Add strerror.
85512         * modules/error (Depends-on): Likewise.
85513         Reported by Martin Koeppe.
85515 2007-09-24  Bruno Haible  <bruno@clisp.org>
85517         * README: Update git instructions.
85519 2007-09-24  Eric Blake  <ebb9@byu.net>
85521         Revert fpending breakage from 2007-09-08.
85522         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
85523         __fpending.c.
85525 2007-09-24  Jim Meyering  <jim@meyering.net>
85527         filenamecat.c: Add a test.
85528         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
85529         showing how the function works when DIR is the empty string.
85531 2007-09-21  Simon Josefsson  <simon@josefsson.org>
85533         * tests/test-canonicalize.sh: Turn on executable bit.
85535 2007-09-19  Eric Blake  <ebb9@byu.net>
85537         * README: Update CVS instructions.
85539 2007-09-18  Bruno Haible  <bruno@clisp.org>
85541         * modules/areadlink: New file.
85542         * lib/areadlink.h (areadlink): New declaration.
85543         * lib/areadlink.c: New file, based on lib/xreadlink.c.
85545 2007-09-17  Jim Meyering  <jim@meyering.net>
85547         * lib/savewd.c (ESTALE) [!defined]: Define.
85548         Reported to be required on Interix by Martin Koeppe.
85550 2007-09-17  Bruno Haible  <bruno@clisp.org>
85552         * gnulib-tool (func_version): Use $version.
85554 2007-09-16  Bruno Haible  <bruno@clisp.org>
85556         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
85557         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
85558         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
85559         Reported by Greg Schafer <gschafer@zip.com.au>.
85561 2007-09-15  Bruno Haible  <bruno@clisp.org>
85563         * gnulib-tool (sed): Try a little harder to make bash understand the
85564         alias.
85565         Reported by Bruce Korb <bruce.korb@gmail.com>.
85567 2007-09-13  Eric Blake  <ebb9@byu.net>
85569         * ChangeLog: Remove conflict markers.
85571 2007-09-13  Simon Josefsson  <simon@josefsson.org>
85573         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
85574         Reported by Bruno Haible <bruno@clisp.org>.
85576 2007-09-12  Bruno Haible  <bruno@clisp.org>
85578         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
85579         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
85580         is not defined.
85582 2007-09-12  Eric Blake  <ebb9@byu.net>
85584         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
85585         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
85586         Autoconf definition.
85587         * modules/euidaccess (Depends-on): Add extensions, for
85588         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
85589         * modules/fnmatch (Depends-on): Likewise.
85590         * modules/getaddrinfo (Depends-on): Likewise.
85591         * modules/getdelim (Depends-on): Likewise.
85592         * modules/getline (Depends-on): Likewise.
85593         * modules/getsubopt (Depends-on): Likewise.
85594         * modules/gettext (Depends-on): Likewise.
85595         * modules/group-member (Depends-on): Likewise.
85596         * modules/mbchar (Depends-on): Likewise.
85597         * modules/memmem (Depends-on): Likewise.
85598         * modules/mempcpy (Depends-on): Likewise.
85599         * modules/memrchr (Depends-on): Likewise.
85600         * modules/pagealign_alloc (Depends-on): Likewise.
85601         * modules/readutmp (Depends-on): Likewise.
85602         * modules/stpcpy (Depends-on): Likewise.
85603         * modules/stpncpy (Depends-on): Likewise.
85604         * modules/strchrnul (Depends-on): Likewise.
85605         * modules/strndup (Depends-on): Likewise.
85606         * modules/strsep (Depends-on): Likewise.
85607         * modules/strverscmp (Depends-on): Likewise.
85608         * modules/vasprintf (Depends-on): Likewise.
85609         * modules/wcwidth (Depends-on): Likewise.
85610         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
85611         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
85612         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
85613         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
85614         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
85615         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
85616         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
85617         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
85618         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
85619         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
85620         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
85621         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
85622         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
85623         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
85624         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
85625         * m4/readutmp.m4 (gl_READUTMP): Likewise.
85626         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
85627         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
85628         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
85629         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
85630         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
85631         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
85632         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
85633         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
85634         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
85635         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
85636         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
85637         so that lock.m4 can be used in gettext without extensions module.
85639 2007-09-11  Bruno Haible  <bruno@clisp.org>
85641         * m4/isc-posix.m4: Remove file.
85642         Suggested by Eric Blake.
85644 2007-09-11  Eric Blake  <ebb9@byu.net>
85646         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
85648 2007-09-10  Bruno Haible  <bruno@clisp.org>
85650         * posix-modules: Fix typo in error message.
85651         Reported by Matt <mkraai@beckman.com>.
85653 2007-09-09  Bruno Haible  <bruno@clisp.org>
85655         * doc/functions/getdelim.texi: Update list of platforms lacking the
85656         function.
85657         * doc/functions/getline.texi: Likewise.
85659 2007-09-09  Jim Meyering  <jim@meyering.net>
85661         * lib/hash.c (hash_initialize): Detect calloc failure.
85662         Reported by Bruno Haible.
85664 2007-09-09  Bruno Haible  <bruno@clisp.org>
85666         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
85667         malloc or realloc fails.
85669 2007-09-09  Bruno Haible  <bruno@clisp.org>
85671         * modules/getcwd (Depends-on): Add malloc-posix.
85672         * modules/glob (Depends-on): Likewise.
85673         * modules/putenv (Depends-on): Likewise.
85674         * modules/strdup (Depends-on): Likewise.
85675         * modules/getdelim (Depends-on): Add realloc-posix.
85676         * modules/read-file (Depends-on): Likewise.
85678 2007-09-09  Bruno Haible  <bruno@clisp.org>
85680         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
85681         (gl_FUNC_MALLOC_POSIX): Require it.
85682         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
85683         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
85684         * modules/realloc (Files): Add m4/malloc.m4.
85685         * modules/calloc (Files): Likewise.
85687 2007-09-09  Bruno Haible  <bruno@clisp.org>
85689         * modules/malloc-posix: New file.
85690         * modules/malloc (Depends-on): Add malloc-posix.
85691         * lib/malloc.c: Include errno.h.
85692         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
85693         and a POSIX-compatible malloc into a single function. Set ENOMEM
85694         when returning NULL.
85695         * m4/malloc.m4: New file.
85696         * doc/functions/malloc.texi: Mention the malloc-posix module.
85697         * lib/stdlib_.h (malloc): New declaration.
85698         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
85699         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
85700         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
85701         and HAVE_MALLOC_POSIX.
85703 2007-09-09  Bruno Haible  <bruno@clisp.org>
85705         * modules/realloc-posix: New file.
85706         * modules/realloc (Depends-on): Add realloc-posix.
85707         * lib/realloc.c: Include errno.h.
85708         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
85709         and a POSIX-compatible realloc into a single function. Set ENOMEM
85710         when returning NULL.
85711         * m4/realloc.m4: New file.
85712         * doc/functions/realloc.texi: Mention the realloc-posix module.
85713         * lib/stdlib_.h (realloc): New declaration.
85714         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
85715         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
85716         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
85717         and HAVE_REALLOC_POSIX.
85719 2007-09-09  Bruno Haible  <bruno@clisp.org>
85721         * modules/calloc-posix: New file.
85722         * modules/calloc (Depends-on): Add calloc-posix.
85723         * lib/calloc.c: Include errno.h.
85724         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
85725         and a POSIX-compatible calloc into a single function. Set ENOMEM
85726         when returning NULL.
85727         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
85728         * doc/functions/calloc.texi: Mention the calloc-posix module.
85729         * lib/stdlib_.h (calloc): New declaration.
85730         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
85731         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
85732         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
85733         and HAVE_CALLOC_POSIX.
85735 2007-09-09  Bruno Haible  <bruno@clisp.org>
85737         Allow for modules to show an arbitrary notice.
85738         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
85739         * gnulib-tool: New option --extract-notice.
85740         (func_usage): Document it.
85741         (sed_extract_prog): Update.
85742         (func_get_notice): New function.
85743         (func_modules_notice): New function.
85744         (func_import, func_create_testdir): Invoke it.
85745         Suggested by Jim Meyering.
85747 2007-09-09  Bruno Haible  <bruno@clisp.org>
85749         * gnulib-tool: New options --verbose, --quiet.
85750         (func_usage): Document them.
85751         (verbose): New variable.
85752         (func_execute_command): New function.
85753         (func_import): Don't show the module list and the file list if
85754         $verbose < 0.
85755         (func_create_testdir): Likewise. Use func_execute_command.
85756         (func_create_megatestdir): Use func_execute_command.
85758 2007-09-08  Bruno Haible  <bruno@clisp.org>
85760         * gnulib-tool (func_import): Prefer rsync over wget when available,
85761         for fetching the PO files.
85763 2007-09-08  Bruno Haible  <bruno@clisp.org>
85765         * posix-modules: New file. Portions copied from gnulib-tool.
85766         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
85768 2007-09-08  Jim Meyering  <jim@meyering.net>
85770         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
85771         * lib/fpending.h: Rename from __fpending.h.
85772         * lib/fpending.c: Rename from __fpending.c.
85773         Include "fpending.h", not "__fpending.h".
85774         * lib/__fpending.h, lib/__fpending.c: Remove files.
85775         * modules/fpending (Files): Reflect new file names.
85776         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
85778 2007-09-08  Bruno Haible  <bruno@clisp.org>
85780         * m4/inttypes-h.m4: Remove stub file.
85782 2007-09-07  Simon Josefsson  <simon@josefsson.org>
85784         * doc/headers/stdint.texi: Discuss #include_next issue.
85786 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
85788         * build-aux/bootstrap: Remove obsolete comment about wget --help.
85790 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
85792         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
85793         in variable name.
85795 2007-09-03  Jim Meyering  <jim@meyering.net>
85797         New module: git-version-gen.
85798         * modules/git-version-gen: New file.
85800         Import changes from coreutils for bootstrap script.
85802         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
85804         bootstrap: uses rsync to download the .po files
85805         * build-aux/bootstrap (po_download_command_format): New global.
85806         (download_po_files): Use rsync.
85807         (update_po_files): Don't remove .po files after download,
85808         so future rsync runs can take advantage of the copies.
85810         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
85812         Solve the unnecessary-.po-file-regeneration problem once and for all.
85813         * build-aux/bootstrap (download_po_files): New function, renamed from
85814         get_translations.  Now, downloads, but doesn't update LINGUAS.
85815         (update_po_files): New function.
85817         bootstrap: Ignore more.
85818         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
85819         uniwidth to e.g., lib/.gitignore.
85820         (slurp): Handle the sys_stat_.h -> sys mapping, too.
85822         * build-aux/bootstrap: New setting: vc_ignore.
85823         (insert_sorted_if_absent): Create $file if absent.
85824         Adapt to new, possibly empty, list: $vc_ignore.
85826         bootstrap: generate more ignorable names
85827         * build-aux/bootstrap (slurp): When generating ignorable names,
85828         also map .sin to .sed, .gperf to .c, and .y to .c.
85830 2007-09-03  Jim Meyering  <jim@meyering.net>
85832         * build-aux/git-version-gen: New file, from coreutils.  For details, see
85833         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
85835 2007-09-02  Bruno Haible  <bruno@clisp.org>
85837         Fix mis-recognition of 'mcs' on QNX 6.
85838         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
85839         output contains the string "Mono".
85840         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
85841         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
85843 2007-09-01  Bruno Haible  <bruno@clisp.org>
85845         Fix collision between uniwidth/* and linebreak modules.
85846         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
85847         u32_width): Remove declarations.
85848         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
85849         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
85850         streq3, streq2, streq1, streq0): Remove functions.
85851         (STREQ): Remove macro.
85852         (is_cjk_encoding): Remove function.
85853         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
85854         (uc_width, u8_width, u16_width, u32_width): Remove functions.
85855         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
85856         * NEWS: Document the change.
85858 2007-09-01  Bruno Haible  <bruno@clisp.org>
85860         * lib/streq.h: Add double-inclusion guard.
85862 2007-09-01  Karl Berry  <karl@gnu.org>
85864         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
85866 2007-08-28  Jim Meyering  <jim@meyering.net>
85868         Rename mreadlink_with_size to areadlink_with_size.
85869         * NEWS: Document the change.
85870         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
85871         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
85872         * lib/mreadlink.h: Rename this to...
85873         * lib/areadlink.h: ...this.
85874         * modules/mreadlink-with-size: Rename this to...
85875         * modules/areadlink-with-size: ...this.
85876         * lib/canonicalize.c: Reflect the renaming.
85877         * modules/canonicalize: Likewise.
85879 2007-08-26  Bruno Haible  <bruno@clisp.org>
85881         * gnulib-tool (func_import): When deciding which files to remove,
85882         consider also dangling symbolic links.
85883         Reported by Eric Blake.
85885 2007-08-26  Bruno Haible  <bruno@clisp.org>
85887         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
85889 2007-08-23  Simon Josefsson  <simon@josefsson.org>
85891         * lib/readline.c: Don't include getline.h, the prototype is now
85892         found in stdio.h.
85894 2007-08-23  Jim Meyering  <jim@meyering.net>
85896         Getdelim touchup.
85897         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
85898         around the funlockfile call, since funlockfile never sets errno.
85899         Don't set errno upon failed realloc.
85901 2007-08-22  Eric Blake  <ebb9@byu.net>
85903         Getline touchups.
85904         * lib/getdelim.c (getdelim): Revert regression that required *n to
85905         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
85906         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
85907         getdelim, rather than whether implementation is missing.
85908         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
85909         * lib/stdio_.h (getline): Also declare if replacement is
85910         required.
85911         * doc/functions/getdelim.texi: New file.
85912         * doc/functions/getline.texi: Likewise.
85913         * doc/gnulib.texi (Function Substitutes): Add new files.
85914         Reported by Bruno Haible.
85916 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
85918         * users.txt: Add Guile.
85920 2007-08-22  Eric Blake  <ebb9@byu.net>
85922         * tests/test-getdelim.c (main): Use remove, not unlink.
85923         * tests/test-getline.c (main): Likewise.
85925         Move getline and getdelim into stdio.h, per POSIX 200x.
85926         * modules/getline (Files): Remove getline.h.
85927         (Depends-on): Add stdio.
85928         (configure.ac): Add module indicator.
85929         * modules/getdelim (Files): Remove getdelim.h.
85930         (Depends-on): Add stdio.
85931         (configure.ac): Add module indicator.
85932         * modules/stdio (Makefile.am): Work with new indicators.
85933         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
85934         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
85935         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
85936         * lib/getdelim.h: Delete.
85937         * lib/getline.h: Delete.
85938         * lib/stdio_.h (getdelim, getline): Declare.
85939         * modules/getdelim-tests: New module.
85940         * modules/getline-tests: Likewise.
85941         * tests/test-getdelim.c: New file.
85942         * tests/test-getline.c: Likewise.
85943         * NEWS: Document the change.
85944         * lib/getline.c: Update choice of header.
85945         * lib/csharpcomp.c: Likewise.
85946         * lib/getpass.c: Likewise.
85947         * lib/javacomp.c: Likewise.
85948         * lib/javaversion.c: Likewise.
85949         * lib/yesno.c: Likewise.
85950         * lib/getdelim.c: Likewise.
85951         (getdelim): Set errno on failure, and avoid memory leak.
85953 2007-08-19  Bruno Haible  <bruno@clisp.org>
85955         * modules/closein (Depends-on): Add freadahead.
85956         * lib/closein.c: Include freadahead.h.
85957         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
85958         is zero.
85960 2007-08-19  Bruno Haible  <bruno@clisp.org>
85962         * modules/freadahead-tests: New file.
85963         * tests/test-freadahead.sh: New file.
85964         * tests/test-freadahead.c: New file.
85966         * modules/freadahead: New file.
85967         * lib/freadahead.h: New file.
85968         * lib/freadahead.c: New file.
85969         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
85970         fbufmode, fpurge, freadable, fwritable.
85972 2007-08-19  Eric Blake  <ebb9@byu.net>
85974         Test yesno in combination with closein.
85975         * lib/yesno.c (yesno): Document use of stdin.
85976         * modules/yesno-tests (Files): New module.
85977         * tests/test-yesno.c (main): New file.
85978         * tests/test-yesno.sh: Likewise.
85980 2007-08-19  Bruno Haible  <bruno@clisp.org>
85982         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
85983         * lib/fseeko.c (rpl_fseeko): Likewise.
85984         * lib/fseterr.c (fseterr): Likewise.
85986 2007-08-19  Bruno Haible  <bruno@clisp.org>
85988         * tests/test-lseek.c (main): Disable a test for BeOS.
85989         * doc/functions/lseek.texi: Document the BeOS bug.
85991 2007-08-19  Bruno Haible  <bruno@clisp.org>
85992             Eric Blake  <ebb9@byu.net>
85994         * lib/lseek.c: Include <sys/stat.h>.
85995         (rpl_lseek): Add workaround code also for Unix platforms.
85996         Needed for BeOS.
85997         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
85998         * doc/functions/lseek.texi: Document BeOS definiency.
86000 2007-08-18  Bruno Haible  <bruno@clisp.org>
86002         * modules/fstrcmp-tests: New file.
86003         * tests/test-fstrcmp.c: New file.
86005 2007-08-18  Bruno Haible  <bruno@clisp.org>
86007         * modules/fstrcmp: New file, from GNU gettext with modifications.
86008         * lib/fstrcmp.h: New file, from GNU gettext.
86009         * lib/fstrcmp.c: New file, from GNU gettext.
86010         * MODULES.html.sh (String handling): Add fstrcmp.
86012 2007-08-18  Bruno Haible  <bruno@clisp.org>
86014         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
86015         'bool'.
86016         (diag, compareseq): Remove const from the ctxt argument.
86017         (USE_HEURISTIC): Undefine at the end.
86019 2007-08-18  Jim Meyering  <jim@meyering.net>
86021         New file: lib/idcache.h
86022         * NEWS: Mention the addition.
86023         * modules/idcache (Files): Add lib/idcache.h
86024         * lib/idcache.c: Include "idcache.h".
86025         Don't include <sys/types.h>.
86026         Add a FIXME comment.
86027         Move file-scoped "static" declarations to the top.
86028         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
86030 2007-08-17  Bruno Haible  <bruno@clisp.org>
86031         and Paul Eggert  <eggert@cs.ucla.edu>
86033         * MODULES.html.sh: Add diffseq.
86034         * modules/diffseq: New file.
86035         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
86036         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
86038 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
86040         Import changes from coreutils for bootstrap script.
86042         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
86044         * build-aux/bootstrap (slurp): Work even in environments where
86045         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
86046         current code does not slurp files whose names start with ".", and
86047         this looks like it might be a troublesome area.
86049         2007-07-11  Jim Meyering  <jim@meyering.net>
86051         If there's a GPL vN copyright comment, require that N == 3.
86053         2007-07-08  Jim Meyering  <jim@meyering.net>
86055         Run the coreutils-specific code only if tests/Makefile.am.in exists.
86056         * build-aux/bootstrap (mam_template): Move definition out of loop.
86058         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
86060         * build-aux/bootstrap (symlink_to_dir): Rename function from
86061         symlink_to_gnulib.  Add a directory parameter.  Update all
86062         callers.
86063         (cp_mark_as_generated): Also check for -- and link to -- files in
86064         gl/.
86066         2007-07-08  Jim Meyering  <jim@meyering.net>
86068         Adapt to deeper hierarchy in gnulib.
86069         * build-aux/bootstrap (symlink_to_dir): If the destination
86070         directory doesn't exist, create it. This is required at least for
86071         "lib/uniwidth/cjk.h".
86073         2007-05-15  Jim Meyering  <jim@meyering.net>
86075         * build-aux/bootstrap: Now that generated Makefile.am files
86076         are no longer under version control, they must be created at
86077         bootstrap time.
86079 2007-08-14  Ben Pfaff  <blp@gnu.org>
86081         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
86083 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
86085         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
86086         given the changes below.
86087         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
86088         even on hosts that have padding bits beyond the supported 64.
86090 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
86092         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
86093         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
86094         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
86095         depends on it.
86096         (xstrtol_error): Remove.
86097         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
86098         but with a different signature.
86099         (ATTRIBUTE_NORETURN, __attribute__): New macros.
86100         * lib/xstrtol-error.c: Include exitfail.h.
86101         (xstrtol_fatal): New function, with a different signature from the
86102         old xstrtol_error, so that the caller need not worry about passing
86103         in an exit status, or about storage management of the option argument.
86104         (xstrtol_error): Now a static function.  Redo signature to
86105         implement xstrtol_fatal.  Output the correct number of hyphens in
86106         front of the option so that the caller need not worry about
86107         storage management.
86108         (N_): New macro.
86109         (_): Remove; not used now.
86110         * modules/xstrtol: Depend on getopt.
86111         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
86112         of old STRTOL_FATAL_ERROR macro.
86113         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
86114         of test program.
86115         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
86116         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
86118 2007-08-08  Eric Blake  <ebb9@byu.net>
86120         * lib/xstrtol-error.c: Add missing include.
86122         Move xstrtol messages into gnulib domain, when --pobase is used.
86123         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
86124         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
86125         * modules/xstrtol (Files): Distribute new file.
86126         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
86127         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
86128         * tests/test-xstrtol.c: ...into new file.
86129         * tests/test-xstrtoul.c: Also test xstrtoul.
86130         * tests/test-xstrtoimax.c: Also test xstrtoimax.
86131         * tests/test-xstrtoumax.c: Also test xstrtoumax.
86132         * tests/test-xstrtol.sh: Drive the tests.
86133         * tests/test-xstrtoimax.sh: Likewise.
86134         * tests/test-xstrtoumax.sh: Likewise.
86135         * modules/xstrtol-tests: New module.
86136         * modules/xstrtoimax-tests: Likewise.
86137         * modules/xstrtoumax-tests: Likewise.
86139 2007-08-08  Jim Meyering  <jim@meyering.net>
86141         New function: mfile_name_concat.
86142         * lib/filenamecat.c (mfile_name_concat): New function, just like
86143         file_name_concat, but return NULL upon failure rather than exiting
86144         with a diagnostic.
86145         * lib/filenamecat.h: Declare it.
86147 2007-08-07  Bruno Haible  <bruno@clisp.org>
86149         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
86150         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
86151         warning from gcc.
86152         Reported by Eric Blake.
86154 2007-08-07  Simon Josefsson  <simon@josefsson.org>
86156         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
86157         * modules/crypto/arcfour (License): Likewise.
86158         * modules/crypto/des-tests (License): Likewise.
86159         * modules/crypto/gc-arctwo-tests (License): Likewise.
86160         * modules/crypto/gc-des-tests (License): Likewise.
86161         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
86162         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
86163         * modules/crypto/gc-md2-tests (License): Likewise.
86164         * modules/crypto/gc-md4-tests (License): Likewise.
86165         * modules/crypto/gc-md5-tests (License): Likewise.
86166         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
86167         * modules/crypto/gc-rijndael-tests (License): Likewise.
86168         * modules/crypto/gc-sha1-tests (License): Likewise.
86169         * modules/crypto/gc-tests (License): Likewise.
86170         * modules/crypto/hmac-md5 (License): Likewise.
86171         * modules/crypto/hmac-sha1 (License): Likewise.
86172         * modules/crypto/md2-tests (License): Likewise.
86173         * modules/crypto/md4-tests (License): Likewise.
86174         * modules/crypto/md5 (License): Likewise.
86175         * modules/crypto/rijndael (License): Likewise.
86176         * modules/crypto/sha1 (License): Likewise.
86177         * modules/memxor (License): Likewise.
86179 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
86180         and Bruno Haible  <bruno@clisp.org>
86182         * NEWS: Describe interface changes to human, xstrtol.
86183         * lib/human.h: Include <xstrtol.h>.
86184         (human_options): Return enum strtol_error, not int.  Remove
86185         bool arg; take int * instead.
86186         * lib/human.c: Don't include "gettext.h".
86187         (_): Remove; no longer used.
86188         Don't include <xstrtol.h>, since human.h does it.
86189         (human_options): Adjust to abovementioned interface changes.
86190         Do not report error to stderr; that's now the caller's
86191         responsibility.
86192         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
86193         interface change.
86194         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
86195         Str, Argument_type_string.  All uses changed.  Put " argument"
86196         in diagnostics to make them clearer.  Change wording of suffix
86197         message for clarity.
86198         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
86199         Argument_type_string.
86200         (STRTOL_FATAL_WARN): Remove; no longer used.
86201         * modules/human (Depends-on): Remove gettext-h.
86203 2007-08-06  Simon Josefsson  <simon@josefsson.org>
86205         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
86207 2007-07-31  Bruno Haible  <bruno@clisp.org>
86209         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
86210         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
86211         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
86213 2007-07-31  Bruno Haible  <bruno@clisp.org>
86215         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
86216         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
86218 2007-07-30  Bruno Haible  <bruno@clisp.org>
86220         * modules/base64 (License): Use the synonymous term "LGPLv2+".
86221         * modules/c-ctype (License): Likewise.
86222         * modules/c-strcase (License): Likewise.
86223         * modules/check-version (License): Likewise.
86224         * modules/iconv (License): Likewise.
86225         * modules/iconv_open (License): Likewise.
86226         * modules/read-file (License): Likewise.
86227         * modules/striconv (License): Likewise.
86228         * modules/strverscmp (License): Likewise.
86229         * modules/vasprintf (License): Likewise.
86230         * modules/crypto/des (License): Likewise.
86231         * modules/crypto/gc (License): Likewise.
86232         * modules/crypto/gc-arcfour (License): Likewise.
86233         * modules/crypto/gc-arctwo (License): Likewise.
86234         * modules/crypto/gc-des (License): Likewise.
86235         * modules/crypto/gc-hmac-md5 (License): Likewise.
86236         * modules/crypto/gc-hmac-sha1 (License): Likewise.
86237         * modules/crypto/gc-md2 (License): Likewise.
86238         * modules/crypto/gc-md4 (License): Likewise.
86239         * modules/crypto/gc-md5 (License): Likewise.
86240         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
86241         * modules/crypto/gc-random (License): Likewise.
86242         * modules/crypto/gc-rijndael (License): Likewise.
86243         * modules/crypto/gc-sha1 (License): Likewise.
86244         * modules/crypto/md2 (License): Likewise.
86245         * modules/crypto/md4 (License): Likewise.
86247 2007-07-30  Jim Meyering  <jim@meyering.net>
86249         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
86250         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
86251         it has valid stat data.  This bug would cause du not to count the
86252         sizes of inaccessible directories.
86253         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
86254         in <http://bugzilla.redhat.com/250077>.
86256 2007-07-25  Peter O'Gorman  <peter@pogma.com>
86257             Bruno Haible  <bruno@clisp.org>
86259         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
86260         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
86261         #include_next, gives a diagnostic about it, but reports no error in
86262         the exit code.
86263         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
86265 2007-07-24  Ben Pfaff  <blp@gnu.org>
86267         Improve name: "count-one-bits" is better than "popcount".
86268         * MODULES.html.sh: Update name.
86269         * lib/popcount.h: Renamed lib/count-one-bits.h.
86270         (popcount): Renamed count_one_bits.
86271         (popcountl): Renamed count_one_bits_l.
86272         (popcountll): Renamed count_one_bits_ll.
86273         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
86274         * modules/popcount: Renamed module/count-one-bits.
86275         * modules/popcount-tests: Renamed module/count-one-bits-tests.
86276         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
86278 2007-07-23  Ben Pfaff  <blp@gnu.org>
86280         * lib/popcount.h (popcount32): Reduce size of constants, to allow
86281         better code generation, and add U to large constants to avoid
86282         warnings, in non-GCC case.
86283         Suggested by Bruno Haible.
86285 2007-07-23  Ben Pfaff  <blp@gnu.org>
86287         * lib/popcount.h: Use verify_true instead of if...abort.
86288         * modules/popcount: Depend on verify module.
86289         Suggested by Jim Meyering.
86291 2007-07-23  Bruno Haible  <bruno@clisp.org>
86293         * gnulib-tool (func_import): Create a .cvsignore file also when the
86294         directory is not yet in CVS but the toplevel directory is. When
86295         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
86296         Reported by Karl Berry.
86298 2007-07-22  Ben Pfaff  <blp@gnu.org>
86300         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
86301         case.
86302         Suggested by Eric Blake.
86304 2007-07-22  Ben Pfaff  <blp@gnu.org>
86306         New module: popcount.
86307         * MODULES.html.sh: Add popcount.
86308         * modules/popcount: New file.
86309         * modules/popcount-tests: New file.
86310         * tests/test-popcount.c: New file.
86311         * lib/popcount.h: New file.
86312         * m4/popcount.m4: New file.
86314 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
86316         * build-aux/announce-gen: Update to GPLv3.
86318         * build-aux/config.guess: Update from config.
86320 2007-07-21  Bruno Haible  <bruno@clisp.org>
86322         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
86323         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
86325 2007-07-20  Jim Meyering  <jim@meyering.net>
86327         * check-module: Diagnose a self-dependency.
86329 2007-07-19  Bruno Haible  <bruno@clisp.org>
86331         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
86332         empty.
86333         Reported by Eric Blake.
86335 2007-07-18  Bruno Haible  <bruno@clisp.org>
86337         * gnulib-tool: New options --po-base, --po-domain.
86338         (func_usage): Document them.
86339         (pobase, po_domain): New variables.
86340         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
86341         DEFAULT_TEXT_DOMAIN.
86342         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
86343         (func_import): Consider pobase and po_domain. Create a po/ directory.
86344         (func_create_testdir): Set pobase and po_domain to empty.
86345         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
86346         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
86348 2007-07-18  Bruno Haible  <bruno@clisp.org>
86350         * gnulib-tool (func_get_automake_snippet): Synthesize also an
86351         EXTRA_DIST augmentation for files in build-aux/.
86353 2007-07-16  Bruno Haible  <bruno@clisp.org>
86355         * modules/lseek (License): Use the synonymous term "LGPLv2+".
86356         * modules/getdelim (License): Likewise.
86358 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86360         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
86361         * modules/d-type (License): Likewise.
86362         * modules/extensions (License): Likewise.
86363         * modules/fnmatch (License): Likewise.
86364         * modules/fseeko (License): Likewise.
86365         * modules/getaddrinfo (License): Likewise.
86366         * modules/getline (License): Likewise.
86367         * modules/getlogin_r (License): Likewise.
86368         * modules/getpass (License): Likewise.
86369         * modules/gettimeofday (License): Likewise.
86370         * modules/glob (License): Likewise.
86371         * modules/inet_ntop (License): Likewise.
86372         * modules/malloc (License): Likewise.
86373         * modules/malloca (License): Likewise.
86374         * modules/memmem (License): Likewise.
86375         * modules/mempcpy (License): Likewise.
86376         * modules/memset (License): Likewise.
86377         * modules/minmax (License): Likewise.
86378         * modules/mktime (License): Likewise.
86379         * modules/netinet_in (License): Likewise.
86380         * modules/pathmax (License): Likewise.
86381         * modules/poll (License): Likewise.
86382         * modules/regex (License): Likewise.
86383         * modules/snprintf (License): Likewise.
86384         * modules/stdbool (License): Likewise.
86385         * modules/stdint (License): Likewise.
86386         * modules/stdio (License): Likewise.
86387         * modules/strcase (License): Likewise.
86388         * modules/strcasestr (License): Likewise.
86389         * modules/strdup (License): Likewise.
86390         * modules/string (License): Likewise.
86391         * modules/strndup (License): Likewise.
86392         * modules/strnlen (License): Likewise.
86393         * modules/strpbrk (License): Likewise.
86394         * modules/strptime (License): Likewise.
86395         * modules/strsep (License): Likewise.
86396         * modules/sys_select (License): Likewise.
86397         * modules/sys_socket (License): Likewise.
86398         * modules/sys_stat (License): Likewise.
86399         * modules/sys_time (License): Likewise.
86400         * modules/time (License): Likewise.
86401         * modules/time_r (License): Likewise.
86402         * modules/timegm (License): Likewise.
86403         * modules/unistd (License): Likewise.
86404         * modules/vsnprintf (License): Likewise.
86405         * modules/wctype (License): Likewise.
86407 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86409         * modules/argz (License): LGPLv2+.
86411 2007-07-15  Karl Berry  <karl@gnu.org>
86413         * doc/gnulib.texi: revise node structure per new fdl.texi.
86415 2007-07-14  Bruno Haible  <bruno@clisp.org>
86417         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
86418         the output file.
86419         * lib/uniname/uninames.h: Regenerated.
86421 2007-07-14  Karl Berry  <karl@gnu.org>
86423         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
86424         omitting sectioning and index commands.
86426 2007-07-13  Bruno Haible  <bruno@clisp.org>
86428         New gnulib-tool option --more-symlinks.
86429         * gnulib-tool (func_usage): Document --more-symlinks.
86430         (do_copyrights): New variable.
86431         Recognize option --more-symlinks.
86432         (func_import): Don't add a copyright notice transform to
86433         sed_transform_lib_file if do_copyrights is empty.
86435 2007-07-13  Bruno Haible  <bruno@clisp.org>
86437         * lib/vasnprintf.c (decimal_point_char): Define also if
86438         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
86439         && !NEED_PRINTF_DIRECTIVE_A.
86440         Reported by Clemens Koller <clemens.koller@anagramm.de> via
86441         Gary V. Vaughan <gary@gnu.org>.
86443 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
86445         * lib/inttypes_.h: Undo previous change, since it was fixed
86446         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
86448 2007-07-13  Bruno Haible  <bruno@clisp.org>
86450         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
86451         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
86453 2007-07-13  Jim Meyering  <jim@meyering.net>
86455         df: Don't fail for Tru64's "file-on-file mount".
86456         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
86457         so we fall through and use statfs instead.  Details here:
86458         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
86459         Reported by Albert Chin.
86461 2007-07-13  Bruno Haible  <bruno@clisp.org>
86463         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
86464         * modules/configmake (License): Likewise.
86465         * modules/gettext (License): Likewise.
86466         * modules/gettext-h (License): Likewise.
86467         * modules/include_next (License): Likewise.
86468         * modules/link-warning (License): Likewise.
86469         * modules/localcharset (License): Likewise.
86470         * modules/localename (License): Likewise.
86471         * modules/lock (License): Likewise.
86472         * modules/relocatable-lib-lgpl (License): Likewise.
86473         * modules/size_max (License): Likewise.
86474         * modules/vasnprintf (License): Likewise.
86475         * modules/wchar (License): Likewise.
86476         * modules/xsize (License): Likewise.
86478 2007-07-13  Bruno Haible  <bruno@clisp.org>
86480         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
86481         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
86483 2007-07-12  Bruno Haible  <bruno@clisp.org>
86485         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
86486         in the modules files.
86488 2007-07-11  Karl Berry  <karl@gnu.org>
86490         * MODULES.html.sh (func_module): use
86491          sed -e '\|^'"${includefile}"'$|d'
86492          instead of /.../d, to avoid errors on $includefile's containing /.
86494 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
86496         * gnulib-tool (func_import): Avoid duplication of --avoid
86497         statements
86498         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
86499         names to `_' in variable names.
86501 2007-07-10  Eric Blake  <ebb9@byu.net>
86503         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
86504         * NEWS: Document this change.
86506 2007-07-08  Bruno Haible  <bruno@clisp.org>
86508         Update to Unicode 5.0.
86509         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
86510         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
86511         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
86512         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
86513         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
86514         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
86515         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
86516         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
86517         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
86518         U+10A3F, U+1D242..U+1D244.
86519         (nonspacing_table_ind): Update.
86520         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
86521         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
86523 2007-07-08  Bruno Haible  <bruno@clisp.org>
86525         Update to Unicode 5.0.
86526         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
86527         code transform. Extend the name index field of unicode_name_to_code and
86528         unicode_code_to_name from 16 to 24 bits.
86529         * lib/uniname/uniname.c (unicode_character_name,
86530         unicode_name_character): Add the range 0x12xxx to the code transform.
86531         * lib/uniname/uninames.h: Regenerated.
86532         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
86534 2007-07-07  Bruno Haible  <bruno@clisp.org>
86536         * modules/wcwidth-tests: New file.
86537         * tests/test-wcwidth.c: New file.
86539         Work around MacOS X wcwidth() bug.
86540         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
86541         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
86542         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
86543         original wcwidth in non-UTF-8 locales.
86544         * modules/wcwidth (Depends-on): Add localcharset, streq,
86545         uniwidth/width.
86546         * doc/functions/wcwidth.texi: Update.
86548 2007-07-07  Bruno Haible  <bruno@clisp.org>
86550         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
86551         (wcwidth): New declaration.
86552         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
86553         macros.
86554         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
86555         here. Prepare for creating <wchar.h> unconditionally.
86556         * modules/wchar (Depends-on): Add link-warning.
86557         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
86558         REPLACE_WCWIDTH, and GL_LINK_WARNING.
86559         * lib/wcwidth.h: Remove file.
86560         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
86561         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
86562         * modules/wcwidth (Files): Remove lib/wcwidth.h.
86563         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
86564         (Include): Replace wcwidth.h with <wchar.h>.
86565         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
86566         * lib/mbchar.h: Don't include wcwidth.h.
86567         * lib/mbswidth.c: Likewise.
86568         * NEWS: Mention the change.
86570 2007-07-07  Bruno Haible  <bruno@clisp.org>
86572         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
86573         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
86574         definition with an external declaration.
86575         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
86576         defined as a function. Remove AC_C_INLINE requirement.
86577         * modules/wcwidth (Files): Add lib/wcwidth.c.
86578         (Makefile.am): Remove redundant statement.
86580 2007-07-07  Bruno Haible  <bruno@clisp.org>
86582         * MODULES.html.sh (Unicode string functions): Add the new modules.
86584         * tests/uniwidth/test-u32-strwidth.c: New file.
86585         * modules/uniwidth/u32-strwidth-tests: New file.
86587         * lib/uniwidth/u32-strwidth.c: New file.
86588         * modules/uniwidth/u32-strwidth: New file.
86590         * tests/uniwidth/test-u16-strwidth.c: New file.
86591         * modules/uniwidth/u16-strwidth-tests: New file.
86593         * lib/uniwidth/u16-strwidth.c: New file.
86594         * modules/uniwidth/u16-strwidth: New file.
86596         * tests/uniwidth/test-u8-strwidth.c: New file.
86597         * modules/uniwidth/u8-strwidth-tests: New file.
86599         * lib/uniwidth/u8-strwidth.c: New file.
86600         * modules/uniwidth/u8-strwidth: New file.
86602         * tests/uniwidth/test-u32-width.c: New file.
86603         * modules/uniwidth/u32-width-tests: New file.
86605         * lib/uniwidth/u32-width.c: New file.
86606         * modules/uniwidth/u32-width: New file.
86608         * tests/uniwidth/test-u16-width.c: New file.
86609         * modules/uniwidth/u16-width-tests: New file.
86611         * lib/uniwidth/u16-width.c: New file.
86612         * modules/uniwidth/u16-width: New file.
86614         * tests/uniwidth/test-u8-width.c: New file.
86615         * modules/uniwidth/u8-width-tests: New file.
86617         * lib/uniwidth/u8-width.c: New file.
86618         * modules/uniwidth/u8-width: New file.
86620         * tests/uniwidth/test-uc_width.c: New file.
86621         * modules/uniwidth/width-tests: New file.
86623         * lib/uniwidth/width.c: New file, from GNU libiconv.
86624         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
86625         * modules/uniwidth/width: New file.
86627         * lib/uniwidth.h: New file, from GNU libiconv.
86628         * modules/uniwidth/base: New file.
86630 2007-07-07  Bruno Haible  <bruno@clisp.org>
86632         * lib/uniname.h: New file, from GNU gettext.
86633         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
86634         * lib/uniname/uninames.h: New file, from GNU gettext.
86635         * lib/uniname/uniname.c: New file, from GNU gettext.
86636         * tests/uniname/test-uninames.sh: New file.
86637         * tests/uniname/test-uninames.c: New file, from GNU gettext.
86638         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
86639         * modules/uniname/base: New file.
86640         * modules/uniname/uniname: New file.
86641         * modules/uniname/uniname-tests: New file.
86642         * MODULES.html.sh (Unicode string functions): Add the new modules.
86644 2007-07-06  Bruno Haible  <bruno@clisp.org>
86646         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
86648 2007-07-06  Bruno Haible  <bruno@clisp.org>
86650         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
86651         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
86652         includes <cygwin/sys_time.h> which includes <sys/select.h> which
86653         include <sys/time.h>.
86654         Reported by Eric Blake.
86656 2007-07-06  Eric Blake  <ebb9@byu.net>
86658         Fix testing canonicalize on cygwin.
86659         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
86660         Revert patch from 2007-06-19.
86661         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
86662         canonicalize module is also in use.
86663         * tests/test-canonicalize.c: New file.
86664         * tests/test-canonicalize.sh: Likewise.
86665         * modules/canonicalize-tests: Likewise.
86667 2007-07-06  Jim Meyering  <jim@meyering.net>
86669         * lib/getugroups.c (getugroups): Detect getgrent failure.
86670         Adjust comment to reflect reality: this function may return -1.
86672 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
86674         * build-aux/bootstrap (TP_URL,get_translations): Update to use
86675         the new TP address.
86676         (usage): Fix typo
86677         (gnulib_mk): New variable.
86679 2007-07-05  Jim Meyering  <jim@meyering.net>
86681         Don't let endgrent clobber errno, no matter how improbable.
86682         * lib/getugroups.c (getugroups): Save and restore errno around
86683         endgrent call.
86685         Close the group DB even when failing with 2^31 or more members.
86686         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
86688 2007-07-04  Jim Meyering  <jim@meyering.net>
86690         * lib/getugroups.h: New file.
86691         * lib/getugroups.c: Include "getugroups.h".
86692         Remove uses of "register" keyword.
86693         Move local variable, "cp", down into scope where used.
86694         Give "username" parameter the "const" attribute.
86695         * modules/getugroups (Files): Add lib/getugroups.h
86697 2007-07-04  Karl Berry  <karl@gnu.org>
86699         * MODULES.html.sh (func_all_modules): Complete rename of
86700         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
86702 2007-07-02  Bruno Haible  <bruno@clisp.org>
86704         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
86705         mode, when inttypes.h comes from gnulib.
86706         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
86708 2007-07-02  Simon Josefsson  <simon@josefsson.org>
86710         * NEWS: Mention lgpl module name change.
86712         * modules/lgpl-2.1: Renamed from lgpl.
86714         * NEWS: Mention gpl module name change.
86716         * modules/gpl-3.0: New file, based on gpl-2.0.
86718         * modules/gpl-2.0: Renamed from gpl.
86720         * modules/gpl: Fix filename, doc/gpl.texi is now found at
86721         doc/gpl-2.0.texi.
86723 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
86725         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
86726         #define __STDC_LIMIT_MACROS temporarily while including
86727         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
86728         Problem reported by Joel E. Denny in
86729         <http://lists.gnu.org/r/bug-gnulib/2007-07/msg00008.html>.
86731 2007-07-01  Bruno Haible  <bruno@clisp.org>
86733         * lib/unistdio.h: New file.
86734         * lib/unistdio/u-asnprintf.h: New file.
86735         * lib/unistdio/u-asprintf.h: New file.
86736         * lib/unistdio/u-printf-args.c: New file.
86737         * lib/unistdio/u-printf-args.h: New file.
86738         * lib/unistdio/u-printf-parse.h: New file.
86739         * lib/unistdio/u-snprintf.h: New file.
86740         * lib/unistdio/u-sprintf.h: New file.
86741         * lib/unistdio/u-vasprintf.h: New file.
86742         * lib/unistdio/u-vsnprintf.h: New file.
86743         * lib/unistdio/u-vsprintf.h: New file.
86744         * lib/unistdio/ulc-asnprintf.c: New file.
86745         * lib/unistdio/ulc-asprintf.c: New file.
86746         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
86747         * lib/unistdio/ulc-printf-parse.c: New file.
86748         * lib/unistdio/ulc-snprintf.c: New file.
86749         * lib/unistdio/ulc-sprintf.c: New file.
86750         * lib/unistdio/ulc-vasnprintf.c: New file.
86751         * lib/unistdio/ulc-vasprintf.c: New file.
86752         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
86753         * lib/unistdio/ulc-vsnprintf.c: New file.
86754         * lib/unistdio/ulc-vsprintf.c: New file.
86755         * lib/unistdio/u8-asnprintf.c: New file.
86756         * lib/unistdio/u8-asprintf.c: New file.
86757         * lib/unistdio/u8-printf-parse.c: New file.
86758         * lib/unistdio/u8-snprintf.c: New file.
86759         * lib/unistdio/u8-sprintf.c: New file.
86760         * lib/unistdio/u8-vasnprintf.c: New file.
86761         * lib/unistdio/u8-vasprintf.c: New file.
86762         * lib/unistdio/u8-vsnprintf.c: New file.
86763         * lib/unistdio/u8-vsprintf.c: New file.
86764         * lib/unistdio/u8-u8-asnprintf.c: New file.
86765         * lib/unistdio/u8-u8-asprintf.c: New file.
86766         * lib/unistdio/u8-u8-snprintf.c: New file.
86767         * lib/unistdio/u8-u8-sprintf.c: New file.
86768         * lib/unistdio/u8-u8-vasnprintf.c: New file.
86769         * lib/unistdio/u8-u8-vasprintf.c: New file.
86770         * lib/unistdio/u8-u8-vsnprintf.c: New file.
86771         * lib/unistdio/u8-u8-vsprintf.c: New file.
86772         * lib/unistdio/u16-asnprintf.c: New file.
86773         * lib/unistdio/u16-asprintf.c: New file.
86774         * lib/unistdio/u16-printf-parse.c: New file.
86775         * lib/unistdio/u16-snprintf.c: New file.
86776         * lib/unistdio/u16-sprintf.c: New file.
86777         * lib/unistdio/u16-vasnprintf.c: New file.
86778         * lib/unistdio/u16-vasprintf.c: New file.
86779         * lib/unistdio/u16-vsnprintf.c: New file.
86780         * lib/unistdio/u16-vsprintf.c: New file.
86781         * lib/unistdio/u16-u16-asnprintf.c: New file.
86782         * lib/unistdio/u16-u16-asprintf.c: New file.
86783         * lib/unistdio/u16-u16-snprintf.c: New file.
86784         * lib/unistdio/u16-u16-sprintf.c: New file.
86785         * lib/unistdio/u16-u16-vasnprintf.c: New file.
86786         * lib/unistdio/u16-u16-vasprintf.c: New file.
86787         * lib/unistdio/u16-u16-vsnprintf.c: New file.
86788         * lib/unistdio/u16-u16-vsprintf.c: New file.
86789         * lib/unistdio/u32-asnprintf.c: New file.
86790         * lib/unistdio/u32-asprintf.c: New file.
86791         * lib/unistdio/u32-printf-parse.c: New file.
86792         * lib/unistdio/u32-snprintf.c: New file.
86793         * lib/unistdio/u32-sprintf.c: New file.
86794         * lib/unistdio/u32-vasnprintf.c: New file.
86795         * lib/unistdio/u32-vasprintf.c: New file.
86796         * lib/unistdio/u32-vsnprintf.c: New file.
86797         * lib/unistdio/u32-vsprintf.c: New file.
86798         * lib/unistdio/u32-u32-asnprintf.c: New file.
86799         * lib/unistdio/u32-u32-asprintf.c: New file.
86800         * lib/unistdio/u32-u32-snprintf.c: New file.
86801         * lib/unistdio/u32-u32-sprintf.c: New file.
86802         * lib/unistdio/u32-u32-vasnprintf.c: New file.
86803         * lib/unistdio/u32-u32-vasprintf.c: New file.
86804         * lib/unistdio/u32-u32-vsnprintf.c: New file.
86805         * lib/unistdio/u32-u32-vsprintf.c: New file.
86806         * tests/unistdio/test-ulc-asnprintf1.c: New file.
86807         * tests/unistdio/test-ulc-asnprintf1.h: New file.
86808         * tests/unistdio/test-ulc-printf1.h: New file.
86809         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
86810         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
86811         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
86812         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
86813         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
86814         * tests/unistdio/test-ulc-vasprintf1.c: New file.
86815         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
86816         * tests/unistdio/test-ulc-vsprintf1.c: New file.
86817         * tests/unistdio/test-u8-asnprintf1.c: New file.
86818         * tests/unistdio/test-u8-asnprintf1.h: New file.
86819         * tests/unistdio/test-u8-printf1.h: New file.
86820         * tests/unistdio/test-u8-vasnprintf1.c: New file.
86821         * tests/unistdio/test-u8-vasnprintf2.c: New file.
86822         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
86823         * tests/unistdio/test-u8-vasnprintf3.c: New file.
86824         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
86825         * tests/unistdio/test-u8-vasprintf1.c: New file.
86826         * tests/unistdio/test-u8-vsnprintf1.c: New file.
86827         * tests/unistdio/test-u8-vsprintf1.c: New file.
86828         * tests/unistdio/test-u16-asnprintf1.c: New file.
86829         * tests/unistdio/test-u16-asnprintf1.h: New file.
86830         * tests/unistdio/test-u16-printf1.h: New file.
86831         * tests/unistdio/test-u16-vasnprintf1.c: New file.
86832         * tests/unistdio/test-u16-vasnprintf2.c: New file.
86833         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
86834         * tests/unistdio/test-u16-vasnprintf3.c: New file.
86835         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
86836         * tests/unistdio/test-u16-vasprintf1.c: New file.
86837         * tests/unistdio/test-u16-vsnprintf1.c: New file.
86838         * tests/unistdio/test-u16-vsprintf1.c: New file.
86839         * tests/unistdio/test-u32-asnprintf1.c: New file.
86840         * tests/unistdio/test-u32-asnprintf1.h: New file.
86841         * tests/unistdio/test-u32-printf1.h: New file.
86842         * tests/unistdio/test-u32-vasnprintf1.c: New file.
86843         * tests/unistdio/test-u32-vasnprintf2.c: New file.
86844         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
86845         * tests/unistdio/test-u32-vasnprintf3.c: New file.
86846         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
86847         * tests/unistdio/test-u32-vasprintf1.c: New file.
86848         * tests/unistdio/test-u32-vsnprintf1.c: New file.
86849         * tests/unistdio/test-u32-vsprintf1.c: New file.
86850         * modules/unistdio/base: New file.
86851         * modules/unistdio/u-printf-args: New file.
86852         * modules/unistdio/ulc-asnprintf: New file.
86853         * modules/unistdio/ulc-asprintf: New file.
86854         * modules/unistdio/ulc-fprintf: New file.
86855         * modules/unistdio/ulc-printf-parse: New file.
86856         * modules/unistdio/ulc-snprintf: New file.
86857         * modules/unistdio/ulc-sprintf: New file.
86858         * modules/unistdio/ulc-vasnprintf: New file.
86859         * modules/unistdio/ulc-vasprintf: New file.
86860         * modules/unistdio/ulc-vfprintf: New file.
86861         * modules/unistdio/ulc-vsnprintf: New file.
86862         * modules/unistdio/ulc-vsprintf: New file.
86863         * modules/unistdio/u8-asnprintf: New file.
86864         * modules/unistdio/u8-asprintf: New file.
86865         * modules/unistdio/u8-printf-parse: New file.
86866         * modules/unistdio/u8-snprintf: New file.
86867         * modules/unistdio/u8-sprintf: New file.
86868         * modules/unistdio/u8-vasnprintf: New file.
86869         * modules/unistdio/u8-vasprintf: New file.
86870         * modules/unistdio/u8-vsnprintf: New file.
86871         * modules/unistdio/u8-vsprintf: New file.
86872         * modules/unistdio/u8-u8-asnprintf: New file.
86873         * modules/unistdio/u8-u8-asprintf: New file.
86874         * modules/unistdio/u8-u8-snprintf: New file.
86875         * modules/unistdio/u8-u8-sprintf: New file.
86876         * modules/unistdio/u8-u8-vasnprintf: New file.
86877         * modules/unistdio/u8-u8-vasprintf: New file.
86878         * modules/unistdio/u8-u8-vsnprintf: New file.
86879         * modules/unistdio/u8-u8-vsprintf: New file.
86880         * modules/unistdio/u16-asnprintf: New file.
86881         * modules/unistdio/u16-asprintf: New file.
86882         * modules/unistdio/u16-printf-parse: New file.
86883         * modules/unistdio/u16-snprintf: New file.
86884         * modules/unistdio/u16-sprintf: New file.
86885         * modules/unistdio/u16-vasnprintf: New file.
86886         * modules/unistdio/u16-vasprintf: New file.
86887         * modules/unistdio/u16-vsnprintf: New file.
86888         * modules/unistdio/u16-vsprintf: New file.
86889         * modules/unistdio/u16-u16-asnprintf: New file.
86890         * modules/unistdio/u16-u16-asprintf: New file.
86891         * modules/unistdio/u16-u16-snprintf: New file.
86892         * modules/unistdio/u16-u16-sprintf: New file.
86893         * modules/unistdio/u16-u16-vasnprintf: New file.
86894         * modules/unistdio/u16-u16-vasprintf: New file.
86895         * modules/unistdio/u16-u16-vsnprintf: New file.
86896         * modules/unistdio/u16-u16-vsprintf: New file.
86897         * modules/unistdio/u32-asnprintf: New file.
86898         * modules/unistdio/u32-asprintf: New file.
86899         * modules/unistdio/u32-printf-parse: New file.
86900         * modules/unistdio/u32-snprintf: New file.
86901         * modules/unistdio/u32-sprintf: New file.
86902         * modules/unistdio/u32-vasnprintf: New file.
86903         * modules/unistdio/u32-vasprintf: New file.
86904         * modules/unistdio/u32-vsnprintf: New file.
86905         * modules/unistdio/u32-vsprintf: New file.
86906         * modules/unistdio/u32-u32-asnprintf: New file.
86907         * modules/unistdio/u32-u32-asprintf: New file.
86908         * modules/unistdio/u32-u32-snprintf: New file.
86909         * modules/unistdio/u32-u32-sprintf: New file.
86910         * modules/unistdio/u32-u32-vasnprintf: New file.
86911         * modules/unistdio/u32-u32-vasprintf: New file.
86912         * modules/unistdio/u32-u32-vsnprintf: New file.
86913         * modules/unistdio/u32-u32-vsprintf: New file.
86914         * modules/unistdio/ulc-asnprintf-tests: New file.
86915         * modules/unistdio/ulc-vasnprintf-tests: New file.
86916         * modules/unistdio/ulc-vasprintf-tests: New file.
86917         * modules/unistdio/ulc-vsnprintf-tests: New file.
86918         * modules/unistdio/ulc-vsprintf-tests: New file.
86919         * modules/unistdio/u8-asnprintf-tests: New file.
86920         * modules/unistdio/u8-vasnprintf-tests: New file.
86921         * modules/unistdio/u8-vasprintf-tests: New file.
86922         * modules/unistdio/u8-vsnprintf-tests: New file.
86923         * modules/unistdio/u8-vsprintf-tests: New file.
86924         * modules/unistdio/u16-asnprintf-tests: New file.
86925         * modules/unistdio/u16-vasnprintf-tests: New file.
86926         * modules/unistdio/u16-vasprintf-tests: New file.
86927         * modules/unistdio/u16-vsnprintf-tests: New file.
86928         * modules/unistdio/u16-vsprintf-tests: New file.
86929         * modules/unistdio/u32-asnprintf-tests: New file.
86930         * modules/unistdio/u32-vasnprintf-tests: New file.
86931         * modules/unistdio/u32-vasprintf-tests: New file.
86932         * modules/unistdio/u32-vsnprintf-tests: New file.
86933         * modules/unistdio/u32-vsprintf-tests: New file.
86934         * MODULES.html.sh (Unicode string functions): Add the new modules.
86936 2007-07-01  Bruno Haible  <bruno@clisp.org>
86938         * lib/sprintf.c (sprintf): Limit the available length estimation,
86939         to avoid address wraparound.
86940         * lib/vsprintf.c (vsprintf): Likewise.
86941         * modules/sprintf-posix (Dependencies): Add stdint.
86942         * modules/vsprintf-posix (Dependencies): Likewise.
86944 2007-07-01  Bruno Haible  <bruno@clisp.org>
86946         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
86947         Windows PATH as well. Conservative double-quoting. Comments.
86949 2007-07-01  Bruno Haible  <bruno@clisp.org>
86950             Eric Blake  <ebb9@byu.net>
86951             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86953         * gnulib-tool (self_abspathname): Fix algorithm to cope with
86954         empty components in $PATH, denoting '.'.
86956 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86958         * gnulib-tool: Fix indentation.
86959         (func_create_megatestdir): Likewise.
86960         Report by Bruno Haible.
86962 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86964         Sync from Automake.
86965         * build-aux/gnupload: Fix shell portability issues with for loops.
86966         Report by Karl Berry.
86968 2007-06-29  Simon Josefsson  <simon@josefsson.org>
86970         * build-aux/maint.mk (POURL): Use translationproject.org.
86972 2007-06-27  Simon Josefsson  <simon@josefsson.org>
86973             Bruno Haible  <bruno@clisp.org>
86975         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
86976         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
86977         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
86978         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
86979         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
86981 2007-06-27  Bruno Haible  <bruno@clisp.org>
86983         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
86984         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
86986 2007-06-26  Karl Berry  <karl@gnu.org>
86988         * MODULES.html.sh: remove xreadlink-with-size.
86990 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
86992         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
86993         method that I hope also handles the double-include problem noted
86994         by Bruno Haible in
86995         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00186.html>.
86997 2007-06-23  Bruno Haible  <bruno@clisp.org>
86999         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
87000         Don't let the 'mostlyclean' target fail if the last subdirectory could
87001         not be removed.
87002         Reported by Karl Berry.
87004 2007-06-23  Bruno Haible  <bruno@clisp.org>
87006         * gnulib-tool (echo): Add a speedier workaround for ksh.
87007         * tests/test-echo.sh: Likewise.
87009 2007-06-23  Bruno Haible  <bruno@clisp.org>
87011         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
87012         * tests/test-echo.sh: Likewise.
87014 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87016         * gnulib-tool (IFS): Initialize early, so we don't set it to
87017         empty later.
87018         (self_abspathname): Rewrite algorithm to set it, reindent.
87019         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
87020         (func_create_megatestdir): Merge some sed scripts.
87022 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
87024         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
87025         exposed by Sun Studio 11 cc on Solaris 8.
87027 2007-06-22  Bruno Haible  <bruno@clisp.org>
87029         * gnulib-tool (echo): Ensure the echo primitive does not interpret
87030         backslashes.
87031         * tests/test-echo.sh: New file.
87033 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87035         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
87036         simplify `sed_replace_build_aux' scripts, they are portable but
87037         echoing them with `echo' is not.
87038         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
87040 2007-06-21  Karl Berry  <karl@gnu.org>
87042         * config/srclist.txt: guess we can't handle the licenses via
87043         srclist at the moment.
87045 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
87047         * MODULES.html.sh: Add include_next.
87048         * modules/include_next: New file.
87050 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
87052         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
87053         INCLUDE_NEXT.
87054         (gl_CHECK_NEXT_HEADERS): New macro.
87055         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
87056         the obsolescent gl_ABSOLUTE_HEADER.
87057         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
87058         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
87059         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
87060         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
87061         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
87062         * m4/math_h.m4 (gl_MATH_H): Likewise.
87063         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
87064         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
87065         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
87066         * m4/stdint.m4 (gl_STDINT_H): Likewise.
87067         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
87068         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
87069         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
87070         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
87071         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
87072         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
87073         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
87074         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
87075         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
87076         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
87077         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
87078         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
87079         * m4/inttypes.m4 (gl_INTTYPES_H): Define
87080         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
87081         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
87082         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
87083         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
87084         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
87085         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
87086         * lib/float_.h: Likewise.
87087         * lib/inttypes_.h: Likewise.
87088         * lib/math_.h: Likewise.
87089         * lib/search_.h: Likewise.
87090         * lib/signal_.h: Likewise.
87091         * lib/stdint_.h: Likewise.
87092         * lib/stdio_.h: Likewise.
87093         * lib/stdlib_.h: Likewise.
87094         * lib/string_.h: Likewise.
87095         * lib/sys_stat_.h: Likewise.
87096         * lib/sys_time_.h: Likewise.
87097         * lib/time_.h: Likewise.
87098         * lib/unistd_.h: Likewise.
87099         * lib/wchar_.h: Likewise.
87100         * lib/wctype_.h: Likewise.
87101         * lib/dirent_.h: Likewise.
87102         * lib/iconv_.h: Likewise.
87103         * lib/locale_.h: Likewise.
87104         * lib/netinet_in_.h: Likewise.
87105         * lib/sys_select_.h: Likewise.
87106         * lib/sys_socket_.h: Likewise.
87107         * lib/sysexits_.h: Likewise.
87108         * modules/fcntl (Depends-on): Depend on include_next, not
87109         absolute_header.
87110         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
87111         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
87112         * modules/fchdir: Likewise.
87113         * modules/float: Likewise.
87114         * modules/iconv_open: Likewise.
87115         * modules/inttypes: Likewise.
87116         * modules/locale: Likewise.
87117         * modules/math: Likewise.
87118         * modules/netinet_in: Likewise.
87119         * modules/search: Likewise.
87120         * modules/signal: Likewise.
87121         * modules/stdint: Likewise.
87122         * modules/stdio: Likewise.
87123         * modules/stdlib: Likewise.
87124         * modules/string: Likewise.
87125         * modules/sys_select: Likewise.
87126         * modules/sys_socket: Likewise.
87127         * modules/sys_stat: Likewise.
87128         * modules/sys_time: Likewise.
87129         * modules/sysexits: Likewise.
87130         * modules/time: Likewise.
87131         * modules/unistd: Likewise.
87132         * modules/wchar: Likewise.
87133         * modules/wctype: Likewise.
87134         * modules/sys_stat: Change maintainer to "all".
87135         * modules/unistd: Likewise.
87137 2007-06-20  Karl Berry  <karl@gnu.org>
87139         * config/srclist.txt: track www changes in license files.
87141 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
87143         * build-aux/bootstrap: Remove stray dot.
87144         Make sure build_aux settings are honored when linking
87145         gnulib_extra_files.
87147 2007-06-19  Eric Blake  <ebb9@byu.net>
87149         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
87150         Allow compilation on cygwin.
87152 2007-06-19  Jim Meyering  <jim@meyering.net>
87154         xreadlink-with-size: Remove module.  No longer used.
87155         Ex-callers now use xreadlink or mreadlink-with-size.
87156         * modules/xreadlink-with-size: Remove module.
87157         * lib/xreadlink-with-size.c: Remove file.
87158         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
87159         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
87160         just before the function definition *is* accurate.
87162         Eliminate one way canonicalize_filename_mode could exit.
87163         * lib/canonicalize.c (canonicalize_filename_mode):
87164         Use mreadlink_with_size, not xreadlink_with_size.
87166 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
87168         Detect porting problems to FreeBSD/arm, which has time_t wider than
87169         long int.  Original problem reported for GNU diff by Xin Li in
87170         <http://lists.gnu.org/r/bug-gnu-utils/2007-06/msg00091.html>.
87171         * modules/getdate (Depends-on): Add intprops, verify.
87172         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
87173         is an integer type no wider than long int.
87175 2007-06-18  Jim Meyering  <jim@meyering.net>
87177         New module: mreadlink-with-size.
87178         * MODULES.html.sh: Add mreadlink-with-size.
87179         * modules/mreadlink-with-size: New module
87180         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
87181         not xreadlink-with-size.
87182         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
87184 2007-06-16  Bruno Haible  <bruno@clisp.org>
87186         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
87187         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
87188         Reported by Gary V. Vaughan <gary@gnu.org>.
87190 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
87192         Revamp lchown so that it lives in unistd.h where it belongs.
87193         * lib/lchown.h: Remove.
87194         * lib/dirchownmod.c: Don't include lib/lchown.h.
87195         * lib/fchownat.c: Likewise.
87196         * lib/openat.c: Likewise.
87197         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
87198         does not follow symlinks.
87199         (EOPNOTSUPP): Define if not defined.
87200         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
87201         is defined to 0.
87202         (lchown): New decl.
87203         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
87204         Do not check for lchown decl.
87205         Set REPLACE_LCHOWN.
87206         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
87207         REPLACE_LCHOWN.
87208         * modules/chown: Make it clear it follows symlinks.
87209         * modules/lchown: Make it clear it doesn't follow symlinks.
87210         (Files): Remove lib/lchown.h
87211         (Depends-on): Add unistd.
87212         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
87213         (Include): Include <unistd.h>, not "lchown.h".
87214         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
87215         REPLACE_LCHOWN.
87217 2007-06-15  Jim Meyering  <jim@meyering.net>
87219         Change license (GPL to LGPL) of fsusage and dependents.
87220         * modules/fsusage (License): Change to LGPL.
87221         * modules/full-read (License): Likewise.
87222         * modules/full-write (License): Likewise.
87223         * modules/safe-read (License): Likewise.
87224         * modules/safe-write (License): Likewise.
87226 2007-06-14  Ben Pfaff  <blp@gnu.org>
87228         Missing part of allocsa -> malloca transition.
87229         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
87230         gl_MALLOCA.
87232 2007-06-12  Bruno Haible  <bruno@clisp.org>
87234         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
87235         to ia64, x86_64, i386.
87236         Reported by Eric Blake.
87238 2007-06-12  Bruno Haible  <bruno@clisp.org>
87240         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
87241         cross-compiling to x86_64.
87243 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
87245         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
87246         glitch reported by Ralf Wildenhues in
87247         <http://lists.gnu.org/r/bug-gnulib/2007-06/msg00114.html>.
87249         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
87250         Vin Shelton.
87252 2007-06-11  Bruno Haible  <bruno@clisp.org>
87254         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
87255         replacement string.
87256         Reported by Eric Blake.
87258 2007-06-10  Bruno Haible  <bruno@clisp.org>
87260         Prepare vasnprintf code for use with Unicode strings.
87261         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
87262         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
87263         TYPE_U32_STRING.
87264         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
87265         a_u32_string variants.
87266         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
87267         * lib/printf-args.c: Don't include config.h and the specification
87268         header if PRINTF_FETCHARGS is already defined.
87269         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
87270         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
87271         TYPE_U16_STRING, TYPE_U32_STRING.
87272         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
87273         u16_directive, u16_directives, u32_directive, u32_directives): New
87274         types.
87275         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
87276         New declarations.
87277         * lib/printf-parse.c: Don't include config.h and the specification
87278         header if PRINTF_PARSE is already defined. Eliminate the set of
87279         parameters for WIDE_CHAR_VERSION; the user of this file must provide
87280         them now. Include c-ctype.h.
87281         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
87282         directive and CHAR_T_ONLY_ASCII.
87283         * lib/vasnprintf.c: Don't include config.h and the specification header
87284         if VASNPRINTF is already defined.
87285         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
87286         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
87287         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
87288         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
87289         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
87290         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
87291         code accordingly.
87292         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
87293         pad_ourselves also in this case, with the 'c' and 's' directives, and
87294         with a different notion of "width".
87295         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
87297 2007-06-10  Bruno Haible  <bruno@clisp.org>
87299         * modules/unistr/u32-mbsnlen: New file.
87300         * lib/unistr/u32-mbsnlen.c: New file.
87302         * modules/unistr/u16-mbsnlen: New file.
87303         * lib/unistr/u16-mbsnlen.c: New file.
87305         * modules/unistr/u8-mbsnlen: New file.
87306         * lib/unistr/u8-mbsnlen.c: New file.
87308         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
87309         declarations.
87311 2007-06-10  Bruno Haible  <bruno@clisp.org>
87313         * lib/string_.h (mbsnlen): New declaration.
87314         * lib/mbsnlen.c: New file.
87315         * m4/mbsnlen.m4: New file.
87316         * modules/mbsnlen: New file.
87317         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
87318         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
87319         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
87321 2007-06-10  Bruno Haible  <bruno@clisp.org>
87323         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
87325 2007-06-10  Bruno Haible  <bruno@clisp.org>
87327         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
87328         * lib/mbuiter.h: Likewise.
87330 2007-06-10  Bruno Haible  <bruno@clisp.org>
87332         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
87333         declaration.
87335 2007-06-10  Karl Berry  <karl@gnu.org>
87337         * config/srclist.txt: remove gettext entries, Bruno prefers
87338         to update individually.
87340 2007-06-10  Bruno Haible  <bruno@clisp.org>
87342         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
87343         'maxlen'. Ensure only length + width bytes are allocated, not
87344         length + 1 + width.
87346 2007-06-09  Bruno Haible  <bruno@clisp.org>
87348         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
87349         (CHAR_T): Remove macro.
87350         (VASNPRINTF): Update.
87352 2007-06-09  Bruno Haible  <bruno@clisp.org>
87354         * MODULES.html.sh (Unicode string functions): Add the new modules.
87356         * modules/uniconv/u32-conv-to-enc: New file.
87357         * lib/uniconv/u32-conv-to-enc.c: New file.
87358         * modules/uniconv/u32-conv-to-enc-tests: New file.
87359         * tests/uniconv/test-u32-conv-to-enc.c: New file.
87361         * modules/uniconv/u16-conv-to-enc: New file.
87362         * lib/uniconv/u16-conv-to-enc.c: New file.
87363         * lib/uniconv/u-conv-to-enc.h: New file.
87364         * modules/uniconv/u16-conv-to-enc-tests: New file.
87365         * tests/uniconv/test-u16-conv-to-enc.c: New file.
87367         * modules/uniconv/u8-conv-to-enc: New file.
87368         * lib/uniconv/u8-conv-to-enc.c: New file.
87369         * modules/uniconv/u8-conv-to-enc-tests: New file.
87370         * tests/uniconv/test-u8-conv-to-enc.c: New file.
87372         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
87373         u32_conv_to_encoding): New declarations.
87375 2007-06-09  Bruno Haible  <bruno@clisp.org>
87377         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
87379 2007-06-09  Bruno Haible  <bruno@clisp.org>
87381         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
87382         * modules/malloca: Renamed from modules/allocsa, updated.
87383         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
87384         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
87385         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
87386         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
87387         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
87388         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
87389         * modules/xmalloca: Renamed from modules/xallocsa, updated.
87390         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
87391         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
87392         * modules/c-strcasestr (Depends-on): Update.
87393         * lib/c-strcasestr.c: Update.
87394         * modules/c-strstr (Depends-on): Update.
87395         * lib/c-strstr.c: Update.
87396         * modules/canonicalize-lgpl (Depends-on): Update.
87397         * lib/canonicalize-lgpl.c: Update.
87398         * modules/clean-temp (Depends-on): Update.
87399         * lib/clean-temp.c: Update.
87400         * modules/csharpcomp (Depends-on): Update.
87401         * lib/csharpcomp.c: Update.
87402         * modules/csharpexec (Depends-on): Update.
87403         * lib/csharpexec.c: Update.
87404         * modules/javacomp (Depends-on): Update.
87405         * lib/javacomp.c: Update.
87406         * modules/javaexec (Depends-on): Update.
87407         * lib/javaexec.c: Update.
87408         * modules/mbscasestr (Depends-on): Update.
87409         * lib/mbscasestr.c: Update.
87410         * modules/mbsstr (Depends-on): Update.
87411         * lib/mbsstr.c: Update.
87412         * modules/setenv (Depends-on): Update.
87413         * lib/setenv.c: Update.
87414         * modules/strcasestr (Depends-on): Update.
87415         * lib/strcasestr.c: Update.
87416         * modules/striconveha (Depends-on): Update.
87417         * lib/striconveha.c: Update.
87418         * modules/relocatable-prog-wrapper (Files): Update.
87419         * lib/relocwrapper.c: Update.
87420         * build-aux/install-reloc: Update.
87421         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
87423 2007-06-08  Bruno Haible  <bruno@clisp.org>
87425         Port to uClibc.
87426         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
87427         * lib/fpurge.c (fpurge): Likewise.
87428         * lib/freading.c (freading): Likewise.
87429         * lib/fseeko.c (rpl_fseeko): Likewise.
87430         * lib/fseterr.c (fseterr): Likewise.
87431         * lib/fwriting.c (fwriting): Likewise.
87432         * tests/test-fflush.c (main): Avoid a failure on uClibc.
87434 2007-06-08  Bruno Haible  <bruno@clisp.org>
87436         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
87437         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
87438         * modules/gettext (Files): Add m4/intlmacosx.m4.
87440 2007-06-07  Bruno Haible  <bruno@clisp.org>
87442         * modules/localename-tests: New file.
87443         * tests/test-localename.c: New file.
87445         New module 'localename'.
87446         * lib/localename.h: New file.
87447         * lib/localename.c: New file, from GNU gettext.
87448         * m4/localename.m4: New file.
87449         * modules/localename: New file.
87451 2007-06-07  Bruno Haible  <bruno@clisp.org>
87453         Work around the lack of <wchar.h> on some builds of uClibc.
87454         * doc/headers/wchar.texi: Update.
87455         * lib/wchar_.h: Include <wchar.h> only if it exists.
87456         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
87457         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
87458         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
87459         doesn't exist.
87460         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
87461         * modules/mbfile (Depends-on): Add wchar.
87462         * modules/mbiter (Depends-on): Likewise.
87463         * modules/mbuiter (Depends-on): Likewise.
87464         Reported by Simon Josefsson.
87466 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
87468         Work around problem reported by Steven M. Schweda in
87469         <http://lists.gnu.org/r/bug-tar/2007-06/msg00002.html>:
87470         Tru64 5.1B with the Compaq compiler environment installed declares
87471         an 'isblank' function but does not define it in the C library.
87472         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
87473         * lib/regex_internal.h (isblank): Likewise.
87474         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
87475         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
87477 2007-06-05  Bruno Haible  <bruno@clisp.org>
87479         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
87480         ia64.
87481         * modules/printf-safe: New file.
87482         * modules/fprintf-posix (Depends-on): Add printf-safe.
87483         * modules/printf-posix (Depends-on): Likewise.
87484         * modules/snprintf-posix (Depends-on): Likewise.
87485         * modules/sprintf-posix (Depends-on): Likewise.
87486         * modules/vasnprintf-posix (Depends-on): Likewise.
87487         * modules/vasprintf-posix (Depends-on): Likewise.
87488         * modules/vfprintf-posix (Depends-on): Likewise.
87489         * modules/vprintf-posix (Depends-on): Likewise.
87490         * modules/vsnprintf-posix (Depends-on): Likewise.
87491         * modules/vsprintf-posix (Depends-on): Likewise.
87492         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
87493         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
87494         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
87495         "no" on i386, x86_64, ia64.
87496         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
87497         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
87498         on i386, x86_64, ia64.
87499         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
87500         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
87501         on i386, x86_64, ia64.
87502         * tests/test-vasnprintf-posix.c: Include float.h.
87503         (LDBL80_WORDS): New macro.
87504         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
87505         on i386, x86_64, ia64.
87506         * tests/test-vasprintf-posix.c: Include float.h.
87507         (LDBL80_WORDS): New macro.
87508         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
87509         on i386, x86_64, ia64.
87510         * tests/test-snprintf-posix.c: Include float.h.
87511         * tests/test-sprintf-posix.c: Likewise.
87512         * tests/test-vsnprintf-posix.c: Likewise.
87513         * tests/test-vsprintf-posix.c: Likewise.
87515 2007-06-05  Bruno Haible  <bruno@clisp.org>
87517         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
87518         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
87519         non-IEEE numbers on i386, x86_64, ia64.
87520         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
87521         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
87522         * tests/test-isnanl.h: Include float.h.
87523         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
87525 2007-06-05  Bruno Haible  <bruno@clisp.org>
87527         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
87528         also the %a / %A. Handle the %a / %A code before this extra handling.
87530 2007-06-05  Bruno Haible  <bruno@clisp.org>
87532         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
87533         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
87535 2007-06-05  Bruno Haible  <bruno@clisp.org>
87537         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
87538         typo in variable name.
87540 2007-06-05  Eric Blake  <ebb9@byu.net>
87542         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
87543         Reported by Simon Josefsson.
87545 2007-06-04  Bruno Haible  <bruno@clisp.org>
87547         Avoid test failures on some PowerPC platforms.
87548         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
87549         Define differently for PowerPC.
87550         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
87551         Reported by Gary V. Vaughan <gary@gnu.org>.
87553 2007-06-02  Bruno Haible  <bruno@clisp.org>
87555         Fix test-stdint failure on FreeBSD/ia64.
87556         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
87557         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
87558         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
87559         * doc/headers/stdint.texi: Update.
87561 2007-06-01  Bruno Haible  <bruno@clisp.org>
87563         * tests/test-binary-io.c (main): Pass a third argument to open().
87564         Reported by Gary V. Vaughan <gary@gnu.org>.
87566 2007-06-01  Bruno Haible  <bruno@clisp.org>
87568         * doc/functions/frexpl.texi: Update for mingw.
87570 2007-06-01  Bruno Haible  <bruno@clisp.org>
87572         * tests/test-lseek.c (main): Disable test of errno for invalid third
87573         argument.
87574         * doc/functions/lseek.texi: Update.
87575         Reported by Gary V. Vaughan <gary@gnu.org>.
87577 2007-05-28  Bruno Haible  <bruno@clisp.org>
87579         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
87581 2007-05-31  Eric Blake  <ebb9@byu.net>
87583         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
87584         cross compiling.
87586 2007-05-30  Eric Blake  <ebb9@byu.net>
87587         and Bruno Haible  <bruno@clisp.org>
87589         Work around mingw test failures exposed by m4-1.4.9b.
87590         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
87591         * tests/test-unistd.c: Disable uid_t and git_t tests for the
87592         moment.
87594 2007-05-30  Bruno Haible  <bruno@clisp.org>
87596         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
87597         assuming that they are closed. Needed on HP-UX 11.
87599 2007-05-29  Bruno Haible  <bruno@clisp.org>
87601         Fix a problem with #include_next.
87602         * lib/dirent_.h: Split the double-inclusion guard.
87603         * lib/fcntl_.h: Likewise.
87604         * lib/float_.h: Likewise.
87605         * lib/iconv_.h: Likewise.
87606         * lib/inttypes_.h: Likewise.
87607         * lib/locale_.h: Likewise.
87608         * lib/math_.h: Likewise.
87609         * lib/netinet_in_.h: Likewise.
87610         * lib/search_.h: Likewise.
87611         * lib/signal_.h: Likewise.
87612         * lib/stdint_.h: Likewise.
87613         * lib/stdio_.h: Likewise.
87614         * lib/stdlib_.h: Likewise.
87615         * lib/string_.h: Likewise.
87616         * lib/sys_select_.h: Likewise.
87617         * lib/sys_socket_.h: Likewise.
87618         * lib/sys_stat_.h: Likewise.
87619         * lib/sys_time_.h: Likewise.
87620         * lib/sysexits_.h: Likewise.
87621         * lib/time_.h: Likewise.
87622         * lib/unistd_.h: Likewise.
87623         * lib/wchar_.h: Likewise.
87624         * lib/wctype_.h: Likewise.
87626 2007-05-29  Bruno Haible  <bruno@clisp.org>
87628         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
87629         for the moment.
87631 2007-05-29  Bruno Haible  <bruno@clisp.org>
87633         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
87634         invocation.
87635         Reported by Eric Blake.
87637 2007-05-29  Bruno Haible  <bruno@clisp.org>
87639         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
87640         compiling case.
87642 2007-05-29  Eric Blake  <ebb9@byu.net>
87643             Bruno Haible  <bruno@clisp.org>
87645         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
87646         cross compiles.
87648 2007-05-28  Eric Blake  <ebb9@byu.net>
87650         * modules/closein-tests (test_closein_LDADD): Support test on
87651         cygwin with libtool.
87653 2007-05-28  Bruno Haible  <bruno@clisp.org>
87655         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
87656         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
87657         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
87658         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
87659         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
87660         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
87661         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
87662         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
87663         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
87665 2007-05-28  Eric Blake  <ebb9@byu.net>
87667         Unconditionally include <config.h> in unit tests.
87668         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
87669         * tests/test-allocsa.c, tests/test-arcfour.c,
87670         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
87671         tests/test-array_list.c, tests/test-array_oset.c,
87672         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
87673         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
87674         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
87675         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
87676         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
87677         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
87678         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
87679         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
87680         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
87681         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
87682         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
87683         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
87684         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
87685         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
87686         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
87687         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
87688         test-md5.c, test-memmem.c, test-printf-posix.c,
87689         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
87690         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
87691         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
87692         test-strcasestr.c, test-striconv.c, test-striconveh.c,
87693         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
87694         test-vasnprintf-posix2.c, test-vasnprintf.c,
87695         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
87696         test-vfprintf-posix.c, test-vprintf-posix.c,
87697         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
87698         test-xvasprintf.c: Likewise.
87700 2007-05-28  Bruno Haible  <bruno@clisp.org>
87702         * gnulib-tool (func_import): Remember the --with-tests command-line
87703         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
87704         Reported by Eric Blake.
87706 2007-05-28  Bruno Haible  <bruno@clisp.org>
87708         * modules/ftell-tests: New file.
87709         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
87710         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
87712         * lib/ftell.c: New file.
87713         * modules/ftell: New file.
87714         * m4/ftell.m4: New file.
87715         * doc/functions/ftell.texi: Update.
87716         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
87717         REPLACE_FTELL.
87718         * lib/stdio_.h (rpl_ftell): New declaration.
87719         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
87720         REPLACE_FTELL.
87722 2007-05-28  Eric Blake  <ebb9@byu.net>
87724         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
87726 2007-05-28  Bruno Haible  <bruno@clisp.org>
87728         * modules/fseek-tests: New file.
87729         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
87730         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
87732         * lib/fseek.c: New file.
87733         * modules/fseek: New file.
87734         * m4/fseek.m4: New file.
87735         * doc/functions/fseek.texi: Update.
87736         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
87737         REPLACE_FSEEK.
87738         * lib/stdio_.h (rpl_fseek): New declaration.
87739         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
87740         REPLACE_FSEEK.
87742 2007-05-28  Bruno Haible  <bruno@clisp.org>
87744         * lib/stdio_.h (fflush): More comments.
87746 2007-05-28  Bruno Haible  <bruno@clisp.org>
87748         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
87749         runtime test.
87751 2007-05-28  Eric Blake  <ebb9@byu.net>
87753         Improve lseek module.
87754         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
87755         * lib/unistd_.h (lseek): Scale back link warning message.
87756         * tests/test-lseek.c: Beef up test.
87757         * tests/test-lseek.sh: Exercise more facets of lseek.
87758         Reported by Bruno Haible.
87760 2007-05-28  Bruno Haible  <bruno@clisp.org>
87762         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
87763         to define.
87765 2007-05-27  Bruno Haible  <bruno@clisp.org>
87767         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
87769 2007-05-27  Bruno Haible  <bruno@clisp.org>
87771         * modules/openmp: New file.
87772         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
87773         Noah Misch.
87775 2007-05-26  Bruno Haible  <bruno@clisp.org>
87777         * modules/chdir-long (Depends-on): Add fchdir.
87778         * modules/chdir-safer (Depends-on): Likewise.
87779         * modules/fts (Depends-on): Likewise.
87780         * modules/fts-lgpl (Depends-on): Likewise.
87781         * modules/openat (Depends-on): Likewise.
87782         * modules/savewd (Depends-on): Likewise.
87784 2007-05-24  Eric Blake  <ebb9@byu.net>
87786         Fix lseek on mingw.
87787         * modules/lseek: New module.
87788         * m4/lseek.m4: New file.
87789         * lib/lseek.c: New file.
87790         * modules/lseek-tests: New file.
87791         * tests/test-lseek.c: New file.
87792         * tests/test-lseek.sh: New file.
87793         * MODULES.html.sh: Document lseek module.
87794         * modules/fflush (Depends-on): Add lseek, fseeko.
87795         * modules/fseeko (Depends-on): Likewise.
87796         * modules/ftello (Depends-on): Likewise.
87797         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
87798         broken.
87799         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
87800         broken.
87801         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
87802         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
87803         * lib/ftello.c (rpl_ftello): Likewise.
87804         * tests/test-fseeko.c (main): Test this.
87805         * tests/test-fseeko.sh: Likewise.
87806         * tests/test-ftello.c (main): Likewise.
87807         * tests/test-ftello.sh: Likewise.
87808         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
87809         implies replacing fseek.
87810         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
87811         HAVE_FTELLO.
87812         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
87813         * modules/unistd (Makefile.am): Likewise.
87814         * lib/unistd_.h (lseek): Declare a replacement.
87815         * doc/functions/lseek.texi (lseek): Document this fix.
87816         * doc/functions/fseek.texi (fseek): Likewise.
87817         * doc/functions/ftell.texi (ftell): Likewise.
87819 2007-05-24  Bruno Haible  <bruno@clisp.org>
87821         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
87822         in the printed representation of a NaN.
87823         * tests/test-vasprintf-posix.c (test_function): Likewise.
87824         * tests/test-snprintf-posix.h (test_function): Likewise.
87825         * tests/test-sprintf-posix.h (test_function): Likewise.
87826         Reported by Eric Blake.
87828 2007-05-23  Eric Blake  <ebb9@byu.net>
87830         Fix fseeko/ftello on cygwin 1.5.24.
87831         * doc/functions/fseeko.texi (fseeko): Document the fix.
87832         * doc/functions/ftello.texi (ftello): Document the fix.
87833         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
87834         * doc/functions/stdout.text (stdout): New file.
87835         * doc/functions/stderr.text (stderr): New file.
87836         * doc/gnulib.texi (Function Substitutes): Use new files.
87837         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
87838         prior to 1.7.0.
87839         * tests/test-ftello.c (main): Likewise for ftello.
87840         * tests/test-fseeko.sh: New file.
87841         * tests/test-ftello.sh: New file.
87842         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
87843         with seekable stdin.
87844         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
87845         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
87846         (gl_REPLACE_FSEEKO): New macro.
87847         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
87848         * modules/fseeko (Files): Distribute fseeko.c.
87849         * modules/ftello (Files): Distribute ftello.c.
87850         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
87851         mode.
87852         * lib/ftello.c (rpl_ftello): New file.
87853         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
87854         fseeko, ftello.
87855         (gl_STDIN_LARGE_OFFSET): New macro.
87856         * modules/stdio (Makefile.am): Perform the replacement.
87857         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
87859 2007-05-23  Bruno Haible  <bruno@clisp.org>
87861         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
87862         GNULIB_POSIXCHECK is defined.
87864 2007-05-21  Bruno Haible  <bruno@clisp.org>
87866         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
87867         Check also the output for NaN arguments. When cross-compiling, guess
87868         no on IRIX.
87869         * lib/vasnprintf.c: Update comments.
87870         * tests/test-vasnprintf-posix.c (strisnan): New function.
87871         (test_function): Use it.
87872         * tests/test-vasprintf-posix.c (strisnan): New function.
87873         (test_function): Use it.
87874         * tests/test-snprintf-posix.h (strisnan): New function.
87875         (test_function): Use it.
87876         * tests/test-sprintf-posix.h (strisnan): New function.
87877         (test_function): Use it.
87878         Reported by Eric Blake.
87880 2007-05-20  Bruno Haible  <bruno@clisp.org>
87882         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
87883         numbers that fails on BeOS.
87884         * doc/functions/frexpl.texi: Update.
87886 2007-05-20  Jim Meyering  <jim@meyering.net>
87888         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
87889         forced upon us by glibc-2.6.
87891 2007-05-20  Bruno Haible  <bruno@clisp.org>
87893         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
87894         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
87895         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
87896         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
87897         NEED_PRINTF_INFINITE.
87898         (is_infinitel): New function.
87899         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
87900         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
87901         gl_PREREQ_VASNPRINTF_INFINITE.
87902         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
87903         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
87904         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
87905         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
87906         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
87907         gl_PREREQ_VASNPRINTF_INFINITE.
87908         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
87909         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
87910         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
87911         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
87912         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
87913         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
87914         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
87915         * doc/functions/fprintf.texi: Update.
87916         * doc/functions/printf.texi: Update.
87917         * doc/functions/snprintf.texi: Update.
87918         * doc/functions/sprintf.texi: Update.
87919         * doc/functions/vfprintf.texi: Update.
87920         * doc/functions/vprintf.texi: Update.
87921         * doc/functions/vsnprintf.texi: Update.
87922         * doc/functions/vsprintf.texi: Update.
87924 2007-05-20  Bruno Haible  <bruno@clisp.org>
87926         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
87927         was not found in libc.
87928         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
87930 2007-05-20  Bruno Haible  <bruno@clisp.org>
87932         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
87933         printed as "-nan" instead of "nan".
87934         * tests/test-vasprintf-posix.c (test_function): Likewise.
87935         * tests/test-snprintf-posix.h (test_function): Likewise.
87936         * tests/test-sprintf-posix.h (test_function): Likewise.
87937         Needed for HP-UX 11.
87939 2007-05-20  Jim Meyering  <jim@meyering.net>
87941         Fix buggy test for the fchownat-deref bug.
87942         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
87943         symlink required for the run-test.  Without it, this test would
87944         always declare that fchownat doesn't work, and client code would
87945         unnecessarily use the replacement function with fixed libc.
87946         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
87947         Reported by Greg Schafer.
87949 2007-05-19  Bruno Haible  <bruno@clisp.org>
87951         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
87952         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
87953         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
87954         Needed for IRIX 6.5 and Solaris 2.5.1.
87956 2007-05-19  Bruno Haible  <bruno@clisp.org>
87958         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
87959         (test_function): Skip tests involving -0.0 on platforms where
87960         -0.0 = 0.0.
87961         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
87962         (test_function): Skip tests involving -0.0 on platforms where
87963         -0.0 = 0.0.
87964         * tests/test-snprintf-posix.h (have_minus_zero): New function.
87965         (test_function): Skip tests involving -0.0 on platforms where
87966         -0.0 = 0.0.
87967         * tests/test-sprintf-posix.h (have_minus_zero): New function.
87968         (test_function): Skip tests involving -0.0 on platforms where
87969         -0.0 = 0.0.
87970         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
87971         tests.
87972         * tests/test-printf-posix.h (test_function): Likewise.
87973         * tests/test-printf-posix.output: Remove all -0.0 related results.
87974         Needed for IRIX 6.5.
87976 2007-05-19  Bruno Haible  <bruno@clisp.org>
87978         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
87979         printed as "nan0x7fffffff" instead of "nan".
87980         * tests/test-vasprintf-posix.c (test_function): Likewise.
87981         * tests/test-snprintf-posix.h (test_function): Likewise.
87982         * tests/test-sprintf-posix.h (test_function): Likewise.
87983         * tests/test-fprintf-posix.h (NaN): Remove macro.
87984         (test_function): Remove all NaN related tests.
87985         * tests/test-printf-posix.h (NaN): Remove macro.
87986         (test_function): Remove all NaN related tests.
87987         * tests/test-printf-posix.output: Remove all NaN related results.
87988         Needed for IRIX 6.5.
87990 2007-05-19  Bruno Haible  <bruno@clisp.org>
87992         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
87993         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
87995 2007-05-19  Bruno Haible  <bruno@clisp.org>
87997         * lib/float_.h: New file.
87998         * m4/float_h.m4: New file.
87999         * modules/float: New file.
88000         * modules/isnanl (Dependencies): Add float.
88001         * modules/isnanl-nolibm (Dependencies): Likewise.
88002         * modules/mathl (Dependencies): Likewise.
88003         * modules/printf-frexpl (Dependencies): Likewise.
88004         * modules/signbit (Dependencies): Likewise.
88005         * modules/vasnprintf (Dependencies): Likewise.
88006         * doc/headers/float.texi: Update.
88008 2007-05-19  Jim Meyering  <jim@meyering.net>
88010         * lib/utimens.c (gl_futimens): Rename from futimens,
88011         now that glibc-2.6 declares futimens.
88012         * lib/utimens.h: Likewise.
88014 2007-05-19  Bruno Haible  <bruno@clisp.org>
88016         Avoid test failures on mingw.
88017         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
88018         * tests/test-printf-posix.sh: Likewise.
88019         * tests/test-vfprintf-posix.sh: Likewise.
88020         * tests/test-vprintf-posix.sh: Likewise.
88022 2007-05-19  Bruno Haible  <bruno@clisp.org>
88024         Fix *printf result for NaN, Inf, -0.0 on mingw.
88025         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
88026         * lib/vasnprintf.c: Include math.h and isnan.h.
88027         (is_infinite_or_zero): New function.
88028         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
88029         values in the %f, %F, %e, %E, %g, %G directives.
88030         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
88031         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
88032         gl_PRINTF_INFINITE and test its result. Invoke
88033         gl_PREREQ_VASNPRINTF_INFINITE.
88034         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
88035         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
88036         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
88037         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
88038         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
88039         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
88040         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
88041         * doc/functions/fprintf.texi: Update.
88042         * doc/functions/printf.texi: Update.
88043         * doc/functions/snprintf.texi: Update.
88044         * doc/functions/sprintf.texi: Update.
88045         * doc/functions/vfprintf.texi: Update.
88046         * doc/functions/vprintf.texi: Update.
88047         * doc/functions/vsnprintf.texi: Update.
88048         * doc/functions/vsprintf.texi: Update.
88050 2007-05-19  Bruno Haible  <bruno@clisp.org>
88052         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
88053         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
88054         Instead of multiplying with 10^k, set extra_zeroes to k.
88055         (scale10_round_long_double): Remove function.
88057 2007-05-18  Bruno Haible  <bruno@clisp.org>
88059         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
88060         introduced on 2007-05-06.
88062 2007-05-18  Bruno Haible  <bruno@clisp.org>
88064         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
88065         %g directives.
88066         * tests/test-vasprintf-posix.c (test_function): Likewise.
88067         * tests/test-snprintf-posix.h (test_function): Likewise.
88068         * tests/test-sprintf-posix.h (test_function): Likewise.
88070 2007-05-18  Bruno Haible  <bruno@clisp.org>
88072         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
88073         (strmatch): New function.
88074         (test_function): Test the %f directive on numbers of various exponents.
88075         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
88076         (strmatch): New function.
88077         (test_function): Test the %f directive on numbers of various exponents.
88078         * tests/test-snprintf-posix.h (strmatch): New function.
88079         (test_function): Test the %f directive on numbers of various exponents.
88080         * tests/test-sprintf-posix.h (strmatch): New function.
88081         (test_function): Test the %f directive on numbers of various exponents.
88082         * tests/test-snprintf-posix.c (SIZEOF): New macro.
88083         * tests/test-sprintf-posix.c (SIZEOF): New macro.
88084         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
88085         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
88087 2007-05-18  Bruno Haible  <bruno@clisp.org>
88089         Add support for 'long double' number output.
88090         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
88091         * lib/vasnprintf.c: Include math.h and float+.h.
88092         (mp_limb_t): New type.
88093         (GMP_LIMB_BITS): New macro.
88094         (mp_twolimb_t): New type.
88095         (GMP_TWOLIMB_BITS): New macro.
88096         (mpn_t): New type.
88097         (multiply, divide, convert_to_decimal, decode_long_double,
88098         scale10_round_long_double, scale10_round_decimal_long_double,
88099         floorlog10l): New functions.
88100         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
88101         for the %f, %F, %e, %E, %g, %G directives.
88102         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
88103         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
88104         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
88105         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
88106         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
88107         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
88108         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
88109         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
88110         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
88111         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
88112         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
88113         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
88114         * modules/snprintf-posix (Depends-on): Likewise.
88115         * modules/sprintf-posix (Depends-on): Likewise.
88116         * modules/vasnprintf-posix (Depends-on): Likewise.
88117         * modules/vasprintf-posix (Depends-on): Likewise.
88118         * modules/vfprintf-posix (Depends-on): Likewise.
88119         * modules/vsnprintf-posix (Depends-on): Likewise.
88120         * modules/vsprintf-posix (Depends-on): Likewise.
88121         * modules/vasnprintf (Files): Add lib/float+.h.
88122         * doc/functions/fprintf.texi: Update.
88123         * doc/functions/printf.texi: Update.
88124         * doc/functions/snprintf.texi: Update.
88125         * doc/functions/sprintf.texi: Update.
88126         * doc/functions/vfprintf.texi: Update.
88127         * doc/functions/vprintf.texi: Update.
88128         * doc/functions/vsnprintf.texi: Update.
88129         * doc/functions/vsprintf.texi: Update.
88131 2007-05-18  Bruno Haible  <bruno@clisp.org>
88133         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
88135 2007-05-18  Bruno Haible  <bruno@clisp.org>
88137         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
88138         for printing 64-bit integers. Needed for mingw.
88140 2007-05-18  Bruno Haible  <bruno@clisp.org>
88142         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
88143         gl_FUNC_FREXPL_WORKS.
88144         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
88146 2007-05-18  Bruno Haible  <bruno@clisp.org>
88148         * modules/frexpl-nolibm-tests: New file.
88150         * modules/frexpl-nolibm: New file.
88151         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
88153 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
88155         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
88156         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
88157         GCC 4.2, which otherwise issues a lot of warnings.
88158         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
88159         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
88160         Likewise.
88161         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
88162         * modules/iconv_open (iconv.h): Likewise.
88163         * modules/locale (locale.h): Likewise.
88164         * modules/netinet_in (netinet/in.h): Likewise.
88165         * modules/sys_select (sys_select.h): Likewise.
88166         * modules/sys_socket (sys/socket.h): Likewise.
88167         * modules/sys_stat (sys/stat.h): Likewise.
88168         * modules/sysexits (sysexits.h): Likewise.
88169         * modules/unistd (unistd.h): Likewise.
88171 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88173         * modules/closein-tests (Makefile.am): Distribute
88174         `test-closein.sh'.
88176 2007-05-17  Bruno Haible  <bruno@clisp.org>
88178         * tests/test-printf-posix.output: Renamed from
88179         tests/test-fprintf-posix.out.
88180         * modules/fprintf-posix-tests: Update.
88181         * modules/printf-posix-tests: Update.
88182         * modules/vfprintf-posix-tests: Update.
88183         * modules/vprintf-posix-tests: Update.
88184         * tests/test-fprintf-posix.sh: Update.
88185         * tests/test-printf-posix.sh: Update.
88186         * tests/test-vfprintf-posix.sh: Update.
88187         * tests/test-vprintf-posix.sh: Update.
88188         Reported by Ralf Wildenhues.
88190 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
88192         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
88193         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
88194         GCC 4.2, which otherwise issues a lot of warnings.
88195         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
88196         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
88197         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
88198         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
88199         it should no longer be needed.
88200         * lib/string_.h: Likewise.
88201         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
88202         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
88203         * modules/inttypes (inttypes.h): Likewise.
88204         * modules/math (math.h): Likewise.
88205         * modules/search (search.h): Likewise.
88206         * modules/signal (signal.h): Likewise.
88207         * modules/stdint (stdint.h): Likewise.
88208         * modules/stdio (stdio.h): Likewise.
88209         * modules/stdlib (stdlib.h): Likewise.
88210         * modules/string (string.h): Likewise.
88211         * modules/sys_time (sys/time.h): Likewise.
88212         * modules/time (time.h): Likewise.
88213         * modules/wchar (wchar.h): Likewise.
88214         * modules/wctype (wtype.h): Likewise.
88216 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
88218         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
88220 2007-05-13  Bruno Haible  <bruno@clisp.org>
88222         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
88223         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
88224         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
88225         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
88226         (gl_PREREQ_STRTOK_R): Don't require it here.
88228 2007-05-13  Bruno Haible  <bruno@clisp.org>
88230         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
88231         when used in C++ mode.
88233 2007-05-12  Bruno Haible  <bruno@clisp.org>
88235         * lib/linebuffer.h: Tweak doc.
88236         * lib/linebuffer.c: Likewise.
88238 2007-05-12  James Youngman  <jay@gnu.org>
88240         * lib/linebuffer.c (readlinebuffer_delim): New function,
88241         like readlinebuffer, but use a caller-specified delimiter.
88242         (readlinebuffer): Just call readlinebuffer_delim with '\n'
88243         as the delimiter.
88244         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
88246 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
88248         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
88249         * modules/openat (Files): Remove openat-die.c.
88250         (Depends-on): Add openat-die.
88251         * modules/openat-die: New module.
88253 2007-05-06  Bruno Haible  <bruno@clisp.org>
88255         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
88256         Update with info about Cygwin.
88257         * doc/functions/fprintf.texi: Update.
88258         * doc/functions/printf.texi: Update.
88259         * doc/functions/snprintf.texi: Update.
88260         * doc/functions/sprintf.texi: Update.
88261         * doc/functions/vfprintf.texi: Update.
88262         * doc/functions/vprintf.texi: Update.
88263         * doc/functions/vsnprintf.texi: Update.
88264         * doc/functions/vsprintf.texi: Update.
88265         Reported by Eric Blake.
88267 2007-05-06  Bruno Haible  <bruno@clisp.org>
88269         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
88270         padding ourselves for the floating-point directives.
88271         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
88272         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
88273         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
88274         gl_PRINTF_FLAG_ZERO and test its result. Invoke
88275         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
88276         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
88277         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
88278         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
88279         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
88280         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
88281         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
88282         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
88283         * tests/test-snprintf-posix.h (test_function): Also check the width
88284         and some flags in the %f directive.
88285         * tests/test-sprintf-posix.h (test_function): Likewise.
88286         * tests/test-vasnprintf-posix.c (test_function): Likewise.
88287         * tests/test-vasprintf-posix.c (test_function): Likewise.
88288         * doc/functions/fprintf.texi: Update.
88289         * doc/functions/printf.texi: Update.
88290         * doc/functions/snprintf.texi: Update.
88291         * doc/functions/sprintf.texi: Update.
88292         * doc/functions/vfprintf.texi: Update.
88293         * doc/functions/vprintf.texi: Update.
88294         * doc/functions/vsnprintf.texi: Update.
88295         * doc/functions/vsprintf.texi: Update.
88297 2007-05-06  Bruno Haible  <bruno@clisp.org>
88299         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
88300         pass the ' flag character to sprintf or snprintf.
88301         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
88302         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
88303         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
88304         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
88305         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
88306         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
88307         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
88308         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
88309         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
88310         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
88311         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
88312         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
88313         * tests/test-snprintf-posix.h (test_function): Also check the grouping
88314         flag.
88315         * tests/test-sprintf-posix.h (test_function): Likewise.
88316         * tests/test-vasnprintf-posix.c (test_function): Likewise.
88317         * tests/test-vasprintf-posix.c (test_function): Likewise.
88318         * doc/functions/fprintf.texi: Update.
88319         * doc/functions/printf.texi: Update.
88320         * doc/functions/snprintf.texi: Update.
88321         * doc/functions/sprintf.texi: Update.
88322         * doc/functions/vfprintf.texi: Update.
88323         * doc/functions/vprintf.texi: Update.
88324         * doc/functions/vsnprintf.texi: Update.
88325         * doc/functions/vsprintf.texi: Update.
88327 2007-05-01  Bruno Haible  <bruno@clisp.org>
88329         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
88331 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
88333         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
88334         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
88336 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
88338         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
88339         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
88340         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00021.html>.
88342 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
88344         * lib/argp-help.c (struct hol_entry): New member `ord'.
88345         (HOL_ENTRY_PTRCMP): Use ord for comparison
88346         (hol_sort): Initialize ord.
88348 2007-05-01  Bruno Haible  <bruno@clisp.org>
88350         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
88351         Reported by Eric Blake.
88352         * doc/gnulib.texi (Function Substitutes): Update.
88354 2007-05-01  Bruno Haible  <bruno@clisp.org>
88356         * doc/functions.texi: Remove file, now redundant through
88357         doc/functions/*.texi.
88359 2007-05-01  Bruno Haible  <bruno@clisp.org>
88361         * modules/argp (Depends-on): Add sleep.
88363 2007-05-01  Bruno Haible  <bruno@clisp.org>
88365         * modules/sleep-tests: New file.
88366         * tests/test-sleep.c: New file.
88368         * modules/sleep: New file.
88369         * lib/sleep.c: New file.
88370         * m4/sleep.m4: New file.
88371         * lib/unistd_.h (sleep): New declaration.
88372         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
88373         HAVE_SLEEP.
88374         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
88375         * doc/functions/sleep.texi: Document the sleep module.
88377 2007-05-01  Bruno Haible  <bruno@clisp.org>
88379         * lib/sigprocmask.h: Remove file.
88380         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
88381         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
88382         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
88383         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
88384         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
88385         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
88386         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
88387         HAVE_SIGSET_T as a shell variable.
88388         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
88389         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
88390         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
88391         (Depends-on): Add signal. Remove verify.
88392         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
88393         (Include): Mention <signal.h> instead of sigprocmask.h.
88394         * NEWS: Mention the change.
88395         * lib/fatal-signal.c: Don't include sigprocmask.h.
88397 2007-05-01  Bruno Haible  <bruno@clisp.org>
88399         * modules/signal: New file.
88400         * lib/signal_.h: New file.
88401         * m4/signal_h.m4: New file.
88403 2007-05-01  Bruno Haible  <bruno@clisp.org>
88405         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
88406         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
88407         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
88408         HAVE_WCTYPE_CTMP_BUG into wctype.h.
88410 2007-05-01  Bruno Haible  <bruno@clisp.org>
88412         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
88413         configure time.
88414         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
88415         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
88416         * modules/sys_stat (Makefile.am): Substitute their values into
88417         sys/stat.h.
88419 2007-05-01  Bruno Haible  <bruno@clisp.org>
88421         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
88422         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
88423         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
88425 2007-05-01  Bruno Haible  <bruno@clisp.org>
88427         * doc/header/assert.texi: Undo last change: don't mention the gnulib
88428         'assert' module here.
88430 2007-05-01  Bruno Haible  <bruno@clisp.org>
88432         * doc/functions/*.texi: New files.
88433         * doc/functions/google-ranking.txt: New file.
88434         * doc/gnulib.texi (Function Substitutes): New chapter.
88435         (ctime, inet_ntoa): Remove sections.
88436         * doc/ctime.texi: Remove file.
88437         * doc/inet_ntoa.texi: Remove file.
88438         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
88439         dependencies.
88440         (%.info): New rule, specifying a --reference-limit.
88442 2007-05-01  Bruno Haible  <bruno@clisp.org>
88444         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
88446 2007-05-01  Bruno Haible  <bruno@clisp.org>
88448         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
88449         the portability of 'mkdir' to mingw systems.
88451 2007-05-01  Bruno Haible  <bruno@clisp.org>
88453         * doc/headers/google-ranking.txt: New file.
88455 2007-04-30  Eric Blake  <ebb9@byu.net>
88457         Prefer fseeko to fseek.
88458         * modules/getpass (Depends-on): Add fseeko.
88459         * lib/getpass.c (getpass): Use fseeko, not fseek.
88461 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
88463         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
88464         assumes the sorting is stable, while most qsort implementations
88465         are not.  Use argument addresses to ensure they never compare as
88466         equal.
88468         * tests/test-argp-2.sh (usage-indent test): Fix output
88469         (func_compare): Restore diff options
88470         * tests/test-argp.c: Restore #include "progname.h"
88472 2007-04-29  Bruno Haible  <bruno@clisp.org>
88474         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
88475         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
88476         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
88477         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
88478         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
88479         (configure.ac): Define CHECK_SNPRINTF_POSIX.
88480         (TESTS, check_PROGRAMS): Add test-snprintf.
88481         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
88482         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
88483         (TESTS, check_PROGRAMS): Add test-vsnprintf.
88484         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
88485         assertions that fail on HP-UX, OSF/1, or IRIX.
88486         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
88488 2007-04-29  Bruno Haible  <bruno@clisp.org>
88490         * MODULES.html.sh (posix_functions): Remove 'contents'.
88492 2007-04-29  Karl Berry  <karl@gnu.org>
88494         * config/srclist.txt (gendocs_template_min): new entry.
88496 2007-04-29  Bruno Haible  <bruno@clisp.org>
88498         Work around fpurge bug on BSD systems.
88499         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
88500         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
88501         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
88502         fpurge to rpl_fpurge if the system already has this function.
88503         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
88504         the case where the system already has this function. Correct invariants
88505         on BSD systems.
88506         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
88507         BSD systems.
88509 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
88511         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
88512         proposed by Sven Verdoolaege.
88514         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
88515         options.
88516         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
88517         (usage and help tests): Update
88519 2007-04-29  Bruno Haible  <bruno@clisp.org>
88521         * tests/test-fflush.c (main): Use a file of size 17, not 10.
88522         Print more information in case of failure. Disable a test on BeOS.
88524 2007-04-29  Bruno Haible  <bruno@clisp.org>
88526         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
88527         This helps debugging on systems on which no gdb is available.
88529 2007-04-29  Bruno Haible  <bruno@clisp.org>
88531         * lib/freading.h: Improve comments.
88532         * lib/fwriting.h: Likewise.
88533         * tests/test-freading.c (main): Don't check freading immediately after
88534         repositioning. Needed for glibc.
88536 2007-04-29  Bruno Haible  <bruno@clisp.org>
88538         * lib/freading.c (freading): Trivial simplification.
88540 2007-04-28  Bruno Haible  <bruno@clisp.org>
88542         * tests/test-fwriting.c (main): Also test the interaction between
88543         fflush and fwriting.
88544         * modules/fwriting-tests (Depends-on): Add fflush.
88546         * tests/test-freading.c (main): Also test the interaction between
88547         fflush and freading.
88548         * modules/freading-tests (Depends-on): Add fflush.
88550 2007-04-28  Bruno Haible  <bruno@clisp.org>
88552         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
88553         fseeko and ftello.
88554         Suggested by Eric Blake.
88556 2007-04-28  Jim Meyering  <jim@meyering.net>
88558         Avoid false-negative in gl_STDINT_H's C99 conformance test.
88559         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
88560         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
88562 2007-04-27  Eric Blake  <ebb9@byu.net>
88564         * doc/headers/assert.texi (assert.h): Document assert module use.
88566 2007-04-27  Bruno Haible  <bruno@clisp.org>
88568         * doc/headers/*.texi: New files.
88569         * doc/gnulib.texi (Header File Substitutes): New chapter.
88570         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
88571         dependencies.
88572         (standards.info ,standards.html, standards.dvi): Update dependencies.
88573         (mostlyclean, clean): New targets.
88575 2007-04-27  Bruno Haible  <bruno@clisp.org>
88577         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
88578         * modules/sysexits (Files, Makefile.am): Update.
88580         * lib/sys_socket_.h: Renamed from lib/socket_.h.
88581         * modules/sys_socket (Files, Makefile.am): Update.
88583         * lib/sys_stat_.h: Renamed from lib/stat_.h.
88584         * modules/sys_stat (Files, Makefile.am): Update.
88586 2007-04-27  Eric Blake  <ebb9@byu.net>
88588         * lib/freading.h: Improve comments.
88589         * lib/fwriting.h: Likewise.
88590         * lib/fflush.c: Likewise.
88592         Fix closein for mingw.
88593         * modules/closein-tests: Add tests for closein.
88594         * tests/test-closein.c: New file.
88595         * tests/test-closein.sh: Likewise.
88596         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
88597         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
88599 2007-04-27  Bruno Haible  <bruno@clisp.org>
88601         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
88602         version is < 6.
88603         * lib/math_.h [__DECC]: Likewise.
88604         * lib/stdio_.h [__DECC]: Likewise.
88605         * lib/stdlib_.h [__DECC]: Likewise.
88606         * lib/string_.h [__DECC]: Likewise.
88607         * lib/time_.h [__DECC]: Likewise.
88608         * lib/wchar_.h [__DECC]: Likewise.
88609         * lib/wctype_.h [__DECC]: Likewise.
88611 2007-04-27  Bruno Haible  <bruno@clisp.org>
88613         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
88615 2007-04-27  Bruno Haible  <bruno@clisp.org>
88617         * lib/fflush.c: Add comments.
88618         * modules/fpurge-tests (Depends-on): Add fflush.
88619         * modules/freadable-tests (Depends-on): Likewise.
88620         * modules/fwritable-tests (Depends-on): Likewise.
88622 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
88624         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
88625         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
88626         Report by Bruno Haible <bruno@clisp.org>.
88628 2007-04-26  Eric Blake  <ebb9@byu.net>
88630         Fix fflush on mingw.
88631         * modules/fflush (Depends-on): Add freading.
88632         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
88633         but unread data.
88635 2007-04-26  Eric Blake  <ebb9@byu.net>
88636         and Bruno Haible  <bruno@clisp.org>
88638         Implement freading and fwriting.
88639         * lib/freading.c: New file.
88640         * lib/freading.h: Likewise.
88641         * m4/freading.m4: Likewise.
88642         * modules/freading: Likewise.
88643         * modules/freading-tests: Likewise.
88644         * tests/test-freading.c: Likewise.
88645         * lib/fwriting.c: New file.
88646         * lib/fwriting.h: Likewise.
88647         * m4/fwriting.m4: Likewise.
88648         * modules/fwriting: Likewise.
88649         * modules/fwriting-tests: Likewise.
88650         * tests/test-fwriting.c: Likewise.
88651         * MODULES.html.sh (File stream based Input/Output): Mention them.
88653 2007-04-26  Bruno Haible  <bruno@clisp.org>
88655         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
88656         'long' when we assume it.
88657         Suggested by Eric Blake.
88659 2007-04-26  Bruno Haible  <bruno@clisp.org>
88661         Ensure fseeko, ftello are declared on glibc systems.
88662         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
88663         * modules/fseeko (configure.ac-early): Likewise.
88664         * modules/ftello (configure.ac-early): Likewise.
88665         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
88666         AC_FUNC_FSEEKO for this.
88667         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
88668         (gl_CHECK_FSEEKO): Remove macro.
88670 2007-04-26  Bruno Haible  <bruno@clisp.org>
88672         * tests/test-fflush.c (main): Also check the ftell result after
88673         fflush and fseek/fseeko.
88674         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
88675         file descriptor position cache in the stream.
88676         * lib/fseeko.c (rpl_fseeko): Likewise.
88678 2007-04-26  Bruno Haible  <bruno@clisp.org>
88680         * modules/fflush-tests (Depends-on): Add fseeko.
88682 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
88683             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88685         * lib/argz_.h: ensure error_t definition is obtained in same
88686         mechanism system argz.h would have.
88687         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
88688         argz facilities are known bad.  Err on the side of caution if
88689         cross-compiling.
88691 2007-04-25  Eric Blake  <ebb9@byu.net>
88693         * lib/fpurge.c (includes): Use stdlib.h for free.
88694         * tests/test-fflush.c (main): Also test fflush-fseeko.
88696 2007-04-25  Bruno Haible  <bruno@clisp.org>
88698         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
88699         * lib/fseeko.c: New file.
88700         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
88701         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
88702         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
88703         gl_FUNC_FSEEKO.
88704         (gl_FUNC_FSEEKO): Invoke it.
88705         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
88706         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
88707         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
88709 2007-04-25  Bruno Haible  <bruno@clisp.org>
88711         * modules/fflush (Depends-on): Add ftello.
88713 2007-04-25  Bruno Haible  <bruno@clisp.org>
88715         * modules/ftello-tests: New file.
88716         * tests/test-ftello.c: New file.
88718         * modules/ftello: New file.
88719         * m4/ftello.m4: New file.
88720         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
88721         HAVE_FTELLO.
88722         * lib/stdio_.h (ftello): New declaration.
88723         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
88724         HAVE_FTELLO.
88726 2007-04-25  Bruno Haible  <bruno@clisp.org>
88728         * modules/fseeko-tests: New file.
88729         * tests/test-fseeko.c: New file.
88731         * modules/fseeko: New file.
88732         * m4/fseeko.m4: New file.
88733         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
88734         HAVE_FSEEKO.
88735         * lib/stdio_.h (fseeko): New declaration.
88736         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
88737         HAVE_FSEEKO.
88739 2007-04-25  Bruno Haible  <bruno@clisp.org>
88741         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
88743 2007-04-25  Bruno Haible  <bruno@clisp.org>
88745         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
88746         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
88747         * tests/test-unistd.c: Likewise.
88748         * tests/test-fcntl.c: Likewise.
88750 2007-04-23  Eric Blake  <ebb9@byu.net>
88752         * lib/fflush.c: Fix missing include.
88753         Reported by Bruno Haible.
88755 2007-04-23  Bruno Haible  <bruno@clisp.org>
88757         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
88758         Reported by Eric Blake.
88760 2007-04-23  Bruno Haible  <bruno@clisp.org>
88762         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
88764 2007-04-23  Bruno Haible  <bruno@clisp.org>
88766         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
88768 2007-04-23  Bruno Haible  <bruno@clisp.org>
88770         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
88771         Needed on HP-UX 11.
88773 2007-04-16  Eric Blake  <ebb9@byu.net>
88775         Make fflush rely on fpurge.
88776         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
88777         open coding all variants.
88778         * modules/fflush (Depends-on): Add fpurge and unistd.
88779         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
88780         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
88782         Fix --with-tests compilation on cygwin.
88783         * modules/argmatch-tests (Makefile.am): List gnulib library first
88784         in LDADD.
88785         * modules/argp-tests (Makefile.am): Likewise.
88786         * modules/array-list-tests (Makefile.am): Likewise.
88787         * modules/array-oset-tests (Makefile.am): Likewise.
88788         * modules/avltree-list-tests (Makefile.am): Likewise.
88789         * modules/avltree-oset-tests (Makefile.am): Likewise.
88790         * modules/avltreehash-list-tests (Makefile.am): Likewise.
88791         * modules/carray-list-tests (Makefile.am): Likewise.
88792         * modules/dirname-tests (Makefile.am): Likewise.
88793         * modules/frexp-tests (Makefile.am): Likewise.
88794         * modules/isnanl-tests (Makefile.am): Likewise.
88795         * modules/linked-list-tests (Makefile.am): Likewise.
88796         * modules/linkedhash-list-tests (Makefile.am): Likewise.
88797         * modules/lock-tests (Makefile.am): Likewise.
88798         * modules/rbtree-list-tests (Makefile.am): Likewise.
88799         * modules/rbtree-oset-tests (Makefile.am): Likewise.
88800         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
88801         * modules/tls-tests (Makefile.am): Likewise.
88802         * modules/tsearch-tests (Makefile.am): Likewise.
88803         * modules/xvasprintf-tests (Makefile.am): Likewise.
88805         Fix fpurge for cygwin.
88806         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
88807         value.
88808         * modules/fpurge-tests (Depends-on): Clean up trash.
88810 2007-04-16  Simon Josefsson  <simon@josefsson.org>
88812         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
88814         * m4/autobuild.m4: Re-indent.
88816 2007-04-13  Bruno Haible  <bruno@clisp.org>
88818         * modules/fpurge-tests: New file.
88819         * tests/test-fpurge.c: New file.
88821         * modules/fpurge: New file.
88822         * lib/fpurge.h: New file.
88823         * lib/fpurge.c: New file.
88824         * m4/fpurge.m4: New file.
88826 2007-04-13  Bruno Haible  <bruno@clisp.org>
88828         * modules/fbufmode-tests: New file.
88829         * tests/test-fbufmode.c: New file.
88831         * modules/fbufmode: New file.
88832         * lib/fbufmode.h: New file.
88833         * lib/fbufmode.c: New file.
88834         * m4/fbufmode.m4: New file.
88836 2007-04-13  Bruno Haible  <bruno@clisp.org>
88838         * modules/fwritable-tests: New file.
88839         * tests/test-fwritable.c: New file.
88841         * modules/fwritable: New file.
88842         * lib/fwritable.h: New file.
88843         * lib/fwritable.c: New file.
88844         * m4/fwritable.m4: New file.
88846 2007-04-13  Bruno Haible  <bruno@clisp.org>
88848         * modules/freadable-tests: New file.
88849         * tests/test-freadable.c: New file.
88851         * modules/freadable: New file.
88852         * lib/freadable.h: New file.
88853         * lib/freadable.c: New file.
88854         * m4/freadable.m4: New file.
88856 2007-04-13  Bruno Haible  <bruno@clisp.org>
88858         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
88859         MOSTLYCLEANFILES.
88861 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
88863         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
88864         gzip bootstrap.conf to avoid dragging in i18n machinery.
88865         (gnulib_tool_option): Use it.
88867 2007-04-13  Bruno Haible  <bruno@clisp.org>
88869         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
88870         %F directives.
88871         * tests/test-vasprintf-posix.c (test_function): Likewise.
88872         * tests/test-snprintf-posix.h (test_function): Likewise.
88873         * tests/test-sprintf-posix.h (test_function): Likewise.
88874         * tests/test-fprintf-posix.h (test_function): Likewise.
88875         * tests/test-printf-posix.h (test_function): Likewise.
88876         * tests/test-fprintf-posix.out: Likewise.
88878 2007-04-13  Bruno Haible  <bruno@clisp.org>
88880         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
88881         * modules/tls-tests (configure.ac): Likewise.
88882         Reported by Arto C. Nirkko <anirkko@insel.ch>.
88884 2007-04-13  Bruno Haible  <bruno@clisp.org>
88886         * lib/tls.c (glthread_tls_get): Fix return type.
88887         Patch by Arto C. Nirkko <anirkko@insel.ch>.
88889 2007-04-12  Eric Blake  <ebb9@byu.net>
88891         * modules/gettime (Depends-on): Remove gettime.
88892         Reported by Dmitry V. Levin.
88894 2007-04-12  Bruno Haible  <bruno@clisp.org>
88896         * modules/fflush (Include): Mention <stdio.h>.
88897         * modules/strtoimax (Include): Mention <inttypes.h>.
88898         * modules/strtoumax (Include): Likewise.
88900 2007-04-12  Eric Blake  <ebb9@byu.net>
88902         * .cvsignore: New file.
88903         * .gitignore: Likewise.
88905 2007-04-12  Bruno Haible  <bruno@clisp.org>
88907         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
88908         not before, since $(LDADD) often contains libgnu.a.
88909         * modules/striconv-tests (test_striconv_LDADD): Likewise.
88910         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
88911         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
88912         Needed on Cygwin.
88914 2007-04-12  Eric Blake  <ebb9@byu.net>
88916         Work around glibc's failure to flush stdin on fclose.
88917         * lib/closein.c (close_stdin): Flush stdin before closing.
88919         Work around glibc's failure to reset seekable stdin on exit.
88920         * modules/closein: New module.
88921         * lib/closein.c: New file.
88922         * lib/closein.h: Likewise.
88923         * m4/closein.m4: Likewise.
88924         * MODULES.html.sh (File stream based Input/Output): Document it.
88926 2007-04-12  Simon Josefsson  <simon@josefsson.org>
88928         * gnulib-tool: Rename generated 'autobuild' script to
88929         'do-autobuild' in --create-megatestdir output.
88931         * doc/gnulib.texi (Build robot for gnulib): Fix.
88933 2007-04-12  Simon Josefsson  <simon@josefsson.org>
88935         * modules/sysexits (Depends-on): Add absolute-header.
88937 2007-04-12  Eric Blake  <ebb9@byu.net>
88939         No need to preserve errno on success.
88940         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
88941         Reported by Bruno Haible.
88943 2007-04-12  Simon Josefsson  <simon@josefsson.org>
88945         * MODULES.html.sh (Support for maintaining and releasing
88946         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
88948 2007-04-12  Simon Josefsson  <simon@josefsson.org>
88950         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
88952 2007-04-12  Simon Josefsson  <simon@josefsson.org>
88954         * modules/autobuild: New module.
88956         * m4/autobuild.m4: New file.
88958 2007-04-11  Bruno Haible  <bruno@clisp.org>
88960         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
88961         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
88962         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
88963         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
88964         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
88965         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
88966         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
88967         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
88968         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
88969         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
88970         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
88971         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
88972         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
88973         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
88974         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
88975         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
88976         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
88977         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
88978         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
88979         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
88980         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
88981         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
88982         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
88983         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
88984         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
88985         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
88986         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
88987         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
88988         Reported by Eric Blake.
88990 2007-04-11  Bruno Haible  <bruno@clisp.org>
88992         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
88994 2007-04-10  Bruno Haible  <bruno@clisp.org>
88996         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
88997         for NaN and Infinity. Needed on FreeBSD 6.1.
88998         * tests/test-vasnprintf-posix.c (test_function): Undo last change
88999         regarding results for "%010a" of Infinity and NaN.
89000         * tests/test-vasprintf-posix.c (test_function): Likewise.
89001         * tests/test-snprintf-posix.h (test_function): Likewise.
89002         * tests/test-sprintf-posix.h (test_function): Likewise.
89003         * tests/test-fprintf-posix.h (test_function): Likewise.
89004         * tests/test-printf-posix.h (test_function): Likewise.
89005         * tests/test-fprintf-posix.out: Likewise.
89007 2007-04-10  Bruno Haible  <bruno@clisp.org>
89009         * modules/locale-tests: New file.
89010         * tests/test-locale.c: New file.
89012         * modules/locale: New file.
89013         * lib/locale_.h: New file.
89014         * m4/locale_h.m4: New file.
89016 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
89017             Bruno Haible  <bruno@clisp.org>
89019         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
89020         be determined, test for availability of the copysignf, copysign,
89021         copysignl functions.
89022         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
89023         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
89024         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
89026 2007-04-09  Eric Blake  <ebb9@byu.net>
89028         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
89029         * modules/stdio (Makefile.am): Support fflush.
89030         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
89031         * modules/fflush: New file.
89032         * lib/fflush.c: Likewise.
89033         * m4/fflush.m4: Likewise.
89034         * modules/fflush-tests: New test.
89035         * tests/test-fflush.c: Likewise.
89036         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
89038 2007-04-06  Bruno Haible  <bruno@clisp.org>
89040         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
89041         (VASNPRINTF): Use signbit for faster determination whether to print a
89042         minus sign.
89043         * modules/vasnprintf (Files): Remove lib/float+.h.
89044         * modules/fprintf-posix (Depends-on): Add signbit.
89045         * modules/snprintf-posix (Depends-on): Likewise.
89046         * modules/sprintf-posix (Depends-on): Likewise.
89047         * modules/vasnprintf-posix (Depends-on): Likewise.
89048         * modules/vasprintf-posix (Depends-on): Likewise.
89049         * modules/vfprintf-posix (Depends-on): Likewise.
89050         * modules/vsnprintf-posix (Depends-on): Likewise.
89051         * modules/vsprintf-posix (Depends-on): Likewise.
89053 2007-04-06  Bruno Haible  <bruno@clisp.org>
89055         * tests/test-frexp.c (main): Test also the sign bit of zero results.
89056         * tests/test-frexpl.c (main): Likewise.
89057         * tests/test-ldexpl.c (main): Likewise.
89058         * modules/frexp-tests (Depends-on): Add signbit.
89059         * modules/frexpl-tests (Depdends-on): Likewise.
89060         * modules/ldexpl-tests (Depdends-on): Likewise.
89062 2007-04-06  Bruno Haible  <bruno@clisp.org>
89064         * modules/signbit-tests: New file.
89065         * tests/test-signbit.c: New file.
89067         * modules/signbit: New file.
89068         * lib/signbitf.c: New file.
89069         * lib/signbitd.c: New file.
89070         * lib/signbitl.c: New file.
89071         * m4/signbit.m4: New file.
89072         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
89073         (signbit): New macro.
89074         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
89075         REPLACE_SIGNBIT.
89076         * modules/math (Makefile.am): Substitute also GNULIB_SIGNBIT and
89077         REPLACE_FREXPL into math.h.
89079 2007-04-06  Bruno Haible  <bruno@clisp.org>
89081         * modules/isnanf-nolibm-tests: New file.
89082         * tests/test-isnanf.c: New file.
89084         * modules/isnanf-nolibm: New file.
89085         * lib/isnanf.h: New file.
89086         * lib/isnanf.c: New file.
89087         * lib/isnan.c: Consider the USE_FLOAT macro.
89088         * m4/isnanf.m4: New file.
89090 2007-04-06  Bruno Haible  <bruno@clisp.org>
89092         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
89093         (Link): New section.
89095         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
89097 2007-04-06  Bruno Haible  <bruno@clisp.org>
89099         Assume the 'long double' type.
89100         * m4/longdouble.m4: Remove file.
89101         * config/srclist.txt: Don't mention longdouble.m4.
89102         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
89103         * lib/float+.h: Likewise.
89104         * lib/frexp.c: Likewise.
89105         * lib/printf-args.h: Likewise.
89106         * lib/printf-args.c: Likewise.
89107         * lib/printf-frexp.c: Likewise.
89108         * lib/printf-parse.c: Likewise.
89109         * lib/vasnprintf.c: Likewise.
89110         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
89111         * m4/intl.m4: Likewise.
89112         * m4/isnanl.m4: Likewise.
89113         * m4/printf.m4: Likewise.
89114         * m4/printf-frexpl.m4: Likewise.
89115         * m4/vasnprintf.m4: Likewise.
89116         * modules/allocsa (Files): Remove m4/longdouble.m4.
89117         * modules/gettext (Files): Likewise.
89118         * modules/relocatable-prog-wrapper (Files): Likewise.
89119         * modules/vasnprintf (Files): Likewise.
89120         * modules/isnanl (Files): Likewise.
89121         (Include): Simplify.
89122         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
89123         (Include): Simplify.
89124         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
89125         (Include): Simplify.
89126         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
89127         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
89128         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
89129         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
89130         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
89131         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
89132         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
89133         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
89134         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
89135         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
89136         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
89137         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
89138         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
89139         * tests/test-isnanl.c: Likewise.
89140         * tests/test-snprintf-posix.h: Likewise.
89141         * tests/test-sprintf-posix.h: Likewise.
89142         * tests/test-vasnprintf-posix.c: Likewise.
89143         * tests/test-vasnprintf-posix2.c: Likewise.
89144         * tests/test-vasprintf-posix.c: Likewise.
89146 2007-04-06  Bruno Haible  <bruno@clisp.org>
89148         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
89149         * lib/math_.h [__DECC]: Include the overridden include file through
89150         #include_next, outside the double-inclusion guard.
89151         * lib/stdio_.h [__DECC]: Likewise.
89152         * lib/stdlib_.h [__DECC]: Likewise.
89153         * lib/string_.h [__DECC]: Likewise.
89154         * lib/time_.h [__DECC]: Likewise.
89155         * lib/wchar_.h [__DECC]: Likewise.
89156         * lib/wctype_.h [__DECC]: Likewise.
89157         * lib/inttypes_.h [__DECC]: Likewise.
89158         Reported by Albert Chin <china@thewrittenword.com> in
89159         <http://lists.gnu.org/r/bug-gnulib/2007-04/msg00088.html>.
89161 2007-04-04  Eric Blake  <ebb9@byu.net>
89163         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
89164         1.5.x.
89166 2007-04-04  Bruno Haible  <bruno@clisp.org>
89168         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
89169         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
89171 2007-04-04  Bruno Haible  <bruno@clisp.org>
89173         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
89174         results for "%010a" of Infinity and NaN.
89175         * tests/test-vasprintf-posix.c (test_function): Likewise.
89176         * tests/test-snprintf-posix.h (test_function): Likewise.
89177         * tests/test-sprintf-posix.h (test_function): Likewise.
89178         * tests/test-fprintf-posix.h (test_function): Remove these tests.
89179         * tests/test-printf-posix.h (test_function): Likewise.
89180         * tests/test-fprintf-posix.out: Update.
89181         Needed for FreeBSD 6.1.
89183 2007-04-04  Bruno Haible  <bruno@clisp.org>
89185         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
89186         directly used by the gnulib modules nor by gnulib-tool.
89188 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
89190         * DEPENDENCIES: Give overall description of version dependency
89191         desirability.  Use more-typical names for apps.
89192         Add shell, coreutils, diffutils, grep, tar, gzip.
89194 2007-04-04  Simon Josefsson  <simon@josefsson.org>
89196         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
89198 2007-04-04  Karl Berry  <karl@gnu.org>
89200         * MODULES.html.sh (func_module): missing '.
89202 2007-04-03  Bruno Haible  <bruno@clisp.org>
89204         * modules/argmatch-tests (Makefile.am): New variable
89205         test_argmatch_LDADD.
89206         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
89207         * modules/array-list-tests (Makefile.am): New variable
89208         test_array_list_LDADD.
89209         * modules/array-oset-tests (Makefile.am): New variable
89210         test_array_oset_LDADD.
89211         * modules/avltree-list-tests (Makefile.am): New variable
89212         test_avltree_list_LDADD.
89213         * modules/avltree-oset-tests (Makefile.am): New variable
89214         test_avltree_oset_LDADD.
89215         * modules/avltreehash-list-tests (Makefile.am): New variable
89216         test_avltreehash_list_LDADD.
89217         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
89218         test_canonicalize_lgpl_LDADD.
89219         * modules/carray-list-tests (Makefile.am): New variable
89220         test_carray_list_LDADD.
89221         * modules/dirname-tests (Makefile.am): New variable
89222         test_dirname_LDADD.
89223         * modules/linked-list-tests (Makefile.am): New variable
89224         test_linked_list_LDADD.
89225         * modules/linkedhash-list-tests (Makefile.am): New variable
89226         test_linkedhash_list_LDADD.
89227         * modules/rbtree-list-tests (Makefile.am): New variable
89228         test_rbtree_list_LDADD.
89229         * modules/rbtree-oset-tests (Makefile.am): New variable
89230         test_rbtree_oset_LDADD.
89231         * modules/rbtreehash-list-tests (Makefile.am): New variable
89232         test_rbtreehash_list_LDADD.
89233         * modules/xvasprintf-tests (Makefile.am): New variable
89234         test_xvasprintf_LDADD.
89235         Reported by Eric Blake.
89237 2007-04-03  Eric Blake  <ebb9@byu.net>
89239         * DEPENDENCIES: Weaken m4 requirements.
89241 2007-04-03  Bruno Haible  <bruno@clisp.org>
89243         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
89244         * modules/isnanl-tests (configure.ac): Likewise.
89246 2007-04-03  Ben Pfaff  <blp@gnu.org>
89248         * modules/iconv_open: Add $(srcdir)/ to source directory
89249         references in Makefile fragments that call gperf, to fix VPATH
89250         builds.
89252 2007-04-03  Bruno Haible  <bruno@clisp.org>
89254         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
89255         * lib/ldexpl.c: Undo last change.
89257 2007-04-03  Bruno Haible  <bruno@clisp.org>
89259         * modules/printf-frexpl (Depends-on): Undo last change.
89260         (Files): Add m4/ldexpl.m4.
89262 2007-04-03  Bruno Haible  <bruno@clisp.org>
89264         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
89265         * modules/isnanl (Link): New section.
89267         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
89268         * modules/frexp (Link): New section.
89270         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
89271         * modules/frexpl (Link): New section.
89273         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
89274         * modules/ldexpl (Link): New section.
89276 2007-04-03  Bruno Haible  <bruno@clisp.org>
89278         * modules/TEMPLATE-EXTENDED: New file.
89279         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
89281 2007-04-03  Bruno Haible  <bruno@clisp.org>
89283         * DEPENDENCIES: New file.
89284         Suggested by Simon Josefsson.
89286 2007-04-03  Bruno Haible  <bruno@clisp.org>
89288         * doc/gnulib.texi: Escape @.
89290 2007-04-03  James Youngman  <jay@gnu.org>
89291         and Paul Eggert  <eggert@cs.ucla.edu>
89293         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
89294         birthtime on all systems that have birthtime, not just those which
89295         use st_birthtimensec rather than st_birthtim.  Putting zero in
89296         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
89297         that the birth time is not available for files on an NFS mount.
89299 2007-04-03  Simon Josefsson  <simon@josefsson.org>
89301         * modules/memxor: Move back from crypto/, suggested by Bruno.
89302         * modules/crypto/hmac-sha1: Fix memxor dependency.
89304         * modules/crypto/gc: Moved from ../.
89306 2007-04-02  Eric Blake  <ebb9@byu.net>
89308         * lib/ldexpl.c (includes): Avoid libm.
89310         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
89312 2007-04-02  Bruno Haible  <bruno@clisp.org>
89314         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
89315         on IRIX.
89317 2007-04-02  Bruno Haible  <bruno@clisp.org>
89319         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
89320         x86 or x86_64 platforms running MacOS X.
89321         Reported by Ryan Schmidt <@ryandesign.com>.
89323 2007-04-02  Bruno Haible  <bruno@clisp.org>
89325         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
89326         i386.
89328 2007-04-01  Simon Josefsson  <simon@josefsson.org>
89330         * modules/crypto/arcfour: Moved from ../.
89331         * modules/crypto/arcfour-tests: Moved from ../.
89332         * modules/crypto/arctwo: Moved from ../.
89333         * modules/crypto/arctwo-tests: Moved from ../.
89334         * modules/crypto/des: Moved from ../.
89335         * modules/crypto/des-tests: Moved from ../.
89336         * modules/crypto/gc-arcfour: Moved from ../.
89337         * modules/crypto/gc-arcfour-tests: Moved from ../.
89338         * modules/crypto/gc-arctwo: Moved from ../.
89339         * modules/crypto/gc-arctwo-tests: Moved from ../.
89340         * modules/crypto/gc-des: Moved from ../.
89341         * modules/crypto/gc-des-tests: Moved from ../.
89342         * modules/crypto/gc-hmac-md5: Moved from ../.
89343         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
89344         * modules/crypto/gc-hmac-sha1: Moved from ../.
89345         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
89346         * modules/crypto/gc-md2: Moved from ../.
89347         * modules/crypto/gc-md2-tests: Moved from ../.
89348         * modules/crypto/gc-md4: Moved from ../.
89349         * modules/crypto/gc-md4-tests: Moved from ../.
89350         * modules/crypto/gc-md5: Moved from ../.
89351         * modules/crypto/gc-md5-tests: Moved from ../.
89352         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
89353         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
89354         * modules/crypto/gc-random: Moved from ../.
89355         * modules/crypto/gc-rijndael: Moved from ../.
89356         * modules/crypto/gc-rijndael-tests: Moved from ../.
89357         * modules/crypto/gc-sha1: Moved from ../.
89358         * modules/crypto/gc-sha1-tests: Moved from ../.
89359         * modules/crypto/gc-tests: Moved from ../.
89360         * modules/crypto/hmac-md5: Moved from ../.
89361         * modules/crypto/hmac-md5-tests: Moved from ../.
89362         * modules/crypto/hmac-sha1: Moved from ../.
89363         * modules/crypto/hmac-sha1-tests: Moved from ../.
89364         * modules/crypto/md2: Moved from ../.
89365         * modules/crypto/md2-tests: Moved from ../.
89366         * modules/crypto/md4: Moved from ../.
89367         * modules/crypto/md4-tests: Moved from ../.
89368         * modules/crypto/md5: Moved from ../.
89369         * modules/crypto/md5-tests: Moved from ../.
89370         * modules/crypto/memxor: Moved from ../.
89371         * modules/crypto/rijndael: Moved from ../.
89372         * modules/crypto/rijndael-tests: Moved from ../.
89373         * modules/crypto/sha1: Moved from ../.
89375 2007-03-30  James Youngman  <jay@gnu.org>
89377         * tests/test-stat-time.c (prepare_test): use chmod() rather than
89378         rename() to change the ctime of a file (because ctime is unaffected
89379         by rename on jfs2 on AIX 5.1).
89380         (main): Start by doing cleanup, in case a previous run failed leaving
89381         test files behind.
89383 2007-03-31  Bruno Haible  <bruno@clisp.org>
89385         Support old proprietary implementations of iconv.
89386         * modules/iconv_open: New file.
89387         * lib/iconv_.h: New file.
89388         * m4/iconv_h.m4: New file.
89389         * lib/iconv_open.c: New file.
89390         * lib/iconv_open-aix.gperf: New file.
89391         * lib/iconv_open-hpux.gperf: New file.
89392         * lib/iconv_open-irix.gperf: New file.
89393         * lib/iconv_open-osf.gperf: New file.
89394         * m4/iconv_open.m4: New file.
89395         * modules/linebreak (Depends-on): Add iconv_open.
89396         * modules/striconv (Depends-on): Likewise.
89397         * modules/striconveh (Depends-on): Likewise.
89398         * modules/unicodeio (Depends-on): Likewise.
89399         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
89400         (iconv_t)(-1).
89401         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
89402         conversion if cd is (iconv_t)(-1).
89403         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
89404         is not possible.
89406 2007-03-31  Bruno Haible  <bruno@clisp.org>
89408         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
89409         work on Solaris either. Protect also second use of "autodetect_jp".
89411 2007-03-31  Bruno Haible  <bruno@clisp.org>
89413         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
89414         the function is not present.
89416 2007-03-31  Bruno Haible  <bruno@clisp.org>
89418         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
89419         the function is not present.
89421 2007-03-31  Bruno Haible  <bruno@clisp.org>
89423         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
89424         a bug in HP-UX iconv_open().
89426 2007-03-31  Bruno Haible  <bruno@clisp.org>
89428         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
89429         (Mathematics <math.h>): New section, add fpieee.
89430         (Input/output <stdio.h>): Add fseterr.
89431         (Mathematics <math.h>): New section, add printf-frexp.
89432         (Container data structures): Add sublist.
89433         (Core language properties): Add fpucw, inline.
89434         (Functions for greatest-width integer types <inttypes.h>): Add
89435         imaxabs, imaxdiv, inttypes.
89436         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
89437         isnanl-nolibm, ldexp.
89438         (Mathematics <math.h>): New section, add printf-frexpl.
89439         (Support for systems lacking POSIX:2001): Add fprintf-posix,
89440         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
89441         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
89442         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
89443         (Unicode string functions): Add unistr/u*-mbtoucr.
89444         (Java): Add javacomp-script, javaexec-script.
89445         (C#): Add csharpcomp-script, csharpexec-script.
89446         (Support for building libraries and executables): Add havelib,
89447         relocatable-*.
89448         (Support for maintaining and releasing projects): Renamed from
89449         'Support for maintaining and release projects'. Add announce-gen.
89451 2007-03-31  Bruno Haible  <bruno@clisp.org>
89453         * README: Talk primarily about git.
89454         (git and CVS): Renamed from CVS.
89455         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
89456         gnulib is available through git.
89457         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
89459 2007-03-30  Bruno Haible  <bruno@clisp.org>
89461         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
89462         * lib/poll_.h: Likewise.
89463         * lib/stat_.h: Likewise.
89464         * lib/sys_time_.h: Likewise.
89465         * lib/sysexit_.h: Likewise.
89466         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
89467         * lib/stdbool_.h: Likewise.
89468         * lib/byteswap_.h: Add double-inclusion guard.
89470 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
89472         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
89474 2007-03-30  Karl Berry  <karl@gnu.org>
89476         * config/srclist-update: double space after USA in the license
89477         substitution, since that's how it's usually (?) written.
89479 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
89481         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
89482         reported by Bruno Haible.
89484 2007-03-29  Bruno Haible  <bruno@clisp.org>
89486         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
89487         a bug in AIX iconv().
89489 2007-03-29  Bruno Haible  <bruno@clisp.org>
89491         * modules/ldexpl-tests: New file.
89492         * tests/test-ldexpl.c: New file.
89494 2007-03-29  Bruno Haible  <bruno@clisp.org>
89496         * lib/ldexpl.c: Include fpucw.h.
89497         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
89498         multiplication.
89499         * modules/ldexpl (Depends-on): Add fpucw.
89501 2007-03-29  Bruno Haible  <bruno@clisp.org>
89503         * modules/ldexpl: New file.
89504         * m4/ldexpl.m4: New file.
89505         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
89506         set.
89507         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
89508         REPLACE_LDEXPL.
89509         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
89510         REPLACE_LDEXPL.
89511         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
89512         gl_FUNC_LDEXPL_WORKS.
89513         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
89514         * modules/mathl (Files): Remove lib/ldexpl.c.
89515         (Depends-on): Add ldexpl.
89517 2007-03-29  Bruno Haible  <bruno@clisp.org>
89519         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
89521 2007-03-29  Bruno Haible  <bruno@clisp.org>
89523         * tests/test-striconveh.c (main): Don't assume that a direct conversion
89524         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
89525         and possibly also HP-UX.
89526         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
89527         work on AIX, IRIX, HP-UX, OSF/1.
89528         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
89529         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
89530         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
89531         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
89532         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
89533         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
89535 2007-03-29  Bruno Haible  <bruno@clisp.org>
89537         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
89539 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
89541         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
89542         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
89544 2007-03-29  Eric Blake  <ebb9@byu.net>
89546         * lib/acl-internal.h: Remove redundant include.
89547         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
89548         Cygwin when a file is locked.
89550 2007-03-29  Bruno Haible  <bruno@clisp.org>
89552         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
89553         file.
89554         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
89556 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
89558         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
89559         try to remove a parent directory if the child couldn't be removed
89560         (except for the first rmdir, which could fail because the child
89561         doesn't exist).  Problem reported by Jeff Blaine in
89562         <http://lists.gnu.org/r/bug-tar/2007-03/msg00014.html>.
89564 2007-03-28  Bruno Haible  <bruno@clisp.org>
89566         * lib/striconveh.c (utf8conv_carefully): New function.
89567         (mem_cd_iconveh_internal): Invoke it.
89569 2007-03-28  Bruno Haible  <bruno@clisp.org>
89571         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
89572         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
89573         input.
89574         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
89575         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
89576         unistr/u8-uctomb.
89578 2007-03-28  Bruno Haible  <bruno@clisp.org>
89580         * modules/unistr/u8-mbtoucr: New file.
89581         * lib/unistr/u8-mbtoucr.c: New file.
89582         * modules/unistr/u16-mbtoucr: New file.
89583         * lib/unistr/u16-mbtoucr.c: New file.
89584         * modules/unistr/u16-mbtoucr: New file.
89585         * lib/unistr/u16-mbtoucr.c: New file.
89586         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
89588 2007-03-27  Simon Josefsson  <simon@josefsson.org>
89589             Bruno Haible  <bruno@clisp.org>
89591         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
89592         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
89593         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
89595         * m4/stdio_h.m4: Add stubs for vasprintf too.
89597         * modules/stdio: Support vasprintf in sed command.
89599         * modules/vasprintf: Depend on stdio for prototypes.  Remove
89600         vasprintf.h.  Add stdio module indicator.
89602         * lib/stdio_.h: Declare asprintf and vasprintf, based on
89603         vasprintf.h.
89605         * lib/vasprintf.h: File removed.
89607         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
89608         * lib/vasprintf.c: Ditto.
89609         * lib/xvasprintf.c: Ditto.
89610         * tests/test-vasprintf-posix.c: Ditto.
89611         * tests/test-vasprintf.c: Ditto.
89613 2007-03-27  Bruno Haible  <bruno@clisp.org>
89615         Make vasnprintf multithread-safe.
89616         * lib/vasnprintf.c (decimal_point_char): New function.
89617         (VASNPRINTF): Use it.
89618         Suggested by Simon Josefsson.
89620 2007-03-27  Eric Blake  <ebb9@byu.net>
89622         Support sub-second birthtime on cygwin.
89623         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
89624         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
89625         (get_stat_birthtime): Also work with st_birthtim.
89627 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
89629         * lib/stat-time.h (USE_BIRTHTIME): Remove.
89630         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
89631         (get_stat_birthtime_ns): Do not try to use "spare" fields.
89632         (get_stat_birthtime_ns): Simplify compile-time tests.
89633         (get_stat_birthtime): Change the API to look like
89634         get_stat_mtime etc., except return a negative tv_nsec on error.
89635         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
89636         Don't check for "spare" fields.
89637         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
89638         or for struct stat.st_birthtime, as these tests aren't used.
89639         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
89641 2007-03-27  Bruno Haible  <bruno@clisp.org>
89643         * lib/stat-time.h: Include <sys/stat.h>.
89645 2007-03-27  James Youngman  <jay@gnu.org>
89647         * lib/stat-time.h (get_stat_birthtime): New function for
89648           retrieving st_birthtime as provided by UFS2 (hence *BSD).
89649         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
89650           and its variants.
89651         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
89652         * modules/stat-time-test: New file.
89653         * tests/test-stat-time.c: New test, devised by Bruno Haible.
89655 2007-03-26  Bruno Haible  <bruno@clisp.org>
89657         Better support of signalling NaNs.
89658         * lib/atanl.c: Include isnanl.h.
89659         (atanl): Perform test for NaN at the beginning of the function and
89660         through a call to isnanl.
89661         * lib/cosl.c: Include isnanl.h.
89662         (cosl): Perform test for NaN at the beginning of the function and
89663         through a call to isnanl.
89664         * lib/ldexpl.c: Include isnanl.h.
89665         (ldexpl): Perform test for NaN through a call to isnanl.
89666         * lib/logl.c: Include isnanl.h.
89667         (logl): Perform test for NaN at the beginning of the function and
89668         through a call to isnanl.
89669         * lib/sinl.c: Include isnanl.h.
89670         (sinl): Perform test for NaN at the beginning of the function and
89671         through a call to isnanl.
89672         * lib/sqrtl.c: Include isnanl.h.
89673         (sqrtl): Perform test for NaN at the beginning of the function and
89674         through a call to isnanl.
89675         * lib/tanl.c: Include isnanl.h.
89676         (tanl): Perform test for NaN at the beginning of the function and
89677         through a call to isnanl.
89678         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
89679         * modules/mathl (Depends-on): Add isnanl.
89681 2007-03-26  Eric Blake  <ebb9@byu.net>
89683         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
89684         regression in logic sense of previous patch.
89686 2007-03-26  Bruno Haible  <bruno@clisp.org>
89688         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
89689         unportable shell command "if ! ...".
89690         Reported by Ralf Wildenhues.
89692 2007-03-25  Bruno Haible  <bruno@clisp.org>
89694         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
89695         <sysexits.h> file, and only add EX_CONFIG.
89696         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
89697         absolute file name and whether it is sufficient. Substitute also
89698         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
89699         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
89700         ABSOLUTE_SYSEXITS_H into sysexits.h.
89702 2007-03-25  Bruno Haible  <bruno@clisp.org>
89704         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
89705         hints is NULL.
89707 2007-03-25  Bruno Haible  <bruno@clisp.org>
89709         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
89710         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
89712 2007-03-25  Bruno Haible  <bruno@clisp.org>
89714         * lib/vasnprintf.c: Include langinfo.h.
89715         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
89716         multithread-safe.
89717         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
89718         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
89719         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
89720         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
89721         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
89722         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
89723         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
89724         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
89725         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
89726         Reported by Simon Josefsson.
89728 2007-03-25  Bruno Haible  <bruno@clisp.org>
89730         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
89731         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
89732         * modules/vasnprintf (Depends-on): Add stdint.
89734 2007-03-25  Bruno Haible  <bruno@clisp.org>
89736         * modules/fpieee: New file.
89737         * m4/fpieee.m4: New file.
89738         * modules/isnan-nolibm (Depends-on): Add fpieee.
89739         * modules/isnanl-nolibm (Depends-on): Add fpieee.
89740         * modules/isnanl (Depends-on): Add fpieee.
89742 2007-03-25  Bruno Haible  <bruno@clisp.org>
89744         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
89746 2007-03-25  Bruno Haible  <bruno@clisp.org>
89748         Avoid test failures on IRIX 6.5.
89749         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
89750         (main): Use it.
89751         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
89752         macros.
89753         (main): Use them.
89755 2007-03-25  Bruno Haible  <bruno@clisp.org>
89757         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
89758         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
89759         exists but doesn't work.
89760         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
89761         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
89762         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
89763         * modules/math (Makefile.am): Substitute also REPLACE_FREXPL into
89764         math.h.
89766 2007-03-25  Bruno Haible  <bruno@clisp.org>
89768         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
89769         returns inf. Needed on IRIX 6.5.
89771 2007-03-25  Bruno Haible  <bruno@clisp.org>
89773         * tests/test-frexpl.c: Include isnanl-nolibm.h.
89774         (main): Use isnanl instead of x != x idiom.
89775         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
89777         * tests/test-frexp.c: Include isnan.h.
89778         (main): Use isnan instead of x != x idiom.
89779         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
89781 2007-03-25  Bruno Haible  <bruno@clisp.org>
89783         * tests/test-frexp.c (NaN): New function/macro.
89784         (main): Use it instead of 0.0 / 0.0.
89785         * tests/test-isnan.c (NaN): New function/macro.
89786         (main): Use it instead of 0.0 / 0.0.
89787         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
89788         (test_function): Use it instead of 0.0 / 0.0.
89789         * tests/test-vasprintf-posix.c (NaN): New function/macro.
89790         (test_function): Use it instead of 0.0 / 0.0.
89791         * tests/test-snprintf-posix.h (NaN): New function/macro.
89792         (test_function): Use it instead of 0.0 / 0.0.
89793         * tests/test-sprintf-posix.h (NaN): New function/macro.
89794         (test_function): Use it instead of 0.0 / 0.0.
89795         * tests/test-fprintf-posix.h (NaN): New function/macro.
89796         (test_function): Use it instead of 0.0 / 0.0.
89797         * tests/test-printf-posix.h (NaN): New function/macro.
89798         (test_function): Use it instead of 0.0 / 0.0.
89800         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
89802 2007-03-25  Bruno Haible  <bruno@clisp.org>
89804         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
89806 2007-03-25  Bruno Haible  <bruno@clisp.org>
89808         * lib/regexec.c (merge_state_with_log): Make static.
89810 2007-03-25  Bruno Haible  <bruno@clisp.org>
89812         * lib/trigl.c (kernel_rem_pio2): Make static.
89814 2007-03-25  Bruno Haible  <bruno@clisp.org>
89816         * lib/sincosl.c (sincosl_table): Make static.
89818 2007-03-25  Bruno Haible  <bruno@clisp.org>
89820         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
89821         if the compiler does not support C99.
89823 2007-03-25  Bruno Haible  <bruno@clisp.org>
89825         * modules/time (Makefile.am): Ensure all rule action lines start with a
89826         tab.
89828 2007-03-24  Bruno Haible  <bruno@clisp.org>
89830         * modules/tsearch-tests: New file.
89831         * tests/test-tsearch.sh: New file.
89832         * tests/test-tsearch.c: New file, mostly copied from glibc.
89834         * modules/search-tests: New file.
89835         * tests/test-search.c: New file.
89837         * modules/search: New file.
89838         * lib/search_.h: New file, incorporating lib/tsearch.h.
89839         * m4/search_h.m4: New file.
89840         * lib/tsearch.h: Remove file.
89841         * lib/tsearch.c: Include search.h instead of tsearch.h.
89842         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
89843         HAVE_TSEARCH.
89844         * modules/tsearch (Files): Remove lib/tsearch.h.
89845         (Depends-on): Add search.
89846         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
89847         (Include): Change tsearch.h into search.h.
89849 2007-03-24  Bruno Haible  <bruno@clisp.org>
89851         * modules/fpucw: New file.
89852         * lib/fpucw.h: New file.
89853         * lib/frexp.c: Include fpucw.h.
89854         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
89855         (FUNC): Use them.
89856         * lib/printf-frexp.c: Include fpucw.h.
89857         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
89858         (FUNC): Use them.
89859         * lib/vasnprintf.c: Include fpucw.h.
89860         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
89861         'long double' calculations.
89862         * tests/test-frexpl.c: Include fpucw.h.
89863         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
89864         * tests/test-printf-frexpl.c: Include fpucw.h.
89865         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
89866         * modules/frexpl (Depends-on): Add fpucw.
89867         * modules/printf-frexpl (Depends-on): Likewise.
89868         * modules/fprintf-posix (Depends-on): Likewise.
89869         * modules/snprintf-posix (Depends-on): Likewise.
89870         * modules/sprintf-posix (Depends-on): Likewise.
89871         * modules/vasnprintf-posix (Depends-on): Likewise.
89872         * modules/vasprintf-posix (Depends-on): Likewise.
89873         * modules/vfprintf-posix (Depends-on): Likewise.
89874         * modules/vsnprintf-posix (Depends-on): Likewise.
89875         * modules/vsprintf-posix (Depends-on): Likewise.
89876         * modules/frexpl-tests (Depends-on): Likewise.
89877         * modules/printf-frexpl-tests (Depends-on): Likewise.
89879 2007-03-24  Bruno Haible  <bruno@clisp.org>
89881         * lib/float+.h: New file.
89882         * lib/isnan.c: Include float+.h.
89883         (SIZE): New macro.
89884         (FUNC): Compare only SIZE bytes of the value.
89885         * lib/vasnprintf.c: Include float+.h.
89886         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
89887         SIZEOF_LDBL or SIZEOF_DBL bytes.
89888         * modules/isnan-nolibm (Files): Add lib/float+.h.
89889         * modules/isnanl-nolibm (Files): Add lib/float+.h.
89890         * modules/isnanl (Files): Add lib/float+.h.
89891         * modules/vasnprintf (Files): Add lib/float+.h.
89893 2007-03-24  Bruno Haible  <bruno@clisp.org>
89895         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
89896         include isnanl-nolibm.h.
89898 2007-03-24  Bruno Haible  <bruno@clisp.org>
89900         * tests/test-read-file.c (main): Don't produce spurious output for
89901         expected situations. Make the test fail if it encountered unexpected
89902         results.
89904 2007-03-24  Bruno Haible  <bruno@clisp.org>
89906         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
89907         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
89909 2007-03-24  Bruno Haible  <bruno@clisp.org>
89911         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
89913 2007-03-24  Bruno Haible  <bruno@clisp.org>
89915         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
89916         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
89918         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
89919         * modules/utf8-ucs4: Turn into a symbolic link to module
89920         unistr/u8-mbtouc.
89922         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
89923         utf8-ucs4-unsafe.
89924         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
89925         unistr/u8-mbtouc-unsafe.
89927         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
89928         * modules/utf16-ucs4: Turn into a symbolic link to module
89929         unistr/u16-mbtouc.
89931         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
89932         utf16-ucs4-unsafe.
89933         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
89934         unistr/u16-mbtouc-unsafe.
89936         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
89937         * modules/ucs4-utf8: Turn into a symbolic link to module
89938         unistr/u8-ubtomb.
89940         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
89941         * modules/ucs4-utf16: Turn into a symbolic link to module
89942         unistr/u16-ubtomb.
89944 2007-03-24  Bruno Haible  <bruno@clisp.org>
89946         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
89947         Enable the function only if HAVE_INLINE.
89948         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
89949         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
89950         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
89951         Enable the function only if HAVE_INLINE.
89952         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
89953         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
89954         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
89955         Enable the function only if HAVE_INLINE.
89956         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
89957         Enable the function only if HAVE_INLINE.
89958         * modules/utf8-ucs4: Update.
89959         * modules/utf8-ucs4-unsafe: Update.
89960         * modules/utf16-ucs4: Update.
89961         * modules/utf16-ucs4-unsafe: Update.
89962         * modules/ucs4-utf8: Update.
89963         * modules/ucs4-utf16: Update.
89965 2007-03-24  Bruno Haible  <bruno@clisp.org>
89967         * lib/utf8-ucs4.h: Remove file.
89968         * lib/utf8-ucs4-unsafe.h: Remove file.
89969         * lib/utf16-ucs4.h: Remove file.
89970         * lib/utf16-ucs4-unsafe.h: Remove file.
89971         * lib/ucs4-utf8.h: Remove file.
89972         * lib/ucs4-utf16.h: Remove file.
89973         * lib/unistr.h: Include their previous contents.
89974         * m4/utf-ucs4.m4: Remove file.
89975         * m4/ucs4-utf.m4: Remove file.
89976         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
89977         (Depends-on): Add unistr/base.
89978         (configure.ac): Remove gl_UTF_UCS4.
89979         (Makefile.am): Update.
89980         (Include): Change to unistr.h.
89981         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
89982         (Depends-on): Add unistr/base.
89983         (configure.ac): Remove gl_UTF_UCS4.
89984         (Makefile.am): Update.
89985         (Include): Change to unistr.h.
89986         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
89987         (Depends-on): Add unistr/base.
89988         (configure.ac): Remove gl_UTF_UCS4.
89989         (Makefile.am): Update.
89990         (Include): Change to unistr.h.
89991         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
89992         (Depends-on): Add unistr/base.
89993         (configure.ac): Remove gl_UTF_UCS4.
89994         (Makefile.am): Update.
89995         (Include): Change to unistr.h.
89996         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
89997         (Depends-on): Add unistr/base.
89998         (configure.ac): Remove gl_UCS4_UTF.
89999         (Makefile.am): Update.
90000         (Include): Change to unistr.h.
90001         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
90002         (Depends-on): Add unistr/base.
90003         (configure.ac): Remove gl_UCS4_UTF.
90004         (Makefile.am): Update.
90005         (Include): Change to unistr.h.
90006         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
90007         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
90008         utf8-ucs4-unsafe.h.
90009         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
90010         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
90011         utf16-ucs4-unsafe.h.
90012         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
90013         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
90014         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
90015         * lib/unistr/u8-strchr.c: Likewise.
90016         * lib/unistr/u8-strrchr.c: Likewise.
90017         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
90018         * lib/unistr/u16-strchr.c: Likewise.
90019         * lib/unistr/u16-strrchr.c: Likewise.
90020         * lib/striconveh.c: Update.
90021         * lib/linebreak.c: Update.
90023 2007-03-24  Bruno Haible  <bruno@clisp.org>
90025         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
90026         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
90028 2007-03-22  Bruno Haible  <bruno@clisp.org>
90030         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
90032 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
90034         * MODULES.html.sh (File system functions): New module write-any-file.
90035         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
90036         * m4/write-any-file.m4: New files.
90038 2007-03-23  Eric Blake  <ebb9@byu.net>
90040         * gnulib-tool: Rearrange space-tab sequences, since some editors
90041         like to eat them.
90043 2007-03-23  Eric Blake  <ebb9@byu.net>
90045         * lib/version-etc.c (version_etc_va): Update license wording to
90046         be more concise.  Recommended by Richard Stallman.
90048 2007-03-22  Bruno Haible  <bruno@clisp.org>
90050         * lib/poll.c (MSG_PEEK): New fallback definition.
90052 2007-03-22  Bruno Haible  <bruno@clisp.org>
90054         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
90055         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
90056         (main): Update.
90057         Fixes a compilation error on BeOS.
90059 2007-03-22  Bruno Haible  <bruno@clisp.org>
90061         * modules/frexpl-tests: New file.
90062         * tests/test-frexpl.c: New file.
90064         * modules/frexpl: New file.
90065         * m4/frexpl.m4: New file.
90066         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
90067         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
90068         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
90069         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
90070         (Depends-on): Add frexpl. Remove isnanl-nolibm.
90071         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
90073 2007-03-22  Bruno Haible  <bruno@clisp.org>
90075         * lib/frexpl.c: Share code with lib/frexp.c.
90076         * modules/mathl (Files): Add lib/frexp.c.
90077         (Depends-on): Add isnanl-nolibm.
90079 2007-03-22  Bruno Haible  <bruno@clisp.org>
90081         * modules/printf-frexp (Files): Add m4/frexp.m4.
90082         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
90083         only if the found frexp function actually works.
90085 2007-03-22  Bruno Haible  <bruno@clisp.org>
90087         * lib/frexp.c: Remove older implementation that uses divisions.
90089 2007-03-21  Bruno Haible  <bruno@clisp.org>
90091         * modules/frexp-tests: New file.
90092         * tests/test-frexp.c: New file.
90094         * modules/frexp: New file.
90095         * lib/frexp.c: New file.
90096         * m4/frexp.m4: New file.
90097         * lib/math_.h (frexp): New declaration.
90098         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
90099         REPLACE_FREXP.
90100         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
90102 2007-03-21  Bruno Haible  <bruno@clisp.org>
90104         * modules/isnanl-tests: New file.
90105         * tests/test-isnanl.c: New file.
90107         * modules/isnanl: New file.
90108         * lib/isnanl.h: New file.
90109         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
90110         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
90111         gl_FUNC_ISNANL_WORKS.
90112         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
90113         New macros.
90115 2007-03-21  Bruno Haible  <bruno@clisp.org>
90117         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
90118         lib/isnanl.h.
90119         (Include): Update.
90120         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
90121         * lib/vasnprintf.c: Update.
90122         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
90123         tests/test-isnanl.h, remove tests/test-isnanl.c.
90124         (Makefile.am): Update.
90125         * tests/test-isnanl-nolibm.c: New file.
90126         * tests/test-isnanl.h: New file.
90127         * tests/test-isnanl.c: Remove file.
90129 2007-03-21  Jim Meyering  <jim@meyering.net>
90131         When trying to open ".", treat ESTALE like EACCES.
90132         * lib/savewd.c (savewd_save): Resort to forking not just upon
90133         failure with EACCES, but also when errno is ESTALE.
90135 2007-03-20  Bruno Haible  <bruno@clisp.org>
90137         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
90138         Needed on AIX 5.1. Reported by Matthew Woehlke.
90140 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
90142         Suggestions by Bruno Haible:
90143         * lib/acl-internal.h: Include "gettext.h" rather than rolling
90144         our own.
90145         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
90146         * modules/acl (Depends-on): Add gettext.
90148 2007-03-19  Bruno Haible  <bruno@clisp.org>
90150         * modules/iconvme: Remove file.
90151         * lib/iconvme.h: Remove file.
90152         * lib/iconvme.c: Remove file.
90153         * m4/iconvme.m4: Remove file.
90155 2007-03-19  Bruno Haible  <bruno@clisp.org>
90157         * doc/relocatable-maint.texi: Break long shell script line.
90158         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
90160 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
90162         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
90163         handle file_has_acl.
90164         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
90165         * lib/acl.c: Move header inclusions and related macro defns into
90166         lib/acl-internal.h.
90167         (S_ISLNK): Remove defn, since that's now done for us.
90168         (file_has_acl): Move to lib/file-has-acl.c.
90169         Call acl_trivial if available.  This is the crucial part of the fix.
90170         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
90171         shared within the library.  Rewrite a bit, partly to make it compatible
90172         with the GNU coding style.
90173         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
90174         Remove unnecessary double-quotes.
90175         Don't test for acl_to_text; the build will catch that.
90176         Replace acl_entries if it doesn't exist and it is needed.
90177         Check for -lsec and acl_trivial (as used on Solaris 10).
90178         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
90179         lib/file-has-acl.c.
90180         (Depends-on): Add sys_stat, for S_ISLNK.
90182 2007-03-19  Ben Pfaff  <blp@gnu.org>
90184         * doc/gnulib.texi: Fix typos.
90185         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
90187 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
90189         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
90190         If size is zero here, buf must be zero.
90192 2007-03-19  Simon Josefsson  <simon@josefsson.org>
90194         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
90195         <bruno@clisp.org>.
90197 2007-03-18  Bruno Haible  <bruno@clisp.org>
90199         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
90200         Suggested by Eric Blake.
90202 2007-03-18  Ben Pfaff  <blp@gnu.org>
90204         * doc/relocatable.texi: Recommend using as prefix a directory
90205         that does not exist and will never be created.  Based on
90206         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
90207         and others.
90209 2007-03-17  Bruno Haible  <bruno@clisp.org>
90211         * lib/fchownat.c: Include lchown.h.
90213 2007-03-17  Bruno Haible  <bruno@clisp.org>
90215         Fix endless loop when the given allocated size was > INT_MAX.
90216         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
90217         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
90218         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
90219         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
90220         * lib/sprintf.c (sprintf): Likewise.
90222 2007-03-17  Bruno Haible  <bruno@clisp.org>
90224         * tests/test-argp-2.sh (func_compare): Output a context diff.
90226 2007-03-17  Bruno Haible  <bruno@clisp.org>
90228         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
90229         locale's decimal-point character.
90231 2007-03-17  Bruno Haible  <bruno@clisp.org>
90233         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
90234         before comparing it. Needed because on some platforms (e.g. x86) a
90235         'long double' occupies less bytes than sizeof (long double).
90237 2007-03-17  Bruno Haible  <bruno@clisp.org>
90239         * tests/test-crc.c (main): Make printf statements 64-bit clean.
90240         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
90241         * tests/test-getaddrinfo.c (simple): Likewise.
90242         * tests/test-read-file.c (main): Likewise.
90244 2007-03-17  Bruno Haible  <bruno@clisp.org>
90246         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
90248 2007-03-17  Bruno Haible  <bruno@clisp.org>
90250         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
90251         unused variable.
90253 2007-03-17  Bruno Haible  <bruno@clisp.org>
90255         * tests/test-c-strcasecmp.c: Include c-strcase.h.
90256         * tests/test-c-strncasecmp.c: Likewise.
90258 2007-03-17  Bruno Haible  <bruno@clisp.org>
90260         * modules/stdlib (Depends-on): Add unistd.
90261         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
90262         Needed for MacOS X 10.3.
90264 2007-03-17  Bruno Haible  <bruno@clisp.org>
90266         * lib/unistr/u-strdup.h: Include <stdlib.h>.
90268 2007-03-17  Bruno Haible  <bruno@clisp.org>
90270         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
90272 2007-03-17  Bruno Haible  <bruno@clisp.org>
90274         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
90275         to reflect files copied from gnulib (with or without modifications).
90276         Suggested by Jim Meyering.
90278 2007-03-17  Eric Blake  <ebb9@byu.net>
90280         * NEWS: Document stdlib change from 2007-02-18.
90282 2007-03-17  Jim Meyering  <jim@meyering.net>
90284         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
90285         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
90286         someone uses a name containing shell meta-characters.
90287         Reported by Alfred M. Szmidt.
90289         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
90291 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
90293         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
90294         and copy gettext configuration files only if configure.ac contains
90295         a use of AM_GNU_GETTEXT_VERSION.
90297 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
90299         * build-aux/bootstrap (gnulib_name): New variable.
90300         (gnulib_tool_options): Use it.
90302 2007-03-13  Simon Josefsson  <simon@josefsson.org>
90304         * tests/test-des.c: Use new namespace.
90306 2007-03-15  Bruno Haible  <bruno@clisp.org>
90308         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
90309         Reported by James Youngman <jay@gnu.org>.
90311 2007-03-15  Bruno Haible  <bruno@clisp.org>
90313         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
90314         declared prototype. Needed with cc on OSF/1 5.1.
90316 2007-03-15  Bruno Haible  <bruno@clisp.org>
90318         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
90319         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
90320         (struct gl_list_implementation): Add dispose_fn argument to the
90321         'create_empty', 'create' methods.
90322         (struct gl_list_impl_base): Add field 'dispose_fn'.
90323         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
90324         argument.
90325         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
90326         dispose_fn argument.
90327         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
90328         dispose_fn on the dropped values.
90329         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
90330         dispose_fn argument.
90331         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
90332         dropped values.
90333         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
90334         (gl_tree_remove_node): Call dispose_fn on the dropped value.
90335         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
90336         (gl_tree_remove_node): Call dispose_fn on the dropped value.
90337         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
90338         argument.
90339         (gl_tree_list_free): Call dispose_fn on the dropped values.
90340         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
90341         the dropped values.
90342         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
90343         Add dispose_fn argument.
90344         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
90345         Call dispose_fn on the dropped values.
90346         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
90347         Add dispose_fn argument.
90348         (gl_sublist_create): Initialize the 'dispose_fn' field.
90349         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
90350         * tests/test-array_list.c (main): Update.
90351         * tests/test-carray_list.c (main): Update.
90352         * tests/test-avltree_list.c (main): Update.
90353         * tests/test-rbtree_list.c (main): Update.
90354         * tests/test-avltreehash_list.c (main): Update.
90355         * tests/test-rbtreehash_list.c (main): Update.
90356         * tests/test-linked_list.c (main): Update.
90357         * tests/test-linkedhash_list.c (main): Update.
90358         * tests/test-array_oset.c (main): Update.
90360 2007-03-15  Bruno Haible  <bruno@clisp.org>
90362         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
90363         (gl_oset_create_empty): Add dispose_fn argument.
90364         (struct gl_oset_implementation): Add dispose_fn argument to
90365         'create_empty' method.
90366         (struct gl_oset_impl_base): Add dispose_fn field.
90367         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
90368         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
90369         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
90370         values.
90371         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
90372         (gl_tree_oset_free): Call dispose_fn on the dropped values.
90373         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
90374         dropped value.
90375         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
90376         dropped value.
90377         * tests/test-array_oset.c (main): Update.
90378         * tests/test-avltree_oset.c (main): Update.
90379         * tests/test-rbtree_oset.c (main): Update.
90380         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
90382 2007-03-13  Bruno Haible  <bruno@clisp.org>
90384         * tests/test-stdbool.c (i): Update after last patch.
90386 2007-03-12  Bruno Haible  <bruno@clisp.org>
90388         * lib/quotearg.c: Include <wctype.h> early, before the definition of
90389         the iswprint macro. Needed on Solaris 2.5.1.
90391 2007-03-12  Bruno Haible  <bruno@clisp.org>
90393         * tests/test-printf-frexp.c (main): Declare x as volatile.
90395 2007-03-12  Simon Josefsson  <simon@josefsson.org>
90397         * doc/gnulib.texi (Build robot for gnulib): New section.
90399 2007-03-12  Jim Meyering  <jim@meyering.net>
90401         * build-aux/bootstrap: New file.
90402         * build-aux/bootstrap.conf: New file, from coreutils.
90404 2007-03-11  Bruno Haible  <bruno@clisp.org>
90406         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
90408 2007-03-12  Simon Josefsson  <simon@josefsson.org>
90410         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
90411         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
90412         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
90414 2007-03-11  Bruno Haible  <bruno@clisp.org>
90416         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
90417         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
90419 2007-03-11  Bruno Haible  <bruno@clisp.org>
90421         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
90422         formula. Needed for SunPRO C 5.0.
90424 2007-03-11  Bruno Haible  <bruno@clisp.org>
90426         * modules/long-options (Depends-on): Add getopt.
90428 2007-03-11  Bruno Haible  <bruno@clisp.org>
90430         * modules/modechange (Depends-on): Add stdbool.
90432 2007-03-11  Bruno Haible  <bruno@clisp.org>
90434         * modules/i-ring (Depends-on): Add stdbool.
90436 2007-03-11  Bruno Haible  <bruno@clisp.org>
90438         * modules/gc-des (Depends-on): Add stdbool.
90440 2007-03-11  Bruno Haible  <bruno@clisp.org>
90442         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
90444 2007-03-11  Bruno Haible  <bruno@clisp.org>
90446         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
90448 2007-03-11  Bruno Haible  <bruno@clisp.org>
90450         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
90452 2007-03-11  Bruno Haible  <bruno@clisp.org>
90454         * lib/vasnprintf.c (sprintf): Undefine.
90456 2007-03-11  Bruno Haible  <bruno@clisp.org>
90458         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
90459         initializers in SunPRO C and Compaq C compilers.
90461 2007-03-11  Bruno Haible  <bruno@clisp.org>
90463         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
90464         decrementing code ANSI C compliant.
90466 2007-03-11  Bruno Haible  <bruno@clisp.org>
90468         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
90469         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
90471 2007-03-11  Bruno Haible  <bruno@clisp.org>
90473         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
90474         <stdbool.h> substitute doesn't pass.
90476 2007-03-11  Bruno Haible  <bruno@clisp.org>
90478         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
90480 2007-03-11  Bruno Haible  <bruno@clisp.org>
90482         * gnulib-tool (func_create_megatestdir): Create also an autobuild
90483         script, for submission to autobuild.josefsson.org.
90485 2007-03-10  Bruno Haible  <bruno@clisp.org>
90487         * modules/canonicalize-lgpl-tests: New file.
90488         * tests/test-canonicalize-lgpl.sh: New file.
90489         * tests/test-canonicalize-lgpl.c: New file.
90491         * modules/c-strcase-tests: New file.
90492         * tests/test-c-strcase.sh: New file.
90493         * tests/test-c-strcasecmp.c: New file.
90494         * tests/test-c-strncasecmp.c: New file.
90496         * modules/atexit-tests: New file.
90497         * tests/test-atexit.sh: New file.
90498         * tests/test-atexit.c: New file.
90500 2007-03-10  Bruno Haible  <bruno@clisp.org>
90502         * tests/test-binary-io.sh: Use temporary filenames that are not so
90503         likely to clash with those of other tests (in a parallel make).
90504         * tests/test-binary-io.c: Likewise.
90506 2007-03-10  Bruno Haible  <bruno@clisp.org>
90508         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
90509         fallback; use #error instead.
90510         Suggested by Simon Josefsson.
90512 2007-03-10  Bruno Haible  <bruno@clisp.org>
90514         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
90515         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
90516         first and the last.
90518 2007-03-10  Bruno Haible  <bruno@clisp.org>
90520         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
90522 2007-03-10  Bruno Haible  <bruno@clisp.org>
90524         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
90525         "make distcheck".
90526         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
90527         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
90528         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
90530 2007-03-10  Bruno Haible  <bruno@clisp.org>
90532         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
90533         variable.
90534         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
90535         variable.
90537 2007-03-09  Eric Blake  <ebb9@byu.net>
90538         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
90540         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
90541         types are not being provided by gnulib.
90542         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
90543         types are supported.
90545 2007-03-10  Bruno Haible  <bruno@clisp.org>
90547         * lib/stdio_.h (__attribute__): New macro.
90548         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
90549         vsprintf): Specify __attribute__ __format__ for GCC.
90550         Suggested by Eric Blake.
90552 2007-03-09  Bruno Haible  <bruno@clisp.org>
90554         * modules/printf-posix-tests: New file.
90555         * tests/test-printf-posix.sh: New file.
90556         * tests/test-printf-posix.c: New file.
90558         * modules/printf-posix: New file.
90559         * lib/printf.c: New file.
90560         * m4/printf-posix-rpl.m4: New file.
90561         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
90562         REPLACE_PRINTF.
90563         * lib/stdio_.h (printf): New declaration.
90564         (format, __format__, ____printf____, ____scanf____, ____strftime____,
90565         ____strfmon____): New macros.
90566         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
90567         REPLACE_PRINTF.
90569 2007-03-09  Bruno Haible  <bruno@clisp.org>
90571         * tests/test-vasnprintf-posix2.sh: New file.
90572         * tests/test-vasnprintf-posix2.c: New file.
90573         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
90574         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
90575         (Makefile.am): Activate test-vasnprintf-posix2.sh.
90577         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
90578         a locale dependent decimal point, rather than always '.'.
90580 2007-03-09  Eric Blake  <ebb9@byu.net>
90582         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
90583         spite of platforms like Tandem/NSK that define it to -1.
90585 2007-03-08  Bruno Haible  <bruno@clisp.org>
90587         * modules/vprintf-posix-tests: New file.
90588         * tests/test-vprintf-posix.sh: New file.
90589         * tests/test-vprintf-posix.c: New file.
90590         * tests/test-printf-posix.h: New file.
90592         * modules/vprintf-posix: New file.
90593         * lib/vprintf.c: New file.
90594         * m4/vprintf-posix.m4: New file.
90595         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
90596         REPLACE_VPRINTF.
90597         * lib/stdio_.h (vprintf): New declaration.
90598         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
90599         REPLACE_VPRINTF.
90601 2007-03-08  Bruno Haible  <bruno@clisp.org>
90603         * modules/fprintf-posix-tests: New file.
90604         * tests/test-fprintf-posix.sh: New file.
90605         * tests/test-fprintf-posix.c: New file.
90607         * modules/fprintf-posix: New file.
90608         * lib/fprintf.c: New file.
90609         * m4/fprintf-posix.m4: New file.
90610         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
90611         REPLACE_FPRINTF.
90612         * lib/stdio_.h (fprintf): New declaration.
90613         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
90614         REPLACE_FPRINTF.
90616 2007-03-08  Bruno Haible  <bruno@clisp.org>
90618         * modules/vfprintf-posix-tests: New file.
90619         * tests/test-vfprintf-posix.sh: New file.
90620         * tests/test-vfprintf-posix.c: New file.
90621         * tests/test-fprintf-posix.h: New file.
90622         * tests/test-fprintf-posix.out: New file.
90624         * modules/vfprintf-posix: New file.
90625         * lib/vfprintf.c: New file.
90626         * m4/vfprintf-posix.m4: New file.
90627         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
90628         REPLACE_VFPRINTF.
90629         * lib/stdio_.h (vfprintf): New declaration.
90630         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
90631         REPLACE_VFPRINTF.
90633 2007-03-08  Bruno Haible  <bruno@clisp.org>
90635         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
90637 2007-03-08  Bruno Haible  <bruno@clisp.org>
90639         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
90640         instead of 'expr' invocations.
90641         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
90642         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
90643         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
90644         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
90645         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
90646         Suggested by Paul Eggert.
90648 2007-03-08  Bruno Haible  <bruno@clisp.org>
90650         * modules/fseterr-tests: New file.
90651         * tests/test-fseterr.c: New file.
90653         * modules/fseterr: New file.
90654         * lib/fseterr.h: New file.
90655         * lib/fseterr.c: New file.
90657 2007-03-08  Bruno Haible  <bruno@clisp.org>
90659         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
90660         * lib/getopt_.h: Likewise.
90661         * lib/mbswidth.h: Likewise.
90662         * lib/setenv.h: Likewise.
90663         * lib/vasnprintf.h: Likewise.
90664         * lib/vasprintf.h: Likewise.
90665         * lib/verror.h: Likewise.
90666         * lib/xsetenv.h: Likewise.
90667         * lib/xvasprintf.h: Likewise.
90669 2007-03-08  Jim Meyering  <jim@meyering.net>
90671         * users.txt: Add parted.
90673         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
90675 2007-03-07  Bruno Haible  <bruno@clisp.org>
90677         * m4/printf.m4: Make the shell script snippets copy&pastable.
90679 2007-03-02  Bruno Haible  <bruno@clisp.org>
90681         * lib/netinet_in_.h: New file.
90682         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
90683         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
90684         * modules/netinet_in (Files): Add lib/netinet_in_.h.
90685         (Depends-on): Add absolute-header.
90686         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
90687         into netinet/in.h.
90689 2007-03-03  Bruno Haible  <bruno@clisp.org>
90691         * lib/sys_select_.h: New file.
90692         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
90693         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
90694         * modules/sys_select (Files): Add lib/sys_select_.h.
90695         (Depends-on): Add absolute-header.
90696         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
90697         into sys/select.h.
90699 2007-03-02  Bruno Haible  <bruno@clisp.org>
90701         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
90702         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
90703         values.
90704         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
90705         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
90706         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
90707         * modules/sys_socket (Depends-on): Add absolute-header.
90708         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
90709         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
90710         (Include): Remove requirement of inclusion of <sys/types.h>.
90712 2007-03-02  Bruno Haible  <bruno@clisp.org>
90714         * lib/byteswap_.h (bswap_32): Fix formula.
90716 2007-03-06  Bruno Haible  <bruno@clisp.org>
90718         * modules/sprintf-posix-tests: New file.
90719         * tests/test-sprintf-posix.c: New file.
90721         * modules/sprintf-posix: New file.
90722         * lib/sprintf.c: New file.
90723         * m4/sprintf-posix.m4: New file.
90724         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
90725         REPLACE_SPRINTF.
90726         * lib/stdio_.h (sprintf): New declaration.
90727         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
90728         REPLACE_SPRINTF.
90730 2007-03-06  Bruno Haible  <bruno@clisp.org>
90732         * modules/vsprintf-posix-tests: New file.
90733         * tests/test-vsprintf-posix.c: New file.
90734         * tests/test-sprintf-posix.h: New file.
90736         * modules/vsprintf-posix: New file.
90737         * lib/vsprintf.c: New file.
90738         * m4/vsprintf-posix.m4: New file.
90739         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
90740         REPLACE_VSPRINTF.
90741         * lib/stdio_.h (vsprintf): New declaration.
90742         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
90743         REPLACE_VSPRINTF.
90745 2007-03-06  Bruno Haible  <bruno@clisp.org>
90747         * modules/vsnprintf (Depend-on): Remove minmax.
90749 2007-03-06  Bruno Haible  <bruno@clisp.org>
90751         * modules/snprintf-posix-tests: New file.
90752         * tests/test-snprintf-posix.c: New file.
90754         * modules/snprintf-posix: New file.
90755         * m4/snprintf-posix.m4: New file.
90756         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
90757         gl_FUNC_SNPRINTF.
90758         (gl_FUNC_SNPRINTF): Invoke it.
90759         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
90760         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
90761         is set.
90762         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
90764 2007-03-06  Bruno Haible  <bruno@clisp.org>
90766         * modules/vsnprintf-posix-tests: New file.
90767         * tests/test-vsnprintf-posix.c: New file.
90768         * tests/test-snprintf-posix.h: New file.
90770         * modules/vsnprintf-posix: New file.
90771         * m4/vsnprintf-posix.m4: New file.
90772         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
90773         gl_FUNC_VSNPRINTF.
90774         (gl_FUNC_VSNPRINTF): Invoke it.
90775         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
90776         * lib/stdio_.h (vsnprintf): Define as a replacement if
90777         REPLACE_VSNPRINTF is set.
90778         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
90780 2007-03-06  Bruno Haible  <bruno@clisp.org>
90782         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
90783         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
90785 2007-03-06  Bruno Haible  <bruno@clisp.org>
90787         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
90788         (asinl): Declare also if HAVE_DECL_ASINL is set.
90789         (atanl): Declare also if HAVE_DECL_ATANL is set.
90790         (ceill): Declare also if HAVE_DECL_CEILL is set.
90791         (cosl): Declare also if HAVE_DECL_COSL is set.
90792         (expl): Declare also if HAVE_DECL_EXPL is set.
90793         (floorl): Declare also if HAVE_DECL_FLOORL is set.
90794         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
90795         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
90796         (logl): Declare also if HAVE_DECL_LOGL is set.
90797         (sinl): Declare also if HAVE_DECL_SINL is set.
90798         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
90799         (tanl): Declare also if HAVE_DECL_TANL is set.
90800         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
90801         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
90802         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
90803         declaration of frexpl, ldexpl.
90804         * modules/printf-frexpl (Depends-on): Add math.
90805         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
90807 2007-03-05  Bruno Haible  <bruno@clisp.org>
90809         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
90810         frexpl and ldexpl are declared.
90811         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
90813 2007-03-05  Bruno Haible  <bruno@clisp.org>
90815         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
90816         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
90818 2007-03-05  Bruno Haible  <bruno@clisp.org>
90820         * lib/stdio_.h: Include <stddef.h>.
90822 2007-03-05  Bruno Haible  <bruno@clisp.org>
90824         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
90826 2007-03-05  Bruno Haible  <bruno@clisp.org>
90828         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
90829         NetBSD 4, from Ralf Wildenhues.
90831 2007-03-04  Bruno Haible  <bruno@clisp.org>
90833         * lib/vasprintf.h: Update #if logic for the case when the functions
90834         exist but are overridden.
90836 2007-03-04  Bruno Haible  <bruno@clisp.org>
90838         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
90839         implementations: glibc-2.4 and MacOS X 10.3.
90840         * tests/test-vasnprintf-posix.c (test_function): Test also the case
90841         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
90842         * tests/test-vasprintf-posix.c (test_function): Likewise.
90844 2007-03-04  Bruno Haible  <bruno@clisp.org>
90846         * modules/vasprintf-posix-tests: New file.
90847         * tests/test-vasprintf-posix.c: New file.
90849         * modules/vasprintf-posix: New file.
90850         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
90851         defined.
90852         * m4/vasprintf-posix.m4: New file.
90853         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
90854         gl_FUNC_VASPRINTF.
90855         (gl_FUNC_VASPRINTF): Invoke it.
90856         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
90857         here.
90858         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
90860 2007-03-04  Bruno Haible  <bruno@clisp.org>
90862         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
90863         REPLACE_GETTIMEOFDAY.
90864         * modules/sys_time (Makefile.am): Likewise.
90865         * m4/sys_time_h.m4: Likewise.
90866         * m4/gettimeofday.m4: Likewise.
90868 2007-03-04  Bruno Haible  <bruno@clisp.org>
90870         * modules/vasnprintf-posix-tests: New file.
90871         * tests/test-vasnprintf-posix.c: New file.
90873         * modules/vasnprintf-posix: New file.
90874         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
90875         printf-frexpl.h.
90876         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
90877         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
90878         REPLACE_VASNPRINTF is defined.
90879         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
90880         gl_FUNC_VASNPRINTF.
90881         (gl_FUNC_VASNPRINTF): Invoke it.
90882         * m4/vasnprintf-posix.m4: New file.
90883         * m4/printf.m4: New file.
90885 2007-03-04  Bruno Haible  <bruno@clisp.org>
90887         Compile progreloc.c only if --enable-relocatable is specified.
90888         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
90889         if --enable-relocatable was specified.
90890         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
90891         lib_SOURCES.
90893 2007-03-04  Jim Meyering  <jim@meyering.net>
90895         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
90896         Use it consistently, rather than enumerating errno constants.
90898 2007-03-04  Bruno Haible  <bruno@clisp.org>
90900         * modules/xvasprintf-tests: New file.
90901         * tests/test-xvasprintf.c: New file.
90903         * modules/vasprintf-tests: New file.
90904         * tests/test-vasprintf.c: New file.
90906         * modules/vasnprintf-tests: New file.
90907         * tests/test-vasnprintf.c: New file.
90909         * modules/vsnprintf-tests: New file.
90910         * tests/test-vsnprintf.c: New file.
90912         * modules/snprintf-tests: New file.
90913         * tests/test-snprintf.c: New file.
90915 2007-03-04  Bruno Haible  <bruno@clisp.org>
90917         Compile relocatable.c only if --enable-relocatable is specified.
90918         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
90919         gl_RELOCATABLE_LIBRARY.
90920         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
90921         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
90922         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
90923         gl_RELOCATABLE_LIBRARY.
90924         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
90925         (Makefile.am): Remove lib_SOURCES.
90926         * modules/relocatable-lib-lgpl (configure.ac): Invoke
90927         gl_RELOCATABLE_LIBRARY.
90928         (Makefile.am): Remove lib_SOURCES.
90929         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
90930         always.
90931         * modules/relocatable-prog-wrapper (configure.ac): Invoke
90932         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
90934 2007-03-04  Bruno Haible  <bruno@clisp.org>
90936         * modules/argmatch-tests: New file.
90937         * tests/test-argmatch.c: New file.
90939         * tests/test-allocsa.c (main): Halve the number of loop runs.
90941         * modules/alloca-opt-tests: New file.
90942         * tests/test-alloca-opt.c: New file.
90944 2007-03-04  Jim Meyering  <jim@meyering.net>
90946         Work around difference between Linux ACLs and Solaris 10 ZFS.
90947         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
90948         for EINVAL.
90950 2007-03-03  Bruno Haible  <bruno@clisp.org>
90952         * modules/relocatable-prog (Depends-on): Add back progreloc's
90953         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
90955 2007-03-03  Bruno Haible  <bruno@clisp.org>
90957         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
90958         * modules/relocatable-lib: New file.
90960 2007-03-03  Bruno Haible  <bruno@clisp.org>
90962         * modules/relocatable-prog: Renamed from modules/relocatable.
90963         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
90965 2007-03-03  Bruno Haible  <bruno@clisp.org>
90967         * modules/relocatable-script (Files): Add doc/relocatable.texi,
90968         m4/relocatable-lib.m4.
90969         (Depends-on): Remove 'relocatable'.
90970         (configure.ac): Add gl_RELOCATABLE_NOP.
90972 2007-03-03  Bruno Haible  <bruno@clisp.org>
90974         * modules/relocatable-prog-wrapper: New file.
90975         * modules/relocatable (Depends-on): Add it. Remove all other
90976         dependencies except progname.
90977         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
90979         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
90980         (gl_FUNC_STRERROR): Nop.
90981         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
90983         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
90984         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
90986         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
90987         (gl_FUNC_READLINK): Update.
90989         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
90991 2007-03-03  Bruno Haible  <bruno@clisp.org>
90993         * lib/xreadlink.c: Include <unistd.h> unconditionally.
90994         * modules/xreadlink (Depends-on): Add unistd.
90995         * modules/xreadlink-with-size (Depends-on): Likewise.
90997 2007-03-03  Bruno Haible  <bruno@clisp.org>
90999         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
91000         extracted from gt_FUNC_SETENV.
91001         (gt_FUNC_SETENV): Remove macro.
91002         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
91003         remove gt_FUNC_SETENV.
91005 2007-03-03  Bruno Haible  <bruno@clisp.org>
91007         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
91008         ENABLE_RELOCATABLE here.
91009         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
91011 2007-03-03  Bruno Haible  <bruno@clisp.org>
91013         * modules/rbtreehash-list-tests (Depends-on): Add progname.
91014         * tests/test-rbtreehash_list.c: Include progname.h.
91015         (main): Call set_program_name.
91017         * modules/rbtree-oset-tests (Depends-on): Add progname.
91018         * tests/test-rbtree_oset.c: Include progname.h.
91019         (main): Call set_program_name.
91021         * modules/rbtree-list-tests (Depends-on): Add progname.
91022         * tests/test-rbtree_list.c: Include progname.h.
91023         (main): Call set_program_name.
91025         * modules/linked-list-tests (Depends-on): Add progname.
91026         * tests/test-linked_list.c: Include progname.h.
91027         (main): Call set_program_name.
91029 2007-03-03  Bruno Haible  <bruno@clisp.org>
91031         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
91032         All uses of __restrict changed to _Restrict_.
91033         * lib/glob_.h (__restrict): Remove macro.
91035 2007-03-02  Bruno Haible  <bruno@clisp.org>
91037         * modules/gettext (configure.ac): Require gettext infrastructure
91038         from version 0.16.1.
91040 2007-03-02  Bruno Haible  <bruno@clisp.org>
91042         * modules/linkedhash-list-tests (Depends-on): Add progname.
91043         * tests/test-linkedhash_list.c: Include progname.h.
91044         (main): Call set_program_name.
91046         * modules/carray-list-tests (Depends-on): Add progname.
91047         * tests/test-carray_list.c: Include progname.h.
91048         (main): Call set_program_name.
91050         * modules/avltreehash-list-tests (Depends-on): Add progname.
91051         * tests/test-avltreehash_list.c: Include progname.h.
91052         (main): Call set_program_name.
91054         * modules/avltree-oset-tests (Depends-on): Add progname.
91055         * tests/test-avltree_oset.c: Include progname.h.
91056         (main): Call set_program_name.
91058         * modules/avltree-list-tests (Depends-on): Add progname.
91059         * tests/test-avltree_list.c: Include progname.h.
91060         (main): Call set_program_name.
91062         * modules/array-oset-tests (Depends-on): Add progname.
91063         * tests/test-array_oset.c: Include progname.h.
91064         (main): Call set_program_name.
91066         * modules/array-list-tests (Depends-on): Add progname.
91067         * tests/test-array_list.c: Include progname.h.
91068         (main): Call set_program_name.
91070         * modules/argp-tests (Depends-on): Add progname.
91071         * tests/test-argp.c: Include argp.h first. Include progname.h.
91072         (main): Call set_program_name.
91074 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
91076         * doc/gnulib-tool.texi (Initial import): Reword description of
91077         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
91078         limited effect even if defined after the first system include.
91080 2007-03-01  Bruno Haible  <bruno@clisp.org>
91082         * build-aux/config.libpath: Update to libtool-1.5.22.
91083         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
91085 2007-03-01  Bruno Haible  <bruno@clisp.org>
91087         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
91088         foo_CFLAGS.
91089         Reported by Ralf Wildenhues.
91091 2007-03-01  Bruno Haible  <bruno@clisp.org>
91093         * build-aux/install-reloc: Remove object files left over by some
91094         compilers.
91095         Reported by Ralf Wildenhues.
91097 2007-03-01  Bruno Haible  <bruno@clisp.org>
91099         * build-aux/install-reloc: Break long lines.
91101 2007-03-01  Bruno Haible  <bruno@clisp.org>
91103         * doc/relocatable.texi: Document that it may not work on OpenBSD.
91104         Reported by Ralf Wildenhues.
91106 2007-03-01  Bruno Haible  <bruno@clisp.org>
91108         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
91109         include ordering constraints.
91111 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
91113         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
91114         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00136.html>.
91115         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
91116         as another example.
91117         * lib/time_.h: Fix misspelling.
91118         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
91119         Require gl_HEADER_TIME_H_DEFAULTS.
91120         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
91121         * m4/time_r.m4 (gl_TIME_R): Likewise.
91122         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
91124 2007-03-01  Bruno Haible  <bruno@clisp.org>
91126         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
91127         * m4/utimens.m4 (gl_UTIMENS): Likewise.
91129 2007-03-01  Jim Meyering  <jim@meyering.net>
91131         * modules/xreadlink (Maintainer): Add my name.
91132         * modules/xreadlink-with-size (Depends-on): Alphabetize.
91134 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
91135             Bruno Haible  <bruno@clisp.org>
91137         * build-aux/install-reloc: Compile also c-ctype.c.
91138         * build-aux/relocatable.sh.in: New file.
91139         * doc/relocatable.texi: New file.
91140         * doc/relocatable-maint.texi: New file.
91141         * doc/gnulib.texi: Include relocatable-maint.texi.
91142         * lib/progreloc.c: Include unistd.h unconditionally.
91143         * lib/relocwrapper.c: Include unistd.h unconditionally.
91144         Include c-ctype.h.
91145         (add_dotbin): Use c_tolower.
91146         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
91147         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
91148         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
91149         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
91150         to m4/relocatable-lib.m4.
91151         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
91152         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
91153         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
91154         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
91155         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
91156         * modules/relocatable: New file.
91157         * modules/relocatable-lib: New file.
91158         * modules/relocatable-script: New file.
91160 2007-02-28  Bruno Haible  <bruno@clisp.org>
91162         Import --enable-relocatable infrastructure.
91163         * build-aux/config.libpath: New file, from GNU gettext.
91164         * build-aux/install-reloc: New file, from GNU gettext.
91165         * build-aux/reloc-ldflags: New file, from GNU gettext.
91166         * lib/relocatable.h: New file, from GNU gettext.
91167         * lib/relocatable.c: New file, from GNU gettext.
91168         * lib/relocwrapper.c: New file, from GNU gettext.
91169         * m4/relocatable.m4: New file, from GNU gettext.
91171 2007-02-28  Bruno Haible  <bruno@clisp.org>
91173         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
91175         * modules/xreadlink: New file, from GNU gettext with modifications.
91176         * lib/xreadlink.c: New file, from GNU gettext.
91177         * lib/xreadlink.h: Add comments.
91178         (xreadlink): New declaration.
91180         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
91181         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
91182         lib/xreadlink-with-size.c.
91183         (configure.ac): Remove gl_XREADLINK invocation.
91184         (Makefile.am): Augment lib_SOURCES.
91185         * m4/xreadlink.m4: Remove file.
91186         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
91187         (xreadlink_with_size): Renamed from xreadink.
91188         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
91189         * modules/canonicalize (Depends-on): Replace xreadlink with
91190         xreadlink-with-size.
91191         * lib/canonicalize.c (canonicalize_filename_mode): Update.
91193 2007-02-25  Jim Meyering  <jim@meyering.net>
91195         * build-aux/announce-gen: When complaining about excess arguments,
91196         list them.
91198 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
91200         * README: Document signed integer overflow situation more
91201         accurately.
91203 2007-02-25  Bruno Haible  <bruno@clisp.org>
91205         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
91206         'a' or 'A' conversion.
91208 2007-02-25  Bruno Haible  <bruno@clisp.org>
91210         * modules/filename: Renamed from modules/pathname.
91211         (Files): Replace lib/pathname.h with lib/filename.h. Replace
91212         lib/concatpath.c with lib/concat-filename.c.
91213         (Makefile.am): Update.
91214         (Include): Replace pathname.h with filename.h.
91215         * lib/filename.h: Renamed from lib/pathname.h.
91216         (concatenated_filename): Renamed from concatenated_pathname.
91217         * lib/concat-filename.c: Renamed from lib/concatpath.c.
91218         (concatenated_filename): Renamed from concatenated_pathname.
91219         * lib/findprog.c: Include filename.h instead of pathname.h.
91220         (find_in_path): Update.
91221         * lib/javacomp.c: Include filename.h instead of pathname.h.
91222         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
91223         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
91224         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
91225         is_oldgcj_14_13_usable, is_javac_usable): Update.
91226         * lib/javaexec.c: Include filename.h instead of pathname.h.
91227         (execute_java_class): Update.
91228         * modules/findprog: Update.
91229         * modules/javacomp: Update.
91230         * modules/javaexec: Update.
91231         * MODULES.html.sh (File system functions): Add 'filename', remove
91232         'pathname'.
91234 2007-02-25  Bruno Haible  <bruno@clisp.org>
91236         * modules/printf-frexpl-tests: New file.
91237         * tests/test-printf-frexpl.c: New file.
91239         * modules/printf-frexpl: New file.
91240         * lib/printf-frexpl.h: New file.
91241         * lib/printf-frexpl.c: New file.
91242         * m4/printf-frexpl.m4: New file.
91244 2007-02-25  Bruno Haible  <bruno@clisp.org>
91246         * modules/printf-frexp-tests: New file.
91247         * tests/test-printf-frexp.c: New file.
91249         * modules/printf-frexp: New file.
91250         * lib/printf-frexp.h: New file.
91251         * lib/printf-frexp.c: New file.
91252         * m4/printf-frexp.m4: New file.
91254 2007-02-25  Bruno Haible  <bruno@clisp.org>
91256         Assume automake >= 1.10 for the tests.
91257         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
91258         * modules/arctwo-tests: Likewise.
91259         * modules/argp-tests: Likewise.
91260         * modules/avltree-list-tests: Likewise.
91261         * modules/avltree-oset-tests: Likewise.
91262         * modules/avltreehash-list-tests: Likewise.
91263         * modules/carray-list-tests: Likewise.
91264         * modules/crc-tests: Likewise.
91265         * modules/des-tests: Likewise.
91266         * modules/gc-arcfour-tests: Likewise.
91267         * modules/gc-arctwo-tests: Likewise.
91268         * modules/gc-des-tests: Likewise.
91269         * modules/gc-hmac-md5-tests: Likewise.
91270         * modules/gc-hmac-sha1-tests: Likewise.
91271         * modules/gc-md2-tests: Likewise.
91272         * modules/gc-md4-tests: Likewise.
91273         * modules/gc-md5-tests: Likewise.
91274         * modules/gc-pbkdf2-sha1-tests: Likewise.
91275         * modules/gc-rijndael-tests: Likewise.
91276         * modules/gc-sha1-tests: Likewise.
91277         * modules/gc-tests: Likewise.
91278         * modules/getaddrinfo-tests: Likewise.
91279         * modules/hmac-md5-tests: Likewise.
91280         * modules/hmac-sha1-tests: Likewise.
91281         * modules/linked-list-tests: Likewise.
91282         * modules/linkedhash-list-tests: Likewise.
91283         * modules/lock-tests: Likewise.
91284         * modules/md2-tests: Likewise.
91285         * modules/md4-tests: Likewise.
91286         * modules/md5-tests: Likewise.
91287         * modules/rbtree-list-tests: Likewise.
91288         * modules/rbtree-oset-tests: Likewise.
91289         * modules/rbtreehash-list-tests: Likewise.
91290         * modules/read-file-tests: Likewise.
91291         * modules/rijndael-tests: Likewise.
91292         * modules/stdint-tests: Likewise.
91293         * modules/tls-tests: Likewise.
91295 2007-02-24  Bruno Haible  <bruno@clisp.org>
91297         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
91298         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
91299         function; instead check whether isnan with a double argument links.
91300         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
91301         function; instead check whether isnan with a 'long double' argument
91302         links.
91303         Reported by Eric Blake <ebb9@byu.net>.
91305 2007-02-24  Bruno Haible  <bruno@clisp.org>
91307         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
91308         defined.
91309         * lib/isnanl.c: Remove all code. Just include isnan.c.
91310         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
91312 2007-02-25  Jim Meyering  <jim@meyering.net>
91314         Avoid conflicting types for 'unsetenv' on FreeBSD.
91315         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
91316         conflicting with FreeBSD's (5.0 and 6.1) function declaration
91317         in stdlib.h.
91319 2007-02-24  Bruno Haible  <bruno@clisp.org>
91321         * modules/isnanl-nolibm-tests: New file.
91322         * tests/test-isnanl.c: New file.
91324         * modules/isnanl-nolibm: New file.
91325         * lib/isnanl.h: New file.
91326         * lib/isnanl.c: New file.
91327         * m4/isnanl.m4: New file.
91329 2007-02-24  Bruno Haible  <bruno@clisp.org>
91331         * modules/isnan-nolibm-tests: New file.
91332         * tests/test-isnan.c: New file.
91334         * modules/isnan-nolibm: New file.
91335         * lib/isnan.h: New file.
91336         * lib/isnan.c: New file.
91337         * m4/isnan.m4: New file.
91339 2007-02-24  Bruno Haible  <bruno@clisp.org>
91341         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
91342         assume that an exponent fits in 20 bits.
91344 2007-02-24  Jim Meyering  <jim@meyering.net>
91346         * m4/regex.m4: Update the description of the configure-time option,
91347         --without-included-regex, to state accurately what the defaults are,
91348         and perhaps to give people an idea why using this option is risky.
91350 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
91352         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
91353         loops on small arguments.  This attempts to avoid the problem
91354         Bruno Haible reported for AIX 4.3.2 in
91355         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00309.html>.
91357 2007-02-23  Bruno Haible  <bruno@clisp.org>
91359         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
91360         Needed for help2man.
91362 2007-02-23  Karl Berry  <karl@gnu.org>
91364         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
91365         exists, foo.h should be cvs-ignored, not committed.
91367 2007-02-23  Eric Blake  <ebb9@byu.net>
91369         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
91370         * lib/stat-time.h (includes): Likewise.
91371         * lib/utimecmp.c (includes): Likewise.
91372         * lib/utimens.h (includes): Likewise.
91373         * lib/getdate.y (includes): Also include "timespec.h" for use
91374         internal to the module.
91375         * modules/utimens (Depends-on): Revert yesterday's patch.
91376         * modules/nanosleep (Depends-on): Add missing dependency.
91378 2007-02-22  Bruno Haible  <bruno@clisp.org>
91380         * lib/glob.c: Don't include getlogin_r.h.
91382 2007-02-22  Jim Meyering  <jim@meyering.net>
91384         * modules/utimens (Depends-on): Add timespec, required for
91385         utimens.h's inclusion of timespec.h.
91387 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
91389         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
91390         long unreadable paths in GNU/Linux.  Problem reported by Andreas
91391         Schwab in
91392         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00261.html>.
91393         I'll try to think of a better way to fix the Solaris problem.
91395         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
91396         like glibc; on Solaris 10, it fails with errno == EINVAL.
91397         POSIX says the behavior is unspecified if the first argument is NULL,
91398         so play it safe and never pass NULL to the system getcwd.
91400 2007-02-21  Jim Meyering  <jim@meyering.net>
91402         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
91403         of gettimeofday.  It would conflict with the one now always
91404         provided via sys_time_.h.  Reported by Matthew Woehlke, as
91405         an IRIX 6.5 build failure.
91407 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
91409         Minor fixups to port to Solaris 10 with Sun C 5.8.
91410         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
91411         * modules/getcwd (Depends-on): Add dirfd.
91412         * lib/putenv.c (putenv): #undef it.
91413         (rpl_putenv): New decl.
91414         (malloc, free): Include <stdlib.h> rather than prototyping separately.
91416 2007-02-20  Bruno Haible  <bruno@clisp.org>
91418         * modules/stdio-tests: New file.
91419         * tests/test-stdio.c: New file.
91421         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
91422         (Depends-on): Add stdio.
91423         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
91424         (Include): Use <stdio.h> instead of vsnprintf.h.
91425         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
91426         HAVE_DECL_VSNPRINTF.
91427         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
91429         * modules/snprintf (Files): Remove lib/snprintf.h.
91430         (Depends-on): Add stdio.
91431         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
91432         (Include): Use <stdio.h> instead of snprintf.h.
91433         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
91434         HAVE_DECL_SNPRINTF.
91435         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
91436         * lib/getaddrinfo.c: Likewise.
91438         * modules/stdio: New file.
91439         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
91440         * lib/snprintf.h: Remove file.
91441         * lib/vsnprintf.h: Remove file.
91442         * lib/.cppi-disable: Remove snprintf.h.
91443         * m4/stdio_h.m4: New file.
91444         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
91446 2007-02-20  Jim Meyering  <jim@meyering.net>
91448         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
91449         used by e.g., mingw.  From Bruno Haible.
91451 2007-02-19  Bruno Haible  <bruno@clisp.org>
91453         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
91454         warnings.
91455         Reported by Ben Pfaff <blp@cs.stanford.edu>.
91457 2007-02-19  Bruno Haible  <bruno@clisp.org>
91459         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
91460         from mingw users.
91462 2007-02-19  Bruno Haible  <bruno@clisp.org>
91464         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
91465         warnings.
91466         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
91468 2007-02-19  Jim Meyering  <jim@meyering.net>
91470         Don't use FD after a successful "fdopendir (fd)".
91471         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
91472         Reset it by calling dirfd on the just-obtained DIR*.
91474         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
91475         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
91477 2007-02-18  Bruno Haible  <bruno@clisp.org>
91479         * lib/readlink.c: Include <unistd.h>.
91480         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
91481         HAVE_READLINK.
91482         * modules/readlink (Depends-on): Add unistd.
91483         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
91484         (Include): Add <unistd.h>.
91486         * lib/getlogin_r.h: Remove file.
91487         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
91488         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
91489         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
91490         HAVE_DECL_GETLOGIN_R.
91491         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
91492         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
91493         (Include): Use <unistd.h> instead of getlogin_r.h.
91495         * lib/getcwd.h: Remove file.
91496         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
91497         * lib/xgetcwd.c: Likewise.
91498         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
91499         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
91500         * modules/getcwd (Files): Remove lib/getcwd.h.
91501         (Depends-on): Add unistd.
91502         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
91503         (Include): Use <unistd.h> instad of getcwd.h.
91505         * lib/ftruncate.c: Include <unistd.h> first.
91506         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
91507         Set HAVE_FTRUNCATE.
91508         * modules/ftruncate (Depends-on): Add unistd.
91509         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
91511         * lib/fchdir.c: Include <unistd.h> first.
91512         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
91513         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
91514         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
91515         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
91516         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
91518         * lib/dup2.c: Include <unistd.h> first.
91519         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
91520         HAVE_DUP2.
91521         * modules/dup2 (Depends-on): Add unistd.
91522         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
91524         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
91525         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
91526         REPLACE_CHOWN. Don't define chown as a macro here.
91527         * modules/chown (Depends-on): Add unistd.
91528         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
91530         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
91531         Add definition for GL_LINK_WARNING.
91532         (chown, dup2): New declarations.
91533         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
91534         link warning.
91535         (ftruncate): New declaration.
91536         (getcwd): New declaration, taken from old getcwd.h.
91537         (getlogin_r): New declaration, taken from old getlogin_r.h.
91538         (readlink): New declaration.
91539         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
91540         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
91541         (gl_PREREQ_UNISTD): Remove macro.
91542         (gl_UNISTD_MODULE_INDICATOR): New macro.
91543         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
91544         many new variables. Don't set UNISTD_H.
91545         * modules/unistd (Description): Change.
91546         (Depends-on): Add link-warning.
91547         (configure.ac): Update.
91548         (Makefile.am): Create unistd.h always. Substitute many new variables
91549         into it.
91551 2007-02-18  Bruno Haible  <bruno@clisp.org>
91553         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
91554         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
91555         HAVE_GETSUBOPT.
91556         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
91557         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
91558         * lib/getsubopt.h: Remove file.
91559         * modules/getsubopt (Files): Remove lib/getsubopt.h.
91560         (Depends-on): Add stdlib.
91561         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
91562         (Includes): Use <stdlib.h> instead of getsubopt.h.
91563         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
91564         Set HAVE_GETSUBOPT.
91565         * lib/getsubopt.c: Don't include getsubopt.h.
91567 2007-02-18  Bruno Haible  <bruno@clisp.org>
91569         * modules/fchdir (Depends-on): Add dup2.
91571 2007-02-18  Bruno Haible  <bruno@clisp.org>
91573         * lib/stdlib_.h: Handle glibc's special invocation convention
91574         specially.
91576 2007-02-18  Bruno Haible  <bruno@clisp.org>
91578         * modules/stdlib-tests: New file.
91579         * tests/test-stdlib.c: New file.
91581         * modules/mkstemp (Files): Remove lib/mkstemp.h.
91582         (Depends-on): Add stdlib.
91583         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
91584         (Includes): Use <stdlib.h> instead of mkstemp.h.
91585         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
91586         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
91587         * lib/mkstemp.c: Don't include mkstemp.h.
91588         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
91589         * lib/stdlib--.h: Don't include mkstemp.h.
91591         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
91592         (Depends-on): Add stdlib.
91593         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
91594         (Includes): Use <stdlib.h> instead of mkdtemp.h.
91595         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
91596         HAVE_MKDTEMP.
91597         * lib/mkdtemp.c: Don't include mkdtemp.h.
91598         * lib/clean-temp.c: Don't include mkdtemp.h.
91600         * modules/exit (Files): Remove lib/exit.h.
91601         (Depends-on): Add stdlib.
91602         (Makefile.am): Remove lib_SOURCES.
91603         (Include): Use <stdlib.h> instead of exit.h.
91604         * lib/argmatch.c: Don't include exit.h.
91605         * lib/execute.c: Likewise.
91606         * lib/pagealign_alloc.c: Likewise.
91607         * lib/pipe.c: Likewise.
91608         * lib/wait-process.c: Likewise.
91609         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
91610         * lib/exitfail.c: Likewise.
91611         * lib/savewd.c: Likewise.
91612         * lib/xsetenv.c: Likewise.
91614         * modules/stdlib: New file.
91615         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
91616         and extra comments about mkstemp().
91617         * lib/exit.h: Remove file.
91618         * lib/mkdtemp.h: Remove file.
91619         * lib/mkstemp.h: Remove file.
91620         * m4/stdlib_h.m4: New file.
91621         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
91623 2007-02-18  Bruno Haible  <bruno@clisp.org>
91625         * modules/math-tests: New file.
91626         * tests/test-math.c: New file.
91628         * modules/math: New file.
91629         * modules/mathl (Files): Remove lib/mathl.h.
91630         (Depends-on): Add math.
91631         (Makefile.am): Don't mention mathl.h.
91632         (Include): Use <math.h> instead of mathl.h.
91633         * lib/math_.h: New file.
91634         * lib/mathl.h: Remove file.
91635         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
91636         mathl.h.
91637         * lib/asinl.c: Likewise.
91638         * lib/atanl.c: Likewise.
91639         * lib/ceill.c: Likewise.
91640         * lib/cosl.c: Likewise.
91641         * lib/expl.c: Likewise.
91642         * lib/floorl.c: Likewise.
91643         * lib/frexpl.c: Likewise.
91644         * lib/ldexpl.c: Likewise.
91645         * lib/logl.c: Likewise.
91646         * lib/sincosl.c: Likewise.
91647         * lib/sinl.c: Likewise.
91648         * lib/sqrtl.c: Likewise.
91649         * lib/tanl.c: Likewise.
91650         * lib/trigl.c: Likewise.
91651         * m4/math_h.m4: New file.
91652         * MODULES.html.sh (Mathematics): Add math.
91654 2007-02-17  Bruno Haible  <bruno@clisp.org>
91656         * modules/wctype-tests: New file.
91657         * tests/test-wctype.c: New file.
91659         * modules/wchar-tests: New file.
91660         * tests/test-wchar.c: New file.
91662         * modules/unistd-tests: New file.
91663         * tests/test-unistd.c: New file.
91665         * modules/time-tests: New file.
91666         * tests/test-time.c: New file.
91668         * modules/sysexits-tests: New file.
91669         * tests/test-sysexits.c: New file.
91671         * modules/sys_time-tests: New file.
91672         * tests/test-sys_time.c: New file.
91674         * modules/sys_stat-tests: New file.
91675         * tests/test-sys_stat.c: New file.
91677         * modules/sys_socket-tests: New file.
91678         * tests/test-sys_socket.c: New file.
91680         * modules/sys_select-tests: New file.
91681         * tests/test-sys_select.c: New file.
91683         * modules/string-tests: New file.
91684         * tests/test-string.c: New file.
91686         * modules/stdbool-tests: New file.
91687         * tests/test-stdbool.c: New file.
91689         * modules/netinet_in-tests: New file.
91690         * tests/test-netinet_in.c: New file.
91692         * modules/inttypes-tests: New file.
91693         * tests/test-inttypes.c: New file.
91695         * modules/fcntl-tests: New file.
91696         * tests/test-fcntl.c: New file.
91698         * modules/byteswap-tests: New file.
91699         * tests/test-byteswap.c: New file.
91701         * modules/arpa_inet-tests: New file.
91702         * tests/test-arpa_inet.c: New file.
91704 2007-02-17  Bruno Haible  <bruno@clisp.org>
91706         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
91707         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
91708         if the corresponding module is not enabled. Emit link warnings if
91709         the function is used nevertheless.
91710         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
91711         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
91712         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
91713         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
91714         * modules/inttypes (Depends-on): Add link-warning.
91715         (Makefile.am): Copy the contents of build-aux/link-warning.h into
91716         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
91717         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
91718         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
91719         * modules/imaxdiv (configure.ac): Likewise.
91720         * modules/strtoimax (configure.ac): Likewise.
91721         * modules/strtoumax (configure.ac): Likewise.
91723 2007-02-17  Bruno Haible  <bruno@clisp.org>
91725         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
91726         gl_STRING_MODULE_INDICATOR_DEFAULTS.
91727         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
91728         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
91730 2007-02-17  Bruno Haible  <bruno@clisp.org>
91732         * modules/link-warning: New file.
91733         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
91734         * lib/string_.h (GL_LINK_WARNING): Remove definition.
91735         * modules/string (Depends-on): Add link-warning.
91736         (Makefile.am): Copy the contents of build-aux/link-warning.h into
91737         string.h.
91738         * MODULES.html.sh (Support for building libraries and executables): Add
91739         link-warning.
91741 2007-02-17  Bruno Haible  <bruno@clisp.org>
91743         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
91744         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
91745         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
91746         long lines.
91748 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
91749             Bruno Haible  <bruno@clisp.org>
91751         * modules/tmpfile: New file.
91752         * lib/tmpfile.c: New file.
91753         * m4/tmpfile.m4: New file.
91754         * MODULES.html.sh (func_all_modules): New section "Input/output".
91756 2007-02-15  Bruno Haible  <bruno@clisp.org>
91758         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
91759         (supports_delete_on_close): New function.
91760         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
91762 2007-02-14  Bruno Haible  <bruno@clisp.org>
91764         * modules/mbspcasecmp-tests: New file.
91765         * tests/test-mbspcasecmp.sh: New file.
91766         * tests/test-mbspcasecmp.c: New file.
91768         New module mbspcasecmp.
91769         * modules/mbspcasecmp: New file.
91770         * lib/mbspcasecmp.c: New file.
91771         * lib/string_.h (strncasecmp): Change warning message.
91772         (mbspcasecmp): New declaration.
91773         * m4/mbspcasecmp.m4: New file.
91774         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
91775         GNULIB_MBSPCASECMP.
91776         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
91777         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
91779 2007-02-14  Bruno Haible  <bruno@clisp.org>
91781         * modules/mbsncasecmp-tests: New file.
91782         * tests/test-mbsncasecmp.sh: New file.
91783         * tests/test-mbsncasecmp.c: New file.
91785         New module mbsncasecmp.
91786         * modules/mbsncasecmp: New file.
91787         * lib/mbsncasecmp.c: New file.
91788         * lib/string_.h (mbsncasecmp): New declaration.
91789         * m4/mbsncasecmp.m4: New file.
91790         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
91791         GNULIB_MBSNCASECMP.
91792         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
91793         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
91795 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
91797         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
91798         Verify that it doesn't overlap with our flags.
91799         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
91800         do not have the desired effect in multibyte locales; instead, use
91801         mbscasecmp.
91802         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
91803         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
91804         we don't require GNU fnmatch ourselves (if our users require it, they
91805         should do so explicitly).
91807         Fix regex code so it doesn't rely on strcasecmp.
91808         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
91809         Otherwise, include gnulib's langinfo.h.
91810         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
91811         undesirable behavior in non-C locales.  Instead, rely on localecharset.
91812         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
91813         * modules/regex (FILES): Remove m4/codeset.m4.
91814         (Depends-on): Add localcharset.  Remove strcase.
91816 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91818         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
91819         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
91821 2007-02-13  Bruno Haible  <bruno@clisp.org>
91823         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
91824         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
91826 2007-02-12  Bruno Haible  <bruno@clisp.org>
91828         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
91829         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
91830         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
91831         time warning rather than a link error.
91833 2007-02-12  Bruno Haible  <bruno@clisp.org>
91835         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
91836         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
91837         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
91839 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
91841         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
91842         args, not 2.
91844 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
91846         New module 'time', so that apps can include <time.h> as per
91847         POSIX and GNU instead of separate include files like time_r.h
91848         and timegm.h.  This implementation tries out a simpler approach
91849         for replacing decls in standard include files (as compared to
91850         the string module), somewhat as an experiment.
91852         * config/srclist.txt: Comment out mktime.c for now.
91853         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
91854         since it doesn't apply any more.  Use generic wording instead.
91855         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
91856         'time'.
91857         * lib/time_.h, m4/time_h.m4, modules/time: New files.
91858         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
91859         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
91860         Don't include <sys/types.h>; no longer needed since we assume C89.
91861         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
91862         * lib/strftime.c: Likewise.
91863         * lib/time_r.c: Likewise.
91864         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
91865         * lib/nanosleep.c: Include <time.h> first, to check interface.
91866         * lib/strptime.c: Likewise.
91867         * lib/time_r.c: Likewise.
91868         * lib/timegm.c: Likewise.
91869         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
91870         needed.
91871         * lib/timegm.c: Don't include timegm.h; no longer needed.
91872         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
91873         time.h now handles any problems in that area.
91874         (struct timespec, nanosleep): Remove; time.h now arranges for these.
91875         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
91876         that time.h defines struct timespec.
91877         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
91878         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
91879         handles that.
91880         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
91881         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
91882         needed.  Set REPLACE_LOCALTIME.
91883         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
91884         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
91885         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
91886         nanosleep; time_h.m4 now does that.  Don't require
91887         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
91888         module handles this now.
91889         * modules/getdate (Depends-on): Remove timespec.  Add time.
91890         * modules/nanosleep (Depends-on): Likewise.
91891         * modules/stat-time (Depends-on): Likewise.
91892         * modules/nanosleep (Include): Include time.h, not timespec.h.
91893         * modules/strptime (Files): Remove lib/strptime.h.
91894         (Depends-on): Add extensions, time.
91895         (Include): Include time.h, not strptime.h.
91896         * modules/time_r (Files): Remove lib/time_r.h.
91897         (Depends-on): Add time.
91898         (Include): Include time.h, not time_r.h.
91899         * modules/timegm: Likewise.
91900         * modules/timespec (Description): Now does timespec-related decls
91901         of our own, instead of struct timespec itself.
91902         (Depends-on): Add time; remove extensions.
91903         (Maintainer): Add self.
91904         * modules/utimecmp (Depends-on): Add time; remove timespec.
91905         * modules/utimens (Depends-on): Likewise.
91906         * modules/xnanosleep (Depends-on): Likewise.
91908 2007-02-11  Bruno Haible  <bruno@clisp.org>
91910         * lib/c-strstr.c: Include allocsa.h.
91911         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
91912         * lib/c-strcasestr.c: Include allocsa.h.
91913         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
91914         * lib/strcasestr.c: Include allocsa.h.
91915         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
91916         * lib/mbsstr.c: Include allocsa.h.
91917         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
91918         allocsa/freesa instead of malloc/free.
91919         * lib/mbscasestr.c: Include allocsa.h.
91920         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
91921         allocsa/freesa instead of malloc/free.
91922         * modules/c-strstr (Depends-on): Add allocsa.
91923         * modules/c-strcasestr (Depends-on): Likewise.
91924         * modules/strcasestr (Depends-on): Likewise.
91925         * modules/mbsstr (Depends-on): Likewise.
91926         * modules/mbscasestr (Depends-on): Likewise.
91928 2007-02-11  Bruno Haible  <bruno@clisp.org>
91930         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
91932         * modules/mbsspn-tests: New file.
91933         * tests/test-mbsspn.sh: New file.
91934         * tests/test-mbsspn.c: New file.
91936 2007-02-11  Bruno Haible  <bruno@clisp.org>
91938         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
91940         * modules/mbspbrk-tests: New file.
91941         * tests/test-mbspbrk.sh: New file.
91942         * tests/test-mbspbrk.c: New file.
91944 2007-02-11  Bruno Haible  <bruno@clisp.org>
91946         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
91947         unneeded cast.
91949         * modules/mbscspn-tests: New file.
91950         * tests/test-mbscspn.sh: New file.
91951         * tests/test-mbscspn.c: New file.
91953 2007-02-11  Bruno Haible  <bruno@clisp.org>
91955         * modules/mbscasecmp-tests: New file.
91956         * tests/test-mbscasecmp.sh: New file.
91957         * tests/test-mbscasecmp.c: New file.
91959 2007-02-11  Bruno Haible  <bruno@clisp.org>
91961         Ensure O(n) worst-case complexity of mbscasestr.
91962         * lib/mbscasestr.c: Include stdbool.h.
91963         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
91964         functions.
91965         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
91966         the bookkeeping indicates that it's worth it.
91967         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
91969         * modules/mbscasestr-tests: New file.
91970         * tests/test-mbscasestr1.c: New file.
91971         * tests/test-mbscasestr2.sh: New file.
91972         * tests/test-mbscasestr2.c: New file.
91973         * tests/test-mbscasestr3.sh: New file.
91974         * tests/test-mbscasestr3.c: New file.
91975         * tests/test-mbscasestr4.sh: New file.
91976         * tests/test-mbscasestr4.c: New file.
91977         * m4/locale-tr.m4: New file.
91979 2007-02-11  Bruno Haible  <bruno@clisp.org>
91981         Ensure O(n) worst-case complexity of mbsstr.
91982         * lib/mbsstr.c: Include stdbool.h.
91983         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
91984         functions.
91985         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
91986         bookkeeping indicates that it's worth it.
91987         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
91989         * modules/mbsstr-tests: New file.
91990         * tests/test-mbsstr1.c: New file.
91991         * tests/test-mbsstr2.sh: New file.
91992         * tests/test-mbsstr2.c: New file.
91993         * tests/test-mbsstr3.sh: New file.
91994         * tests/test-mbsstr3.c: New file.
91995         * m4/locale-fr.m4: New file.
91997 2007-02-11  Bruno Haible  <bruno@clisp.org>
91999         * lib/mbsrchr.c (mbsrchr): Fix bug.
92001         * modules/mbsrchr-tests: New file.
92002         * tests/test-mbsrchr.sh: New file.
92003         * tests/test-mbsrchr.c: New file.
92005 2007-02-11  Bruno Haible  <bruno@clisp.org>
92007         * lib/mbschr.c (mbschr): Fix bug.
92009         * modules/mbschr-tests: New file.
92010         * tests/test-mbschr.sh: New file.
92011         * tests/test-mbschr.c: New file.
92012         * m4/locale-zh.m4: New file.
92014 2007-02-11  Bruno Haible  <bruno@clisp.org>
92016         Support for copying multibyte string iterators.
92017         * lib/mbiter.h: Include <string.h>.
92018         (mbiter_multi_copy): New function.
92019         (mbi_copy): New macro.
92020         * lib/mbuiter.h: Include <string.h>.
92021         (mbuiter_multi_copy): New function.
92022         (mbui_copy): New macro.
92024 2007-02-11  Bruno Haible  <bruno@clisp.org>
92026         New module mbslen.
92027         * modules/mbslen: New file.
92028         * lib/mbslen.c: New file.
92029         * lib/string_.h (mbslen): New declaration.
92030         * m4/mbslen.m4: New file.
92031         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
92032         GNULIB_MBSLEN.
92033         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
92034         * MODULES.html.sh (Internationalization functions): Add mbslen.
92036 2007-02-11  Bruno Haible  <bruno@clisp.org>
92038         Ensure O(n) worst-case complexity of strcasestr substitute.
92039         * lib/strcasestr.c: Include stdbool.h.
92040         (knuth_morris_pratt): New function.
92041         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
92042         bookkeeping indicates that it's worth it.
92043         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
92045         * modules/strcasestr-tests: New file.
92046         * tests/test-strcasestr.c: New file.
92048 2007-02-11  Bruno Haible  <bruno@clisp.org>
92050         Ensure O(n) worst-case complexity of c_strcasestr.
92051         * lib/c-strcasestr.c: Include stdbool.h, string.h.
92052         (knuth_morris_pratt): New function.
92053         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
92054         the bookkeeping indicates that it's worth it.
92055         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
92057         * modules/c-strcasestr-tests: New file.
92058         * tests/test-c-strcasestr.c: New file.
92060 2007-02-11  Bruno Haible  <bruno@clisp.org>
92062         Ensure O(n) worst-case complexity of c_strstr.
92063         * lib/c-strstr.c: Include stdbool.h, string.h.
92064         (knuth_morris_pratt): New function.
92065         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
92066         bookkeeping indicates that it's worth it.
92067         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
92069         * lib/c-strstr.c: Complete rewrite for maintainability.
92071         * modules/c-strstr-tests: New file.
92072         * tests/test-c-strstr.c: New file.
92074 2007-02-11  Bruno Haible  <bruno@clisp.org>
92076         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
92077         5.2.1 and earlier, whereby \055 was treated just like the range
92078         delimiter '-'.
92079         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
92081 2007-02-08  Bruno Haible  <bruno@clisp.org>
92083         * modules/regex (Depends-on): Add stdbool.
92084         Reported by Dalibor Topic <robilad@kaffe.org>.
92086 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
92088         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
92089         Prefer returning from main to exiting from it.
92090         Remove unnecessary parens after sizeof.
92092 2007-02-05  Bruno Haible  <bruno@clisp.org>
92094         New module mbssep.
92095         * modules/mbssep: New file.
92096         * lib/mbssep.c: New file.
92097         * lib/string_.h (strsep): Add a conditional link warning.
92098         (mbssep): New declaration.
92099         * m4/mbssep.m4: New file.
92100         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
92101         GNULIB_MBSSEP.
92102         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
92103         * MODULES.html.sh (Internationalization functions): Add mbssep.
92105 2007-02-05  Bruno Haible  <bruno@clisp.org>
92107         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
92108         Optimize search in case of 1 delimiter.
92110 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
92112         * lib/acl.h: Include sys/types.h before sys/acl.h.
92114 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
92116         Merge upstream fix for glibc bugzilla #3957:
92118         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
92120         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
92121         bit for RE_HAT_LISTS_NOT_NEWLINE.
92122         (build_charclass_op): Remove bogus comment.
92124 2007-02-05  Simon Josefsson  <simon@josefsson.org>
92126         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
92128 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
92130         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
92131         * lib/memmem.c [!defined _LIBC]: Include config.h.
92133 2007-02-04  Bruno Haible  <bruno@clisp.org>
92135         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
92136         warning message.
92138 2007-02-04  Bruno Haible  <bruno@clisp.org>
92140         New module mbstok_r.
92141         * modules/mbstok_r: New file.
92142         * lib/mbstok_r.c: New file.
92143         * lib/string_.h (strtok_r): Change argument names to match the
92144         comments. Add a conditional link warning.
92145         (mbstok_r): New declaration.
92146         * m4/mbstok_r.m4: New file.
92147         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
92148         GNULIB_MBSTOK_R.
92149         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
92150         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
92152 2007-02-04  Bruno Haible  <bruno@clisp.org>
92154         New module mbsspn.
92155         * modules/mbsspn: New file.
92156         * lib/mbsspn.c: New file.
92157         * lib/string_.h (strspn): Add a conditional link warning.
92158         (mbsspn): New declaration.
92159         * m4/mbsspn.m4: New file.
92160         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
92161         GNULIB_MBSSPN.
92162         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
92163         * MODULES.html.sh (Internationalization functions): Add mbsspn.
92165 2007-02-04  Bruno Haible  <bruno@clisp.org>
92167         New module mbspbrk.
92168         * modules/mbspbrk: New file.
92169         * lib/mbspbrk.c: New file.
92170         * lib/string_.h (strpbrk): Add a conditional link warning.
92171         (mbspbrk): New declaration.
92172         * m4/mbspbrk.m4: New file.
92173         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
92174         GNULIB_MBSPBRK.
92175         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
92176         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
92178 2007-02-04  Bruno Haible  <bruno@clisp.org>
92180         New module mbscspn.
92181         * modules/mbscspn: New file.
92182         * lib/mbscspn.c: New file.
92183         * lib/string_.h (strcspn): Add a conditional link warning.
92184         (mbscspn): New declaration.
92185         * m4/mbscspn.m4: New file.
92186         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
92187         GNULIB_MBSCSPN.
92188         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
92189         * MODULES.html.sh (Internationalization functions): Add mbscspn.
92191 2007-02-04  Bruno Haible  <bruno@clisp.org>
92193         New module mbscasestr, reduced goal of strcasestr.
92194         * modules/mbscasestr: New file.
92195         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
92196         (mbscasestr): Renamed from strcasestr.
92197         * lib/strcasestr.c: Don't include mbuiter.h.
92198         (strcasestr): Remove support for multibyte locales.
92199         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
92200         Change the conditional link warning.
92201         (mbscasestr): New declaration.
92202         * m4/mbscasestr.m4: New file.
92203         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
92204         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
92205         REPLACE_STRCASESTR.
92206         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
92207         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
92208         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
92209         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
92210         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
92211         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
92212         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
92213         (Depends-on): Remove mbuiter.
92214         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
92216 2007-02-04  Bruno Haible  <bruno@clisp.org>
92218         Simplify handling of strncasecmp.
92219         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
92220         the conditional link warning.
92221         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
92222         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
92223         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
92224         * modules/strcase (configure.ac): Don't invoke
92225         gl_STRING_MODULE_INDICATOR.
92226         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
92228 2007-02-04  Bruno Haible  <bruno@clisp.org>
92230         New module mbscasecmp, reduced goal of strcasecmp.
92231         * modules/mbscasecmp: New file.
92232         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
92233         (mbscasecmp): Renamed from strcasecmp.
92234         * lib/strcasecmp.c: Don't include mbuiter.h.
92235         (strcasecmp): Remove support for multibyte locales.
92236         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
92237         Change the conditional link warning.
92238         (mbscasecmp): New declaration.
92239         * m4/mbscasecmp.m4: New file.
92240         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
92241         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
92242         REPLACE_STRCASECMP.
92243         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
92244         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
92245         GNULIB_MBSCASECMP.
92246         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
92247         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
92248         * modules/strcase (Files): Remove m4/mbrtowc.m4.
92249         (Depends-on): Remove mbuiter.
92250         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
92252 2007-02-04  Bruno Haible  <bruno@clisp.org>
92254         New module mbsstr. Remove module strstr.
92255         * modules/mbsstr: New file.
92256         * modules/strstr: Remove file.
92257         * lib/mbsstr.c: Renamed from lib/strstr.c.
92258         (mbsstr): Renamed from strstr.
92259         * lib/string_.h (strstr): Remove declaration. Change the conditional
92260         link warning.
92261         (mbsstr): New declaration.
92262         * m4/mbsstr.m4: New file.
92263         * m4/strstr.m4: Remove file.
92264         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
92265         REPLACE_STRSTR.
92266         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
92267         Don't initialize GNULIB_STRSTR.
92268         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
92269         substitute GNULIB_STRSTR and REPLACE_STRSTR.
92270         * MODULES.html.sh (Internationalization functions): Add mbsstr.
92271         (Support for systems lacking ANSI C 89): Remove strstr.
92273 2007-02-04  Bruno Haible  <bruno@clisp.org>
92275         New module mbsrchr.
92276         * modules/mbsrchr: New file.
92277         * lib/mbsrchr.c: New file.
92278         * lib/string_.h (strrchr): Add a conditional link warning.
92279         (mbsrchr): New declaration.
92280         * m4/mbsrchr.m4: New file.
92281         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
92282         GNULIB_MBSRCHR.
92283         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
92284         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
92286 2007-02-04  Bruno Haible  <bruno@clisp.org>
92288         New module mbschr.
92289         * modules/mbschr: New file.
92290         * lib/mbschr.c: New file.
92291         * lib/string_.h (strchr): Add a conditional link warning.
92292         (mbschr): New declaration.
92293         * m4/mbschr.m4: New file.
92294         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
92295         GNULIB_MBSCHR.
92296         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
92297         * MODULES.html.sh (Internationalization functions): Add mbschr.
92299 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
92301         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
92303         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
92305 2007-02-04  Bruno Haible  <bruno@clisp.org>
92307         New module description section 'configure.ac-early'.
92308         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
92309         (func_get_autoconf_early_snippet): New function.
92310         (func_import, func_create_testdir): Use it. Remove special cases for
92311         modules 'extensions' and 'lock'.
92312         * modules/extensions (configure.ac-early): Require
92313         gl_USE_SYSTEM_EXTENSIONS.
92314         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
92316 2007-02-04  Bruno Haible  <bruno@clisp.org>
92318         Make use of gcj-4.3's -fsource and -ftarget option.
92319         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
92320         and if so try the options -fsource and -ftarget.
92321         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
92322         source_version, ftarget_option, target_version arguments.
92323         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
92324         (is_envjavac_oldgcj_14_14_usable): Renamed from
92325         is_envjavac_gcj_14_14_usable.
92326         (is_envjavac_oldgcj_14_13_usable): Renamed from
92327         is_envjavac_gcj_14_13_usable.
92328         (is_gcj_present): Update.
92329         (is_gcj_43, is_gcj43_usable): New functions.
92330         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
92331         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
92332         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
92333         try the options -fsource and -ftarget.
92335 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
92337         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
92338         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
92339         larger value.
92341 2007-02-03  Jim Meyering  <jim@meyering.net>
92343         Give tools a better chance to allocate space for very large buffers.
92344         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
92346         Make pwd and readlink work also when run with an unreadable parent dir
92347         on systems with openat support.
92348         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
92349         provided getcwd function, even when we have openat support.
92350         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
92352 2007-02-02  Bruno Haible  <bruno@clisp.org>
92354         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
92355         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
92356         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
92357         portability problems if one of these functions is only used on specific
92358         platforms.
92359         Reported by Paul Eggert.
92361 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
92363         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
92364         is causing more trouble than it's curing.
92365         * lib/regex_internal.h (__mempcpy): Remove.
92366         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
92367         (and make the code a tad smaller to boot).
92368         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
92370 2007-02-02  Jim Meyering  <jim@meyering.net>
92372         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
92373         section, not in the Makefile.am: one.
92375 2007-02-02  Eric Blake  <ebb9@byu.net>
92377         * lib/strchrnul.c: Always include config.h first.
92379         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
92380         gnulib strstr is not necessary here.
92382 2007-02-02  Simon Josefsson  <simon@josefsson.org>
92384         * m4/socklen.m4: Fix typo.
92386 2007-02-02  Eric Blake  <ebb9@byu.net>
92388         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
92389         * modules/netinet_in (Makefile.am): Likewise.
92391 2007-02-01  Bruno Haible  <bruno@clisp.org>
92393         * lib/string_.h (GL_LINK_WARNING): New macro.
92394         (strcasecmp, strstr, strcasestr): If provided by the system,
92395         conditionally define as a macro that leads to a warning instead of to
92396         an error.
92397         (strncasecmp): Conditionally define as a macro that leads to a warning.
92399 2007-02-01  Karl Berry  <karl@gnu.org>
92401         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
92403 2007-02-01  Bruno Haible  <bruno@clisp.org>
92405         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
92406         renamings.
92408 2007-02-01  Eric Blake  <ebb9@byu.net>
92410         * modules/regex (Depends-on): Revert dependence on mempcpy.
92411         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
92412         module's definition of mempcpy.
92413         Reported by Paul Eggert.
92415 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
92417         * lib/string_.h: If the gnulib module XYZ is not present, undefine
92418         the symbol XYZ before redefining it.  This fixes a problem with
92419         programs that don't use XYZ, when compiled on systems that define
92420         XYZ to something else.
92422 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
92424         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
92425         occurs when "mkdir -m foo" creates a setgid directory that is (1)
92426         writeable to group or other and (2) is intended to have a special
92427         mode bit that is set or cleared.  In such a case, the directory
92428         should be neither group- nor other-writeable until the special
92429         mode bits are right.
92431 2007-01-31  Eric Blake  <ebb9@byu.net>
92433         * modules/mountlist (Depends-on): Add strstr.
92435         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
92436         bug.
92437         * modules/string (Makefile.am): Remove redundant replacement.
92438         * modules/regex (Depends-on): Add mempcpy.
92440 2007-01-31  Bruno Haible  <bruno@clisp.org>
92442         New module description field 'Link'.
92443         * gnulib-tool (func_usage): Document --extract-link-directive.
92444         (sed_extract_prog): Recognize 'Link' directive.
92445         (func_get_link_directive): New function.
92446         (func_import): Show summary of link directives.
92447         Handle --extract-link-directive option.
92448         * modules/acl (Link): New section.
92449         * modules/clock-time (Link): New section.
92450         * modules/euidaccess (Link): New section.
92451         * modules/gettext (Link): New section.
92452         * modules/iconv (Link): New section.
92453         * modules/lock (Link): New section.
92454         * modules/nanosleep (Link): New section.
92455         * modules/readline (Link): New section.
92457 2007-01-27  Bruno Haible  <bruno@clisp.org>
92459         Enforce the use of gnulib modules for unportable <string.h> functions.
92460         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
92461         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
92462         (gl_HEADER_STRING_H_BODY): Require it.
92463         * lib/string_.h: If the gnulib module XYZ is not present, redefine
92464         the symbol XYZ to one that gives a link error.
92465         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
92466         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
92467         * modules/mempcpy (configure.ac): Likewise.
92468         * modules/memrchr (configure.ac): Likewise.
92469         * modules/stpcpy (configure.ac): Likewise.
92470         * modules/stpncpy (configure.ac): Likewise.
92471         * modules/strcase (configure.ac): Likewise.
92472         * modules/strcasestr (configure.ac): Likewise.
92473         * modules/strchrnul (configure.ac): Likewise.
92474         * modules/strdup (configure.ac): Likewise.
92475         * modules/strndup (configure.ac): Likewise.
92476         * modules/strnlen (configure.ac): Likewise.
92477         * modules/strpbrk (configure.ac): Likewise.
92478         * modules/strsep (configure.ac): Likewise.
92479         * modules/strstr (configure.ac): Likewise.
92480         * modules/strtok_r (configure.ac): Likewise.
92482 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
92484         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
92486 2007-01-30  Jim Meyering  <jim@meyering.net>
92488         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
92490 2007-01-29  Bruno Haible  <bruno@clisp.org>
92492         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
92493         * lib/execute.c: Likewise.
92494         * lib/pipe.c: Likewise.
92495         * lib/printf-args.h: Likewise.
92496         * lib/printf-args.c: Likewise.
92497         * lib/printf-parse.c: Likewise.
92498         * lib/vasnprintf.c: Likewise.
92500 2007-01-29  Eric Blake  <ebb9@byu.net>
92502         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
92503         declaration.
92505 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
92507         * lib/strptime.h (strptime): Use 'restrict' for args where
92508         POSIX requires this.
92509         * lib/strptime.c (strptime): Likewise.
92510         Change license notice from LGPL to GPL, since gnulib-tool will
92511         change this as needed.
92512         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
92513         defined.
92514         Include "strptime.h" first, to check interface.
92515         Do not #undef _LIBC and _NL_CURRENT.
92516         Do not include <stdlib.h>; no longer needed.
92517         Include "time_r.h" and declare ptime_locale_status
92518         only if _LIBC is not defined.
92519         (__P): Remove unused macro.
92520         (match_string): Bring back glibc version, but use it only if _LIBC
92521         is defined.
92522         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
92523         Remove unnecessary assertion and abort() call.
92524         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
92525         * m4/strptime.m4: Fix serial number comment.
92526         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
92527         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
92528         (Depends-on): Add time_r.
92530 2007-01-29  Bruno Haible  <bruno@clisp.org>
92532         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
92533         strptime.
92534         * modules/strptime (Depends-on): Add stdbool.
92535         * lib/strptime.h: Include <time.h> always. Add comments.
92537 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
92539         * modules/strptime: New file.
92540         * lib/strptime.h: New file.
92541         * lib/strptime.c: New file.
92542         * m4/strptime.m4: New file.
92544 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
92546         * MODULES.html.sh: New module mpsort.
92547         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
92549         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
92550         a circularity problem with HP-UX ia64 reported by Bob Proulx in
92551         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00394.html>.
92552         All uses changed.
92553         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
92554         All uses changed.
92555         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
92556         to _Restrict_.
92557         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
92558         the parameter matches the prototype.
92560 2007-01-28  Jim Meyering  <jim@meyering.net>
92562         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
92563         sys/time.h here, reverting that part of the previous patch:
92564         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
92566 2007-01-28  Bruno Haible  <bruno@clisp.org>
92568         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
92569         value of $(SYS_TIME_H).
92570         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
92571         remove it conditionally, too. [added by Jim Meyering]
92572         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
92573         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
92574         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
92575         GETTIMEOFDAY_REPLACEMENT to 1.
92577 2007-01-28  Bruno Haible  <bruno@clisp.org>
92579         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
92580         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
92581         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
92582         Set UNISTD_H instead of UNISTD_H2.
92583         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
92585 2007-01-28  Bruno Haible  <bruno@clisp.org>
92587         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
92588         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
92590 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92592         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
92593         (func_create_testdir): Ensure C locale for `grep' and `tr'
92594         character ranges.
92595         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
92596         ACLOCAL_AMFLAGS parsing state machine.
92598 2007-01-27  Bruno Haible  <bruno@clisp.org>
92600         * modules/unistr/base: Update.
92602 2007-01-27  Bruno Haible  <bruno@clisp.org>
92604         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
92605         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
92606         * modules/unistr/u32-mbtouc-unsafe: Renamed from
92607         modules/unistr/u32-mbtouc.
92608         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
92609         * lib/unistr.h: Update.
92610         * lib/linebreak.c: Update.
92611         * modules/unistr/u32-mbtouc: Renamed from
92612         modules/unistr/u32-mbtouc-safe.
92613         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
92614         * lib/unistr.h: Update.
92615         * lib/unistr/u32-to-u8.c: Update.
92616         * lib/unistr/u32-to-u16.c: Update.
92618 2007-01-27  Bruno Haible  <bruno@clisp.org>
92620         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
92621         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
92622         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
92623         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
92624         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
92625         * modules/unistr/u16-mbtouc-unsafe: Renamed from
92626         modules/unistr/u16-mbtouc.
92627         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
92628         * lib/unistr.h: Update.
92629         * lib/linebreak.c: Update.
92630         * modules/linebreak: Update.
92631         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
92632         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
92633         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
92634         * modules/unistr/u16-mbtouc: Renamed from
92635         modules/unistr/u16-mbtouc-safe.
92636         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
92637         * lib/unistr.h: Update.
92638         * lib/unistr/u16-to-u8.c: Update.
92639         * modules/unistr/u16-to-u8: Update.
92640         * lib/unistr/u16-to-u32.c: Update.
92641         * modules/unistr/u16-to-u32: Update.
92643 2007-01-27  Bruno Haible  <bruno@clisp.org>
92645         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
92646         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
92647         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
92648         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
92649         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
92650         * modules/unistr/u8-mbtouc-unsafe: Renamed from
92651         modules/unistr/u8-mbtouc.
92652         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
92653         * lib/unistr.h: Update.
92654         * lib/striconveh.c: Update.
92655         * modules/striconveh: Update.
92656         * lib/linebreak.c: Update.
92657         * modules/linebreak: Update.
92658         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
92659         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
92660         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
92661         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
92662         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
92663         * lib/unistr.h: Update.
92664         * lib/striconveh.c: Update.
92665         * modules/striconveh: Update.
92666         * lib/unistr/u8-to-u16.c: Update.
92667         * modules/unistr/u8-to-u16: Update.
92668         * lib/unistr/u8-to-u32.c: Update.
92669         * modules/unistr/u8-to-u32: Update.
92671 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92673         Sync from Libtool.
92674         * lib/argz.c: Do not include strings.h nor memory.h, include
92675         string.h unconditionally.  Patch by Simon Josefsson.
92677 2007-01-27  Bruno Haible  <bruno@clisp.org>
92679         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
92680         from gl_HEADER_STRING_H_BODY.
92681         (gl_HEADER_STRING_H_BODY): Require it.
92682         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
92683         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
92684         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
92685         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
92686         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
92687         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
92688         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
92689         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
92690         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
92691         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
92692         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
92693         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
92694         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
92695         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
92696         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
92698 2007-01-27  Bruno Haible  <bruno@clisp.org>
92700         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
92701         check_PROGRAMS into noinst_PROGRAMS.
92702         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
92703         check_PROGRAMS in this case.
92704         (func_import): Set for_test to false.
92705         (func_create_testdir): Set for_test to true.
92707 2007-01-27  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
92708             Bruno Haible  <bruno@clisp.org>
92710         * modules/strcasestr (Files): Remove lib/strcasestr.h.
92711         (Depends-on): Add string.
92712         (Includes): Use <string.h> instead of strcasestr.h.
92713         * modules/string (Makefile.am): Also substitute the value of
92714         REPLACE_STRCASESTR.
92715         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
92716         assume strcasestr is declared in <string.h> not <strings.h>. Also
92717         set REPLACE_STRCASESTR.
92718         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
92719         REPLACE_STRCASESTR.
92720         * lib/strcasestr.h: Remove file.
92721         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
92722         * lib/string_.h (strcasestr): New declaration.
92724 2007-01-27  Bruno Haible  <bruno@clisp.org>
92726         * lib/string_.h: Use 'extern'.
92728 2007-01-27  Jim Meyering  <jim@meyering.net>
92730         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
92731         of set-but-not-used local, "q".
92733         * lib/mempcpy.c: Include <config.h> before <string.h>.
92734         This fixes a compilation error on HP-UX, due to the system's
92735         "restrict"-using mempcpy prototype.
92737 2007-01-26  Bruno Haible  <bruno@clisp.org>
92739         Small optimization.
92740         * lib/javacomp.c: Include c-strstr.h.
92741          (is_envjavac_gcj): Use c_strstr instead of strstr.
92742         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
92744 2007-01-26  Bruno Haible  <bruno@clisp.org>
92746         * MODULES.html.sh (Unicode string functions): Add the new modules.
92748         * modules/uniconv/u32-strconv-to-locale: New file.
92749         * lib/uniconv/u32-strconv-to-locale.c: New file.
92751         * modules/uniconv/u16-strconv-to-locale: New file.
92752         * lib/uniconv/u16-strconv-to-locale.c: New file.
92754         * modules/uniconv/u8-strconv-to-locale: New file.
92755         * lib/uniconv/u8-strconv-to-locale.c: New file.
92757         * modules/uniconv/u32-strconv-from-locale: New file.
92758         * lib/uniconv/u32-strconv-from-locale.c: New file.
92760         * modules/uniconv/u16-strconv-from-locale: New file.
92761         * lib/uniconv/u16-strconv-from-locale.c: New file.
92763         * modules/uniconv/u8-strconv-from-locale: New file.
92764         * lib/uniconv/u8-strconv-from-locale.c: New file.
92766         * modules/uniconv/u32-strconv-to-enc: New file.
92767         * lib/uniconv/u32-strconv-to-enc.c: New file.
92768         * modules/uniconv/u32-strconv-to-enc-tests: New file.
92769         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
92771         * modules/uniconv/u16-strconv-to-enc: New file.
92772         * lib/uniconv/u16-strconv-to-enc.c: New file.
92773         * lib/uniconv/u-strconv-to-enc.h: New file.
92774         * modules/uniconv/u16-strconv-to-enc-tests: New file.
92775         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
92777         * modules/uniconv/u8-strconv-to-enc: New file.
92778         * lib/uniconv/u8-strconv-to-enc.c: New file.
92779         * modules/uniconv/u8-strconv-to-enc-tests: New file.
92780         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
92782         * modules/uniconv/u32-strconv-from-enc: New file.
92783         * lib/uniconv/u32-strconv-from-enc.c: New file.
92784         * modules/uniconv/u32-strconv-from-enc-tests: New file.
92785         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
92787         * modules/uniconv/u16-strconv-from-enc: New file.
92788         * lib/uniconv/u16-strconv-from-enc.c: New file.
92789         * modules/uniconv/u16-strconv-from-enc-tests: New file.
92790         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
92792         * modules/uniconv/u8-strconv-from-enc: New file.
92793         * lib/uniconv/u8-strconv-from-enc.c: New file.
92794         * lib/uniconv/u-strconv-from-enc.h: New file.
92795         * modules/uniconv/u8-strconv-from-enc-tests: New file.
92796         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
92798         * modules/uniconv/u32-conv-from-enc: New file.
92799         * lib/uniconv/u32-conv-from-enc.c: New file.
92800         * modules/uniconv/u32-conv-from-enc-tests: New file.
92801         * tests/uniconv/test-u32-conv-from-enc.c: New file.
92803         * modules/uniconv/u16-conv-from-enc: New file.
92804         * lib/uniconv/u16-conv-from-enc.c: New file.
92805         * lib/uniconv/u-conv-from-enc.h: New file.
92806         * modules/uniconv/u16-conv-from-enc-tests: New file.
92807         * tests/uniconv/test-u16-conv-from-enc.c: New file.
92809         * modules/uniconv/u8-conv-from-enc: New file.
92810         * lib/uniconv/u8-conv-from-enc.c: New file.
92811         * modules/uniconv/u8-conv-from-enc-tests: New file.
92812         * tests/uniconv/test-u8-conv-from-enc.c: New file.
92814         * modules/uniconv/base: New file.
92815         * lib/uniconv.h: New file.
92817 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
92819         * doc/gnulib-tool.texi (Initial import): Update to match current
92820         behavior with strdup module.
92821         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
92822         * lib/memmem.h: Remove; all uses removed.  This is now done
92823         by <string.h>.
92824         * lib/mempcpy.h: Likewise.
92825         * lib/memrchr.h: Likewise.
92826         * lib/stpcpy.h: Likewise.
92827         * lib/stpncpy.h: Likewise.
92828         * lib/strcase.h: Likewise.
92829         * lib/strchrnul.h: Likewise.
92830         * lib/strdup.h: Likewise.
92831         * lib/strndup.h: Likewise.
92832         * lib/strnlen.h: Likewise.
92833         * lib/strpbrk.h: Likewise.
92834         * lib/strsep.h: Likewise.
92835         * lib/strstr.h: Likewise.
92836         * lib/strtok_r.h: Likewise.
92837         * lib/string_.h: New file.
92838         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
92839         Rely on <string.h> instead.
92840         * lib/canon-host.c: Likewise.
92841         * lib/chdir-long.c: Likewise.
92842         * lib/concatpath.c: Likewise.
92843         * lib/exclude.c: Likewise.
92844         * lib/fchdir.c: Likewise.
92845         * lib/getaddrinfo.c: Likewise.
92846         * lib/getcwd.c: Likewise.
92847         * lib/getsubopt.c: Likewise.
92848         * lib/glob.c: Likewise.
92849         * lib/hard-locale.c: Likewise.
92850         * lib/iconvme.c: Likewise.
92851         * lib/javacomp.c: Likewise.
92852         * lib/mempcpy.c: Likewise.
92853         * lib/memrchr.c: Likewise.
92854         * lib/regex_internal.h: Likewise.
92855         * lib/stpncpy.c: Likewise.
92856         * lib/strcasecmp.c: Likewise.
92857         * lib/strchrnul.c: Likewise.
92858         * lib/strdup.c: Likewise.
92859         * lib/striconv.c: Likewise.
92860         * lib/striconveh.c: Likewise.
92861         * lib/striconveha.c: Likewise.
92862         * lib/strncasecmp.c: Likewise.
92863         * lib/strndup.c: Likewise.
92864         * lib/strnlen.c: Likewise.
92865         * lib/strsep.c: Likewise.
92866         * lib/strstr.c: Likewise.
92867         * lib/strtok_r.c: Likewise.
92868         * lib/userspec.c: Likewise.
92869         * lib/w32spawn.h: Likewise.
92870         * lib/xstrndup.c: Likewise.
92871         * lib/mountlist.c (strstr): Remove decl.
92872         * m4/string_h.m4: New file.
92873         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
92874         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
92875         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
92876         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
92877         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
92878         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
92879         Set REPLACE_STRCASECMP if necessary.
92880         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
92881         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
92882         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
92883         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
92884         HAVE_DECL_STRDUP if necessary.
92885         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
92886         since gl_FUNC_STRNDUP does that now.
92887         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
92888         Check for decl here...
92889         (gl_PREREQ_STRNLEN): ... not here.
92890         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
92891         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
92892         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
92893         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
92894         necessary.
92895         * modules/string: New file.
92896         * modules/memmem (Files): Remove special-purpose include file.
92897         (Depends-on): Add string.
92898         (Include): Include <string.h>, not the removed file.
92899         * modules/mempcpy: Likewise.
92900         * modules/memrchr: Likewise.
92901         * modules/stpcpy: Likewise.
92902         * modules/stpncpy: Likewise.
92903         * modules/strcase: Likewise.
92904         * modules/strchrnul: Likewise.
92905         * modules/strdup: Likewise.
92906         * modules/strndup: Likewise.
92907         * modules/strnlen: Likewise.
92908         * modules/strpbrk: Likewise.
92909         * modules/strsep: Likewise.
92910         * modules/strstr: Likewise.
92911         * modules/strtok_r: Likewise.
92912         * tests/test-dirname.c: Don't include "strdup.h", since
92913         <string.h> now suffices.
92914         * tests/test-memmem.c: Don't include "memmem.h", since
92915         <string.h> now suffices.
92917 2007-01-25  Bruno Haible  <bruno@clisp.org>
92919         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
92920         *resultp is 0.
92922         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
92923         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
92924         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
92925         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
92927         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
92928         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
92929         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
92930         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
92931         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
92932         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
92934 2007-01-24  Bruno Haible  <bruno@clisp.org>
92936         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
92937         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00279.html>.
92938         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
92939         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
92940         gl_FUNC_FTS_CORE.
92941         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
92942         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
92943         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
92944         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
92945         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
92946         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
92947         gl_FUNC_FCHOWNAT.
92948         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
92949         gl_FUNC_STRFTIME.
92950         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
92951         Reported by Ralf Wildenhues.
92953 2007-01-24  Bruno Haible  <bruno@clisp.org>
92955         Drop AC_REQUIRE calls that are redundant with the module dependencies.
92956         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
92957         gl_GETADDRINFO.
92958         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
92959         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
92960         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
92962 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
92964         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
92965         Don't use 'exit'; just return from 'main'.
92966         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
92968         * lib/fnmatch_.h: Readjust white space and comments to match
92969         glibc, to avoid spurious diffs.
92971 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
92973         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
92974         2004-12-01 change by Jakub Jelinek, since this code won't compile
92975         if !LIBC.  Problem reported by Bob Proulx.
92977 2007-01-23  Bruno Haible  <bruno@clisp.org>
92979         * lib/striconveh.c: Include c-strcaseeq.h.
92980         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
92981         * modules/striconveh (Depends-on): Add c-strcaseeq.
92983 2007-01-23  Bruno Haible  <bruno@clisp.org>
92985         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
92987         * modules/c-strcaseeq: New file.
92988         * lib/c-strcaseeq.h: New file.
92990         * modules/streq: New file.
92991         * lib/streq.h: New file.
92993 2007-01-23  Bruno Haible  <bruno@clisp.org>
92995         * modules/striconveha-tests: New file.
92996         * tests/test-striconveha.c: New file.
92998         * lib/striconveha.h: Include <stdbool.h>.
92999         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
93000         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
93001         (mem_iconveha_notranslit): Renamed from mem_iconveha.
93002         (mem_iconveha): New function.
93003         (str_iconveha_notranslit): Renamed from str_iconveha.
93004         (str_iconveha): New function.
93005         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
93006         c-strcase.
93008 2007-01-23  Bruno Haible  <bruno@clisp.org>
93010         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
93011         encodings without forgiving before trying any encoding with handler.
93012         (str_iconveha): Try all encodings without forgiving before trying any
93013         encoding with handler.
93015 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
93017         Import the following changes from libc.
93019         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
93021         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
93023         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
93025         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
93026         normal_bracket label.
93028         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
93030         [BZ #361]
93031         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
93032         to normal_bracket after fetching the next character.
93034 2007-01-22  Bruno Haible  <bruno@clisp.org>
93036         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
93037         argument.
93038         * lib/striconveh.c (iconv_carefully_1): New function.
93039         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
93040         argument.
93041         (str_cd_iconveh): Update.
93042         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
93043         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
93044         * tests/test-striconveh.c (MAGIC): New macro.
93045         (new_offsets): New function.
93046         (main): Test call with and without offsets.
93048 2007-01-22  Bruno Haible  <bruno@clisp.org>
93050         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
93051         * modules/sys_select (Makefile.am): Likewise.
93052         * modules/sys_socket (Makefile.am): Likewise.
93053         * modules/sys_time (Makefile.am): Likewise.
93055 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
93057         * modules/gettimeofday (License): Change from GPL to LGPL, since
93058         gettimeofday is a library function.
93060 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
93062         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
93064 2007-01-21  Bruno Haible  <bruno@clisp.org>
93066         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
93068 2007-01-21  Bruno Haible  <bruno@clisp.org>
93070         * modules/striconveha: New file.
93071         * lib/striconveha.h: New file.
93072         * lib/striconveha.c: New file.
93073         * MODULES.html.sh (Internationalization functions): Add striconveha.
93074         * lib/striconv.c (str_iconv): Optimize the case of an empty input
93075         string.
93076         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
93078 2007-01-21  Bruno Haible  <bruno@clisp.org>
93080         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
93081         * lib/striconveh.c (str_iconveh): Likewise.
93083 2007-01-21  Bruno Haible  <bruno@clisp.org>
93085         * lib/striconveh.h (mem_iconveh): New declaration.
93086         * lib/striconveh.c (mem_iconveh): New function.
93087         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
93089 2007-01-21  Bruno Haible  <bruno@clisp.org>
93091         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
93093         * lib/striconveh.h (mem_cd_iconveh): Change specification.
93094         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
93095         original result buffer.
93096         (str_cd_iconveh): Update.
93097         * tests/test-striconveh.c (main): Update.
93099         * lib/striconv.h (mem_cd_iconv): Change specification.
93100         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
93101         result buffer.
93102         (str_cd_iconv): Update.
93103         * tests/test-striconv.c (main): Update.
93105 2007-01-21  Bruno Haible  <bruno@clisp.org>
93107         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
93109 2007-01-20  Jim Meyering  <jim@meyering.net>
93111         * lib/userspec.c (parse_with_separator): If a user or group string
93112         starts with "+", skip the corresponding name-to-ID look-up, since
93113         such a look-up must fail: user and group names may not include "+".
93115 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
93117         * lib/poll.c: Include sys/time.h and time.h unconditionally,
93118         since we now assume the sys_time module.
93119         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
93120         check for sys/time.h; no longer needed.
93121         * modules/poll (Depends-on): Depend on sys_time.
93123 2007-01-18  Bruno Haible  <bruno@clisp.org>
93125         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
93126         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
93128         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
93129         gettimeofday.
93131         * tests/test-gettimeofday.c: Include <time.h>.
93132         (dummy): Remove variable.
93134         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
93135         gl_HEADER_SYS_TIME_H.
93136         (gl_HEADER_SYS_TIME_H): New macro.
93138         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
93139         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
93140         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
93141         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
93142         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
93143         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
93144         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
93145         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
93146         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
93147         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
93148         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
93150         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
93151         last change; it caused a compilation error when cross-compiling to
93152         Cygwin.
93154 2007-01-18  Jim Meyering  <jim@meyering.net>
93156         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
93157         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
93158         than the race-prone "test -d sys || mkdir sys".
93159         (configure.ac): Use AC_PROG_MKDIR_P.
93160         * modules/sys_select: Likewise.
93161         * modules/sys_socket: Likewise.
93162         * modules/sys_time: Likewise.
93164 2007-01-18  Eric Blake  <ebb9@byu.net>
93166         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
93167         replace gettimeofday.
93168         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
93169         name, to avoid infinite recursion.
93171 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
93173         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
93174         module sys_time.
93175         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
93176         assume timespec.h defines struct timeval.
93177         * lib/settime.c: Likewise.
93178         * lib/utimens.c: Likewise.
93179         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
93180         since we now assume the gettimeofday module.
93181         * lib/tempname.c (__gen_tempname): Likewise.
93182         * lib/gettimeofday.h: Remove.
93183         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
93184         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
93185         Include <time.h>, for 'time()'.
93186         (localtime_buffer_addr): Also use this workaround if
93187         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
93188         to simplify the uses.  All uses changed.
93189         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
93190         that #undef is inside {}, and 'const' follows type name consistently.
93191         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
93192         (gettimeofday): Do not use the maximum possible value for
93193         tv->tv_usec, since that might break usages other than ls.c.
93194         Instead, we'll leave ls.c alone.  This undoes today's patch
93195         by Bruno.  Add a compile-time warning for 1s-clock resolution;
93196         we've never observed the problem but might as well keep the
93197         canary.
93198         * lib/nanosleep.c: Include timespec.h first, for interface check.
93199         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
93200         now assume the sys_time module.
93201         * lib/tempname.c: Likewise.
93202         * lib/timespec.h: Likewise.
93203         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
93204         needed.
93205         * lib/strftime.c: Likewise.
93206         * lib/timespec.h: Likewise.
93207         * lib/posixtm.c: Include posixtm.h first, for interface check.
93208         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
93209         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
93210         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
93211         * lib/sys_time_.h: New file.
93212         * lib/timespec.h (struct timespec): Use long int, not long.
93213         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
93214         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
93215         Remove obsolescent call to AC_HEADER_TIME.
93216         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
93217         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
93218         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
93219         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
93220         Likewise.
93221         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
93222         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
93223         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
93224         into the sys_time module.  Check for gettimeofday just once.
93225         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
93226         for gettimeofday signature to just check the signature.  Merely
93227         compile it, since linking doesn't test signature.  Improve test for
93228         whether gettimeofday.o is actually needed.
93229         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
93230         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
93231         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
93232         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
93233         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
93234         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
93235         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
93236         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
93237         than worrying about sys/time.h.
93238         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
93239         Don't bother worrying about TIME_WITH_SYS_TIME.
93240         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
93241         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
93242         * m4/sys_time_h.m4: New file.
93243         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
93244         Don't include sys/time.h.  Return from main rather than exiting.
93245         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
93246         all uses changed.
93247         * modules/gethrxtime (Depends-on): Add sys_time.
93248         * modules/gettime (Depends-on): Likewise.
93249         * modules/gettimeofday (Depends-on): Likewise.
93250         * modules/nanosleep (Depends-on): Likewise.
93251         * modules/settime (Depends-on): Likewise.
93252         * modules/tempname (Depends-on): Likewise.
93253         * modules/utimens (Depends-on): Likewise.
93254         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
93255         (Include): Change back to <sys/time.h>.
93256         (Maintainer): Add self.
93257         * modules/sys_time: New file.
93258         * modules/tempname (Depends-on): Add gettimeofday.
93259         * tests/test-gettimeofday.c: Include <sys/time.h>
93260         rather than gettimeofday.h.
93262 2007-01-17  Bruno Haible  <bruno@clisp.org>
93264         * gnulib-tool (func_get_license): Revert last patch. Instead, let
93265         the license default to GPL.
93266         (func_create_testdir): Don't complain if a module is LGPL and its
93267         tests module depends on GPLed modules.
93269 2007-01-17  Bruno Haible  <bruno@clisp.org>
93271         * lib/gettimeofday.c (gettimeofday): Add code for the case
93272         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
93273         maximum possible value for tv->tv_usec, rather than the minimum one.
93275 2005-10-08  Martin Lambers  <marlam@marlam.de>
93276 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
93277 2007-01-16  Bruno Haible  <bruno@clisp.org>
93279         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
93280         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
93281         gl_FUNC_GETTIMEOFDAY.
93282         (Include): Add gettimeofday.h.
93283         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
93284         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
93285         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
93286         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
93287         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
93288         * lib/gettimeofday.h: New file.
93289         * lib/gettimeofday.c: Include <sys/timeb.h>.
93290         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
93291         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
93292         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
93293         fall back on time().
93295         * tests/test-gettimeofday.c: New file.
93296         * modules/gettimeofday-tests: New file.
93298 2007-01-16  Eric Blake  <ebb9@byu.net>
93300         * modules/fnmatch (Depends-on): Depend on wchar.
93301         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
93302         * m4/fnmatch.m4: Likewise.
93303         * modules/mbchar (Makefile.am): Assume <wchar.h>.
93304         * m4/mbchar.m4: Likewise.
93305         * modules/mbswidth (Depends-on): Depend on wchar.
93306         * lib/mbswidth.c: Assume <wchar.h>.
93307         * m4/mbswidth.m4: Likewise.
93308         * modules/quotearg (Depends-on): Depend on wchar.
93309         * lib/quotearg.c: Assume <wchar.h>.
93310         * m4/quotearg.m4: Likewise.
93311         * modules/regex (Depends-on): Depend on wchar.
93312         * lib/regex_internal.h: Assume <wchar.h>.
93313         * m4/regex.m4: Likewise.
93314         * modules/stdint (Depends-on): Depend on wchar.
93315         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
93316         * m4/stdint.m4: Likewise.
93317         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
93318         * modules/strftime (Depends-on): Depend on wchar.
93319         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
93320         * modules/strtol (Depends-on): Depend on wchar.
93321         * lib/strtol.c: Assume <wchar.h>.
93322         * modules/wcwidth (Depends-on): Depend on wchar.
93323         * lib/wcwidth.h: Assume <wchar.h>.
93324         * m4/wcwidth.m4: Likewise.
93326 2007-01-16  Bruno Haible  <bruno@clisp.org>
93328         * modules/csharpexec-script: New, created from...
93329         * modules/csharpexec: ... this.
93331 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
93333         * modules/javaexec-script: New, created from...
93334         * modules/javaexec: ... this.
93336 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
93338         * modules/poll (Dependencies): Add sys_select.
93340 2007-01-15  Jim Meyering  <jim@meyering.net>
93342         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
93343         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
93344         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
93345         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
93347 2007-01-15  Bruno Haible  <bruno@clisp.org>
93349         * modules/striconveh: New file.
93350         * lib/striconveh.h: New file.
93351         * lib/striconveh.c: New file.
93352         * MODULES.html.sh (Internationalization functions): Add striconveh.
93354         * modules/striconveh-tests: New file.
93355         * tests/test-striconveh.c: New file.
93357 2007-01-15  Bruno Haible  <bruno@clisp.org>
93359         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
93360         not from GNU libiconv or GNU libc.
93362 2007-01-15  Bruno Haible  <bruno@clisp.org>
93364         * doc/gnulib-intro.texi (Copyright): Explain the different license
93365         terms for module descriptions, autoconf macros, tests, documentation.
93367 2007-01-14  Bruno Haible  <bruno@clisp.org>
93369         * modules/striconv-tests: New file.
93370         * tests/test-striconv.c: New file.
93372 2007-01-14  Bruno Haible  <bruno@clisp.org>
93374         * modules/iconv-tests: New file.
93375         * tests/test-iconv.c: New file.
93377 2007-01-14  Bruno Haible  <bruno@clisp.org>
93379         * gnulib-tool (func_get_license): For test modules, use the license of
93380         the main module.
93382 2007-01-14  Bruno Haible  <bruno@clisp.org>
93384         * modules/iconv (Include): Clarify that <iconv.h> can only be included
93385         if iconv is found to exist.
93387 2007-01-14  Bruno Haible  <bruno@clisp.org>
93389         * modules/c-ctype-tests: New file.
93390         * tests/test-c-ctype.c: New file.
93392 2007-01-14  Bruno Haible  <bruno@clisp.org>
93394         * modules/binary-io-tests: New file.
93395         * tests/test-binary-io.sh: New file.
93396         * tests/test-binary-io.c: New file.
93398 2007-01-14  Bruno Haible  <bruno@clisp.org>
93400         * modules/array-oset-tests: New file.
93401         * tests/test-array_oset.c: New file.
93403 2007-01-14  Bruno Haible  <bruno@clisp.org>
93405         * modules/array-list-tests: New file.
93406         * tests/test-array_list.c: New file.
93408 2007-01-14  Bruno Haible  <bruno@clisp.org>
93410         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
93411         and make.
93412         Reported by Simon Josefsson in
93413         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00139.html>
93415 2007-01-14  Bruno Haible  <bruno@clisp.org>
93417         * modules/allocsa-tests: New file.
93418         * tests/test-allocsa.c: New file.
93420 2007-01-14  Bruno Haible  <bruno@clisp.org>
93422         * modules/fchdir (Depends-on): Add absolute-header.
93423         * modules/unistd (Depends-on): Likewise.
93425 2006-12-30  Bruno Haible  <bruno@clisp.org>
93427         * modules/fchdir: New file.
93428         * modules/unistd (Files): Add lib/unistd_.h.
93429         (Makefile.am): Generate unistd.h from unistd_.h.
93430         * lib/fchdir.c: New file.
93431         * lib/dirent_.h: New file.
93432         * lib/unistd_.h: New file.
93433         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
93434         * m4/fchdir.m4: New file.
93435         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
93436         (gl_HEADER_UNISTD): Invoke it.
93437         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
93438         function.
93439         * lib/backupfile.c (opendir, closedir): Undefine.
93440         * lib/chown.c (open, close): Undefine.
93441         * lib/clean-temp.c (open, close): Undefine.
93442         * lib/copy-file.c (open, close): Undefine.
93443         * lib/execute.c (open, close): Undefine.
93444         * lib/fsusage.c (open, close): Undefine.
93445         * lib/gc-gnulib.c (open, close): Undefine.
93446         * lib/getcwd.c (opendir, closedir): Undefine.
93447         * lib/glob.c (opendir, closedir): Undefine.
93448         * lib/javacomp.c (open, close): Undefine.
93449         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
93450         * lib/openat-proc.c (open, close): Undefine.
93451         * lib/pagealign_alloc.c (open, close): Undefine.
93452         * lib/pipe.c (open, close): Undefine.
93453         * lib/progreloc.c (open, close): Undefine.
93454         * lib/savedir.c (opendir, closedir): Undefine.
93455         * lib/utime.c (open, close): Undefine.
93456         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
93458 2007-01-10  Bruno Haible  <bruno@clisp.org>
93460         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
93462 2007-01-12  Eric Blake  <ebb9@byu.net>
93464         Provide a robust <wchar.h>.  Further simplifications are now
93465         possible in other modules, but not included here.
93466         * modules/wchar: New module.
93467         * m4/wchar.m4: New file.
93468         * lib/wchar_.h: Likewise.
93469         * modules/mbchar (Depends-on): Depend on wchar, as the first use
93470         of the new module.
93471         * MODULES.html.sh (Extended multibyte and wide character utilities):
93472         New section.
93474 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
93476         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
93477         to a reasonable default for memory allocation.
93478         (xreadlink): Don't allocate a huge buffer, to work around a buggy
93479         file system that reports garbage st_size values for symlinks.
93480         Problem reported by Liyang Hu.
93482 2007-01-11  Simon Josefsson  <simon@josefsson.org>
93484         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
93485         Emacs .#* auto-save files).
93487 2007-01-11  Bruno Haible  <bruno@clisp.org>
93489         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
93490         directory.
93492 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
93494         Use @...@ consistently in lib/wctype_.h.
93495         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
93496         on it being set to 1 or 0.
93497         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
93498         go back to AC_SUBSTing it.
93499         * modules/wctype (Makefile.am): Undo previous change.
93501 2007-01-10  Eric Blake  <ebb9@byu.net>
93503         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
93504         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
93505         * modules/wctype (Makefile.am): Likewise.
93506         Reported by Chris McGuire.
93508 2007-01-10  Jim Meyering  <jim@meyering.net>
93510         fts.c: a small readability/maintainability improvement
93511         * lib/fts.c (fts_read): Make this code slightly more readable and
93512         maintainable by hoisting the "sp->fts_cur = p" assignments to
93513         immediately follow the statements that set P.  Derived from
93514         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
93516 2007-01-10  Eric Blake  <ebb9@byu.net>
93518         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
93519         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
93520         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
93521         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
93522         Reported by Chris McGuire.
93524 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93526         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
93527         in sed script.
93529 2007-01-09  Bruno Haible  <bruno@clisp.org>
93531         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
93532         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
93533         variables.
93534         (func_module): Use them.
93536 2007-01-09  Bruno Haible  <bruno@clisp.org>
93538         * modules/unistr/base: New file.
93539         * lib/unistr.h: New file.
93541         * modules/unistr/u8-to-u16: New file.
93542         * lib/unistr/u8-to-u16.c: New file.
93544         * modules/unistr/u8-to-u32: New file.
93545         * lib/unistr/u8-to-u32.c: New file.
93547         * modules/unistr/u16-to-u8: New file.
93548         * lib/unistr/u16-to-u8.c: New file.
93550         * modules/unistr/u16-to-u32: New file.
93551         * lib/unistr/u16-to-u32.c: New file.
93553         * modules/unistr/u32-to-u8: New file.
93554         * lib/unistr/u32-to-u8.c: New file.
93556         * modules/unistr/u32-to-u16: New file.
93557         * lib/unistr/u32-to-u16.c: New file.
93559         * modules/unistr/u8-check: New file.
93560         * modules/unistr/u16-check: New file.
93561         * modules/unistr/u32-check: New file.
93562         * lib/unistr/u8-check.c: New file.
93563         * lib/unistr/u16-check.c: New file.
93564         * lib/unistr/u32-check.c: New file.
93566         * modules/unistr/u8-chr: New file.
93567         * modules/unistr/u16-chr: New file.
93568         * modules/unistr/u32-chr: New file.
93569         * lib/unistr/u8-chr.c: New file.
93570         * lib/unistr/u16-chr.c: New file.
93571         * lib/unistr/u32-chr.c: New file.
93573         * modules/unistr/u8-cmp: New file.
93574         * modules/unistr/u16-cmp: New file.
93575         * modules/unistr/u32-cmp: New file.
93576         * lib/unistr/u8-cmp.c: New file.
93577         * lib/unistr/u16-cmp.c: New file.
93578         * lib/unistr/u32-cmp.c: New file.
93580         * modules/unistr/u8-cpy: New file.
93581         * modules/unistr/u16-cpy: New file.
93582         * modules/unistr/u32-cpy: New file.
93583         * lib/unistr/u8-cpy.c: New file.
93584         * lib/unistr/u16-cpy.c: New file.
93585         * lib/unistr/u32-cpy.c: New file.
93586         * lib/unistr/u-cpy.h: New file.
93588         * modules/unistr/u8-cpy-alloc: New file.
93589         * modules/unistr/u16-cpy-alloc: New file.
93590         * modules/unistr/u32-cpy-alloc: New file.
93591         * lib/unistr/u8-cpy-alloc.c: New file.
93592         * lib/unistr/u16-cpy-alloc.c: New file.
93593         * lib/unistr/u32-cpy-alloc.c: New file.
93594         * lib/unistr/u-cpy-alloc.h: New file.
93596         * modules/unistr/u8-endswith: New file.
93597         * modules/unistr/u16-endswith: New file.
93598         * modules/unistr/u32-endswith: New file.
93599         * lib/unistr/u8-endswith.c: New file.
93600         * lib/unistr/u16-endswith.c: New file.
93601         * lib/unistr/u32-endswith.c: New file.
93602         * lib/unistr/u-endswith.h: New file.
93604         * modules/unistr/u8-mblen: New file.
93605         * modules/unistr/u16-mblen: New file.
93606         * modules/unistr/u32-mblen: New file.
93607         * lib/unistr/u8-mblen.c: New file.
93608         * lib/unistr/u16-mblen.c: New file.
93609         * lib/unistr/u32-mblen.c: New file.
93611         * modules/unistr/u8-mbtouc: New file.
93612         * modules/unistr/u16-mbtouc: New file.
93613         * modules/unistr/u32-mbtouc: New file.
93614         * lib/unistr/u8-mbtouc.c: New file.
93615         * lib/unistr/u16-mbtouc.c: New file.
93616         * lib/unistr/u32-mbtouc.c: New file.
93618         * modules/unistr/u8-mbtouc-safe: New file.
93619         * modules/unistr/u16-mbtouc-safe: New file.
93620         * modules/unistr/u32-mbtouc-safe: New file.
93621         * lib/unistr/u8-mbtouc-safe.c: New file.
93622         * lib/unistr/u16-mbtouc-safe.c: New file.
93623         * lib/unistr/u32-mbtouc-safe.c: New file.
93625         * modules/unistr/u8-move: New file.
93626         * modules/unistr/u16-move: New file.
93627         * modules/unistr/u32-move: New file.
93628         * lib/unistr/u8-move.c: New file.
93629         * lib/unistr/u16-move.c: New file.
93630         * lib/unistr/u32-move.c: New file.
93631         * lib/unistr/u-move.h: New file.
93633         * modules/unistr/u8-next: New file.
93634         * modules/unistr/u16-next: New file.
93635         * modules/unistr/u32-next: New file.
93636         * lib/unistr/u8-next.c: New file.
93637         * lib/unistr/u16-next.c: New file.
93638         * lib/unistr/u32-next.c: New file.
93640         * modules/unistr/u8-prev: New file.
93641         * modules/unistr/u16-prev: New file.
93642         * modules/unistr/u32-prev: New file.
93643         * lib/unistr/u8-prev.c: New file.
93644         * lib/unistr/u16-prev.c: New file.
93645         * lib/unistr/u32-prev.c: New file.
93647         * modules/unistr/u8-set: New file.
93648         * modules/unistr/u16-set: New file.
93649         * modules/unistr/u32-set: New file.
93650         * lib/unistr/u8-set.c: New file.
93651         * lib/unistr/u16-set.c: New file.
93652         * lib/unistr/u32-set.c: New file.
93653         * lib/unistr/u-set.h: New file.
93655         * modules/unistr/u8-startswith: New file.
93656         * modules/unistr/u16-startswith: New file.
93657         * modules/unistr/u32-startswith: New file.
93658         * lib/unistr/u8-startswith.c: New file.
93659         * lib/unistr/u16-startswith.c: New file.
93660         * lib/unistr/u32-startswith.c: New file.
93661         * lib/unistr/u-startswith.h: New file.
93663         * modules/unistr/u8-stpcpy: New file.
93664         * modules/unistr/u16-stpcpy: New file.
93665         * modules/unistr/u32-stpcpy: New file.
93666         * lib/unistr/u8-stpcpy.c: New file.
93667         * lib/unistr/u16-stpcpy.c: New file.
93668         * lib/unistr/u32-stpcpy.c: New file.
93669         * lib/unistr/u-stpcpy.h: New file.
93671         * modules/unistr/u8-stpncpy: New file.
93672         * modules/unistr/u16-stpncpy: New file.
93673         * modules/unistr/u32-stpncpy: New file.
93674         * lib/unistr/u8-stpncpy.c: New file.
93675         * lib/unistr/u16-stpncpy.c: New file.
93676         * lib/unistr/u32-stpncpy.c: New file.
93677         * lib/unistr/u-stpncpy.h: New file.
93679         * modules/unistr/u8-strcat: New file.
93680         * modules/unistr/u16-strcat: New file.
93681         * modules/unistr/u32-strcat: New file.
93682         * lib/unistr/u8-strcat.c: New file.
93683         * lib/unistr/u16-strcat.c: New file.
93684         * lib/unistr/u32-strcat.c: New file.
93685         * lib/unistr/u-strcat.h: New file.
93687         * modules/unistr/u8-strchr: New file.
93688         * modules/unistr/u16-strchr: New file.
93689         * modules/unistr/u32-strchr: New file.
93690         * lib/unistr/u8-strchr.c: New file.
93691         * lib/unistr/u16-strchr.c: New file.
93692         * lib/unistr/u32-strchr.c: New file.
93694         * modules/unistr/u8-strcmp: New file.
93695         * modules/unistr/u16-strcmp: New file.
93696         * modules/unistr/u32-strcmp: New file.
93697         * lib/unistr/u8-strcmp.c: New file.
93698         * lib/unistr/u16-strcmp.c: New file.
93699         * lib/unistr/u32-strcmp.c: New file.
93701         * modules/unistr/u8-strcpy: New file.
93702         * modules/unistr/u16-strcpy: New file.
93703         * modules/unistr/u32-strcpy: New file.
93704         * lib/unistr/u8-strcpy.c: New file.
93705         * lib/unistr/u16-strcpy.c: New file.
93706         * lib/unistr/u32-strcpy.c: New file.
93707         * lib/unistr/u-strcpy.h: New file.
93709         * modules/unistr/u8-strcspn: New file.
93710         * modules/unistr/u16-strcspn: New file.
93711         * modules/unistr/u32-strcspn: New file.
93712         * lib/unistr/u8-strcspn.c: New file.
93713         * lib/unistr/u16-strcspn.c: New file.
93714         * lib/unistr/u32-strcspn.c: New file.
93715         * lib/unistr/u-strcspn.h: New file.
93717         * modules/unistr/u8-strdup: New file.
93718         * modules/unistr/u16-strdup: New file.
93719         * modules/unistr/u32-strdup: New file.
93720         * lib/unistr/u8-strdup.c: New file.
93721         * lib/unistr/u16-strdup.c: New file.
93722         * lib/unistr/u32-strdup.c: New file.
93723         * lib/unistr/u-strdup.h: New file.
93725         * modules/unistr/u8-strlen: New file.
93726         * modules/unistr/u16-strlen: New file.
93727         * modules/unistr/u32-strlen: New file.
93728         * lib/unistr/u8-strlen.c: New file.
93729         * lib/unistr/u16-strlen.c: New file.
93730         * lib/unistr/u32-strlen.c: New file.
93731         * lib/unistr/u-strlen.h: New file.
93733         * modules/unistr/u8-strmblen: New file.
93734         * modules/unistr/u16-strmblen: New file.
93735         * modules/unistr/u32-strmblen: New file.
93736         * lib/unistr/u8-strmblen.c: New file.
93737         * lib/unistr/u16-strmblen.c: New file.
93738         * lib/unistr/u32-strmblen.c: New file.
93740         * modules/unistr/u8-strmbtouc: New file.
93741         * modules/unistr/u16-strmbtouc: New file.
93742         * modules/unistr/u32-strmbtouc: New file.
93743         * lib/unistr/u8-strmbtouc.c: New file.
93744         * lib/unistr/u16-strmbtouc.c: New file.
93745         * lib/unistr/u32-strmbtouc.c: New file.
93747         * modules/unistr/u8-strncat: New file.
93748         * modules/unistr/u16-strncat: New file.
93749         * modules/unistr/u32-strncat: New file.
93750         * lib/unistr/u8-strncat.c: New file.
93751         * lib/unistr/u16-strncat.c: New file.
93752         * lib/unistr/u32-strncat.c: New file.
93753         * lib/unistr/u-strncat.h: New file.
93755         * modules/unistr/u8-strncmp: New file.
93756         * modules/unistr/u16-strncmp: New file.
93757         * modules/unistr/u32-strncmp: New file.
93758         * lib/unistr/u8-strncmp.c: New file.
93759         * lib/unistr/u16-strncmp.c: New file.
93760         * lib/unistr/u32-strncmp.c: New file.
93762         * modules/unistr/u8-strncpy: New file.
93763         * modules/unistr/u16-strncpy: New file.
93764         * modules/unistr/u32-strncpy: New file.
93765         * lib/unistr/u8-strncpy.c: New file.
93766         * lib/unistr/u16-strncpy.c: New file.
93767         * lib/unistr/u32-strncpy.c: New file.
93768         * lib/unistr/u-strncpy.h: New file.
93770         * modules/unistr/u8-strnlen: New file.
93771         * modules/unistr/u16-strnlen: New file.
93772         * modules/unistr/u32-strnlen: New file.
93773         * lib/unistr/u8-strnlen.c: New file.
93774         * lib/unistr/u16-strnlen.c: New file.
93775         * lib/unistr/u32-strnlen.c: New file.
93776         * lib/unistr/u-strnlen.h: New file.
93778         * modules/unistr/u8-strpbrk: New file.
93779         * modules/unistr/u16-strpbrk: New file.
93780         * modules/unistr/u32-strpbrk: New file.
93781         * lib/unistr/u8-strpbrk.c: New file.
93782         * lib/unistr/u16-strpbrk.c: New file.
93783         * lib/unistr/u32-strpbrk.c: New file.
93784         * lib/unistr/u-strpbrk.h: New file.
93786         * modules/unistr/u8-strrchr: New file.
93787         * modules/unistr/u16-strrchr: New file.
93788         * modules/unistr/u32-strrchr: New file.
93789         * lib/unistr/u8-strrchr.c: New file.
93790         * lib/unistr/u16-strrchr.c: New file.
93791         * lib/unistr/u32-strrchr.c: New file.
93793         * modules/unistr/u8-strspn: New file.
93794         * modules/unistr/u16-strspn: New file.
93795         * modules/unistr/u32-strspn: New file.
93796         * lib/unistr/u8-strspn.c: New file.
93797         * lib/unistr/u16-strspn.c: New file.
93798         * lib/unistr/u32-strspn.c: New file.
93799         * lib/unistr/u-strspn.h: New file.
93801         * modules/unistr/u8-strstr: New file.
93802         * modules/unistr/u16-strstr: New file.
93803         * modules/unistr/u32-strstr: New file.
93804         * lib/unistr/u8-strstr.c: New file.
93805         * lib/unistr/u16-strstr.c: New file.
93806         * lib/unistr/u32-strstr.c: New file.
93807         * lib/unistr/u-strstr.h: New file.
93809         * modules/unistr/u8-strtok: New file.
93810         * modules/unistr/u16-strtok: New file.
93811         * modules/unistr/u32-strtok: New file.
93812         * lib/unistr/u8-strtok.c: New file.
93813         * lib/unistr/u16-strtok.c: New file.
93814         * lib/unistr/u32-strtok.c: New file.
93815         * lib/unistr/u-strtok.h: New file.
93817         * modules/unistr/u8-uctomb: New file.
93818         * modules/unistr/u16-uctomb: New file.
93819         * modules/unistr/u32-uctomb: New file.
93820         * lib/unistr/u8-uctomb.c: New file.
93821         * lib/unistr/u16-uctomb.c: New file.
93822         * lib/unistr/u32-uctomb.c: New file.
93824         * MODULES.html.sh (Unicode string functions): Add the new modules.
93826 2007-01-08  Bruno Haible  <bruno@clisp.org>
93828         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
93829         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
93830         subdirectories.
93832 2007-01-08  Karl Berry  <karl@gnu.org>
93834         * doc/error.texi: mention that main() fns must set program_name
93835         when progname is used.
93837 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
93839         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
93840         WCTYPE_H is empty, for the benefit of builds from non-distclean
93841         directories.  Problem reported by Eric Blake in
93842         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00157.html>.
93844 2007-01-08  Bruno Haible  <bruno@clisp.org>
93846         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
93847         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
93848         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
93849         PROVIDE_CANONICALIZE_FILENAME_MODE.
93850         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
93852 2007-01-08  Bruno Haible  <bruno@clisp.org>
93854         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
93855         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
93856         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
93857         * lib/fts.c: Likewise.
93858         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
93860 2006-12-25  Bruno Haible  <bruno@clisp.org>
93862         * modules/utf8-ucs4-safe: New file.
93863         * lib/utf8-ucs4-safe.h: New file.
93864         * lib/unistr/utf8-ucs4-safe.c: New file.
93866         * modules/utf16-ucs4-safe: New file.
93867         * lib/utf16-ucs4-safe.h: New file.
93868         * lib/unistr/utf16-ucs4-safe.c: New file.
93870         * MODULES.html.sh (Unicode string functions): Add the new modules.
93872 2007-01-08  Bruno Haible  <bruno@clisp.org>
93874         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
93875         (Depends-on): Add unitypes.
93876         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
93877         (u8_mbtouc_aux): Move out to separate file.
93878         (u8_mbtouc): Use ucs4_t, uint8_t types.
93879         * lib/unistr/utf8-ucs4.c: New file.
93881         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
93882         (Depends-on): Add unitypes.
93883         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
93884         (u16_mbtouc_aux): Move out to separate file.
93885         (u16_mbtouc): Use ucs4_t, uint16_t types.
93886         * lib/unistr/utf16-ucs4.c: New file.
93888         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
93889         (Depends-on): Add unitypes.
93890         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
93891         (u8_uctomb_aux): Move out to separate file.
93892         (u8_uctomb): Use ucs4_t, uint8_t types.
93893         * lib/unistr/ucs4-utf8.c: New file.
93895         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
93896         (Depends-on): Add unitypes.
93897         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
93898         (u16_uctomb_aux): Move out to separate file.
93899         (u16_uctomb): Use ucs4_t, uint16_t types.
93900         * lib/unistr/ucs4-utf16.c: New file.
93902 2006-12-25  Bruno Haible  <bruno@clisp.org>
93904         * modules/unitypes: New file.
93905         * lib/unitypes.h: New file.
93906         * MODULES.html.sh (func_all_modules): New section "Unicode string
93907         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
93908         this section. Add unitypes.
93910 2007-01-08  Bruno Haible  <bruno@clisp.org>
93912         Avoid variable names that conflict with those from libtool.
93913         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
93914         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
93915         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
93916         library_names_spec to acl_library_names_spec, hardcode_* to
93917         acl_hardcode_*.
93918         Reported by Ralf Wildenhues.
93920 2007-01-08  Bruno Haible  <bruno@clisp.org>
93922         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
93923         definition.
93924         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
93925         definition.
93926         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
93927         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
93928         definition.
93929         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
93930         definition.
93931         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
93932         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
93933         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
93934         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
93935         definition.
93936         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
93937         definition.
93938         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
93939         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
93940         GC_USE_<algorithm>.
93941         * lib/gc-libgcrypt.c: Likewise.
93942         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
93943         * modules/gc-arctwo (configure.ac): Likewise.
93944         * modules/gc-des (configure.ac): Likewise.
93945         * modules/gc-hmac-md5 (configure.ac): Likewise.
93946         * modules/gc-hmac-sha1 (configure.ac): Likewise.
93947         * modules/gc-md2 (configure.ac): Likewise.
93948         * modules/gc-md4 (configure.ac): Likewise.
93949         * modules/gc-md5 (configure.ac): Likewise.
93950         * modules/gc-random (configure.ac): Likewise.
93951         * modules/gc-rijndael (configure.ac): Likewise.
93952         * modules/gc-sha1 (configure.ac): Likewise.
93954 2007-01-08  Bruno Haible  <bruno@clisp.org>
93956         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
93957         macro definition.
93958         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
93959         definition.
93960         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
93961         definition.
93962         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
93963         * modules/fcntl-safer (configure.ac): Likewise.
93964         * modules/fopen-safer (configure.ac): Likewise.
93965         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
93966         GNULIB_FWRITEERROR macro definition.
93968 2007-01-08  Bruno Haible  <bruno@clisp.org>
93970         * m4/gnulib-common.m4: New file.
93971         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
93972         (func_get_filelist): Add m4/gnulib-common.m4.
93974 2007-01-08  Bruno Haible  <bruno@clisp.org>
93976         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
93977         command.
93979 2007-01-08  Jim Meyering  <jim@meyering.net>
93981         Use a more robust test for a "can't happen" condition.
93982         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
93983         narrowed the st_size value.  Presuming the "can't happen" condition
93984         is true, that narrowing could conceivably convert an invalid st_size
93985         value into a valid one.  Instead, use a change based on Matthew
93986         Woehlke's original patch.
93988         Slight readability improvement: use an assert-like macro
93989         in place of literal "abort ()" uses.
93990         * lib/fts.c (fts_assert): Define.
93991         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
93992         Use this macro instead of a bare 'abort'.
93994 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
93996         Don't worry about using IRIX 5.3's wctype.h broken definitions;
93997         simply work around them.
93998         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
93999         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
94000         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
94001         declaring.
94002         Don't bother to define as macros, since the standard doesn't require it.
94003         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
94004         longer worry about IRIX 5.3.
94005         (HAVE_WCTYPE_CTMP_BUG): Remove.
94007 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
94009         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
94010         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
94011         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
94012         Problems reported by Georg Schwarz for IRIX 5.3.
94014         * gnulib-tool (autoconf_minversion): Take the maximum version number
94015         found, not the minimum.  Problem reported by James Youngman.
94017 2007-01-03  Karl Berry  <karl@gnu.org>
94019         * doc/error.texi: new file, explaining interaction with progname.
94020         * doc/gnulib.texi: include it.  Update copyright.
94022 2007-01-03  Simon Josefsson  <simon@josefsson.org>
94024         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
94025         AC_CANONICAL_HOST, to improve autobuild outputs.
94027 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
94028             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
94030         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
94031         sockets, server sockets, and other file descriptors.  Count errors
94032         to compute the return value.  Reorder the code a bit to be easier
94033         to follow.  Don't set event bits that were not requested (except
94034         POLLERR and POLLHUP).
94036 2007-01-01  Bruno Haible  <bruno@clisp.org>
94038         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
94040 2007-01-03  Jim Meyering  <jim@meyering.net>
94042         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
94044 2007-01-02  Bruno Haible  <bruno@clisp.org>
94046         * modules/settime (Include): Require timespec.h.
94047         * modules/nanosleep (Include): Likewise.
94049 2007-01-01  Bruno Haible  <bruno@clisp.org>
94051         * gnulib-tool (func_emit_copyright_notice): Bump year.
94052         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
94054 2007-01-01  Bruno Haible  <bruno@clisp.org>
94056         Improve support for OpenBSD.
94057         * build-aux/config.rpath (libname_spec): Export.
94058         (library_names_spec): New variable. Export.
94059         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
94060         library_names_spec from the config.rpath output. Locate shared library
94061         through the name pattern in library_names_spec.
94063 2007-01-01  Eric Blake  <ebb9@byu.net>
94065         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
94067 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
94069         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
94070         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
94071         assume the C locale, and avoid an "eval" that could cause trouble.
94072         Problem with SORT reported by Bob Proulx.
94074         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
94075         Define.  Trivial patch from Henning Nielsen Lund, originally
94076         sent to bug-grep@gnu.org today.
94078 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
94080         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
94081         struct stat.  Problem reported by Henning Nielsen Lund.
94082         * lib/acl.c: Include acl.h first, to check interface.  Don't
94083         bother to include sys/types.h and sys/stat.h again.
94085 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
94087         Import the following change from libc; problem reported by
94088         Sven Verdoolaege.
94090         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
94092         [BZ #1373]
94093         * lib/argp.h: Remove __NTH for __argp_usage inline function.
94095 2006-12-28  Jim Meyering  <jim@meyering.net>
94097         * build-aux/announce-gen: Do not assume that the package
94098         builds any of tar.gz, tar.bz2, and .xdelta files.
94099         Suggestion from Simon Josefsson.
94101 2006-12-28  Simon Josefsson  <simon@josefsson.org>
94103         * modules/announce-gen: New file.
94105 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
94107         * lib/mbchar.h: Just include <wctype.h>; the wctype module
94108         handles its gotchas now.
94109         * lib/mbswidth.c: Likewise.
94110         * lib/wcwidth.h: Likewise.
94111         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
94112         and iswcntrl; the wctype module does this stuff now.
94113         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
94114         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
94115         * modules/mbchar (Depends-on): Add wctype.
94116         * modules/mbswidth (Depends-on): Likewise.
94117         * modules/wcwidth (Depends-on): Likewise.
94119 2006-12-27  Eric Blake  <ebb9@byu.net>
94121         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
94122         module uses more than what <wctype.h> is required to provide.
94124 2006-12-26  Eric Blake  <ebb9@byu.net>
94126         * gnulib-tool (sed_extract_prog): Avoid space-tab.
94128 2006-12-26  Eric Blake  <ebb9@byu.net>
94130         * modules/absolute-header: New module.
94131         * modules/fcntl (Depends-on): Depend on it.
94132         * modules/inttypes (Depends-on): Likewise.
94133         * modules/stdint (Depends-on): Likewise.
94134         * modules/sys_stat (Depends-on): Likewise.
94135         * modules/wctype (Depends-on): Likewise.
94136         * MODULES.html.sh (Support for building libraries and
94137         executables): Document it.
94139 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
94141         * gnulib-tool (SED): Remove, undoing previous change.
94142         The problem was that it broke coreutils on Solaris, because
94143         "sed --posix" leaked into a makefile.
94144         (sed): New alias, if 'alias' and GNU sed.
94146 2006-12-24  Jim Meyering  <jim@meyering.net>
94148         Work around an fchownat bug in glibc-2.4:
94149         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
94150         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
94151         in spite of the -P option.
94152         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
94153         New macros.
94154         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
94155         * modules/openat (Files): Add lib/fchownat.c.
94156         * lib/openat.c (fchownat): Don't define here.  Move to...
94157         * lib/fchownat.c: ...this new file.
94159 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
94161         Fix bug reported by Bruno Haible in
94162         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00228.html>
94163         where quotearg.c didn't compile on Mac OS X 10.2 because it
94164         lacks <wchar.h> and wint_t.
94165         * lib/wctype_.h (__wctype_wint_t): New type.
94166         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
94167         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
94168         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
94169         Arg is now of type __wctype_wint_t, not wint_t.
94170         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
94171         substitute HAVE_WINT_T.
94172         * modules/wctype (Files): Add m4/wint_t.m4.
94173         (wctype.h): Substitute HAVE_WINT_T.
94175 2006-12-23  Bruno Haible  <bruno@clisp.org>
94177         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
94179 2006-12-23  Bruno Haible  <bruno@clisp.org>
94181         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
94182         S_ISLNK.
94183         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
94184         mingw.
94186 2006-12-22  Bruno Haible  <bruno@clisp.org>
94188         * lib/copy-file.c: Include acl.h.
94189         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
94190         Close the file descriptors only after being done with copy_acl.
94191         * modules/copy-file (Depends-on): Add acl.
94193 2006-12-22  Bruno Haible  <bruno@clisp.org>
94195         * gnulib-tool (SED): New variable.
94196         Use $SED instead of sed everywhere.
94198 2006-12-22  Bruno Haible  <bruno@clisp.org>
94200         * modules/no-c++: New file.
94201         * m4/no-c++.m4: New file.
94202         * MODULES.html.sh (Support for building libraries and executables):
94203         Add no-c++.
94205 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
94207         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
94208         Include <limits.h>, and use its INT_MAX to rewrite the
94209         j loop so that it does not overflow 'int'.  Problem reported by
94210         Ralf Wildenhues in
94211         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00084.html>.
94212         Play it safe by shifting left by 1 rather than multiplying by 2,
94213         as GCC is less likely to optimize this away when the value
94214         is signed (when it assumes overflow leads to undefined behavior).
94215         Also, don't assume time_t uses two's complement.
94217 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
94219         * MODULES.html.sh: New module wctype.
94220         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
94221         * lib/fnmatch.c: Don't bother to include <wchar.h> before
94222         <wctype.h>, since the new wctype module should fix this.
94223         * lib/quotearg.c: Include <wctype.h> unconditionally, since
94224         the wctype module should arrange for it.
94225         * lib/regex_internal.h: Likewise.
94226         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
94227         since the wctype module should handle this now.
94228         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
94229         * modules/fnmatch (Depends-on): Add wctype.
94230         * modules/quotearg (Depends-on): Likewise.
94231         * modules/regex (Depends-on): Likewise.
94233 2006-12-19  Bruno Haible  <bruno@clisp.org>
94235         * lib/strdup.h [C++]: Wrap definitions in extern "C".
94236         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
94238 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94240         * modules/savewd (Depends-on): Fix dependency on fcntl.
94242 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
94244         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
94245         conforms to C99, rather than relying on the user's environment
94246         setting of STDINT_H.
94248 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
94249         and Eric Blake  <ebb9@byu.net>
94251         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
94252         This is more consistent with the other defines here.
94253         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
94254         Port to z/OS.  Problem reported by Paul Gilmartin.
94255         Change local vars to use gl_ prefix rather than ac_.
94256         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
94257         with other defines.
94258         * modules/double-slash-root: New module.
94259         * modules/dirname (Files): Remove m4/double-slash-root.m4.
94260         (Depends-on): Add double-slash-root.
94261         * MODULES.html.sh (File system functions): Mention new module.
94263 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
94265         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
94266         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
94267         This is for the benefit of gzip, which doesn't do i18n.
94269 2006-12-12  Jim Meyering  <jim@meyering.net>
94271         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
94272         Reported by Andreas Schwab <schwab@suse.de>.
94274 2006-12-12  Bruno Haible  <bruno@clisp.org>
94276         Merge these changes.
94277         2006-09-05  Bruno Haible  <bruno@clisp.org>
94278         * lib/iconvme.c (iconv_string): No need to save and restore errno when
94279         iconv_alloc succeeded.
94280         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
94281         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
94282         test for " && dest " at the end - dest is always != NULL there. Call
94283         iconv with 4xNULL arguments initially, to reset the state. Call iconv
94284         with 2xNULL arguments, also to flush the state storage. Handle the
94285         IRIX iconv behaviour. Realloc the final result, to throw away unused
94286         memory.
94288 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
94290         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
94291         and fchmodat unconditionally, since glibc 2.4 has them.
94292         Problem reported by Arkadiusz Miskiewicz.
94294 2006-12-10  Bruno Haible  <bruno@clisp.org>
94296         * gnulib-tool (func_import): Show the include files only for those
94297         modules that are copied and specified.
94298         Reported by Karl Berry.
94300 2006-12-08  Jim Meyering  <jim@meyering.net>
94302         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
94303         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
94305         * build-aux/announce-gen: Add two new options, both optional:
94306         --bootstrap-tools=TOOL_LIST
94307               a comma-separated list of tools, e.g.,
94308               autoconf,automake,bison,gnulib
94309         --gnulib-snapshot-date=DATE
94310               if gnulib is in the bootstrap tool list,
94311               then report this as the snapshot date.
94312               If not specified, use the current date/time.
94313               If you specify a date here, be sure it's UTC.
94315 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94317         * tests/test-argp-2.sh: Fix test to match actual output.
94318         (func_compare): Fix sed script to be portable.
94320 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
94322         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
94323         workaround for this case.  It is not autoconfigured now; offhand
94324         it's hard to see how to autoconfigure it.
94326 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
94328         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
94329         a directory that is about to be chowned.  Such a directory's
94330         initial file permissions should permit the owner only and this
94331         should not be changed until after the chown, since the group and
94332         other bits would be incorrect if they granted permission before
94333         the chown.
94335         Fix porting problem for iswctype reported by Georg Schwarz in:
94336         http://lists.gnu.org/r/bug-coreutils/2006-12/msg00017.html
94337         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
94338         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
94339         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
94340         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
94342 2006-12-03  Jim Meyering  <jim@meyering.net>
94344         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
94345         p->fts_statp may not yet be defined.
94346         (fts_read): Instead, set it in the caller, once p->fts_statp is
94347         sure to be defined, and corresponds to a top-level directory.
94348         This bug made du -x fail.  Here's the coreutils test case:
94349         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
94350         Reported by Mike Frysinger.
94352 2006-12-01  Jim Meyering  <jim@meyering.net>
94354         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
94355         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
94356         Reported by Simon Josefsson.
94358 2006-11-30  Jim Meyering  <jim@meyering.net>
94360         * m4/warning.m4: Use the all-permissive copyright notice
94361         recommended by RMS (rather than LGPL).
94362         * m4/vararrays.m4: Likewise.
94363         * m4/flexmember.m4: Likewise.
94365 2006-11-29  Bruno Haible  <bruno@clisp.org>
94367         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
94368         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
94369         using +=.
94370         Reported by Simon Josefsson <simon@josefsson.org>.
94372 2006-11-28  James Youngman  <jay@gnu.org>
94374         * README: Advise users that they might find the bug-gnulib@gnu.org
94375         and autotools-announce@gnu.org mailing lists useful.
94377 2006-11-28  Bruno Haible  <bruno@clisp.org>
94379         * m4/ptrdiff_max.m4: Remove file.
94381 2006-11-21  Bruno Haible  <bruno@clisp.org>
94383         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
94384         _AC_COMPUTE_INT.
94385         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
94386         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
94387         _AC_COMPUTE_INT.
94388         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
94389         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
94390         _AC_COMPUTE_INT.
94391         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
94393 2006-11-28  Jim Meyering  <jim@meyering.net>
94395         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
94396         warning from "gcc -Wshadow" about shadowing the builtin.
94398 2006-11-27  Bruno Haible  <bruno@clisp.org>
94400         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
94401         _AC_COMPUTE_INT.
94402         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
94404 2006-11-27  Bruno Haible  <bruno@clisp.org>
94405             Paul Eggert  <eggert@cs.ucla.edu>
94407         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
94409 2006-11-26  Bruno Haible  <bruno@clisp.org>
94411         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
94412         noinst_LTLIBRARIES.
94414 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
94415             Bruno Haible  <bruno@clisp.org>
94417         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
94418         if compiling with "gcc -ansi".
94420 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
94422         Fix some incompatibilities with gcc -ansi -pedantic.
94423         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
94424         if compiling pedantically with GCC, unless it's C99 or later.
94425         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
94426         it mishandles gcc -ansi -pedantic as well.
94427         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
94428         if gcc -pedantic.
94429         * lib/regexec.c (check_node_accept_bytes): Don't use auto
94430         initializers for struct if -pedantic, unless it's C99 or later.
94432 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
94434         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
94435         Don't close an fd more than once. Identical atimes indicate
94436         success, not failure.
94438 2006-11-22  Robinson Mittmann  <bob@hoplon.com>  (tiny change)
94440         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
94442 2006-11-23  Jim Meyering  <jim@meyering.net>
94444         * build-aux/announce-gen: New file.  From coreutils.
94446 2006-11-22  Jim Meyering  <jim@meyering.net>
94448         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
94449         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
94450         (fts_read): Use a temporary to narrow the overused st_size member
94451         before using it in a switch statement.  Reported by Matthew Woehlke.
94453         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
94454         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
94456 2006-11-20  Bruno Haible  <bruno@clisp.org>
94458         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
94459         changequote instead of pairs of brackets.
94460         Reported by Andreas Schwab <schwab@suse.de>.
94462 2006-11-21  Jim Meyering  <jim@meyering.net>
94464         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
94465         so as to remain compatible with older compilers.
94466         Patch from Michael Deutschmann.
94468 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
94470         * MODULES.html.sh (File system functions): Add openat.
94472         * lib/openat.h (rpl_fstatat): New macro, if
94473         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
94474         (fstatat): Define to rpl_fstatat under the same conditions,
94475         unless COMPILING_FSTATAT.
94476         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
94477         seems to have the bug.
94478         * lib/fstatat.c: New file.
94479         * modules/openat (Files): Add it.
94481 2006-11-20  Bruno Haible  <bruno@clisp.org>
94483         * Makefile: New file.
94485 2006-11-20  Jim Meyering  <jim@meyering.net>
94487         The beginnings of syntax-related checks for gnulib.
94488         * lib/Makefile: New file.
94489         * lib/t-idcache: New script.  Ensure that the two halves of
94490         idcache.c stay in sync.
94492         * lib/idcache.c: Adjust comments in user- and group- portions to
94493         be more accurate, and to be consistent with one another.
94495 2006-11-20  Jim Meyering  <jim@meyering.net>
94497         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
94498         continue using the flexible array member (thus, this module performs
94499         half as many malloc calls), with the addition that...
94500         (getgroup, getuser): Consistently record a non-match via an empty
94501         "name" string, and map an empty string match to a NULL return value.
94502         * modules/idcache (Depends-on): Re-add flexmember.
94504         * lib/idcache.c (getuser): Remove all uses of the register keyword.
94505         (getuidbyname, getgroup, getgidbyname): Likewise.
94507         Use cleaner syntax: NULL rather than 0.
94508         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
94510 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
94512         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
94513         It mishandled the case where the group was missing.
94514         Problem reported by Greg Schafer.
94515         * modules/idcache: Likewise.
94517 2006-11-18  Jim Meyering  <jim@meyering.net>
94519         * check-module (%exempt_header): Add exception for some
94520         conditionally-included headers.
94522         * modules/i-ring (Depends-on): Add verify.
94523         (License): Change to LGPL.
94525 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
94527         * modules/getaddrinfo (Depends-on): Remove inttostr; add snprintf.
94528         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
94529         and inttostr.h.  Use snprintf rather than uinttostr, so that
94530         LGPLed code doesn't depend on GPLed.
94532 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
94534         * modules/inline (License): Change from GPL to LGPL.
94536 2006-11-17  Jim Meyering  <jim@meyering.net>
94538         * modules/d-type (License): Switch to LGPL.
94540 2006-11-15  Bruno Haible  <bruno@clisp.org>
94542         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
94544 2006-11-15  Eric Blake  <ebb9@byu.net>
94546         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
94547         the module dependency.
94549 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
94550             Bruno Haible  <bruno@clisp.org>
94552         * gnulib-tool (func_create_testdir): Add license consistency check.
94554 2006-11-15  Eric Blake  <ebb9@byu.net>
94556         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
94557         random "(cached)" in configure output.
94559 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94561         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
94562         test for conforming inttypes.h is both announced and cached.
94564         * MODULES.html.sh (seen_modules, seen_files): New variables.
94565         (func_module): Rewrite to use a few less gnulib-tool and sed
94566         invocations.  Avoid a couple of quadratic algorithms for ...
94567         (missed_modules, missed_files): ... these, with ...
94568         (func_append, func_tmpdir): ... these new functions, from
94569         gnulib-tool.  Analogously, install traps for cleanup.
94571         * tests/test-gc.c (main): Remove unused variables.
94572         * tests/test-read-file.c: Include stdlib.h, for 'free'.
94574 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
94576         * modules/inttostr (License): Change to LGPL.
94578 2006-11-14  Eric Blake  <ebb9@byu.net>
94580         * modules/tempname (License): Change to LGPL.
94582 2006-11-14  Eric Blake  <ebb9@byu.net>
94584         * doc/functions.texi (Function Portability): *printf functions on
94585         Cygwin now understand all POSIX size specifiers.
94587 2006-11-14  Bruno Haible  <bruno@clisp.org>
94589         * modules/c-ctype (License): Change to LGPL.
94591 2006-11-12  Bruno Haible  <bruno@clisp.org>
94593         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
94594         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
94595         for GNOME libraries, for which the include files are installed in
94596         subdirectories of $prefix/include.
94598 2006-11-12  Bruno Haible  <bruno@clisp.org>
94600         * m4/lib-link.m4: Require at least autoconf-2.54.
94601         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
94602         name to underscores for the --with option.
94604 2006-11-13  Bruno Haible  <bruno@clisp.org>
94606         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
94607         the tests directory.
94608         Reported by Ralf Wildenhues.
94610 2006-11-13  Bruno Haible  <bruno@clisp.org>
94612         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
94613         (func_emit_initmacro_end): Undo the override here.
94614         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
94615         Works around the famous automake error in coreutils.
94617 2006-11-13  Eric Blake  <ebb9@byu.net>
94619         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
94620         element, not its node.
94622 2006-11-12  Bruno Haible  <bruno@clisp.org>
94624         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
94625         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
94627 2006-11-12  Bruno Haible  <bruno@clisp.org>
94629         * gnulib-tool: New option --local-symlink.
94630         (func_usage): Document it.
94631         (lsymbolic): New variable.
94632         (func_import, func_create_testdir): If --symlink was not specified,
94633         test whether --local-symlink was specified and the file comes from
94634         the local_gnulib_dir.
94636 2006-11-12  Bruno Haible  <bruno@clisp.org>
94638         * gnulib-tool (func_ln): New function.
94639         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
94641 2006-11-12  Bruno Haible  <bruno@clisp.org>
94643         Finish support for source files in subdirectories.
94644         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
94645         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
94646         AUTOMAKE_OPTIONS.
94647         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
94649 2006-11-12  Bruno Haible  <bruno@clisp.org>
94651         * gnulib-tool (func_get_automake_snippet): Synthesize also an
94652         EXTRA_lib_SOURCES augmentation.
94653         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
94655 2006-11-12  Jim Meyering  <jim@meyering.net>
94657         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
94658         file descriptors.  This also averts a failure on systems with
94659         native openat support when a traversed directory lacks "x" access.
94660         * lib/fts_.h: Include "i-ring.h"
94661         (struct FTS) [fts_fd_ring]: New member.
94662         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
94663         (FCHDIR): Add parentheses.
94664         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
94665         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
94666         When descending, rather than simply closing the previous
94667         fts_cwd_fd value, push that file descriptor onto the ring.
94668         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
94669         (fts_open): Initialize the new fd_ring member.
94670         (fts_close): Clear the ring.
94671         (fts_safe_changedir): When possible, use our new fd_ring to skip
94672         the diropen and fstat and dev/ino comparison that would normally
94673         accompany a virtual `chdir ("..")'.
94675         * modules/fts (Depends-on): Add i-ring.
94676         * modules/i-ring: New module.
94677         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
94678         * m4/i-ring.m4: New file.
94680 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94682         * gnulib-tool (func_create_testdir): Fix replacement of
94683         `build-aux' in configure.ac.  Run autotools in gltests
94684         subdirectory.
94685         (func_create_testdir, func_create_megatestdir, test): There is
94686         no need for '--force' in most autotool invocations in a new
94687         tree.  Actually fail the whole test if any of the tools, or the
94688         configure or make stages fail.
94690         Sync from Automake.
94691         * build-aux/gnupload: Revert last change.  Add pointer to upload
94692         instructions of the GNU Maintenance Instructions.
94693         Suggestion by Karl Berry.
94695 2006-11-10  Jim Meyering  <jim@meyering.net>
94697         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
94699 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
94701         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
94702         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
94703         (bind_textdomain_codeset) [! ENABLE_NLS]:
94704         Evaluate all the arguments.  That way, callers get compatible behavior
94705         if the arguments have side effects.  Also, it avoids some GCC
94706         diagnostics in some cases; Joel E. Denny reported problems when Bison
94707         was configured with --enable-gcc-warnigs.
94709 2006-11-10  Jim Meyering  <jim@meyering.net>
94711         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
94712         relevant options in CFLAGS (like -O, -fno-inline) are taken into
94713         account.
94715 2006-11-10  Jim Meyering  <jim@meyering.net>
94717         * modules/inline: New file/module.
94718         * modules/xalloc (Files): Remove m4/inline.m4.
94719         (Depends-on): Add inline, instead.
94720         * modules/oset: Likewise.
94721         * modules/list: Likewise.
94723 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
94725         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
94726         Problem reported by Matthew Woehlke.
94728 2006-11-09  Bruno Haible  <bruno@clisp.org>
94730         * lib/tempname.c (gen_tempname): Remove variant that invokes
94731         __gen_tempname.
94732         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
94733         __gen_tempname.
94735 2006-11-08  Bruno Haible  <bruno@clisp.org>
94737         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
94738         to 'yes' instead of 'cross-compiling'.
94740 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
94742         * lib/quotearg.h (quotearg_free): New decl.
94743         * lib/quotearg.c (quotearg_free): New function.
94744         (slot0, nslots, slotvec0, slotvec):
94745         Now file-scope so that quotearg_free can get at them.
94747 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94749         Sync from Automake.
94750         * build-aux/gnupload: Add missing 'gnu' to example URL.
94751         Report by Karl Berry.
94753 2006-11-08  Bruno Haible  <bruno@clisp.org>
94755         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
94756         Suggested by Paul Eggert.
94758 2006-11-08  Jim Meyering  <jim@meyering.net>
94760         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
94761         It's already included if !_LIBC.
94762         (fts_safe_changedir): Add a comment.
94764 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
94766         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
94767         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
94768         Matthew Woehlke.
94770         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
94771         definitions up, to avoid colliding with change below.
94772         (static_inline) [HAVE_INLINE]: New macro.
94773         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
94774         Provide extern decls when !HAVE_INLINE.  Do not define unless
94775         static_inline is defined, either by us or by xmalloc.c.  Use
94776         static_inline rather than static inline.
94777         (XCALLOC): Optimize sizeof(T) = 1 case.
94778         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
94780 2006-11-07  Bruno Haible  <bruno@clisp.org>
94782         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
94783         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
94784         AC_C_INLINE.
94785         * modules/xalloc (Files): Add m4/inline.m4.
94787 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94789         * README: Fix typo.
94790         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
94791         (Miscellanous Notes): ...from this.
94793 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
94795         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
94796         Mention that offsetof should be used instead of sizeof.
94797         From Bruno Haible.
94799 2006-11-07  Bruno Haible  <bruno@clisp.org>
94801         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
94803 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
94805         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
94806         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
94807         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
94808         (gl_tree_add_before, gl_tree_add_after):
94809         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
94810         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
94811         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
94812         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
94813         (gl_linked_add_after, gl_linked_add_at): Likewise.
94814         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
94815         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
94816         (gl_tree_add_before, gl_tree_add_after): Likewise.
94817         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
94818         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
94819         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
94821 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94823         * lib/gl_oset.h: Use C comment style, not C++ comment style.
94825 2006-11-06  Bruno Haible  <bruno@clisp.org>
94827         * m4/inline.m4: New file.
94828         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
94829         * modules/list (Files): Add m4/inline.m4.
94830         * modules/oset (Files): Likewise.
94832 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
94834         * lib/idcache.c: Include <stddef.h>, for offsetof.
94835         (struct userid.name): Change from char * to a flexible array member.
94836         All uses changed.
94837         * modules/idcache (Depends-on): Add flexmember.
94839         * MODULES.html.sh (Core language properties): New module flexmember.
94840         * modules/flexmember, m4/flexmember.m4: New files.
94842         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
94843         inline functions that are identical with the old xnmalloc_inline,
94844         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
94845         that we can avoid some unnecessary integer multiplications and
94846         divisions in the common case where the element size is known at
94847         compile time.
94848         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
94849         needed.
94850         (xnboundedmalloc): Remove.
94851         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
94852         arguments, for consistency with rest of this header.
94853         (xcharalloc): Rewrite using XNMALLOC.
94854         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
94855         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
94856         versions have been moved to lib/xalloc.h and renamed to be the
94857         non-*_inline versions.
94858         (xmalloc, xrealloc): Implement without reference to the xnmalloc
94859         and xnrealloc functions, since those functions are now inline and
94860         now call us.
94861         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
94862         renaming described above.
94863         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
94864         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
94865         captures the dependency in AC_C_INLINE.
94867         New module canonicalize-lgpl, proposed by Charles Wilson in
94868         <http://lists.gnu.org/r/bug-gnulib/2006-11/msg00020.html>
94869         with a few small changes afterwards.
94870         * MODULES.html.sh (File system functions): New module
94871         canonicalize-lgpl.
94872         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
94873         and canonicalize_file_name.
94874         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
94875         * modules/canonicalize-lgpl: New files.
94877 2006-11-05  Bruno Haible  <bruno@clisp.org>
94879         * gnulib-tool (func_import, func_create_testdir): Create directories
94880         also for files in subdirectories of lib/.
94882 2006-11-05  Bruno Haible  <bruno@clisp.org>
94884         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
94885         ANSI C compliant.
94887 2006-11-03  Bruno Haible  <bruno@clisp.org>
94889         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
94890         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
94891         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
94892         (xnboundedmalloc): New inline function.
94893         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
94894         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
94895         xmalloc.
94896         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
94897         xmalloc.
94898         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
94899         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
94900         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
94901         xmalloc.
94902         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
94903         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
94904         xmalloc.
94905         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
94906         gl_tree_add_after): Use XMALLOC instead of xmalloc.
94907         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
94908         xmalloc.
94909         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
94910         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
94911         gl_tree_add_after): Use XMALLOC instead of xmalloc.
94912         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
94913         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
94914         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
94915         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
94917 2006-11-03  Bruno Haible  <bruno@clisp.org>
94919         * lib/c-ctype.h [C++]: Define functions without name mangling.
94920         * lib/fwriteerror.h [C++]: Likewise.
94921         * lib/gcd.h [C++]: Likewise.
94922         * lib/linebreak.h [C++]: Likewise.
94924 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
94926         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
94927         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
94928         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
94929         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
94930         Check for functions and headers just once.
94931         Check for declaration of canonicalize_file_name.
94932         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
94934 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
94936         * gnulib-tool (func_import): Fix typo in actioncmd.
94938 2006-11-02  Bruno Haible  <bruno@clisp.org>
94940         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
94941         newline sequence in the Makefile.am snippet as a space, like "make"
94942         does.
94943         Reported by Roger Persson <perrog@gmail.com>.
94945 2006-11-01  Bruno Haible  <bruno@clisp.org>
94947         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
94948         already declared in <string.h>.
94949         * lib/strcase.h (strncasecmp): Don't declare it if yes.
94951 2006-11-01  Bruno Haible  <bruno@clisp.org>
94953         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
94954         * lib/strcase.h: Include <string.h>.
94955         (strcasecmp): Define to rpl_strcasecmp here.
94957 2006-11-01  Bruno Haible  <bruno@clisp.org>
94959         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
94961 2006-11-01  Eric Blake  <ebb9@byu.net>
94963         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
94965         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
94967 2006-10-29  Bruno Haible  <bruno@clisp.org>
94969         Make it compile in C++ mode.
94970         * lib/full-write.c (full_rw): Add a cast.
94972 2006-11-01  Bruno Haible  <bruno@clisp.org>
94974         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
94975         be POSIX compliant.
94976         Reported by Roger Persson <perrog@gmail.com>.
94978 2006-11-01  Eric Blake  <ebb9@byu.net>
94980         * lib/getopt_.h: Fix comments.
94982 2006-10-31  Eric Blake  <ebb9@byu.net>
94984         * modules/tmpdir (Depends-on): Add sys_stat.
94985         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
94986         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
94987         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
94988         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
94989         tempname.
94991 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
94993         Avoid some C++ diagnostics reported by Bruno Haible.
94994         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
94995         xmalloc.
94996         (quotearg_alloc): Use xcharalloc rather than xmalloc.
94997         (struct slotvec): Move to top level.
94998         (quotearg_n_options): Rewrite to avoid xmalloc.
94999         * lib/xalloc.h (xcharalloc): New function.
95000         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
95001         [defined __cplusplus]: Add function template that provides result
95002         type propagation.  This part of the change is from Bruno Haible.
95004 2006-10-29  Bruno Haible  <bruno@clisp.org>
95006         Make it compile in C++ mode.
95007         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
95008         * lib/strnlen1.c (strnlen1): Cast memchr result.
95009         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
95010         * lib/clean-temp.c (string_equals, string_hash): Add casts.
95011         (create_temp_dir): Rename local variable 'template'.
95012         (compile_csharp_using_sscli): Add cast.
95013         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
95014         * lib/findprog.c (find_in_path): Likewise.
95015         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
95016         * lib/wait-process.c (register_slave_subprocess): Likewise.
95018 2006-10-22  Bruno Haible  <bruno@clisp.org>
95020         * modules/tsearch: New file.
95021         * lib/tsearch.h: New file.
95022         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
95023         * m4/tsearch.m4: New file.
95024         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
95026 2006-10-29  Eric Blake  <ebb9@byu.net>
95028         * lib/arcfour.c: Assume config.h.
95029         * lib/arctwo.c: Likewise.
95030         * lib/base64.c: Likewise.
95031         * lib/check-version.c: Likewise.
95032         * lib/crc.c: Likewise.
95033         * lib/des.c: Likewise.
95034         * lib/gc-gnulib.c: Likewise.
95035         * lib/gc-libgcrypt.c: Likewise.
95036         * lib/gc-pbkdf2-sha1.c: Likewise.
95037         * lib/getaddrinfo.c: Likewise.
95038         * lib/getdelim.c: Likewise.
95039         * lib/getline.c: Likewise.
95040         * lib/hmac-md5.c: Likewise.
95041         * lib/hmac-sha1.c: Likewise.
95042         * lib/iconvme.c: Likewise.
95043         * lib/md2.c: Likewise.
95044         * lib/md4.c: Likewise.
95045         * lib/memxor.c: Likewise.
95046         * lib/read-file.c: Likewise.
95047         * lib/readline.c: Likewise.
95048         * lib/rijndael-alg-fst.c: Likewise.
95049         * lib/rijndael-api-fst.c: Likewise.
95050         * lib/xgetdomainname.c: Likewise.
95052 2006-10-28  Eric Blake  <ebb9@byu.net>
95054         * lib/xstrndup.c: Assume config.h.
95056 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
95058         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
95059         stat-macros.h is now for our own macros, whereas stat_h is for
95060         macros in the <sys/stat.h> name space.
95061         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
95062         (STAT_MACROS_H): Remove.
95063         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
95064         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
95065         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
95066         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
95067         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
95068         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
95069         Move these macros to ...
95070         * lib/stat_.h: here.  Don't include stat-macros.h.
95071         * lib/canonicalize.c: Don't include stat-macros.h.
95072         * lib/chown.c: Likewise.
95073         * lib/euidaccess.c: Likewise.
95074         * lib/file-type.c: Likewise.
95075         * lib/filemode.c: Likewise.
95076         * lib/glob.c: Likewise.
95077         * lib/isapipe.c: Likewise.
95078         * lib/lchown.c: Likewise.
95079         * lib/lstat.c: Likewise.
95080         * lib/mkdir-p.c: Likewise.
95081         * lib/rmdir.c: Likewise.
95082         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
95083         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
95084         unless mkdir isn't declared, to speed up 'configure'.
95085         Always create sys/stat.h, since it's unlikely any real sys/stat.h
95086         would define all the S_* symbols.
95087         * modules/canonicalize (Depends-on):
95088         Depend on sys_stat, not stat-macros.
95089         * modules/chown: Likewise.
95090         * modules/euidaccess: Likewise.
95091         * modules/filemode: Likewise.
95092         * modules/file-type: Likewise.
95093         * modules/glob: Likewise.
95094         * modules/isapipe: Likewise.
95095         * modules/lchown: Likewise.
95096         * modules/lstat: Likewise.
95097         * modules/mkancesdirs: Likewise.
95098         * modules/rmdir: Likewise.
95099         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
95100         * modules/modechange: Likewise.
95101         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
95102         (configure.ac): Remove gl_STAT_MACROS.
95103         * modules/sys_stat (Depends-on): Remove stat-macros.
95105 2006-10-27  Bruno Haible  <bruno@clisp.org>
95107         * m4/signed.m4: Remove file.
95108         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
95109         invocation.
95110         * modules/vasnprintf (Files): Remove m4/signed.m4.
95112 2006-10-27  Bruno Haible  <bruno@clisp.org>
95114         Update to GNU gettext 0.16.
95115         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
95116         m4/inttypes-h.m4, m4/signed.m4.
95117         * m4/gettext.m4: Update to GNU gettext 0.16.
95118         * m4/intl.m4: New file, from GNU gettext.
95119         * m4/intldir.m4: New file, from GNU gettext.
95120         * config/srclist.txt: Update
95122 2006-10-27  Eric Blake  <ebb9@byu.net>
95124         * MODULES.html.sh: Document tempname.
95125         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
95126         dependencies.
95127         (Files): Move lib/tempname.c...
95128         * modules/tempname: ...to this new module.
95129         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
95130         (gl_PREREQ_TEMPNAME): Move...
95131         * m4/tempname.m4: ...to this new file.
95132         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
95133         * modules/sys_stat (Depends-on): Add stat-macros.
95134         * lib/stat_.h (includes): Pick up stat macros.
95135         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
95136         if stat macros are broken.
95137         * lib/tempname.c (includes): No need to include "stat-macros.h".
95138         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
95139         (direxists, __path_search) [!_LIBC]: Don't compile these in
95140         gnulib; the tmpdir module covers that.
95141         * lib/tempname.h: New file.
95143 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
95145         * COPYING: Explain how gnulib-tool converts licence headers.
95146         Almost all wording by Eric Blake.
95148 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
95150         * lib/mbchar.h (is_basic_table): Make read-only.
95151         * lib/mbchar.c (is_basic_table): Likewise.
95152         Reported by John Darrington.
95154 2006-10-25  Bruno Haible  <bruno@clisp.org>
95156         * lib/progname.h (set_program_name): Undefine before defining.
95158 2006-10-25  Bruno Haible  <bruno@clisp.org>
95160         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
95161         false for non-gcc C++ compilers.
95162         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
95164 2006-10-24  Bruno Haible  <bruno@clisp.org>
95166         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
95167         iconv implementations like Irix iconv.
95169 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
95171         * modules/vararrays: New file.
95172         * m4/vararrays.m4: New file, taken from diffutils.
95173         * MODULES.html.sh: New module vararrays.
95175 2006-10-24  Karl Berry  <karl@gnu.org>
95177         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
95178         Don't call GNU Unix.
95180 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95182         * users.txt: Add Libtool.
95184         Sync from Libtool:
95186         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
95188         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
95189         to gnulib's policy of including config.h unconditionally.
95191 2006-10-24  Bruno Haible  <bruno@clisp.org>
95193         * modules/wcwidth (Files): Add m4/wint_t.m4.
95194         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
95195         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
95197 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
95199         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
95200         to pacify GCC with some -W flags enabled.  Problem reported by
95201         Bruno Haible.
95203 2006-10-24  Jim Meyering  <jim@meyering.net>
95205         * MODULES.html.sh: Remove uinttostr.  It's not a module.
95206         Reported by Karl Berry.
95208 2006-10-23  Bruno Haible  <bruno@clisp.org>
95210         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
95212 2006-10-24  Bruno Haible  <bruno@clisp.org>
95214         * lib/gl_list.h: Use C comment style, not C++ comment style.
95216 2006-10-23  Eric Blake  <ebb9@byu.net>
95218         * lib/getaddrinfo.c (includes): Add missing include.
95220 2006-10-23  Bruno Haible  <bruno@clisp.org>
95221             Paul Eggert  <eggert@cs.ucla.edu>
95223         Ability to rename obstack_free.
95224         * lib/obstack.h (__obstack_free): New macro. Declare instead of
95225         obstack_free.
95226         (obstack_free): Invoke the __obstack_free macro.
95227         * lib/obstack.c (obstack_free): Use __obstack_free macro.
95229 2006-10-23  Bruno Haible  <bruno@clisp.org>
95230             Paul Eggert  <eggert@cs.ucla.edu>
95232         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
95233         __argc, __argv from the declaration. (They are defined as macros on
95234         mingw.)
95236 2006-10-22  Bruno Haible  <bruno@clisp.org>
95238         * doc/gnulib-intro.texi: New file.
95239         * doc/gnulib.texi: Include it.
95241 2006-10-21  Bruno Haible  <bruno@clisp.org>
95243         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
95244         "Introduction", "Miscellanous Notes", "Particular Modules".
95246 2006-10-21  Bruno Haible  <bruno@clisp.org>
95248         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
95249         Change mostlyclean-local rule to avoid sh syntax error from bash
95250         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
95252 2006-10-23  Jim Meyering  <jim@meyering.net>
95254         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
95255         in place of snprintf.
95257         * modules/inttostr (Files): Add lib/uinttostr.c.
95258         * lib/uinttostr.c (inttostr): New file/function.
95259         * lib/inttostr.h (uinttostr): Declare.
95260         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
95261         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
95262         Add uinttostr.
95263         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
95265 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
95267         * lib/canonicalize.c (ELOOP): Define if not already defined.
95268         Problem reported by Bruno Haible in
95269         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00282.html>.
95271 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
95273         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
95274         Problem reported by Perry Smith and Ville Laurikari.
95276         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
95277         uses.
95279 2006-10-19  Bruno Haible  <bruno@clisp.org>
95281         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
95282         for mingw.
95284 2006-10-19  Bruno Haible  <bruno@clisp.org>
95286         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
95287         Needed for mingw.
95289 2006-10-19  Bruno Haible  <bruno@clisp.org>
95291         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
95293 2006-10-19  Bruno Haible  <bruno@clisp.org>
95295         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
95296         it.
95298 2006-10-19  Bruno Haible  <bruno@clisp.org>
95300         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
95301         invocation.
95303 2006-10-19  Bruno Haible  <bruno@clisp.org>
95305         * gnulib-tool (func_create_testdir): Don't include ftruncate and
95306         mountlist by default.
95308 2006-10-16  Bruno Haible  <bruno@clisp.org>
95310         * lib/c-strstr.c: Include c-strstr.h.
95312 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
95314         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
95315         in a slash.
95317 2006-10-18  Bruno Haible  <bruno@clisp.org>
95319         * lib/lock.h [C++]: Wrap definitions in extern "C".
95321 2006-10-18  Bruno Haible  <bruno@clisp.org>
95323         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
95324         gl_LIBOBJS list.
95326 2006-10-18  Bruno Haible  <bruno@clisp.org>
95328         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
95330 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
95332         * lib/xstrtol.h: Include gettext.h.
95333         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
95334         Problem reported by Eric Blake.
95335         * modules/xstrtol (Depends-on): Add gettext-h.
95337 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
95339         * lib/strftime.c (advance): New macro.
95340         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
95341         incomplete type, so you can't add 0 to it.  Problem and patch
95342         reported by Eelco Dolstra for dietlibc.
95344 2006-10-18  Jim Meyering  <jim@meyering.net>
95346         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
95347         type for a local, and rename it: s/up/user_proc/.
95349 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
95351         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
95352         READ_UTMP_USER_PROCESS.
95353         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
95355 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
95357         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
95358         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
95360 2006-10-17  Eric Blake  <ebb9@byu.net>
95362         * lib/sigprocmask.c (sigprocmask): Fix typo.
95364         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
95366         * modules/clean-temp (Makefile.am): Don't add to make output...
95367         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
95368         config.h.
95370 2006-10-17  Bruno Haible  <bruno@clisp.org>
95372         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
95373         differently if DEFAULT_TEXT_DOMAIN is set.
95375 2006-10-16  Bruno Haible  <bruno@clisp.org>
95377         * lib/clean-temp.c: Include fwriteerror.h.
95379 2006-10-16  Bruno Haible  <bruno@clisp.org>
95381         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
95383 2006-10-16  Bruno Haible  <bruno@clisp.org>
95385         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
95386         * lib/sigprocmask.h: Include <sys/types.h>.
95387         (sigset_t): Use the system's definition if present.
95389 2006-10-17  Eric Blake  <ebb9@byu.net>
95391         * lib/xvasprintf.c (includes): Assume config.h.
95392         * lib/xasprintf.c (includes): Likewise.
95394 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
95396         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
95397         at least as wide as intmax_t.
95399 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
95401         (Imported from Automake.)
95402         * build-aux/gnupload: Update to version 1.1 of directive file.
95404 2006-10-16  Eric Blake  <ebb9@byu.net>
95406         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
95407         match Automake 1.10a.
95409 2006-10-14  Bruno Haible  <bruno@clisp.org>
95411         * modules/sigprocmask: New file.
95412         * lib/sigprocmask.h: New file.
95413         * lib/sigprocmask.c: New file.
95414         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
95415         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
95416         request sigprocmask.o.
95417         (gl_PREREQ_SIGPROCMASK): New macro.
95418         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
95419         (Depends-on): Add sigprocmask.
95420         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
95421         gt_SIGNALBLOCKING. Test for 'raise' only once.
95422         * lib/fatal-signal.c: Include sigprocmask.h.
95423         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
95424         unblock_fatal_signals): Define always.
95425         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
95426         sigprocmask.
95428 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
95430         Sync from Automake.
95431         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
95432         which incorrectly sets the mode of an existing destination
95433         directory.  In some cases the unpatched install-sh could do the
95434         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
95435         system.  We hope this is rare in practice, but it's clearly worth
95436         fixing.  Problem reported by Alex Unleashed in
95437         <http://lists.gnu.org/r/bug-autoconf/2006-10/msg00012.html>.
95438         Also, don't bother to check for -m bugs unless we're using -m;
95439         suggested by Stepan Kasal.
95441 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95443         Sync from Automake.
95444         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
95445         `-c' flag, so they appear at the same position as in %FASTDEP%
95446         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
95447         which ignores unknown options only after the first non-option.
95448         Bug report against M4 by Nelson H. F. Beebe.
95450 2006-10-13  Jim Meyering  <jim@meyering.net>
95452         Fix a bug in yesterday's change.
95453         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
95454         p->fts_statp->st_dev would be used uninitialized.
95455         Ensures that we always call fts_stat on the very first entry.
95456         Miklos Szeredi reported that find -xdev stopped working.
95458 2006-10-12  Bruno Haible  <bruno@clisp.org>
95460         * gnulib-tool (func_get_automake_snippet): Append an automatically
95461         computed EXTRA_DIST augmentation.
95462         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
95463         * modules/alloca-opt (Makefile.am): Likewise.
95464         * modules/allocsa (Makefile.am): Likewise.
95465         * modules/arcfour (Makefile.am): Likewise.
95466         * modules/arctwo (Makefile.am): Likewise.
95467         * modules/argmatch (Makefile.am): Likewise.
95468         * modules/argz (Makefile.am): Likewise.
95469         * modules/atexit (Makefile.am): Likewise.
95470         * modules/backupfile (Makefile.am): Likewise.
95471         * modules/byteswap (Makefile.am): Likewise.
95472         * modules/c-strtod (Makefile.am): Likewise.
95473         * modules/c-strtold (Makefile.am): Likewise.
95474         * modules/calloc (Makefile.am): Likewise.
95475         * modules/canon-host (Makefile.am): Likewise.
95476         * modules/canonicalize (Makefile.am): Likewise.
95477         * modules/chdir-long (Makefile.am): Likewise.
95478         * modules/chdir-safer (Makefile.am): Likewise.
95479         * modules/check-version (Makefile.am): Likewise.
95480         * modules/chown (Makefile.am): Likewise.
95481         * modules/cloexec (Makefile.am): Likewise.
95482         * modules/close-stream (Makefile.am): Likewise.
95483         * modules/closeout (Makefile.am): Likewise.
95484         * modules/crc (Makefile.am): Likewise.
95485         * modules/csharpexec (Makefile.am): Likewise.
95486         * modules/cycle-check (Makefile.am): Likewise.
95487         * modules/des (Makefile.am): Likewise.
95488         * modules/dev-ino (Makefile.am): Likewise.
95489         * modules/dirfd (Makefile.am): Likewise.
95490         * modules/dirname (Makefile.am): Likewise.
95491         * modules/dup2 (Makefile.am): Likewise.
95492         * modules/eealloc (Makefile.am): Likewise.
95493         * modules/error (Makefile.am): Likewise.
95494         * modules/euidaccess (Makefile.am): Likewise.
95495         * modules/exclude (Makefile.am): Likewise.
95496         * modules/exitfail (Makefile.am): Likewise.
95497         * modules/fcntl-safer (Makefile.am): Likewise.
95498         * modules/fcntl (Makefile.am): Likewise.
95499         * modules/file-type (Makefile.am): Likewise.
95500         * modules/fileblocks (Makefile.am): Likewise.
95501         * modules/filemode (Makefile.am): Likewise.
95502         * modules/filenamecat (Makefile.am): Likewise.
95503         * modules/fnmatch (Makefile.am): Likewise.
95504         * modules/fopen-safer (Makefile.am): Likewise.
95505         * modules/fpending (Makefile.am): Likewise.
95506         * modules/fprintftime (Makefile.am): Likewise.
95507         * modules/free (Makefile.am): Likewise.
95508         * modules/fsusage (Makefile.am): Likewise.
95509         * modules/ftruncate (Makefile.am): Likewise.
95510         * modules/fts (Makefile.am): Likewise.
95511         * modules/gc-arcfour (Makefile.am): Likewise.
95512         * modules/gc-des (Makefile.am): Likewise.
95513         * modules/gc-hmac-md5 (Makefile.am): Likewise.
95514         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
95515         * modules/gc-md4 (Makefile.am): Likewise.
95516         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
95517         * modules/gc-sha1 (Makefile.am): Likewise.
95518         * modules/gc (Makefile.am): Likewise.
95519         * modules/getaddrinfo (Makefile.am): Likewise.
95520         * modules/getcwd (Makefile.am): Likewise.
95521         * modules/getdelim (Makefile.am): Likewise.
95522         * modules/getdomainname (Makefile.am): Likewise.
95523         * modules/getgroups (Makefile.am): Likewise.
95524         * modules/gethostname (Makefile.am): Likewise.
95525         * modules/gethrxtime (Makefile.am): Likewise.
95526         * modules/getline (Makefile.am): Likewise.
95527         * modules/getloadavg (Makefile.am): Likewise.
95528         * modules/getlogin_r (Makefile.am): Likewise.
95529         * modules/getndelim2 (Makefile.am): Likewise.
95530         * modules/getopt (Makefile.am): Likewise.
95531         * modules/getpagesize (Makefile.am): Likewise.
95532         * modules/getpass-gnu (Makefile.am): Likewise.
95533         * modules/getpass (Makefile.am): Likewise.
95534         * modules/getsubopt (Makefile.am): Likewise.
95535         * modules/gettime (Makefile.am): Likewise.
95536         * modules/gettimeofday (Makefile.am): Likewise.
95537         * modules/getugroups (Makefile.am): Likewise.
95538         * modules/getusershell (Makefile.am): Likewise.
95539         * modules/glob (Makefile.am): Likewise.
95540         * modules/group-member (Makefile.am): Likewise.
95541         * modules/hard-locale (Makefile.am): Likewise.
95542         * modules/hash (Makefile.am): Likewise.
95543         * modules/hmac-md5 (Makefile.am): Likewise.
95544         * modules/hmac-sha1 (Makefile.am): Likewise.
95545         * modules/human (Makefile.am): Likewise.
95546         * modules/idcache (Makefile.am): Likewise.
95547         * modules/imaxabs (Makefile.am): Likewise.
95548         * modules/imaxdiv (Makefile.am): Likewise.
95549         * modules/inet_ntop (Makefile.am): Likewise.
95550         * modules/inet_pton (Makefile.am): Likewise.
95551         * modules/intprops (Makefile.am): Likewise.
95552         * modules/inttostr (Makefile.am): Likewise.
95553         * modules/inttypes (Makefile.am): Likewise.
95554         * modules/isapipe (Makefile.am): Likewise.
95555         * modules/javaversion (Makefile.am): Likewise.
95556         * modules/lchmod (Makefile.am): Likewise.
95557         * modules/lchown (Makefile.am): Likewise.
95558         * modules/localcharset (Makefile.am): Likewise.
95559         * modules/long-options (Makefile.am): Likewise.
95560         * modules/lstat (Makefile.am): Likewise.
95561         * modules/malloc (Makefile.am): Likewise.
95562         * modules/mathl (Makefile.am): Likewise.
95563         * modules/mbchar (Makefile.am): Likewise.
95564         * modules/md2 (Makefile.am): Likewise.
95565         * modules/md4 (Makefile.am): Likewise.
95566         * modules/md5 (Makefile.am): Likewise.
95567         * modules/memcasecmp (Makefile.am): Likewise.
95568         * modules/memchr (Makefile.am): Likewise.
95569         * modules/memcmp (Makefile.am): Likewise.
95570         * modules/memcoll (Makefile.am): Likewise.
95571         * modules/memcpy (Makefile.am): Likewise.
95572         * modules/memmem (Makefile.am): Likewise.
95573         * modules/memmove (Makefile.am): Likewise.
95574         * modules/mempcpy (Makefile.am): Likewise.
95575         * modules/memrchr (Makefile.am): Likewise.
95576         * modules/memset (Makefile.am): Likewise.
95577         * modules/memxor (Makefile.am): Likewise.
95578         * modules/mkancesdirs (Makefile.am): Likewise.
95579         * modules/mkdir-p (Makefile.am): Likewise.
95580         * modules/mkdir (Makefile.am): Likewise.
95581         * modules/mkdtemp (Makefile.am): Likewise.
95582         * modules/mkstemp (Makefile.am): Likewise.
95583         * modules/mktime (Makefile.am): Likewise.
95584         * modules/modechange (Makefile.am): Likewise.
95585         * modules/mountlist (Makefile.am): Likewise.
95586         * modules/nanosleep (Makefile.am): Likewise.
95587         * modules/obstack (Makefile.am): Likewise.
95588         * modules/openat (Makefile.am): Likewise.
95589         * modules/pagealign_alloc (Makefile.am): Likewise.
95590         * modules/pathmax (Makefile.am): Likewise.
95591         * modules/physmem (Makefile.am): Likewise.
95592         * modules/poll (Makefile.am): Likewise.
95593         * modules/posixtm (Makefile.am): Likewise.
95594         * modules/posixver (Makefile.am): Likewise.
95595         * modules/putenv (Makefile.am): Likewise.
95596         * modules/quote (Makefile.am): Likewise.
95597         * modules/quotearg (Makefile.am): Likewise.
95598         * modules/raise (Makefile.am): Likewise.
95599         * modules/read-file (Makefile.am): Likewise.
95600         * modules/readline (Makefile.am): Likewise.
95601         * modules/readlink (Makefile.am): Likewise.
95602         * modules/readtokens (Makefile.am): Likewise.
95603         * modules/readutmp (Makefile.am): Likewise.
95604         * modules/realloc (Makefile.am): Likewise.
95605         * modules/regex (Makefile.am): Likewise.
95606         * modules/rename-dest-slash (Makefile.am): Likewise.
95607         * modules/rename (Makefile.am): Likewise.
95608         * modules/rijndael (Makefile.am): Likewise.
95609         * modules/rmdir (Makefile.am): Likewise.
95610         * modules/rpmatch (Makefile.am): Likewise.
95611         * modules/safe-read (Makefile.am): Likewise.
95612         * modules/safe-write (Makefile.am): Likewise.
95613         * modules/same-inode (Makefile.am): Likewise.
95614         * modules/same (Makefile.am): Likewise.
95615         * modules/save-cwd (Makefile.am): Likewise.
95616         * modules/savedir (Makefile.am): Likewise.
95617         * modules/setenv (Makefile.am): Likewise.
95618         * modules/settime (Makefile.am): Likewise.
95619         * modules/sha1 (Makefile.am): Likewise.
95620         * modules/sig2str (Makefile.am): Likewise.
95621         * modules/snprintf (Makefile.am): Likewise.
95622         * modules/stat-macros (Makefile.am): Likewise.
95623         * modules/stat-time (Makefile.am): Likewise.
95624         * modules/stdbool (Makefile.am): Likewise.
95625         * modules/stdint (Makefile.am): Likewise.
95626         * modules/stdlib-safer (Makefile.am): Likewise.
95627         * modules/stpcpy (Makefile.am): Likewise.
95628         * modules/stpncpy (Makefile.am): Likewise.
95629         * modules/strcase (Makefile.am): Likewise.
95630         * modules/strcasestr (Makefile.am): Likewise.
95631         * modules/strchrnul (Makefile.am): Likewise.
95632         * modules/strcspn (Makefile.am): Likewise.
95633         * modules/strdup (Makefile.am): Likewise.
95634         * modules/strerror (Makefile.am): Likewise.
95635         * modules/strftime (Makefile.am): Likewise.
95636         * modules/strndup (Makefile.am): Likewise.
95637         * modules/strnlen (Makefile.am): Likewise.
95638         * modules/strpbrk (Makefile.am): Likewise.
95639         * modules/strsep (Makefile.am): Likewise.
95640         * modules/strstr (Makefile.am): Likewise.
95641         * modules/strtod (Makefile.am): Likewise.
95642         * modules/strtoimax (Makefile.am): Likewise.
95643         * modules/strtok_r (Makefile.am): Likewise.
95644         * modules/strtol (Makefile.am): Likewise.
95645         * modules/strtoll (Makefile.am): Likewise.
95646         * modules/strtoul (Makefile.am): Likewise.
95647         * modules/strtoull (Makefile.am): Likewise.
95648         * modules/strtoumax (Makefile.am): Likewise.
95649         * modules/strverscmp (Makefile.am): Likewise.
95650         * modules/sys_socket (Makefile.am): Likewise.
95651         * modules/sys_stat (Makefile.am): Likewise.
95652         * modules/sysexits (Makefile.am): Likewise.
95653         * modules/time_r (Makefile.am): Likewise.
95654         * modules/timegm (Makefile.am): Likewise.
95655         * modules/timespec (Makefile.am): Likewise.
95656         * modules/tmpfile-safer (Makefile.am): Likewise.
95657         * modules/trim (Makefile.am): Likewise.
95658         * modules/unistd-safer (Makefile.am): Likewise.
95659         * modules/unlinkdir (Makefile.am): Likewise.
95660         * modules/unlocked-io (Makefile.am): Likewise.
95661         * modules/userspec (Makefile.am): Likewise.
95662         * modules/utime (Makefile.am): Likewise.
95663         * modules/utimecmp (Makefile.am): Likewise.
95664         * modules/utimens (Makefile.am): Likewise.
95665         * modules/vasnprintf (Makefile.am): Likewise.
95666         * modules/vasprintf (Makefile.am): Likewise.
95667         * modules/vsnprintf (Makefile.am): Likewise.
95668         * modules/xalloc (Makefile.am): Likewise.
95669         * modules/xgetcwd (Makefile.am): Likewise.
95670         * modules/xnanosleep (Makefile.am): Likewise.
95671         * modules/xreadlink (Makefile.am): Likewise.
95672         * modules/xstrtod (Makefile.am): Likewise.
95673         * modules/xstrtol (Makefile.am): Likewise.
95674         * modules/xstrtold (Makefile.am): Likewise.
95675         * modules/yesno (Makefile.am): Likewise.
95676         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
95678 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
95680         * modules/error (Makefile.am): Distribute files through
95681         EXTRA_DIST, not lib_SOURCES.
95683 2006-10-12  Eric Blake  <ebb9@byu.net>
95685         * modules/error (Makefile.am): Distribute files in /lib.
95686         * modules/obstack (Makefile.am): Likewise.
95688 2006-10-12  Bruno Haible  <bruno@clisp.org>
95690         * modules/acl (Makefile.am): Distribute all files in lib/ through
95691         EXTRA_DIST.
95692         * modules/arcfour (Makefile.am): Likewise.
95693         * modules/arctwo (Makefile.am): Likewise.
95694         * modules/argmatch (Makefile.am): Likewise.
95695         * modules/argz (Makefile.am): Likewise.
95696         * modules/atexit (Makefile.am): Likewise.
95697         * modules/backupfile (Makefile.am): Likewise.
95698         * modules/c-strtod (Makefile.am): Likewise.
95699         * modules/c-strtold (Makefile.am): Likewise.
95700         * modules/calloc (Makefile.am): Likewise.
95701         * modules/canon-host (Makefile.am): Likewise.
95702         * modules/canonicalize (Makefile.am): Likewise.
95703         * modules/chdir-long (Makefile.am): Likewise.
95704         * modules/chdir-safer (Makefile.am): Likewise.
95705         * modules/check-version (Makefile.am): Likewise.
95706         * modules/chown (Makefile.am): Likewise.
95707         * modules/cloexec (Makefile.am): Likewise.
95708         * modules/close-stream (Makefile.am): Likewise.
95709         * modules/closeout (Makefile.am): Likewise.
95710         * modules/crc (Makefile.am): Likewise.
95711         * modules/cycle-check (Makefile.am): Likewise.
95712         * modules/des (Makefile.am): Likewise.
95713         * modules/dirfd (Makefile.am): Likewise.
95714         * modules/dirname (Makefile.am): Likewise.
95715         * modules/dup2 (Makefile.am): Likewise.
95716         * modules/euidaccess (Makefile.am): Likewise.
95717         * modules/exclude (Makefile.am): Likewise.
95718         * modules/exitfail (Makefile.am): Likewise.
95719         * modules/fcntl-safer (Makefile.am): Likewise.
95720         * modules/file-type (Makefile.am): Likewise.
95721         * modules/fileblocks (Makefile.am): Likewise.
95722         * modules/filemode (Makefile.am): Likewise.
95723         * modules/filenamecat (Makefile.am): Likewise.
95724         * modules/fnmatch (Makefile.am): Likewise.
95725         * modules/fopen-safer (Makefile.am): Likewise.
95726         * modules/fpending (Makefile.am): Likewise.
95727         * modules/fprintftime (Makefile.am): Likewise.
95728         * modules/free (Makefile.am): Likewise.
95729         * modules/fsusage (Makefile.am): Likewise.
95730         * modules/ftruncate (Makefile.am): Likewise.
95731         * modules/fts (Makefile.am): Likewise.
95732         * modules/gc (Makefile.am): Likewise.
95733         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
95734         * modules/getaddrinfo (Makefile.am): Likewise.
95735         * modules/getcwd (Makefile.am): Likewise.
95736         * modules/getdelim (Makefile.am): Likewise.
95737         * modules/getdomainname (Makefile.am): Likewise.
95738         * modules/getgroups (Makefile.am): Likewise.
95739         * modules/gethostname (Makefile.am): Likewise.
95740         * modules/gethrxtime (Makefile.am): Likewise.
95741         * modules/getline (Makefile.am): Likewise.
95742         * modules/getloadavg (Makefile.am): Likewise.
95743         * modules/getlogin_r (Makefile.am): Likewise.
95744         * modules/getopt (Makefile.am): Likewise.
95745         * modules/getpass (Makefile.am): Likewise.
95746         * modules/getpass-gnu (Makefile.am): Likewise.
95747         * modules/getsubopt (Makefile.am): Likewise.
95748         * modules/gettime (Makefile.am): Likewise.
95749         * modules/gettimeofday (Makefile.am): Likewise.
95750         * modules/getugroups (Makefile.am): Likewise.
95751         * modules/getusershell (Makefile.am): Likewise.
95752         * modules/glob (Makefile.am): Likewise.
95753         * modules/group-member (Makefile.am): Likewise.
95754         * modules/hard-locale (Makefile.am): Likewise.
95755         * modules/hash (Makefile.am): Likewise.
95756         * modules/hmac-md5 (Makefile.am): Likewise.
95757         * modules/hmac-sha1 (Makefile.am): Likewise.
95758         * modules/human (Makefile.am): Likewise.
95759         * modules/idcache (Makefile.am): Likewise.
95760         * modules/imaxabs (Makefile.am): Likewise.
95761         * modules/imaxdiv (Makefile.am): Likewise.
95762         * modules/inet_ntop (Makefile.am): Likewise.
95763         * modules/inet_pton (Makefile.am): Likewise.
95764         * modules/inttostr (Makefile.am): Likewise.
95765         * modules/isapipe (Makefile.am): Likewise.
95766         * modules/lchown (Makefile.am): Likewise.
95767         * modules/long-options (Makefile.am): Likewise.
95768         * modules/lstat (Makefile.am): Likewise.
95769         * modules/malloc (Makefile.am): Likewise.
95770         * modules/mathl (Makefile.am): Likewise.
95771         * modules/mbchar (Makefile.am): Likewise.
95772         * modules/md2 (Makefile.am): Likewise.
95773         * modules/md4 (Makefile.am): Likewise.
95774         * modules/md5 (Makefile.am): Likewise.
95775         * modules/memcasecmp (Makefile.am): Likewise.
95776         * modules/memchr (Makefile.am): Likewise.
95777         * modules/memcmp (Makefile.am): Likewise.
95778         * modules/memcoll (Makefile.am): Likewise.
95779         * modules/memcpy (Makefile.am): Likewise.
95780         * modules/memmem (Makefile.am): Likewise.
95781         * modules/memmove (Makefile.am): Likewise.
95782         * modules/mempcpy (Makefile.am): Likewise.
95783         * modules/memrchr (Makefile.am): Likewise.
95784         * modules/memset (Makefile.am): Likewise.
95785         * modules/memxor (Makefile.am): Likewise.
95786         * modules/mkancesdirs (Makefile.am): Likewise.
95787         * modules/mkdir (Makefile.am): Likewise.
95788         * modules/mkdir-p (Makefile.am): Likewise.
95789         * modules/mkdtemp (Makefile.am): Likewise.
95790         * modules/mkstemp (Makefile.am): Likewise.
95791         * modules/mktime (Makefile.am): Likewise.
95792         * modules/modechange (Makefile.am): Likewise.
95793         * modules/mountlist (Makefile.am): Likewise.
95794         * modules/nanosleep (Makefile.am): Likewise.
95795         * modules/openat (Makefile.am): Likewise.
95796         * modules/pagealign_alloc (Makefile.am): Likewise.
95797         * modules/physmem (Makefile.am): Likewise.
95798         * modules/poll (Makefile.am): Likewise.
95799         * modules/posixtm (Makefile.am): Likewise.
95800         * modules/posixver (Makefile.am): Likewise.
95801         * modules/putenv (Makefile.am): Likewise.
95802         * modules/quote (Makefile.am): Likewise.
95803         * modules/quotearg (Makefile.am): Likewise.
95804         * modules/raise (Makefile.am): Likewise.
95805         * modules/read-file (Makefile.am): Likewise.
95806         * modules/readline (Makefile.am): Likewise.
95807         * modules/readlink (Makefile.am): Likewise.
95808         * modules/readtokens (Makefile.am): Likewise.
95809         * modules/readutmp (Makefile.am): Likewise.
95810         * modules/realloc (Makefile.am): Likewise.
95811         * modules/regex (Makefile.am): Likewise.
95812         * modules/rename (Makefile.am): Likewise.
95813         * modules/rename-dest-slash (Makefile.am): Likewise.
95814         * modules/rijndael (Makefile.am): Likewise.
95815         * modules/rmdir (Makefile.am): Likewise.
95816         * modules/rpmatch (Makefile.am): Likewise.
95817         * modules/safe-read (Makefile.am): Likewise.
95818         * modules/safe-write (Makefile.am): Likewise.
95819         * modules/same (Makefile.am): Likewise.
95820         * modules/save-cwd (Makefile.am): Likewise.
95821         * modules/savedir (Makefile.am): Likewise.
95822         * modules/setenv (Makefile.am): Likewise.
95823         * modules/settime (Makefile.am): Likewise.
95824         * modules/sha1 (Makefile.am): Likewise.
95825         * modules/sig2str (Makefile.am): Likewise.
95826         * modules/snprintf (Makefile.am): Likewise.
95827         * modules/stdlib-safer (Makefile.am): Likewise.
95828         * modules/stpcpy (Makefile.am): Likewise.
95829         * modules/stpncpy (Makefile.am): Likewise.
95830         * modules/strcase (Makefile.am): Likewise.
95831         * modules/strcasestr (Makefile.am): Likewise.
95832         * modules/strchrnul (Makefile.am): Likewise.
95833         * modules/strcspn (Makefile.am): Likewise.
95834         * modules/strdup (Makefile.am): Likewise.
95835         * modules/strerror (Makefile.am): Likewise.
95836         * modules/strftime (Makefile.am): Likewise.
95837         * modules/strndup (Makefile.am): Likewise.
95838         * modules/strnlen (Makefile.am): Likewise.
95839         * modules/strpbrk (Makefile.am): Likewise.
95840         * modules/strsep (Makefile.am): Likewise.
95841         * modules/strstr (Makefile.am): Likewise.
95842         * modules/strtod (Makefile.am): Likewise.
95843         * modules/strtoimax (Makefile.am): Likewise.
95844         * modules/strtok_r (Makefile.am): Likewise.
95845         * modules/strtol (Makefile.am): Likewise.
95846         * modules/strtoll (Makefile.am): Likewise.
95847         * modules/strtoul (Makefile.am): Likewise.
95848         * modules/strtoull (Makefile.am): Likewise.
95849         * modules/strtoumax (Makefile.am): Likewise.
95850         * modules/strverscmp (Makefile.am): Likewise.
95851         * modules/time_r (Makefile.am): Likewise.
95852         * modules/timegm (Makefile.am): Likewise.
95853         * modules/tmpfile-safer (Makefile.am): Likewise.
95854         * modules/unistd-safer (Makefile.am): Likewise.
95855         * modules/unlinkdir (Makefile.am): Likewise.
95856         * modules/userspec (Makefile.am): Likewise.
95857         * modules/utime (Makefile.am): Likewise.
95858         * modules/utimecmp (Makefile.am): Likewise.
95859         * modules/utimens (Makefile.am): Likewise.
95860         * modules/vasnprintf (Makefile.am): Likewise.
95861         * modules/vasprintf (Makefile.am): Likewise.
95862         * modules/vsnprintf (Makefile.am): Likewise.
95863         * modules/xalloc (Makefile.am): Likewise.
95864         * modules/xgetcwd (Makefile.am): Likewise.
95865         * modules/xnanosleep (Makefile.am): Likewise.
95866         * modules/xreadlink (Makefile.am): Likewise.
95867         * modules/xstrtod (Makefile.am): Likewise.
95868         * modules/xstrtol (Makefile.am): Likewise.
95869         * modules/xstrtold (Makefile.am): Likewise.
95870         * modules/yesno (Makefile.am): Likewise.
95872 2006-10-12  Jim Meyering  <jim@meyering.net>
95874         * m4/getloadavg.m4: Revert the change below.
95876         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
95877         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
95878         fail with a symlink, which is what coreutils' ./bootstrap now
95879         creates by default.
95881 2006-10-12  Bruno Haible  <bruno@clisp.org>
95883         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
95884         mingw.
95885         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
95886         MSVC and mingw explicitly.
95888 2006-10-11  Simon Josefsson  <jas@extundo.com>
95889             Bruno Haible  <bruno@clisp.org>
95891         Add support for multiple gnulib-tool invocations in the scope of a
95892         single configure.ac file.
95893         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
95894         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
95895         with the same contents as the _LIBADD variable.
95896         (func_emit_initmacro_start, func_emit_initmacro_end,
95897         func_emit_initmacro_done): New functions.
95898         (func_import, func_create_testdir): Invoke them. Allow the identifiers
95899         gl_LIBOBJS and gl_LTLIBOBJS.
95901 2006-10-11  Bruno Haible  <bruno@clisp.org>
95903         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
95904         (func_create_testdir): Don't create po/Makefile.am, don't invoke
95905         autoreconf. Instead, invoke autopoint explicitly but move back the
95906         *.m4 files from gnulib.
95908 2006-10-11  Bruno Haible  <bruno@clisp.org>
95910         * gnulib-tool (func_usage): Make module names after --create-testdir
95911         optional.
95912         (func_create_testdir): If no module was specified, use nearly all
95913         modules.
95915 2006-10-12  Jim Meyering  <jim@meyering.net>
95917         Big performance improvement for fts-based tools that use FTS_NOSTAT.
95918         Avoid spurious inode-mismatch problems on non-POSIX file systems.
95919         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
95920         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
95921         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
95922         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
95923         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
95924         (fts_set_stat_required): New function.
95925         (fts_open): Defer the calls to fts_stat, if possible or requested.
95926         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
95927         into fts_stat itself.
95928         (fts_read): Perform any required (deferred) fts_stat call.
95929         (fts_build): Likewise, for the directory we're about to open and read.
95930         In the readdir loop, carefully decide whether each entry will require
95931         an eventual call to fts_stat, using dirent.d_type info if available.
95932         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
95933         a command line argument into this function.  Update all callers.
95934         Map a return value of FTS_DOT to FTS_D for a command line argument.
95935         * modules/fts (Depends-on): Add d-type.  Alphabetize.
95936         Thanks to Miklos Szeredi for his tenacity and for the initial
95937         bug report about "find" failing on a FUSE-based file system.
95939         * lib/fts.c (fts_open): Use consistent indentation.
95941 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
95943         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
95944         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
95945         reported by Jim Meyering.  All uses of cache variables renamed
95946         to match Autoconf's.
95947         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
95948         the other one.
95950         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
95951         Fix misspelling in diagnostic.
95953 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
95955         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
95956         defined.  Problem reported by Matthew Woehlke.
95958         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
95959         Add support for Tandem NonStop R series.
95960         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
95961         Use new macro.
95963         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
95964         (has_trailing_slash): Omit size arg; all callers changed.
95965         Omit 'inline', since it doesn't help performance and we'd
95966         need to configure it.
95967         Don't count //, ///, etc. as having a trailing slash.
95968         As a side effect, this removes a C99ism reported by Matthew Woehlke.
95969         (rpl_rename_dest_slash): On failure, use rename's errno rather
95970         than (in some cases) an incorrect or junk errno.
95971         Simplify code by removing need to compute length; this does
95972         cause it to make two passes instead of one over the file name,
95973         but it's worth it.
95975         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
95976         change, since Autoconf's version may no longer be appropriate now
95977         that we are using CVS Autoconf's version.  Add support for Tandem.
95979 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
95980             Bruno Haible  <bruno@clisp.org>
95982         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
95983         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
95984         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
95985         gl_AC_TYPE_LONG_LONG.
95987         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
95988         instead of HAVE_LONG_LONG.
95989         * lib/printf-args.c (printf_fetchargs): Likewise.
95990         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
95991         * lib/vasnprintf.c (VASNPRINTF): Likewise.
95992         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
95993         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
95994         gl_AC_TYPE_LONG_LONG.
95996 2006-10-11  Bruno Haible  <bruno@clisp.org>
95998         * m4/longlong.m4: Add comments.
95999         * m4/ulonglong.m4: Likewise.
96001 2006-10-10  Bruno Haible  <bruno@clisp.org>
96003         Make it possible to #define stpcpy, strdup to aliases.
96004         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
96005         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
96007 2006-10-10  Bruno Haible  <bruno@clisp.org>
96009         Make it possible to #define gcd to an alias.
96010         * lib/gcd.c: Include config.h.
96012 2006-10-10  Bruno Haible  <bruno@clisp.org>
96014         Make it possible to #define c_isascii to an alias.
96015         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
96016         defined. Undefine the macros before defining them, to avoid gcc
96017         warnings.
96018         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
96019         define NO_C_CTYPE_MACROS early.
96021 2006-10-10  Bruno Haible  <bruno@clisp.org>
96023         Make it possible to #define set_program_name to an alias.
96024         * lib/progname.c: Don't undefine set_program_name; instead, undefine
96025         ENABLE_RELOCATABLE early.
96027 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
96029         Port to Tandem NSK OSS, which has 64-bit signed int but at most
96030         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
96031         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00062.html
96032         More generally, don't assume that 64-bit signed int is available
96033         if unsigned int is, and vice versa.
96034         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
96035         unsigned symbols, not on their signed counterparts.
96036         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
96037         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
96038         (UINT64_C, UINTMAX_C):
96039         Likewise.
96040         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
96041         unsigned counterparts.
96042         (Have_long_long, Unsigned): New macros.
96043         (Int): Renamed from INT.
96044         (strtoimax): Use the new macros.
96045         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
96046         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
96047         * modules/inttypes (inttypes.h): Substitute
96048         HAVE_UNSIGNED_LONG_LONG_INT.
96049         * modules/stdint (stdint.h): Likewise.
96050         (Files): Add m4/ulonglong.m4.
96052 2006-10-10  Bruno Haible  <bruno@clisp.org>
96054         Fix a gcc -Wshadow warning.
96055         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
96056         to 'bucket'.
96057         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
96058         gl_linked_indexof_from_to): Likewise.
96059         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
96060         Likewise.
96061         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
96062         Likewise.
96063         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
96064         Reported by Eric Blake.
96066 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
96068         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
96069         for NetBSD.  Problem reported by Bruno Haible.
96071 2006-10-09  Jim Meyering  <jim@meyering.net>
96073         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
96074         Patch from Bruno Haible.
96076 2006-10-09  Jim Meyering  <jim@meyering.net>
96078         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
96079         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
96080         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
96082 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
96084         Don't include <config.h> twice; this doesn't work in some cases,
96085         e.g., when config.h has "#define intmax_t long long int" and
96086         we include <config.h>, <inttypes.h>, <config.h> in that order.
96087         Problem reported by Matthew Woehlke in:
96088         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00073.html
96089         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
96090         * lib/fts-cycle.c: Don't include config.h.
96091         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
96092         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
96093         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
96094         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
96095         inttypes.h.
96096         * lib/xstrtoumax.c: Likewise.
96097         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
96098         __strtol and the like, so that this module is more like its siblings.
96099         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
96100         Remove; no longer needed now that we assume gnulib inttypes.h.
96102 2006-10-08  Bruno Haible  <bruno@clisp.org>
96104         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
96105         option.
96107 2006-10-07  Jim Meyering  <jim@meyering.net>
96109         * modules/inttypes (inttypes.h): Revert what seems to have been
96110         an inadvertent part of today's change: use "|", not "/" in the
96111         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
96113 2006-10-07  Bruno Haible  <bruno@clisp.org>
96115         * modules/sublist: New file.
96117 2006-10-07  Bruno Haible  <bruno@clisp.org>
96119         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
96120         * modules/argz (argz.h): Likewise.
96121         * modules/arpa_inet (arpa/inet.h): Likewise.
96122         * modules/byteswap (byteswap.h): Likewise.
96123         * modules/configmake (configmake.h): Likewise.
96124         * modules/fcntl (fcntl.h): Likewise.
96125         * modules/fnmatch (fnmatch.h): Likewise.
96126         * modules/getopt (getopt.h): Likewise.
96127         * modules/glob (glob.h): Likewise.
96128         * modules/inttypes (inttypes.h): Likewise.
96129         * modules/netinet_in (netinet/in.h): Likewise.
96130         * modules/poll (poll.h): Likewise.
96131         * modules/stdbool (stdbool.h): Likewise.
96132         * modules/stdint (stdint.h): Likewise.
96133         * modules/sys_select (sys/select.h): Likewise.
96134         * modules/sys_socket (sys/socket.h): Likewise.
96135         * modules/sys_stat (sys/stat.h): Likewise.
96136         * modules/sysexits (sysexits.h): Likewise.
96137         * modules/unistd (unistd.h): Likewise.
96138         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
96139         Add a "DO NOT EDIT" comment to the generated file.
96140         (func_import): Likewise for gnulib-comp.m4.
96142 2006-10-07  Bruno Haible  <bruno@clisp.org>
96144         * lib/gl_sublist.h: New file.
96145         * lib/gl_sublist.c: New file.
96147 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
96149         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
96150         name (relative to the original working directory) and the file
96151         name component (relative to the temporary working directory).  All
96152         callers changed.
96153         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
96154         * lib/mkdir-p.c (make_dir_parents): Likewise.
96155         * lib/mkdir-p.h (make_dir_parents): Likewise.
96157 2006-10-06  Eric Blake  <ebb9@byu.net>
96159         Define several macros for use by the clean-temp module.
96160         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
96161         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
96162         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
96164         * lib/clean-temp.h (close_stream_temp): New declaration.
96165         * lib/clean-temp.c (includes): Pull in headers according to what
96166         other modules are in use.
96167         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
96169 2006-10-06  Bruno Haible  <bruno@clisp.org>
96171         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
96172         instead of fopen, fwriteerror.
96174 2006-10-06  Bruno Haible  <bruno@clisp.org>
96176         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
96177         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
96178         int.
96179         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
96180         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
96181         Return an error indicator.
96182         Suggested by Eric Blake.
96184 2006-10-06  Bruno Haible  <bruno@clisp.org>
96186         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
96187         Reported by Eric Blake.
96189 2006-10-06  Bruno Haible  <bruno@clisp.org>
96191         * modules/closeout (Description): Mention stderr too.
96193 2006-10-06  Bruno Haible  <bruno@clisp.org>
96194         and Paul Eggert  <eggert@cs.ucla.edu>
96196         * lib/closeout.c (close_stdout): Also close stderr.
96197         * lib/closeout.h: Update comment.
96199 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
96201         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
96202         <http://lists.gnu.org/r/bug-coreutils/2006-10/msg00063.html>.
96203         * lib/dirchownmod.c: Include lchown.h.
96204         * lib/lchown.c: Don't include files that lchown.h now includes.
96205         Don't declare chown, since lchown.h now does that.
96206         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
96207         (lchown): Define to rpl_chown if lchown is declared but
96208         does not exist.  Declare using a prototype if lchown is not
96209         declared.  Add a copyright notice.
96210         * lib/mkstemp.h: Include <unistd.h>.
96211         * lib/openat.c: Include lchown.h.
96213         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
96214         we now test for that separately.
96215         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
96216         rather than O_NOFOLLOW, when testing whether it's possible to
96217         avoid a race condition reliably.
96218         * lib/savewd.c (savewd_chdir): Likewise.
96220         Remove macros that are no longer needed now that stdint.h is
96221         reliable.
96222         * lib/fsusage.c (UINTMAX_MAX): Remove.
96223         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
96224         * lib/utimecmp.c (SIZE_MAX): Remove.
96226         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
96228         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
96229         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
96230         O_NOATIME works.
96232 2006-10-05  Bruno Haible  <bruno@clisp.org>
96234         * lib/gl_list.h (gl_sortedlist_search_from_to,
96235         gl_sortedlist_indexof_from_to): New declarations.
96236         (gl_list_implementation): New fields sortedlist_search_from_to,
96237         sortedlist_indexof_from_to.
96238         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
96239         inline functions.
96240         * lib/gl_list.c (gl_sortedlist_search_from_to,
96241         gl_sortedlist_indexof_from_to): New functions.
96242         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
96243         function.
96244         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
96245         (gl_array_sortedlist_search_from_to): New function.
96246         (gl_array_list_implementation): Update.
96247         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
96248         function.
96249         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
96250         (gl_carray_sortedlist_search_from_to): New function.
96251         (gl_carray_list_implementation): Update.
96252         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
96253         gl_linked_sortedlist_indexof_from_to): New functions.
96254         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
96255         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
96256         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
96257         gl_tree_sortedlist_indexof_from_to): New functions.
96258         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
96259         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
96260         Update.
96261         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
96262         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
96263         Update.
96265 2006-10-05  Bruno Haible  <bruno@clisp.org>
96267         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
96268         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
96269         (struct gl_list_implementation): Add fields search_from_to,
96270         indexof_from_to. Remove fields search, indexof.
96271         (gl_list_search): Use the search_from_to method.
96272         (gl_list_search_from, gl_list_search_from_to): New functions.
96273         (gl_list_indexof): Use the indexof_from_to method.
96274         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
96275         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
96276         (gl_list_search_from, gl_list_search_from_to): New functions.
96277         (gl_list_indexof): Use the indexof_from_to method.
96278         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
96279         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
96280         gl_array_indexof. Add start_index, end_index arguments.
96281         (gl_array_search_from_to): Renamed from gl_array_search. Add
96282         start_index, end_index arguments.
96283         (gl_array_remove, gl_array_list_implementation): Update.
96284         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
96285         gl_carray_indexof. Add start_index, end_index arguments.
96286         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
96287         start_index, end_index arguments.
96288         (gl_carray_remove, gl_carray_list_implementation): Update.
96289         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
96290         gl_linked_search. Add start_index, end_index arguments.
96291         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
96292         start_index, end_index arguments.
96293         (gl_linked_remove): Update.
96294         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
96295         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
96296         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
96297         field to 'size_t'.
96298         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
96299         gl_tree_search. Add start_index, end_index arguments.
96300         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
96301         start_index, end_index arguments.
96302         (gl_tree_remove): Update.
96303         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
96304         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
96305         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
96306         function.
96307         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
96308         gl_tree_search. Add start_index, end_index arguments.
96309         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
96310         start_index, end_index arguments.
96311         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
96312         Update.
96313         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
96315 2006-10-05  Bruno Haible  <bruno@clisp.org>
96317         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
96319         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
96320         fwriteerror_temp): New declarations.
96321         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
96322         (descriptors): New variable.
96323         (cleanup): First, close the descriptors.
96324         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
96325         fclose_temp, fwriteerror_temp): New functions.
96327 2006-10-04  Jim Meyering  <jim@meyering.net>
96329         * lib/fts.c (fts_open): Tiny comment change.
96331 2006-10-04  Bruno Haible  <bruno@clisp.org>
96333         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
96334         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
96335         gl_LOCK_BODY.
96336         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
96337         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
96338         gl_LOCK_EARLY_BODY.
96339         (gl_LOCK): Require gl_LOCK_BODY.
96341 2006-10-04  Bruno Haible  <bruno@clisp.org>
96343         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
96344         (gl_oset_search_atleast): New declaration.
96345         (struct gl_oset_implementation): Add field 'search_atleast'.
96346         (gl_oset_search_atleast): New inline function.
96347         * lib/gl_oset.c (gl_oset_search_atleast): New function.
96348         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
96349         (gl_array_oset_implementation): Update.
96350         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
96351         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
96352         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
96354 2006-10-04  Bruno Haible  <bruno@clisp.org>
96356         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
96358 2006-10-03  Bruno Haible  <bruno@clisp.org>
96360         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
96361         from gl_avltreehash_list_implementation.
96363 2006-10-03  Bruno Haible  <bruno@clisp.org>
96365         * lib/gl_oset.c (gl_oset_add): Fix return type.
96367 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
96369         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
96371 2006-10-02  Eric Blake  <ebb9@byu.net>
96373         * modules/strnlen (Depends-on): Add extensions.
96375 2006-10-02  Eric Blake  <ebb9@byu.net>
96377         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
96378         definition in 2.60+.
96380 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
96382         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
96383         checks.
96385 2006-10-02  Bruno Haible  <bruno@clisp.org>
96387         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
96388         to the AUTOMAKE_OPTIONS.
96389         Reported by Jim Meyering.
96391 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
96393         Work around bug in Solaris 10 /proc file system:
96394         /proc/self/fd/NNN/.. isn't the parent directory of
96395         the directory whose file descriptor is NNN.  This needs to
96396         be worked around at run time, not compile time, since a
96397         program might be built on Solaris 8, where things work, and
96398         run on Solaris 10.
96399         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
96400         to use the following interface instead:
96401         (OPENAT_BUFFER_SIZE): New macro.
96402         (openat_proc_name): New function.
96403         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
96404         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
96405         Likewise.
96406         * lib/openat-proc.c: New file.
96407         * modules/openat (Files): Add lib/openat-proc.c.
96408         (Depends-on): Add same-inode, stdbool.
96409         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
96411 2006-09-29  Bruno Haible  <bruno@clisp.org>
96413         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
96414         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
96415         argument. Set stdout_closed before testing for ferror, not after.
96416         (fwriteerror, fwriteerror_no_ebadf): New functions.
96418 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96420         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
96422 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
96424         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
96425         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
96427 2006-09-28  Jim Meyering  <jim@meyering.net>
96429         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
96430         Include <unistd.h>.
96432 2006-09-28  Bruno Haible  <bruno@clisp.org>
96434         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
96435         * modules/linkedhash-list (Depends-on): Likewise.
96436         * modules/rbtreehash-list (Depends-on): Likewise.
96438 2006-09-28  Bruno Haible  <bruno@clisp.org>
96440         * lib/strndup.h: Simplify the redefinition of strndup.
96441         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
96442         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
96444 2006-09-28  Bruno Haible  <bruno@clisp.org>
96446         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
96447         * lib/gl_linkedhash_list.c: Likewise.
96448         * lib/gl_rbtreehash_list.c: Likewise.
96450 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
96452         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
96453         getaddrinfo.
96455         * lib/__fpending.h: Don't include <stdio_ext.h> unless
96456         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
96457         it causes <stdio_ext.h> to cause a compile-time error.
96458         Problem reported by Nelson H. F. Beebe.
96459         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
96460         of HAVE_DECL___PENDING.
96462         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
96463         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
96464         declaration.
96466 2006-09-27  Jim Meyering  <jim@meyering.net>
96468         This file could end up with a definition for a function
96469         named __strndup, rather than rpl_strndup on a system with
96470         incomplete weak_alias support.
96471         * lib/strndup.c (strndup): Rename from __strndup.
96472         Remove #defines that used to map __strndup to strndup.
96473         Don't use K&R prototypes.
96474         Remove LIBC-related code, since this file is not sync'd with glibc.
96475         * lib/strndup.h: Revamp, accordingly.
96476         * m4/strndup.m4: Modernize.
96478 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
96480         * modules/savewd (Depends-on): Add 'raise'.
96481         * lib/savewd.c: Include <signal.h>, for 'raise'.
96483 2006-09-26  Jim Meyering  <jim@meyering.net>
96485         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
96486         when we detect Darwin 8.7.0's acl_get_file bug.
96487         Rearrange to perform the new (below) run-test while $LIBS
96488         contains any acl-related library.  Set USE_ACL at the end.
96489         (gl_ACL_GET_FILE): New function.
96491 2006-09-26  Eric Blake  <ebb9@byu.net>
96493         * lib/verror.c: Include <config.h> unconditionally.
96495 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
96497         * modules/clock-time (Maintainer): Add self.
96498         * modules/getlogin_r (Depends-on): Add extensions.
96500 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96502         * modules/clock-time: New module.
96503         * modules/nanosleep (Depends-on): Add clock-time.
96504         * modules/gethrxtime (Depends-on): Likewise.
96505         * modules/gettime (Depends-on): Likewise.
96506         * modules/settime (Depends-on): Likewise.
96508         * modules/fts-lgpl: Depend on openat.
96509         * modules/mkancesdirs: Depend on savewd.
96510         * modules/mkdir-p: Likewise.
96512 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96514         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
96516         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
96517         `gl_have_arbitrary_file_name_length_limit' to
96518         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
96519         actually works between configure runs.
96521 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96522             Bruno Haible  <bruno@clisp.org>
96524         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
96526 2006-09-25  Jim Meyering  <jim@meyering.net>
96528         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
96529         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
96531 2006-09-25  Eric Blake  <ebb9@byu.net>
96533         * gnulib-tool (func_import, func_create_testdir): Fix typos in
96534         exec's in 2006-09-18 patch when shuffling fds.
96536 2006-09-25  Bruno Haible  <bruno@clisp.org>
96538         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
96539         Reported by Jim Meyering.
96541 2006-09-24  Jim Meyering  <jim@meyering.net>
96543         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
96544         compare a pointer against a literal "0".  That caused failures with
96545         at least HP-UX's hpcc.
96547 2006-09-22  Simon Josefsson  <jas@extundo.com>
96549         * modules/gc-sha1:
96550         * modules/gc-md4:
96551         * modules/gc-hmac-sha1:
96552         * modules/gc-hmac-md5:
96553         * modules/gc-des:
96554         * modules/gc-arcfour: Distribute more files.
96556 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96558         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
96559         (gl_linked_iterator_from_to): Initialize struct completely.
96560         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
96561         (gl_tree_iterator_from_to): Likewise
96562         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
96563         * lib/gl_array_list.c [lint] (gl_array_iterator)
96564         (gl_array_iterator_from_to): Likewise.
96565         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
96566         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
96567         (gl_carray_iterator_from_to): Likewise.
96569         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
96570         * lib/md4.c (md4_process_block): Remove unused variable.
96571         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
96572         parentheses for clarity.
96574 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96576         * modules/bison-i18n (Depends-on): Add gettext.
96578 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96580         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
96581         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
96582         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
96583         also add missing comma that caused broken test.
96584         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
96585         stdlib.h, for `abort'.
96586         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
96587         variables.
96588         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
96589         include unistd.h if present, for `rmdir'.
96590         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
96591         variables.
96592         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
96593         in the process include standard headers for prototypes.
96594         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
96595         gets declared on GNU/Linux.
96596         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
96597         unistd.h, for `rmdir'.
96598         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
96600         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
96601         always true.
96602         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
96604         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
96606 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96608         * gnulib-tool (func_version): Create output all at once.  This
96609         may help avoid triggering unnecessary SIGPIPEs, and at any
96610         rate it doesn't hurt.
96612 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96613             Bruno Haible  <bruno@clisp.org>
96615         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
96616         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
96617         * m4/signed.m4 (bh_C_SIGNED): Likewise.
96619         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
96620         (gl_FUNC_VASPRINTF): Invoke it.
96622 2006-09-22  Bruno Haible  <bruno@clisp.org>
96624         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
96625         getloadavg.c as first argument.
96627 2006-09-22  Bruno Haible  <bruno@clisp.org>
96629         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
96630         at the beginning of the gl_INIT macro.
96631         * modules/getloadavg (configure.ac): Pass $gl_source_base to
96632         gl_GETLOADAVG.
96634 2006-09-22  Bruno Haible  <bruno@clisp.org>
96636         * gnulib-tool (func_create_megatestdir): Don't include the config-h
96637         module.
96638         Suggested by Ralf Wildenhues.
96640 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
96642         Import this patch from libc:
96644         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
96646         * lib/regex_internal.c (re_string_reconstruct): Handle
96647         offset < pstr->valid_raw_len && pstr->offsets_needed case.
96648         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
96649         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
96650         re_string_context_at.
96652         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
96653         now requires it.
96654         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
96655         gl_REGEX now does it for us.
96656         (gl_REGEX): Add test taken from
96657         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
96659         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
96660         Check that large offsets work.  Modernize Autoconf usages.
96661         Prefer "yes" to mean a good thing rather than a bad.
96662         Don't put "#define mkstemp" in config.h, as this might interfere
96663         with standard system headers that "#define mkstemp mkstemp64".
96665         * modules/mkstemp (Depends-on): Add extensions, so that
96666         mkstemp is visible on some platforms.
96667         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
96668         (Include): Change to "mkstemp.h" from <stdlib.h>.
96669         (Files): Add mkstemp.h.
96671         * lib/mkstemp.h: New file, since some standard headers
96672         #define mkstemp.
96673         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
96674         Include "mkstemp.h".
96675         Make the _LIBC code resemble glibc original more,
96676         e.g., use K&R style.
96677         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
96678         (mkstemp): Remove, since mkstemp.h does this for us.
96679         * lib/stdlib--.h: Include mkstemp.h.
96681         Import this patch from libc:
96683         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
96685         * lib/tempname.c (__gen_tempname): Change attempts_min
96686         into a macro.  Use preprocessor to decide how to initialize
96687         attempts [Coverity CID 67].
96689 2006-09-20  Bruno Haible  <bruno@clisp.org>
96691         * lib/mkdtemp.c: Import from libc.
96692         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
96693                 * sysdeps/posix/tempname.c (__gen_tempname): Change
96694                 attempts_min into a macro.  Use preprocessor to decide how to
96695                 initialize attempts [Coverity CID 67].
96696         2001-11-27  Paul Eggert  <eggert@twinsun.com>
96697                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
96698                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
96700 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96702         * gnulib-tool (func_exit): New function, to allow to pass the
96703         exit status portably through the trap.  Use everywhere.
96704         (--help, --version): Signal a write error.
96705         (trap): catch SIGPIPE, for write errors.
96706         Exit at the end of the trap, with the correct exit status.
96708 2006-09-19  Karl Berry  <karl@gnu.org>
96710         * doc/gnulib.texi: note about the license texinfo files.
96712 2006-09-19  Eric Blake  <ebb9@byu.net>
96714         * gnulib-tool: Avoid space-tab.
96716 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
96718         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
96719         that prevented coreutils 6.1 from building.  Problem reported
96720         by Petter Reinholdtsen.
96722 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
96724         * gnulib-tool (avoidlist): Fix typo that broke options like
96725         --avoid=lock that are used by coreutils bootstrap.
96727 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
96729         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
96730         more systematically.
96732 2006-09-18  Jim Meyering  <jim@meyering.net>
96734         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
96736 2006-09-18  Bruno Haible  <bruno@clisp.org>
96738         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
96740 2006-09-18  Bruno Haible  <bruno@clisp.org>
96742         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
96743         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
96744         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
96745         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
96746         * m4/gettext.m4: Require autoconf >= 2.52.
96747         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
96748         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
96749         of gl_cv_header_inttypes_h.
96751 2006-09-18  Bruno Haible  <bruno@clisp.org>
96753         * lib/javaversion.c: Include configmake.h.
96755 2006-09-18  Bruno Haible  <bruno@clisp.org>
96757         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
96758         avoid that the while loops be executed in a subshell.
96760 2006-09-18  Bruno Haible  <bruno@clisp.org>
96762         * MODULES.html.sh (func_module): Break long lines.
96763         Suggested by Bruce Korb <bkorb@gnu.org>.
96765 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96767         Speed up by a factor of 1.12.
96768         * gnulib-tool (nl): New variable.
96769         (func_import): Rewrite include directive extraction to only read each
96770         directive once.
96772 2006-09-17  Bruno Haible  <bruno@clisp.org>
96774         * modules/javaversion (Makefile.am): Remove DEFS setting.
96775         (Depends-on): Add configmake, for PKGDATADIR definition.
96777 2006-09-17  Bruno Haible  <bruno@clisp.org>
96779         * gnulib-tool (func_create_testdir): Rewrite all files at once.
96781 2006-09-17  Bruno Haible  <bruno@clisp.org>
96783         * gnulib-tool (func_append): New function, stolen from libtool.m4.
96784         (func_modules_transitive_closure, func_modules_add_dummy,
96785         func_modules_to_filelist, func_import, func_create_testdir,
96786         func_create_megatestdir, ...): Use it wherever possible.
96787         Suggested by Ralf Wildenhues.
96789 2006-09-16  Karl Berry  <karl@gnu.org>
96791         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
96792         to avoid sectioning errors.
96793         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
96794         [ifinfo]: blank line after @center-ed titles.
96795         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
96796         Spell FSF address consistently with others.
96797         (These changes approved by rms.)
96799 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96801         Speed up by a factor of 1.61.
96802         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
96803         already checked module names again.
96805 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96807         Speed up by a factor of 1.13.
96808         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
96809         for new_files, and the input to func_add_or_update.
96811 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96813         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
96814         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
96816 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
96818         * modules/mkancesdirs (Depends-on): Add fcntl.
96819         * modules/savewd: New file.
96820         * MODULES.html.sh (File system functions): Add savewd.
96822         * modules/configmake (Makefile.am): Add support for the
96823         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
96825 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
96827         * m4/savewd.m4: New file.
96829 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
96831         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
96832         (dirchownmod): New arg FD.  All callers changed.
96833         Use FD rather than opening the directory ourself, as opening is
96834         now the caller's responsibility.
96835         * lib/dirchownmod.h: Likewise.
96836         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
96837         hosts that require <sys/types.h> before <sys/stat.h>.  Include
96838         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
96839         (test_dir): Remove.
96840         (mkancesdirs): Return length of prefix of FILE that has already
96841         been made, or -2 if there is a child doing the work.  Redo
96842         algorithm so that it is O(N) rather than O(N**2).  Optimize away
96843         ".", and treat ".." specially since it might stray back into
96844         already-created areas.  Use a subprocess if necessary.  New arg
96845         WD; all users changed.  MAKE_DIR function should now return 1
96846         if it creates a directory that is not readable.  Return -2 if
96847         a child process is spun off.
96848         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
96849         Adjust signature to match code.
96850         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
96851         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
96852         all users changed.
96853         * lib/savewd.c, lib/savewd.h: New files.
96855 2006-09-15  Jim Meyering  <jim@meyering.net>
96857         * modules/rename-dest-slash: New module.
96858         * MODULES.html.sh (posix_compat): Add it here.
96860         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
96862 2006-09-15  Jim Meyering  <jim@meyering.net>
96864         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
96865         file.
96867         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
96869 2006-09-15  Jim Meyering  <jim@meyering.net>
96871         * lib/rename-dest-slash.c (has_trailing_slash): Use
96872         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
96873         (rpl_rename_dest_slash): Perform the cheaper trailing slash
96874         test before testing whether SRC is a directory.
96875         Suggestions from Bruno Haible.
96877         Avoid a warning about an unused variable.
96878         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
96879         into the #ifdef block where it's used.
96881         * lib/rename-dest-slash.c: New file.
96883 2006-09-14  Bruno Haible  <bruno@clisp.org>
96885         * lib/allocsa.c: Include <config.h> unconditionally.
96886         * lib/asnprintf.c: Likewise.
96887         * lib/asprintf.c: Likewise.
96888         * lib/c-strcasecmp.c: Likewise.
96889         * lib/c-strcasestr.c: Likewise.
96890         * lib/c-strncasecmp.c: Likewise.
96891         * lib/c-strstr.c: Likewise.
96892         * lib/classpath.c: Likewise.
96893         * lib/clean-temp.c: Likewise.
96894         * lib/concatpath.c: Likewise.
96895         * lib/copy-file.c: Likewise.
96896         * lib/csharpcomp.c: Likewise.
96897         * lib/csharpexec.c: Likewise.
96898         * lib/execute.c: Likewise.
96899         * lib/fatal-signal.c: Likewise.
96900         * lib/findprog.c: Likewise.
96901         * lib/fwriteerror.c: Likewise.
96902         * lib/gl_array_list.c: Likewise.
96903         * lib/gl_array_oset.c: Likewise.
96904         * lib/gl_avltree_list.c: Likewise.
96905         * lib/gl_avltree_oset.c: Likewise.
96906         * lib/gl_avltreehash_list.c: Likewise.
96907         * lib/gl_carray_list.c: Likewise.
96908         * lib/gl_linked_list.c: Likewise.
96909         * lib/gl_linkedhash_list.c: Likewise.
96910         * lib/gl_list.c: Likewise.
96911         * lib/gl_oset.c: Likewise.
96912         * lib/gl_rbtree_list.c: Likewise.
96913         * lib/gl_rbtree_oset.c: Likewise.
96914         * lib/gl_rbtreehash_list.c: Likewise.
96915         * lib/imaxabs.c: Likewise.
96916         * lib/imaxdiv.c: Likewise.
96917         * lib/javacomp.c: Likewise.
96918         * lib/javaexec.c: Likewise.
96919         * lib/javaversion.c: Likewise.
96920         * lib/linebreak.c: Likewise.
96921         * lib/localcharset.c: Likewise.
96922         * lib/lock.c: Likewise.
96923         * lib/mbchar.c: Likewise.
96924         * lib/mbswidth.c: Likewise.
96925         * lib/mkdtemp.c: Likewise.
96926         * lib/pipe.c: Likewise.
96927         * lib/printf-args.c: Likewise.
96928         * lib/printf-parse.c: Likewise.
96929         * lib/progname.c: Likewise.
96930         * lib/progreloc.c: Likewise.
96931         * lib/readlink.c: Likewise.
96932         * lib/sh-quote.c: Likewise.
96933         * lib/stpcpy.c: Likewise.
96934         * lib/stpncpy.c: Likewise.
96935         * lib/strcasecmp.c: Likewise.
96936         * lib/strcasestr.c: Likewise.
96937         * lib/strcspn.c: Likewise.
96938         * lib/striconv.c: Likewise.
96939         * lib/strncasecmp.c: Likewise.
96940         * lib/strnlen1.c: Likewise.
96941         * lib/strstr.c: Likewise.
96942         * lib/strtok_r.c: Likewise.
96943         * lib/tls.c: Likewise.
96944         * lib/tmpdir.c: Likewise.
96945         * lib/unicodeio.c: Likewise.
96946         * lib/unsetenv.c: Likewise.
96947         * lib/vasnprintf.c: Likewise.
96948         * lib/vasprintf.c: Likewise.
96949         * lib/wait-process.c: Likewise.
96950         * lib/xallocsa.c: Likewise.
96951         * lib/xsetenv.c: Likewise.
96952         * lib/xstriconv.c: Likewise.
96954 2006-09-13  Simon Josefsson  <jas@extundo.com>
96956         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
96957         that internally, suggested by Ralf Wildenhues
96958         <Ralf.Wildenhues@gmx.de>.
96960 2006-09-13  Simon Josefsson  <jas@extundo.com>
96962         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
96963         @LIBOBJS@.
96964         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
96966 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
96968         * lib/_fpending.c: Include <config.h> unconditionally, since we no
96969         longer worry about uses that don't define HAVE_CONFIG_H.
96970         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
96971         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
96972         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
96973         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
96974         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
96975         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
96976         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
96977         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
96978         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
96979         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
96980         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
96981         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
96982         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
96983         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
96984         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
96985         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
96986         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
96987         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
96988         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
96989         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
96990         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
96991         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
96992         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
96993         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
96994         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
96995         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
96996         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
96997         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
96998         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
96999         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
97000         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
97001         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
97002         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
97003         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
97004         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
97005         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
97006         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
97007         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
97008         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
97009         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
97010         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
97011         Likewise.
97013 2006-09-13  Eric Blake  <ebb9@byu.net>
97015         * lib/getopt.c: Fix typo in last commit.
97017 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
97019         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
97020         dgettext.
97022 2006-09-12  Jim Meyering  <jim@meyering.net>
97024         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
97025         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
97026         Reported by Nelson H. F. Beebe.
97028 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
97030         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
97031         program_invocation_name and program_invocation_short_name are
97032         initialized.
97033         * lib/argp-namefrob.h: Move declarations of program_invocation_name
97034         and program_invocation_short_name to argp.h, so they are visible
97035         to user programs.
97036         * lib/argp.h: Likewise
97038 2006-09-10  Bruno Haible  <bruno@clisp.org>
97040         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
97041         m4/inttypes_h.m4, m4/uintmax_t.m4.
97043 2006-09-10  Bruno Haible  <bruno@clisp.org>
97045         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
97046         gl_AC_TYPE_UINTMAX_T.
97048 2006-09-10  Bruno Haible  <bruno@clisp.org>
97050         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
97052 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
97054         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
97055         convention.  Text proposed by Bruno Haible.
97056         (struct argp_option): Document the use of N_() wrappers.
97058         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
97059         '\v', and translate the two parts separately, instead of feeding
97060         the whole string to gettext.  This allows to exclude
97061         '\v' from the strings visible to the translator by writing doc
97062         strings as N_("..") "\v" N_("..").
97064 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
97066         * config/srclist.txt: Undo latest change; the bug was fixed.
97068 2006-09-09  Bruno Haible  <bruno@clisp.org>
97070         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
97071         assignments if building a library without libtool.
97072         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
97073         in func_emit_lib_Makefile_am.
97074         (func_import): When building a static library libfoo.a, arrange to
97075         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
97076         (func_create_testdir): Likewise.
97077         * modules/gc (configure.ac, Makefile.am): If building statically,
97078         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
97079         * modules/iconvme (configure.ac, Makefile.am): Likewise.
97080         * modules/striconv (configure.ac, Makefile.am): Likewise.
97081         Based on a suggestion by Ralf Wildenhues.
97083 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
97085         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
97086         Check for unistd.h too, since Autoconf doesn't assume POSIX.
97087         Also:
97089         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
97090         Add year_2050_test to catch glibc bug 2821
97091         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
97093         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
97094         Prefer #ifdef to #if.
97096         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
97097         Return from 'main' instead of calling 'exit'.
97099 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
97101         * lib/mktime.c (guess_time_tm): Fix bug where mktime
97102         returned the maximum time_t value rather than (time_t) -1.
97103         Problem originally reported by William Bardwell
97104         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
97106         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
97107         Moved to here ...
97108         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
97109         ... from here.
97111 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
97113         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
97114         2821 is fixed.
97116 2006-09-08  Jim Meyering  <jim@meyering.net>
97118         Don't make generated files read-only.  That would bother too many
97119         people.  However, do retain the ability to work when targets are
97120         read-only: remove the destination and temporary files before writing
97121         them (when generated via sed or echo), or by using the -f option for
97122         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
97123         * modules/alloca-opt, modules/argz, modules/arpa_inet:
97124         * modules/byteswap, modules/configmake, modules/fcntl:
97125         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
97126         * modules/localcharset, modules/netinet_in, modules/poll:
97127         * modules/stdbool, modules/stdint, modules/sys_select:
97128         * modules/sys_socket, modules/sys_stat, modules/sysexits:
97130 2006-09-08  Jim Meyering  <jim@meyering.net>
97132         Avoid new build failure on FreeBSD 6.0.
97133         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
97134         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
97135         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
97137 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97139         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
97141 2006-09-07  Jim Meyering  <jim@meyering.net>
97143         Fix global typo in last change: use chmod u-w, not chmod u-x.
97144         Spotted by Paul Eggert and Bruce Korb.
97145         * modules/alloca-opt, modules/argz, modules/arpa_inet:
97146         * modules/byteswap, modules/configmake, modules/fcntl:
97147         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
97148         * modules/localcharset, modules/netinet_in, modules/poll:
97149         * modules/stdbool, modules/stdint, modules/sys_select:
97150         * modules/sys_socket, modules/sys_stat, modules/sysexits:
97152 2006-09-06  Jim Meyering  <jim@meyering.net>
97154         Make generated files be read-only.
97155         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
97156         Ensure that each generated file is now read-only.
97157         * modules/argz: Likewise.
97158         * modules/arpa_inet: Likewise.
97159         * modules/byteswap: Likewise.
97160         * modules/configmake: Likewise.
97161         * modules/fcntl: Likewise.
97162         * modules/fnmatch: Likewise.
97163         * modules/getopt: Likewise.
97164         * modules/glob: Likewise.
97165         * modules/inttypes: Likewise.
97166         * modules/netinet_in: Likewise.
97167         * modules/poll: Likewise.
97168         * modules/stdbool: Likewise.
97169         * modules/stdint: Likewise.
97170         * modules/sys_select: Likewise.
97171         * modules/sys_socket: Likewise.
97172         * modules/sys_stat: Likewise.
97173         * modules/sysexits: Likewise.
97174         * modules/localcharset: Same as above, but continue using temporary
97175         file named "t-$@" (why different?) rather than the "$@-t" used
97176         everywhere else.
97178         * modules/sysexits (Makefile.am): Replace literal occurrences
97179         of "sysexit.h" more readable, and more consistent, "$@".
97181 2006-09-06  Bruno Haible  <bruno@clisp.org>
97183         * modules/striconv: New file.
97184         * modules/xstriconv: New file.
97185         * MODULES.html.sh (Internationalization functions): Add striconv,
97186         xstriconv.
97188 2006-09-06  Bruno Haible  <bruno@clisp.org>
97190         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
97191         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
97192         not using libtool correctly.
97194 2006-09-06  Bruno Haible  <bruno@clisp.org>
97196         * lib/striconv.h: New file.
97197         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
97198         iconvstring.c.
97199         * lib/xstriconv.h: New file.
97200         * lib/xstriconv.c: New file.
97202 2006-09-06  Bruno Haible  <bruno@clisp.org>
97204         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
97205         lib_..._LDFLAGS.
97207 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97209         * lib/argz_.h: Sync from Libtool.
97211         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
97212                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
97214         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
97216 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
97218         * modules/trim: New file.
97220 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
97222         * lib/trim.h: New file.
97223         * lib/trim.c: New file.
97225 2006-09-05  Bruno Haible  <bruno@clisp.org>
97227         * MODULES.html.sh (String handling): Add trim.
97229 2006-09-04  Karl Berry  <karl@gnu.org>
97231         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
97232         until next release.
97234 2006-09-03  Bruno Haible  <bruno@clisp.org>
97236         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
97237         correctly.
97239 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
97241         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
97242         not gl_GETLOADAVG.  Omit unneeded semicolons.
97243         Problems reported by Ralf Wildenhues in
97244         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
97245         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
97246         at the end, which is the usual gnulib style.
97248         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
97249         of doing all the work ourselves.
97250         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
97251         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
97253 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
97255         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
97256         Problem reported by Ralf Wildenhues in
97257         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
97259         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
97260         HAVE_STRUCT_STATFS_F_FSTYPENAME.
97262 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
97264         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
97265         yesterday's patch by changing test -n to test -z.
97267 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
97269         * modules/getloadavg (Files): Add m4/getloadavg.m4.
97270         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
97271         the former is now obsolescent.
97273         * modules/chdir-long (Depends-on): Add fcntl.
97275 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
97277         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
97278         obsolescent, and programs should use gnulib instead.
97279         * m4/getloadavg.m4: New file, with contents taken from Autoconf
97280         but with prefixes changed.
97282 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
97284         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
97285         or stdbool.h, because they might not exist while configuring.
97287         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
97288         Don't include unistd.h or limits.h; not needed, since chdir-long.h
97289         does that for us.
97290         (O_DIRECTORY): Remove.
97292 2006-08-31  Eric Blake  <ebb9@byu.net>
97294         * gnulib-tool: Don't let emacs change spaces to TAB.
97296 2006-08-31  Bruno Haible  <bruno@clisp.org>
97298         * gnulib-tool: When calling func_import more than once, do it in a
97299         subshell.
97300         Reported by Eric Blake <ebb9@byu.net>.
97302 2006-08-31  Bruno Haible  <bruno@clisp.org>
97304         * gnulib-tool (nl): Remove variable.
97305         (sed_transform_lib_file): Use more robust test for config-h module.
97306         (func_import): Fix typo in 2006-08-25 patch.
97308 2006-08-31  Bruno Haible  <bruno@clisp.org>
97310         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
97311         specified, augment Makefile.am variables instead of assigning them.
97313 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
97315         Work around a bug in both the Linux and SunOS 64-bit kernels:
97316         nanosleep mishandles sleeps for longer than 2**31 seconds.
97317         Problem reported by Frank v Waveren in
97318         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
97319         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
97320         Check for nanosleep bug.
97321         (LIB_NANOSLEEP): Append clock_gettime library if needed.
97323 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
97325         Work around a bug in both the Linux and SunOS 64-bit kernels:
97326         nanosleep mishandles sleeps for longer than 2**31 seconds.
97327         Problem reported by Frank v Waveren in
97328         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
97329         * lib/nanosleep.c (BILLION): New constant.
97330         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
97331         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
97332         implementation.
97334 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
97336         * modules/nanosleep (Depends-on): Add gettime.
97338 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
97339         and Simon Josefsson  <jas@extundo.com>
97340         and Oskar Liljeblad  <oskar@osk.mine.nu>
97342         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
97343         * gnulib-tool (func_import): New license type 'unmodifiable license
97344         text'.
97345         * modules/fdl: Use it.  Longer description.
97346         * module/gpl, module/lgpl: New files.
97348 2006-08-30  Jim Meyering  <jim@meyering.net>
97350         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
97351         shadowing the parameter.
97353 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97355         Sync from Libtool:
97357         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97359         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
97360         sharing with gnulib.  Report by Eric Blake.
97362 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
97364         * modules/isapipe: New file.
97365         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
97367 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
97369         * modules/configmake (Makefile.am): Add a comment, and omit
97370         the CONFIGMAKE_ prefix from generated macro names.  Suggested
97371         by Bruno Haible.
97373 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
97375         * m4/isapipe.m4: New file.
97377 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
97379         * lib/isapipe.c, lib/isapipe.h: New files.
97381 2006-08-29  Jim Meyering  <jim@meyering.net>
97383         * modules/configmake (Makefile.am): Make configmake.h depend on
97384         Makefile.  Otherwise, a stale configmake.h could hang around.
97386 2006-08-29  Eric Blake  <ebb9@byu.net>
97388         * lib/error.c (error_at_line, print_errno_message): Match libc, after
97389         resolution of upstream bug 3044.
97391 2006-08-29  Bruno Haible  <bruno@clisp.org>
97393         * modules/localcharset (Depends-on): Add configmake.
97394         (Makefile.am): Remove setting of LIBDIR through DEFS.
97396 2006-08-29  Bruno Haible  <bruno@clisp.org>
97398         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
97399         defined.
97401 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
97403         * modules/fcntl: New file.
97404         * modules/chdir-safer (Depends-on): Add fcntl.
97405         * modules/fts: Likewise.
97406         * modules/mkdir-p: Likewise.
97408         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
97409         This undoes the most recent change, since we're now addressing the
97410         problem in a different way.
97412         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
97413         into output, since the output might be called Makefile.am even
97414         if $makefile_name is something different.
97415         (func_import): Use $makefile_am rather than
97416         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
97417         empty.
97419         * modules/inttypes (Files): Add m4/inttypes-h.m4.
97421 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
97423         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
97424         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
97425         recent change to stdint.m4, since we're now addressing the problem in a
97426         different way.
97428 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
97430         * m4/fcntl_h.m4: New file.
97432 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
97434         * lib/fcntl_.h: New file.
97435         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
97436         the fcntl module.
97437         * lib/dirchownmod.c: Likewise.
97438         * lib/fts.c: Likewise.
97440         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
97441         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
97442         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
97443         just before including <inttypes.h>, to avoid circular inclusion.
97445 2006-08-28  Jim Meyering  <jim@meyering.net>
97447         * doc/visibility.texi: Actually read and correct the grammar of the
97448         sentence affected by yesterday's change.
97450 2006-08-28  Eric Blake  <ebb9@byu.net>
97452         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
97453         needs wrapper.
97455 2006-08-28  Eric Blake  <ebb9@byu.net>
97457         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
97459 2006-08-28  Eric Blake  <ebb9@byu.net>
97461         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
97463 2006-08-28  Bruno Haible  <bruno@clisp.org>
97465         * modules/c-strstr: New file, from GNU gettext.
97466         * MODULES.html.sh (String handling): Add c-strstr.
97468 2006-08-28  Bruno Haible  <bruno@clisp.org>
97470         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
97471         macros.
97472         Reported by Eric Blake.
97474 2006-08-28  Bruno Haible  <bruno@clisp.org>
97476         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
97477         (VASNPRINTF): Return a string of length > INT_MAX without failing.
97478         * lib/vasprintf.c: Include errno.h, limits.h.
97479         (EOVERFLOW): New fallback definition.
97480         (vasprintf): Test here whether the string length is > INT_MAX.
97481         * lib/vsnprintf.c: Include errno.h, limits.h.
97482         (EOVERFLOW): New fallback definition.
97483         (vsnprintf): Fix bug when generated string was too long for the buffer.
97484         Test here whether the string length is > INT_MAX.
97486 2006-08-28  Bruno Haible  <bruno@clisp.org>
97488         * lib/inttypes_.h (SCNX*): Remove definitions.
97489         Reported by Eric Blake.
97491 2006-08-28  Bruno Haible  <bruno@clisp.org>
97493         * lib/c-strstr.h: New file, from GNU gettext.
97494         * lib/c-strstr.c: New file, from GNU gettext.
97496 2006-08-28  Bruno Haible  <bruno@clisp.org>
97498         * gnulib-tool: Reorder some statements.
97500 2006-08-28  Bruno Haible  <bruno@clisp.org>
97502         * gnulib-tool: New option --makefile-name.
97503         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
97504         $makefile_name.
97505         (func_import): Write $makefile_name to the cache file, and read it from
97506         there unless explicitly specified. Use $makefile_name as file name
97507         instead of Makefile.am. Adjust the recommendations accordingly.
97509 2006-08-28  Bruno Haible  <bruno@clisp.org>
97511         * gnulib-tool (func_verify_module): Check against misapplying patch.
97513 2006-08-28  Bruno Haible  <bruno@clisp.org>
97515         * gnulib-tool (func_relativize, func_relconcat): New functions.
97516         Give an error if --local-dir is given with --update.
97517         Remove trailing slashes from $local_gnulib_dir.
97518         (func_import): Store the relativized $local_gnulib_dir in
97519         gnulib-cache.m4, and read it from there if not specified explicitly.
97521 2006-08-28  Bruno Haible  <bruno@clisp.org>
97523         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
97524         is the current directory. Respect also $local_gnulib_dir.
97526 2006-08-28  Bruno Haible  <bruno@clisp.org>
97527             Simon Josefsson  <jas@extundo.com>
97529         BeOS portability.
97530         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
97532 2006-08-27  Jim Meyering  <jim@meyering.net>
97534         * doc/visibility.texi: Remove duplicate word: "pointer".
97536 2006-08-26  Bruno Haible  <bruno@clisp.org>
97538         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
97539         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
97540         (Makefile.am): Create inttypes.h from inttypes_.h.
97541         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
97543         * modules/imaxabs: New file.
97545         * modules/imaxdiv: New file.
97547 2006-08-26  Bruno Haible  <bruno@clisp.org>
97549         * m4/inttypes.m4: New file.
97550         * m4/_inttypes_h.m4: Remove file.
97551         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
97552         PRI_MACROS_BROKEN.
97553         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
97555         * m4/imaxabs.m4: New file.
97557         * m4/imaxdiv.m4: New file.
97559 2006-08-26  Bruno Haible  <bruno@clisp.org>
97561         * lib/inttypes_.h: New file.
97562         * lib/inttypes.h: Remove file.
97563         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
97565         * lib/imaxabs.c: New file.
97567         * lib/imaxdiv.c: New file.
97569 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
97571         New config-h module, so that "make" output needn't be cluttered
97572         by -DHAVE_CONFIG_H.
97573         * MODULES.html.sh (Support for building libraries and executables):
97574         Add config-h.
97575         * modules/config-h: New file.
97576         * gnulib-tool (nl, sed_transform_lib_file): New vars.
97577         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
97578         the config-h module is used.
97580         New configmake module, so that "make" output needn't be cluttered
97581         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
97582         * MODULES.html.sh (Support for building libraries and executables):
97583         Add configmake.
97584         * modules/configmake: New file.
97586 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
97588         * m4/config-h.m4: New file.
97590 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
97592         * config/srclist.txt: Add elisp-comp.
97594 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
97596         * MODULES.html.sh (Support for building libraries and executables):
97597         Add elisp-comp.
97598         * build-aux/elisp-comp: New file.
97599         * modules/elisp-comp: New file.
97601 2006-08-24  Bruno Haible  <bruno@clisp.org>
97603         * gnulib-tool (func_create_testdir): Use non-default values of
97604         sourcebase and m4base.
97606 2006-08-24  Bruno Haible  <bruno@clisp.org>
97608         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
97609         HTML structure.
97611 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
97613         * modules/openat (Depends-on): Add lchown.
97615 2006-08-23  Bruno Haible  <bruno@clisp.org>
97617         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
97618         of gl_LOCK_EARLY instead of gl_LOCK.
97620 2006-08-23  Bruno Haible  <bruno@clisp.org>
97622         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
97623         on OSF/1 to no.
97624         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
97626 2006-08-23  Bruno Haible  <bruno@clisp.org>
97628         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
97629         as unusable.
97631         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
97632         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
97633         (gl_LOCK): New macro.
97635 2006-08-22  Simon Josefsson  <jas@extundo.com>
97637         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
97638         to md5 module.
97640 2006-08-22  Simon Josefsson  <jas@extundo.com>
97642         * MODULES.html.sh: Add "Support for maintaining and release
97643         projects".
97645         * build-aux/gnupload: New file, from coreutils.
97647 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
97649         Avoid the need for AC_LIBSOURCES in m4 macros.
97650         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
97651         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
97652         * modules/check-version (EXTRA_DIST): Add check-version.h.
97653         * modules/crc (EXTRA_DIST): Add crc.h.
97654         * modules/des (EXTRA_DIST): Add des.h.
97655         * modules/gc (EXTRA_DIST): Add gc.h.
97656         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
97657         * modules/getline (EXTRA_DIST): Add getline.h.
97658         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
97659         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
97660         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
97661         * modules/md2 (EXTRA_DIST): Add md2.h.
97662         * modules/md4 (EXTRA_DIST): Add md4.h.
97663         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
97664         * modules/read-file (EXTRA_DIST): Add read-file.h.
97665         * modules/readline (EXTRA_DIST): Add readline.h.
97666         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
97667         rijndael-api-fst.h.
97669 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
97671         * m4/rijndael.m4 (gl_ARCFOUR):
97672         * m4/arctwo.m4 (gl_ARCTWO):
97673         * m4/check-version.m4 (gl_CHECK_VERSION):
97674         * m4/crc.m4 (gl_CRC):
97675         * m4/des.m4 (gl_DES):
97676         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
97677         * m4/gc.m4 (gl_GC):
97678         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
97679         * m4/getline.m4 (gl_FUNC_GETLINE):
97680         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
97681         * m4/hmac-md5.m4 (gl_HMAC_MD5):
97682         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
97683         * m4/md2.m4 (gl_MD2):
97684         * m4/md4.m4 (gl_MD4):
97685         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
97686         * m4/read-file.m4 (gl_FUNC_READ_FILE):
97687         * m4/readline.m4 (gl_FUNC_READLINE):
97688         * m4/rijndael.m4 (gl_RIJNDAEL):
97689         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
97690         to get the necessary .h files and whatnot.
97692 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
97694         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
97695         gnulib rather than the other way around.
97696         * config/srclistvars.sh (COREUTILS): Remove.
97698 2006-08-22  Jim Meyering  <jim@meyering.net>
97700         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
97702         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
97704 2006-08-22  Eric Blake  <ebb9@byu.net>
97706         * modules/regexprops-generic: New file.
97707         * MODULES.html.sh (Support for building documentation): List it.
97709 2006-08-22  Eric Blake  <ebb9@byu.net>
97711         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
97712         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
97713         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
97714         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
97716 2006-08-22  Bruno Haible  <bruno@clisp.org>
97718         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
97719         and lib_LTLIBRARIES like the other lib_* variables.
97721 2006-08-22  Bruno Haible  <bruno@clisp.org>
97723         * build-aux/x-to-1.in: New file, from GNU gettext.
97725 2006-08-22  Bruno Haible  <bruno@clisp.org>
97727         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
97728         <utmpx.h> exists.
97730 2006-08-22  Bruno Haible  <bruno@clisp.org>
97732         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
97733         <utmpx.h> exists.
97735 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
97737         BeOS portability.
97738         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
97739         exist.
97740         Problem reported by Bruno Haible.
97742 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
97744         Avoid the need for AC_LIBSOURCES in m4 macros.
97745         * modules/acl (EXTRA_DIST): Add acl.h.
97746         * modules/argmatch (Files): Add m4/argmatch.m4.
97747         (configure.ac): Add gl_ARGMATCH.
97748         (EXTRA_DIST): Renamed from lib_SOURCES, for
97749         consistency with the other modules.  Remove argmatch.c.
97750         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
97751         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
97752         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
97753         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
97754         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
97755         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
97756         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
97757         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
97758         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
97759         * modules/closeout (EXTRA_DIST): Add closeout.h.
97760         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
97761         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
97762         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
97763         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
97764         dirname.h; remove basename.c and stripslash.c.
97765         * modules/exclude (EXTRA_DIST): Add exclude.h.
97766         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
97767         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
97768         * modules/file-type (EXTRA_DIST): Add file-type.h.
97769         * modules/filemode (EXTRA_DIST): Add filemode.h.
97770         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
97771         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
97772         * modules/fpending (EXTRA_DIST): Add __fpending.h.
97773         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
97774         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
97775         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
97776         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
97777         * modules/getdate (EXTRA_DIST): Add getdate.c.
97778         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
97779         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
97780         * modules/getpass (EXTRA_DIST): Add getpass.h.
97781         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
97782         * modules/group-member (EXTRA_DIST): Add group-member.h.
97783         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
97784         * modules/hash (EXTRA_DIST): Add hash.h.
97785         * modules/human (EXTRA_DIST): Add human.h.
97786         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
97787         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
97788         * modules/lchown (EXTRA_DIST): Add lchown.h.
97789         * modules/long-options (EXTRA_DIST): Add long-options.h.
97790         * modules/lstat (EXTRA_DIST): Add lstat.h.
97791         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
97792         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
97793         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
97794         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
97795         * modules/memxor (EXTRA_DIST): Add memxor.h.
97796         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
97797         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
97798         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
97799         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
97800         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
97801         * modules/physmem (EXTRA_DIST): Add physmem.h.
97802         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
97803         * modules/posixver (EXTRA_DIST): Add posixver.h.
97804         * modules/quote (EXTRA_DIST): Add quote.h.
97805         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
97806         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
97807         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
97808         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
97809         regex_internal.h regexec.c.
97810         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
97811         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
97812         * modules/same (EXTRA_DIST): Add same.h.
97813         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
97814         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
97815         * modules/savedir (EXTRA_DIST): Add savedir.h.
97816         * modules/sha1 (EXTRA_DIST): Add sha1.h.
97817         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
97818         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
97819         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
97820         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
97821         * modules/strdup (EXTRA_DIST): Add strdup.h.
97822         * modules/strftime (EXTRA_DIST): Add strftime.h.
97823         * modules/strndup (EXTRA_DIST): Add strndup.h.
97824         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
97825         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
97826         * modules/time_r (EXTRA_DIST): Add time_r.h.
97827         * modules/timespec (EXTRA_DIST): Add timespec.h.
97828         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
97829         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
97830         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
97831         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
97832         * modules/userspec (EXTRA_DIST): Add userspec.h.
97833         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
97834         * modules/utimens (EXTRA_DIST): Add utimens.h.
97835         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
97836         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
97837         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
97838         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
97839         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
97840         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
97841         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
97842         * modules/yesno (EXTRA_DIST): Add yesno.h.
97844 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
97846         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
97848         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
97849         * m4/dev-ino.m4, same-inode.m4: Remove.
97851         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
97852         * m4/acl.m4 (AC_FUNC_ACL):
97853         * m4/backupfile.m4 (gl_BACKUPFILE):
97854         * m4/c-strtod.m4 (gl_C99_STRTOLD):
97855         * m4/canon-host.m4 (gl_CANON_HOST):
97856         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
97857         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
97858         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
97859         * m4/cloexec.m4 (gl_CLOEXEC):
97860         * m4/close-stream.m4 (gl_CLOSE_STREAM):
97861         * m4/closeout.m4 (gl_CLOSEOUT):
97862         * m4/dirfd.m4 (gl_FUNC_DIRFD):
97863         * m4/dirname.m4 (gl_DIRNAME):
97864         * m4/exclude.m4 (gl_EXCLUDE):
97865         * m4/exitfail.m4 (gl_EXITFAIL):
97866         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
97867         * m4/file-type.m4 (gl_FILE_TYPE):
97868         * m4/filemode.m4 (gl_FILEMODE):
97869         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
97870         * m4/fpending.m4 (gl_FUNC_FPENDING):
97871         * m4/fprintftime.m4 (gl_FPRINTFTIME):
97872         * m4/fts.m4 (gl_FUNC_FTS):
97873         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
97874         * m4/getdate.m4 (gl_GETDATE):
97875         * m4/gethrxtime.m4 (gl_GETHRXTIME):
97876         * m4/getpagesize.m4 (gl_GETPAGESIZE):
97877         * m4/getpass.m4 (gl_FUNC_GETPASS):
97878         * m4/gettime.m4 (gl_GETTIME):
97879         * m4/getugroups.m4 (gl_GETUGROUPS):
97880         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
97881         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
97882         * m4/hard-locale.m4 (gl_HARD_LOCALE):
97883         * m4/hash.m4 (gl_HASH):
97884         * m4/idcache.m4 (gl_IDCACHE):
97885         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
97886         * m4/lchown.m4 (gl_FUNC_LCHOWN):
97887         * m4/long-options.m4 (gl_LONG_OPTIONS):
97888         * m4/lstat.m4 (gl_FUNC_LSTAT):
97889         * m4/md5.m4 (gl_MD5):
97890         * m4/memcasecmp.m4 (gl_MEMCASECMP):
97891         * m4/memcoll.m4 (gl_MEMCOLL):
97892         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
97893         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
97894         * m4/memxor.m4 (gl_MEMXOR):
97895         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
97896         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
97897         * m4/modechange.m4 (gl_MODECHANGE):
97898         * m4/mountlist.m4 (gl_MOUNTLIST):
97899         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
97900         * m4/openat.m4 (gl_FUNC_OPENAT):
97901         * m4/pathmax.m4 (gl_PATHMAX):
97902         * m4/physmem.m4 (gl_PHYSMEM):
97903         * m4/posixtm.m4 (gl_POSIXTM):
97904         * m4/posixver.m4 (gl_POSIXVER):
97905         * m4/quote.m4 (gl_QUOTE):
97906         * m4/quotearg.m4 (gl_QUOTEARG):
97907         * m4/readtokens.m4 (gl_READTOKENS):
97908         * m4/readutmp.m4 (gl_READUTMP):
97909         * m4/regex.m4 (gl_REGEX):
97910         * m4/safe-read.m4 (gl_SAFE_READ):
97911         * m4/safe-write.m4 (gl_SAFE_WRITE):
97912         * m4/same.m4 (gl_SAME):
97913         * m4/save-cwd.m4 (gl_SAVE_CWD):
97914         * m4/savedir.m4 (gl_SAVEDIR):
97915         * m4/settime.m4 (gl_SETTIME):
97916         * m4/sha1.m4 (gl_SHA1):
97917         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
97918         * m4/stat-macros.m4 (gl_STAT_MACROS):
97919         * m4/stat-time.m4 (gl_STAT_TIME):
97920         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
97921         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
97922         * m4/strdup.m4 (gl_FUNC_STRDUP):
97923         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
97924         * m4/strndup.m4 (gl_FUNC_STRNDUP):
97925         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
97926         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
97927         * m4/time_r.m4 (gl_TIME_R):
97928         * m4/timespec.m4 (gl_TIMESPEC):
97929         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
97930         * m4/unlinkdir.m4 (gl_UNLINKDIR):
97931         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
97932         * m4/userspec.m4 (gl_USERSPEC):
97933         * m4/utimecmp.m4 (gl_UTIMECMP):
97934         * m4/utimens.m4 (gl_UTIMENS):
97935         * m4/xalloc.m4 (gl_XALLOC):
97936         * m4/xgetcwd.m4 (gl_XGETCWD):
97937         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
97938         * m4/xreadlink.m4 (gl_XREADLINK):
97939         * m4/xstrtod.m4 (gl_XSTRTOD):
97940         * m4/yesno.m4 (gl_YESNO):
97941         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
97942         to get the necessary .h files and whatnot.
97944 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
97945             Bruno Haible  <bruno@clisp.org>
97947         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
97948         /bin/sh understanding of '!' conditional negation.
97950 2006-08-21  Jim Meyering  <jim@meyering.net>
97952         * modules/openat (Depends-on): Really alphabetize.
97954         * modules/acl (Depends-on): Add error and quote.
97956         * check-module (find_included_lib_files): Add at-func.c to the
97957         ok-to-include-more-than-once white list.
97959         * modules/openat (Depends-on): Add lstat.  Alphabetize.
97961 2006-08-21  Bruno Haible  <bruno@clisp.org>
97963         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
97964         Emit a pkgdata_DATA variable only if some snippets add contents to it.
97965         Reported by Martin Lambers <marlam@marlam.de>.
97967 2006-08-21  Bruno Haible  <bruno@clisp.org>
97969         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
97970         specify an installation location, don't emit a noinst_LIBRARIES or
97971         noinst_LTLIBRARIES assignment.
97973 2006-08-21  Bruno Haible  <bruno@clisp.org>
97975         BeOS portability.
97976         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
97977         BeOS has mbrtowc() but no <wctype.h>.
97979 2006-08-21  Bruno Haible  <bruno@clisp.org>
97981         BeOS portability.
97982         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
97983         exist.
97985 2006-08-21  Bruno Haible  <bruno@clisp.org>
97987         BeOS portability.
97988         * lib/mbchar.h: Include <wctype.h> only if it exists.
97990 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
97992         Remove files that are no longer needed by their respective modules.
97993         * m4/obstack.m4: Remove.
97994         * m4/strerror_r.m4: Remove.
97995         * m4/uint32_t.m4: Remove.
97996         * m4/uintptr_t.m4: Remove.
97997         * m4/ullong_max.m4: Remove.
97998         * m4/xstrtoimax.m4: Remove.
97999         * m4/xstrtoumax.m4: Remove.
98001         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
98002         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
98003         dependencies now capture this.
98005         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
98006         Do not use AC_LIBSOURCES, since gnulib modules now do this.
98007         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
98008         * m4/human.m4 (gl_HUMAN): Likewise.
98009         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
98010         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
98012         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
98014         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
98015         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
98016         stdint.
98017         * m4/human.m4 (gl_HUMAN): Likewise.
98018         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
98019         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
98020         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
98021         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
98022         * m4/xstrtol (gl_XSTRTOL): Likewise.
98024         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
98025         AC_TYPE_LONG_LONG_INT.
98026         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
98027         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
98028         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
98029         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
98031         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
98032         on stdbool.
98034         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
98035         (gl_PREREQ_XSTRTOUL): Remove.
98037         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
98039         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
98040         mode.
98042 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
98044         Add and change modules to make it easier for coreutils to use
98045         gnulib-tool.
98046         * modules/backupfile (Files): Remove m4/d-ino.m4.
98047         (Depends-on): Add d-ino.
98048         * modules/cycle-check (Depends-on): Add stdint.
98049         (lib_SOURCES): Add cycle-check.h.
98050         * modules/d-ino: New module.
98051         * modules/d-type: New module.
98052         * modules/error (Files): Remove m4/strerror_r.m4.
98053         * modules/filemode (Files): Add m4/st_dm_mode.m4.
98054         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
98055         m4/inttypes_h.m4, m4/uintmax_t.m4.
98056         (Depends-on): Add stdint.
98057         (lib_SOURCES): Add fsusage.h.
98058         * modules/getcwd (Files): Remove d-ino.m4.
98059         (Depends-on): Add d-ino.
98060         * modules/getndelim2 (Depends-on): Add stdint.
98061         * modules/glob (Files): Remove m4/d-type.m4.
98062         (Depends-on): Add d-type.
98063         * modules/host-os: New module.
98064         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
98065         m4/inttypes_h.m4, m4/uintmax_t.m4.
98066         * Depends-on: Add stdint.
98067         (lib_SOURCES): Add human.h.
98068         * modules/inttostr (Files): Remove m4/intmax_t.m4,
98069         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
98070         m4/uintmax_t.m4, m4/ulonglong.m4.
98071         (Depends-on): Add stdint.
98072         (EXTRA_DIST): Add inttostr.h.
98073         * modules/lchmod: New module.
98074         * modules/link-follow: New module.
98075         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
98076         (Depends-on): Add lchmod.
98077         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
98078         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
98079         (Depends-on): Add stdint.
98080         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
98081         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
98082         (Depends-on): Add stdint.
98083         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
98084         * modules/perl: New module.
98085         * modules/regex (Depends-on): Add stdint.
98086         * modules/rmdir-errno: New module.
98087         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
98088         m4/intmax_t.m4.
98089         (Depends-on): Add stdint.
98090         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
98091         m4/uintmax_t.m4.
98092         (Depends-on): Add stdint.
98093         * modules/unlink-busy: New module.
98094         * modules/utimecmp (Depends-on): Add stdint.
98095         * modules/uptime: New module.
98096         * modules/winsz-ioctl: New module.
98097         * modules/winsz-termios: New module.
98098         * modules/xnanosleep (Depends-on): Add nanosleep.
98099         * modules/ullong_max: Remove.
98100         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
98101         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
98102         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
98103         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
98104         (Depends-on): Add inttypes.
98105         (lib_SOURCES): Add xstrtol.h.
98106         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
98107         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
98108         * MODULES.html.sh: Move 'assert' into the assert section.
98109         Move 'dummy' into the linking section.
98110         Remove ullong_max.
98111         Add section for compatibility checks for POSIX:2001 functions,
98112         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
98113         winsz-ioctl, and winsz-termios into it.
98114         Add lchmod.
98115         Add top-level Misc section and put host-os, perl, and uptime
98116         into it.
98118 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
98120         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
98121         now assume the stdint module.  Do not include inttypes.h.
98122         * lib/fsusage.h: Likewise.
98123         * lib/getndelim2.c: Likewise.
98124         * lib/human.h: Likewise.
98125         * lib/inttostr.h: Likewise.
98126         * lib/obstack.c: Likewise.
98127         * lib/regex_internal.h: Likewise.
98128         * lib/tempname.c: Likewise.
98129         * lib/utimecmp.c: Likewise.
98130         * lib/xstrtol.h: Likewise.
98132         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
98134         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
98135         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
98136         * lib/xtime.h: Likewise.
98138 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
98140         * modules/openat (Files): Add lib/fchmodat.c.
98141         Fixes problem reported by Jay Youngman.
98143 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
98145         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
98146         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
98148 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
98149             Bruno Haible  <bruno@clisp.org>
98151         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
98152         and is a script that invokes bison. Tighten the code. Add comments.
98154 2006-08-18  Jim Meyering  <jim@meyering.net>
98156         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
98157         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
98158         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
98159         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
98161 2006-08-18  Bruno Haible  <bruno@clisp.org>
98163         * modules/bison-i18n: New file.
98164         * MODULES.html.sh (Internationalization functions): Add it.
98166 2006-08-18  Bruno Haible  <bruno@clisp.org>
98168         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
98169         sys/statvfs.h. When getmntinfo was found, check its declaration and
98170         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
98172 2006-08-18  Bruno Haible  <bruno@clisp.org>
98174         * m4/bison-i18n.m4: New file, from bison.
98176 2006-08-18  Bruno Haible  <bruno@clisp.org>
98178         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
98179         (ME_DUMMY): Treat "kernfs" as a dummy.
98180         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
98182 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
98184         Update from coreutils.
98186         2006-08-15  Jim Meyering  <jim@meyering.net>
98188         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
98190         2006-01-17  Jim Meyering  <jim@meyering.net>
98192         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
98194         2006-01-11  Jim Meyering  <jim@meyering.net>
98196         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
98197         Check for the lchmod function.
98199 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
98201         Update from coreutils.
98203         * lib/__fpending.h: Add copyright notice.
98204         * lib/fprintftime.h: Likewise.
98205         * lib/savedir.c: Use (C) in copyright notice.
98206         * lib/savedir.h: Likewise.
98208         2006-08-15  Jim Meyering  <jim@meyering.net>
98210         * lib/at-func.c: New file, with the logic of all emulated at-functions.
98211         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
98212         in support of the EXPECTED_ERRNO macro.
98213         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
98214         definitions.  Instead, define the appropriate symbols and include
98215         "at-func.c".
98216         * lib/mkdirat.c (mkdirat): Likewise.
98217         * lib/fchmodat.c (fchmodat): Likewise.
98218         (ENOSYS): Remove definition.
98219         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
98220         it.  Don't include "unistd--.h" -- it wasn't ever used.
98222         2006-01-17  Jim Meyering  <jim@meyering.net>
98224         Rewrite fts.c not to change the current working directory,
98225         by using openat, fstatat, fdopendir, etc..
98227         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
98228         (HAVE_OPENAT_SUPPORT): Define.
98229         [_LIBC] (fchdir): Don't undef or define; no longer used.
98230         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
98231         Now, this `function' always succeeds, and consumes its file descriptor
98232         parameter -- so callers must not close such FDs.  Update callers.
98233         (diropen_fd, opendirat, cwd_advance_fd): New functions.
98234         (diropen): Add parameter, SP.  Adjust all callers.
98235         Implement using diropen_fd, rather than open.
98236         (fts_open): Initialize new member, fts_cwd_fd.
98237         Remove fts_rft-setting code.
98238         (fts_close): Close fts_cwd_fd, if necessary.
98239         (__opendir2): Define in terms of opendir or opendirat,
98240         depending on whether the FST_NOCHDIR flag is set.
98241         (fts_build): Since fts_safe_changedir consumes its FD, and since
98242         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
98243         and close the dup'd file descriptor upon failure.
98244         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
98245         (fts_safe_changedir): Tweak semantics to reflect that this function
98246         now calls cwd_advance_fd and hence consumes its FD argument.
98247         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
98248         [struct FTS] (fts_rft): Remove now-unused member.
98249         [struct FTS] (fts_cycle.state): Improve comment.
98251         * lib/openat.c (openat_needs_fchdir): New function.
98252         * lib/openat.h (openat_needs_fchdir): Declare it.
98254 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
98256         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
98257         Problem and fix reported by Pádraig Brady in
98258         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00099.html>.
98260 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
98262         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
98264 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
98266         * lib/memcoll.c (memcoll): Optimize for the common case where the
98267         arguments are bytewise equal.
98269 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
98271         * doc/regexprops-generic.texi: Add a copyright notice.
98273 2006-08-15  Bruno Haible  <bruno@clisp.org>
98275         * modules/tmpdir (License): Change to LGPL.
98277 2006-08-15  Bruno Haible  <bruno@clisp.org>
98279         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
98280         module.
98282 2006-08-14  Simon Josefsson  <jas@extundo.com>
98284         * config/srclist.txt: Add gnupload.
98286 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
98288         Change copyright notice from LGPL 2 to GPL 2, since that's the
98289         standard form used in the gnulib repository.
98290         * tests/test-lock.c: Likewise.
98291         * tests/test-stdint.c: Likewise.
98292         * tests/test-tls.c: Likewise.
98294         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
98295         prelude-manager.  User shorter URLs for GNU projects, without '?'.
98296         Add copyright notice.
98298         * check-module: Add copyright notice.  Output a copyright
98299         notice if "--version" is specified.
98300         * modules/COPYING: New file.
98301         * tests/test-getaddrinfo.c: Add copyright notice.
98302         * tests/test-verify.c: Likewise.
98304 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
98306         Change copyright notice from LGPL 2 to GPL 2, since that's the
98307         standard form used in the gnulib repository.
98308         * lib/lock.c: LGPL -> GPL.
98309         * lib/lock.h: Likewise.
98310         * lib/strnlen1.c: Likewise.
98311         * lib/strnlen1.h: Likewise.
98312         * lib/tls.c: Likewise.
98313         * lib/tls.h: Likewise.
98314         * lib/tmpdir.c: Likewise.
98316         * lib/TODO: Remove; this belongs only in coreutils.
98318 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
98320         Add copyright notices to long-enough files that lack them, since
98321         otherwise the files aren't clearly free.  Use the same notice that
98322         getdate.texi already uses.
98323         * doc/alloca-opt.texi: Add copyright notice.
98324         * doc/alloca.texi: Likewise.
98325         * doc/ctime.texi: Likewise.
98326         * doc/functions.texi: Likewise.
98327         * doc/gcd.texi: Likewise.
98328         * doc/gnulib-tool.texi: Likewise.
98329         * doc/inet_ntoa.texi: Likewise.
98330         * doc/visibility.texi: Likewise.
98332         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
98333         * doc/quote.texi: Add copyright notice.
98335         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
98336         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
98337         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
98338         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
98339         is now obsolete, and give a pointer to the Sun list.
98340         Add copyright notice.
98342 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
98344         * config/srclistvars.sh: Add copyright notice.
98346 2006-08-14  Eric Blake  <ebb9@byu.net>
98348         Import the following change from libc:
98350         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
98352         Upstream bug 2997.
98353         * lib/misc/error.c: Add space between program name and message if file
98354         name is missing.
98356 2006-08-12  Karl Berry  <karl@gnu.org>
98358         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
98359         remove, these originate in gnulib now.
98361 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98363         * doc/Makefile (standards.info standards.html standards.dvi):
98364         Also depend on make-stds.texi.
98366 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
98368         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
98369         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
98371         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
98372         in wchar_t.  Problem reported by Eric Blake.
98374         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
98375         LEN is smaller than SIZE.  Suggested by Bruno Haible.
98376         Also, help the compiler to keep LEN in a register.
98378 2006-08-11  Eric Blake  <ebb9@byu.net>
98380         * users.txt: Sort.  Add tar.
98382 2006-08-11  Bruno Haible  <bruno@clisp.org>
98384         * users.txt: New file.
98386 2006-08-11  Bruno Haible  <bruno@clisp.org>
98388         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
98389         before <wchar.h>. Needed for OSF/1 and BSD/OS.
98391 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
98393         * modules/snprintf (Depends-on): Remove minmax.
98394         (Maintainer): Add self and Bruno.
98396 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
98398         * lib/.cppi-disable: Add snprintf.h, socket_.h.
98399         * lib/snprintf.c: Include <errno.h> and <limits.h>.
98400         (EOVERFLOW): Define if the system does not.
98401         Do not include "minmax.h"; it wasn't used.
98402         (snprintf): Don't assume size_t promotes to an unsigned type.
98403         Fix bug when generated string was too long for the buffer: the
98404         buffer's contents are supposed to be the initial prefix of the
98405         output.  Don't assume vasnprintf returns EOVERFLOW if the size
98406         exceeds INT_MAX; do the check ourselves.
98408         Import the following changes from libc:
98410         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
98412         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
98413         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
98414         set wc to the byte which couldn't be converted.
98415         (re_string_reconstruct): Don't clear valid_raw_len before calling
98416         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
98417         tip_context using re_string_context_at.
98419         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
98421         * lib/posix/regex.h: g++ still cannot handled [restrict].
98423         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
98425         * lib/posix/regex.h: Remove special handling for VMS.
98427 2006-08-10  Jim Meyering  <jim@meyering.net>
98429         * modules/same-inode: New module.
98430         * modules/dev-ino: New module.
98431         * modules/cycle-check: Depend on these modules, rather than simply
98432         including their .h files.
98433         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
98434         required via m4/cycle-check.m4.
98435         * modules/same: Depend on new same-inode module, rather than
98436         including same-inode.h.
98437         * modules/chdir-safer: New file.
98439         * modules/chown (Depends-on): Add stat-macros.
98441 2006-08-10  Jim Meyering  <jim@meyering.net>
98443         * m4/cycle-check.m4: New file.
98444         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
98445         * m4/dev-ino.m4, m4/same-inode.m4: New files.
98447 2006-08-10  Eric Blake  <ebb9@byu.net>
98449         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
98450         in from original proposal.
98452 2006-08-10  Eric Blake  <ebb9@byu.net>
98453         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
98455         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
98456         namespace.
98458 2006-08-10  Bruno Haible  <bruno@clisp.org>
98460         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
98461         as well.
98463 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
98465         Sync from coreutils.
98467         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
98469         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
98470         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
98472 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
98474         * modules/restrict: Remove; no longer needed now that we assume
98475         Autoconf 2.59 or later.
98476         * MODULES.html.sh: Remove 'restrict'.
98477         * modules/argp (Depends-on): Remove 'restrict'.
98478         * modules/base64 (Depends-on): Likewise.
98479         * modules/gc (Depends-on): Likewise.
98480         * modules/getaddrinfo (Depends-on): Likewise.
98481         * modules/glob (Depends-on): Likewise.
98482         * modules/inet_ntop (Depends-on): Likewise.
98483         * modules/inet_pton (Depends-on): Likewise.
98484         * modules/memxor (Depends-on): Likewise.
98485         * modules/regex (Depends-on): Likewise.
98486         * modules/strtok_r (Depends-on): Likewise.
98487         * modules/time_r (Depends-on): Likewise.
98489 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
98491         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
98492         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
98493         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
98494         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
98495         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
98496         * m4/memxor.m4 (gl_MEMXOR): Likewise.
98497         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
98498         gl_C_RESTRICT replaced by AC_C_RESTRICT.
98500         Merge from coreutils.
98501         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
98502         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
98503         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
98504         * m4/time_r.m4 (gl_TIME_R): Likewise.
98506 2006-08-09  Karl Berry  <karl@gnu.org>
98508         * config/srclist.txt: no more gettext-tools, per Bruno.
98510 2006-08-08  Eric Blake  <ebb9@byu.net>
98512         * modules/verror: New module.
98513         * MODULES.html.sh: Document it.
98515 2006-08-08  Eric Blake  <ebb9@byu.net>
98517         * lib/verror.h, lib/verror.c: New files.
98519 2006-08-08  Eric Blake  <ebb9@byu.net>
98521         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
98522         verror_at_line output complies with GNU Coding Standards even when
98523         file is NULL.
98525 2006-08-07  Bruno Haible  <bruno@clisp.org>
98527         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
98528         versions of AIX.
98529         Reported by Ralf Wildenhues.
98531 2006-08-07  Bruno Haible  <bruno@clisp.org>
98533         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
98534         in an AC_DEFUN. Needed so that the autoconf snippets can use
98535         AC_REQUIRE.
98537 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98539         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
98540         Initialize pkgdata_DATA.
98541         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
98542         overriding it.
98544 2006-08-06  Eric Blake  <ebb9@byu.net>
98546         * lib/error.h: Fold in some upstream changes from glibc.
98547         * lib/error.c: Likewise.
98549 2006-08-04  Bruno Haible  <bruno@clisp.org>
98551         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
98552         Make the mostlyclean-local rule depend on mostlyclean-generic.
98553         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
98555 2006-07-31  Bruno Haible  <bruno@clisp.org>
98557         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
98558         <stdlib.h>, <string.h>.
98560 2006-07-30  Bruno Haible  <bruno@clisp.org>
98562         * modules/readlink (License): Change to LGPL.
98564 2006-07-30  Bruno Haible  <bruno@clisp.org>
98566         * modules/javaversion (Makefile.am): Distribute javaversion.java and
98567         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
98568         set PKGDATADIR to point to it.
98570 2006-07-30  Bruno Haible  <bruno@clisp.org>
98572         * modules/csharpexec (configure.ac): Comment out macro invocation.
98573         * modules/javaexec (configure.ac): Likewise.
98574         * modules/javacomp-script (configure.ac): Likewise.
98576         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
98578 2006-07-30  Bruno Haible  <bruno@clisp.org>
98580         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
98581         linked-list.
98583 2006-07-30  Bruno Haible  <bruno@clisp.org>
98585         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
98587 2006-07-30  Bruno Haible  <bruno@clisp.org>
98589         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
98590         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
98591         get removed.
98593 2006-07-29  Bruno Haible  <bruno@clisp.org>
98595         Make it possible for gnulib-tool to work with locally modified or
98596         augmented gnulib repositories.
98597         * gnulib-tool (func_usage): Document --local-dir option.
98598         (local_gnulib_dir): New variable.
98599         Handle --local-dir option.
98600         (func_lookup_file): New function.
98601         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
98602         (func_get_description, func_get_filelist, func_get_description,
98603         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
98604         func_get_automake_snippet, func_get_include_directive,
98605         func_get_license, func_get_maintainer): Use func_lookup_file.
98606         (func_import, func_create_testdir): Use func_lookup_file.
98608 2006-07-29  Bruno Haible  <bruno@clisp.org>
98610         * modules/setenv (Depends-on): Add unistd.
98612 2006-07-29  Bruno Haible  <bruno@clisp.org>
98614         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
98616 2006-07-29  Bruno Haible  <bruno@clisp.org>
98618         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
98620 2006-07-29  Bruno Haible  <bruno@clisp.org>
98622         * gnulib-tool (import, update): If there is no Makefile.am, look at
98623         aclocal.m4, instead of bailing out.
98625 2006-07-29  Bruno Haible  <bruno@clisp.org>
98627         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
98628         Categorize the options by when they are useful.
98630 2006-07-29  Bruno Haible  <bruno@clisp.org>
98632         * gnulib-tool (func_usage): Document option --no-libtool.
98633         Handle option --no-libtool.
98634         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
98635         for changed semantics of $libtool variable.
98636         (func_import): Likewise. If libtool is not used, show this through
98637         an option --no-libtool.
98638         (func_create_testdir): Update.
98640 2006-07-29  Bruno Haible  <bruno@clisp.org>
98642         * gnulib-tool (func_import): Extend error message about missing
98643         --doc-base.
98645 2006-07-29  Bruno Haible  <bruno@clisp.org>
98647         * gnulib-tool (func_import): Don't create the $docbase directory if
98648         there is no file to store there.
98650 2006-07-29  Bruno Haible  <bruno@clisp.org>
98652         * gnulib-tool (autoconf_minversion): If a --dir option is given and
98653         relevant, look for configure.ac there, not in the current directory.
98654         Also use a simple search for AC_PREREQ, not "autoconf --trace".
98656 2006-07-29  Bruno Haible  <bruno@clisp.org>
98658         * gnulib-tool (SORT): New variable.
98659         (func_usage): Undocument --assume-autoconf option.
98660         Remove --assume-autoconf option handling.
98661         (autoconf_minversion): Determine from the contents of configure.ac.
98662         (func_import): Remove autoconf_minversion handling.
98663         Suggested by Eric Blake.
98665 2006-07-29  Bruno Haible  <bruno@clisp.org>
98667         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
98669 2006-07-29  Bruno Haible  <bruno@clisp.org>
98671         * config/srclist.txt (*setenv.[ch]): Remove rules.
98673 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
98675         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
98677 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
98679         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
98680         arpa/inet.h.
98682 2006-07-28  Simon Josefsson  <jas@extundo.com>
98684         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
98685         * modules/inet_pton (Depends-on): Likewise.
98687 2006-07-28  Simon Josefsson  <jas@extundo.com>
98689         * m4/netinet_in_h.m4: New file.
98691 2006-07-28  Simon Josefsson  <jas@extundo.com>
98693         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
98694         #include's.
98696 2006-07-28  Simon Josefsson  <jas@extundo.com>
98698         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
98699         #include's.
98701 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
98703         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
98704         setgid on directories only if they set these bits.
98705         * lib/modechange.h: Remove obsolete comment about masks.
98707 2006-07-28  Eric Blake  <ebb9@byu.net>
98709         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
98710         macro expansion.
98712 2006-07-28  Bruno Haible  <bruno@clisp.org>
98714         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
98716 2006-07-28  Bruno Haible  <bruno@clisp.org>
98718         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
98720 2006-07-28  Bruno Haible  <bruno@clisp.org>
98722         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
98723         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
98724         Define fallbacks.
98725         Avoids link error on FreeBSD 4.x.
98726         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
98728         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
98729         encoding.
98730         * lib/mbswidth.c (iswcntrl): Likewise.
98732 2006-07-27  Bruno Haible  <bruno@clisp.org>
98734         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
98735         test.
98737 2006-07-27  Bruno Haible  <bruno@clisp.org>
98739         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
98740         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
98741         defined.
98743 2006-07-26  Eric Blake  <ebb9@byu.net>
98745         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
98747 2006-07-26  Eric Blake  <ebb9@byu.net>
98749         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
98750         like mingw that lack mkstemp.
98751         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
98752         avoid compilation warning on mingw.
98754 2006-07-26  Bruno Haible  <bruno@clisp.org>
98756         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
98757         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
98758         INT_FAST*_MIN, INTPTR_MIN.
98760 2006-07-25  Bruno Haible  <bruno@clisp.org>
98762         * modules/version-etc (Depends-on): Add stdarg.
98764 2006-07-25  Bruno Haible  <bruno@clisp.org>
98766         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
98767         complex commands.
98769 2006-07-25  Bruno Haible  <bruno@clisp.org>
98771         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
98772         defined in <stdarg.h> or config.h.
98774 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
98776         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
98777         (gl_STDIO_SAFER): Remove.
98779 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
98781         * MODULES.html.sh (File stream based Input/Output):
98782         Add fopen-safer, tmpfile-safer; remove stdio-safer.
98783         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
98784         * modules/fopen-safer, modules/tmpfile-safer: New files.
98785         * modules/stdio-safer: Remove.
98787 2006-07-24  Bruno Haible  <bruno@clisp.org>
98789         * modules/tmpdir: New file.
98790         * MODULES.html.sh (File system functions): Add it.
98792 2006-07-24  Bruno Haible  <bruno@clisp.org>
98794         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
98795         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
98797 2006-07-24  Bruno Haible  <bruno@clisp.org>
98799         * modules/clean-temp: New file.
98801 2006-07-24  Bruno Haible  <bruno@clisp.org>
98803         * m4/tmpdir.m4: New file, from GNU gettext.
98805 2006-07-24  Bruno Haible  <bruno@clisp.org>
98807         * lib/tmpdir.h: New file, from GNU gettext.
98808         * lib/tmpdir.c: New file, from GNU gettext.
98810 2006-07-24  Bruno Haible  <bruno@clisp.org>
98812         * lib/clean-temp.h: New file, from GNU gettext.
98813         * lib/clean-temp.c: New file, from GNU gettext.
98815 2006-07-23  Eric Blake  <ebb9@byu.net>
98817         * modules/stdio-safer (Files): Add tmpfile-safer.c.
98818         (Depends-on): Add binary-io.
98820 2006-07-23  Eric Blake  <ebb9@byu.net>
98822         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
98824 2006-07-23  Eric Blake  <ebb9@byu.net>
98826         * lib/tmpfile-safer.c: New file.
98827         * lib/stdio-safer.h (fopen_safer): Add prototype.
98828         * lib/stdio--.h (tmpfile): Make safer.
98830 2006-07-23  Bruno Haible  <bruno@clisp.org>
98832         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
98833         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
98834         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
98835         gl_linked_remove_at): Use it.
98837 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
98838         and Simon Josefsson <jas@extundo.com>
98840         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
98842         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
98844 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
98846         * modules/close-stream: New file.
98847         * modules/closeout (Description): Make it clear that it exits
98848         with a diagnostic on error.
98849         (Depends-on): Add close-stream.  Remove fpending, stdbool.
98850         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
98852 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
98854         * m4/close-stream.m4: New file.
98856 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
98858         * lib/close-stream.c, lib/close-stream.h: New files.
98860 2006-07-22  Bruno Haible  <bruno@clisp.org>
98862         Merge from GNU gettext 0.15.
98864         2006-05-01  Bruno Haible  <bruno@clisp.org>
98866                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
98868         2006-07-22  Bruno Haible  <bruno@clisp.org>
98870                 * modules/javaversion: New file.
98871                 * MODULES.html.sh (Java): Add javaversion.
98873         2006-03-12  Bruno Haible  <bruno@clisp.org>
98875                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
98877         2005-12-04  Bruno Haible  <bruno@clisp.org>
98879                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
98880                 (untested).
98882         2006-06-21  Bruno Haible  <bruno@clisp.org>
98884                 Avoid warnings from recent versions of mcs.
98885                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
98886                 -o, -L, -r any more. Use options documented since mcs-1.0
98887                 instead. Similarly for -g.
98889         2005-12-04  Bruno Haible  <bruno@clisp.org>
98891                 * build-aux/csharpcomp.sh.in: Suffix for resources is
98892                 .resources, not .resource.
98894         2005-07-09  Bruno Haible  <bruno@clisp.org>
98896                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
98897                 add a .dll suffix.
98898                 Reported by Mark Junker <mjscod@gmx.de>.
98900         2006-07-22  Bruno Haible  <bruno@clisp.org>
98902                 * modules/gettext: Upgrade to gettext-0.15.
98903                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
98904                 m4/visibility.m4.
98905                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
98907 2006-07-22  Bruno Haible  <bruno@clisp.org>
98909         Merge from GNU gettext 0.15.
98911         2006-03-25  Bruno Haible  <bruno@clisp.org>
98913                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
98915         2006-07-21  Bruno Haible  <bruno@clisp.org>
98917                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
98918                 "1.1".
98920         2006-05-09  Bruno Haible  <bruno@clisp.org>
98922                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
98923                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
98924                 for the conftestver execution.
98926         2006-05-01  Bruno Haible  <bruno@clisp.org>
98928                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
98929                 optional target-version argument. Verify that the compiler
98930                 groks source of the specified source-version, or add -source
98931                 option as necessary. Verify that the compiler produces
98932                 bytecode in the specified target-version, or add -target and
98933                 -source options as necessary. Make the result of the test
98934                 available as variable CONF_JAVAC. Also log error output in
98935                 config.log.
98937         2006-03-11  Bruno Haible  <bruno@clisp.org>
98939                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
98941         2006-05-09  Bruno Haible  <bruno@clisp.org>
98943                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
98944                 CLASSPATH_SEPARATOR to a semicolon.
98946         2006-03-12  Bruno Haible  <bruno@clisp.org>
98948                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
98949                 available as variable CONF_JAVA, for subsequent autoconf
98950                 tests. Also log error output in config.log.
98952         2006-07-19  Bruno Haible  <bruno@clisp.org>
98954                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
98955                 that getline works on glibc2 systems. Needed to avoid trouble
98956                 in relocatable.c.
98957                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
98959         2005-12-04  Bruno Haible  <bruno@clisp.org>
98961                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
98962                 launcher (untested).
98964         2005-12-04  Bruno Haible  <bruno@clisp.org>
98966                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
98968         2006-07-22  Bruno Haible  <bruno@clisp.org>
98970                 * gettext.m4: Update from GNU gettext-0.15.
98971                 * nls.m4: Likewise.
98972                 * po.m4: Likewise.
98973                 * inttypes-pri.m4: Likewise.
98974                 * inttypes-h.m4: Renamed from inttypes.m4.
98975                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
98977 2006-07-22  Bruno Haible  <bruno@clisp.org>
98979         Merge from GNU gettext 0.15.
98981         2005-07-05  Bruno Haible  <bruno@clisp.org>
98983                 * printf-args.c (printf_fetchargs): Work around broken
98984                 definition of wint_t on mingw.
98986         2005-02-12  Bruno Haible  <bruno@clisp.org>
98988                 * xallocsa.h: Add extern "C" for C++.
98990         2006-05-17  Bruno Haible  <bruno@clisp.org>
98992                 Cygwin portability.
98993                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
98995         2006-04-30  Bruno Haible  <bruno@clisp.org>
98997                 * progreloc.c: Include <mach-o/dyld.h> if available.
98998                 (find_executable): Use _NSGetExecutablePath when possible.
99000         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
99002                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
99003                 function.
99005         2005-12-29  Bruno Haible  <bruno@clisp.org>
99007                 * progreloc.c (set_program_name_and_installdir): Fix
99008                 compilation error.
99010         2005-12-04  Bruno Haible  <bruno@clisp.org>
99012                 Cygwin portability.
99013                 * progreloc.c: Include <windows.h> also on Cygwin.
99014                 (find_executable): Add support for Cygwin.
99015                 (set_program_name_and_installdir): Handle also platforms with
99016                 nonempty EXEEXT.
99018         2006-07-11  Bruno Haible  <bruno@clisp.org>
99020                 * javacomp.c: Fix a comment.
99021                 Reported by Jim Meyering.
99023         2006-04-30  Bruno Haible  <bruno@clisp.org>
99025                 * javacomp.h (compile_java_class): Add source_version,
99026                 target_version arguments.
99027                 * javacomp.c: Rewritten to choose only a compiler that
99028                 respects the specified source_version and target_version.
99030         2006-06-27  Bruno Haible  <bruno@clisp.org>
99032                 Assume correct S_ISDIR macro.
99033                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
99035         2006-07-22  Bruno Haible  <bruno@clisp.org>
99037                 * javaversion.h: New file, from GNU gettext.
99038                 * javaversion.c: New file, from GNU gettext.
99039                 * javaversion.java: New file, from GNU gettext.
99040                 * javaversion.class: New file, from GNU gettext.
99042         2006-05-17  Bruno Haible  <bruno@clisp.org>
99044                 Cygwin portability.
99045                 * javaexec.c (execute_java_class): Test for jview program
99046                 also on Cygwin.
99048         2006-04-09  Bruno Haible  <bruno@clisp.org>
99050                 * fatal-signal.c: Don't include string.h.
99051                 (at_fatal_signal): Use a copying loop instead of memcpy.
99053         2005-12-04  Bruno Haible  <bruno@clisp.org>
99055                 * csharpexec.c: Add support for 'clix' launcher (untested).
99056                 (execute_csharp_using_sscli): New function.
99057                 (execute_csharp_program): Call it.
99059         2006-06-21  Bruno Haible  <bruno@clisp.org>
99061                 Avoid warnings from recent versions of mcs.
99062                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
99063                 -o, -L, -r any more. Use options documented since mcs-1.0
99064                 instead. Similarly for -g.
99066         2005-07-09  Bruno Haible  <bruno@clisp.org>
99068                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
99069                 add a .dll suffix.
99070                 Reported by Mark Junker <mjscod@gmx.de>.
99072         2006-06-17  Bruno Haible  <bruno@clisp.org>
99074                 * config.charset: Update for NetBSD 3.0.
99076         2006-05-17  Bruno Haible  <bruno@clisp.org>
99078                 Cygwin portability.
99079                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
99081         2006-05-16  Bruno Haible  <bruno@clisp.org>
99083                 * localcharset.c [CYGWIN]: Include <windows.h>.
99084                 (get_charset_aliases): For Cygwin, return the same CPxxx
99085                 aliases list as under WIN32.
99086                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
99087                 the environment variables. Fall back to GetACP().
99089         2006-04-05  Bruno Haible  <bruno@clisp.org>
99091                 * config.charset: Update Juan Manuel Guerrero's address.
99093         2005-02-12  Bruno Haible  <bruno@clisp.org>
99095                 * allocsa.h: Add extern "C" for C++.
99097         2005-02-10  Bruno Haible  <bruno@clisp.org>
99099                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
99100                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
99102         2006-07-22  Bruno Haible  <bruno@clisp.org>
99104                 * gettext.h: Update to GNU gettext-0.15.
99106 2006-07-22  Bruno Haible  <bruno@clisp.org>
99108         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
99109         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
99110         lib-prefix.m4, longdouble.m4, ssize_t.m4.
99112 2006-07-21  Eric Blake  <ebb9@byu.net>
99114         * modules/stdlib-safer: New file.
99115         * MODULES.html.sh (File stream based Input/Output): Add
99116         stdlib-safer.
99118 2006-07-21  Eric Blake  <ebb9@byu.net>
99120         * lib/stdlib-safer.h: New file from coreutils, required by
99121         stdlib--.h.
99123 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
99125         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
99127 2006-07-20  Bruno Haible  <bruno@clisp.org>
99129         * gnulib-tool: Recognize new option --assume-autoconf.
99130         (autoconf_minversion): New variable.
99131         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
99133 2006-07-20  Bruno Haible  <bruno@clisp.org>
99135         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
99137 2006-07-19  Derek R. Price  <derek@ximbiot.com>
99139         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
99140         Reindent and repaginate.
99142 2006-07-19  Derek Price  <derek@ximbiot.com>
99144         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
99145         Correct grammar.
99147 2006-07-17  Bruno Haible  <bruno@clisp.org>
99149         * modules/list: New file.
99150         * modules/array-list: New file.
99151         * modules/carray-list, modules/carray-list-tests: New files.
99152         * modules/linked-list, modules/linked-list-tests: New files.
99153         * modules/avltree-list, modules/avltree-list-tests: New files.
99154         * modules/rbtree-list, modules/rbtree-list-tests: New files.
99155         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
99156         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
99157         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
99158         * modules/oset: New file.
99159         * modules/array-oset: New file.
99160         * modules/avltree-oset, modules/avltree-oset-tests: New files.
99161         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
99162         * tests/test-carray_list.c: New file.
99163         * tests/test-linked_list.c: New file.
99164         * tests/test-avltree_list.c: New file.
99165         * tests/test-rbtree_list.c: New file.
99166         * tests/test-linkedhash_list.c: New file.
99167         * tests/test-avltreehash_list.c: New file.
99168         * tests/test-rbtreehash_list.c: New file.
99169         * tests/test-avltree_oset.c: New file.
99170         * tests/test-rbtree_oset.c: New file.
99171         * MODULES.html.sh (Container data structures): New section.
99173 2006-07-17  Bruno Haible  <bruno@clisp.org>
99175         * m4/gl_list.m4: New file.
99177 2006-07-17  Bruno Haible  <bruno@clisp.org>
99179         * lib/gl_list.h: New file.
99180         * lib/gl_list.c: New file.
99181         * lib/gl_array_list.h: New file.
99182         * lib/gl_array_list.c: New file.
99183         * lib/gl_carray_list.h: New file.
99184         * lib/gl_carray_list.c: New file.
99185         * lib/gl_linked_list.h: New file.
99186         * lib/gl_linked_list.c: New file.
99187         * lib/gl_anylinked_list1.h: New file.
99188         * lib/gl_anylinked_list2.h: New file.
99189         * lib/gl_avltree_list.h: New file.
99190         * lib/gl_avltree_list.c: New file.
99191         * lib/gl_anyavltree_list1.h: New file.
99192         * lib/gl_anyavltree_list2.h: New file.
99193         * lib/gl_rbtree_list.h: New file.
99194         * lib/gl_rbtree_list.c: New file.
99195         * lib/gl_anyrbtree_list1.h: New file.
99196         * lib/gl_anyrbtree_list2.h: New file.
99197         * lib/gl_anytree_list1.h: New file.
99198         * lib/gl_anytree_list2.h: New file.
99199         * lib/gl_linkedhash_list.h: New file.
99200         * lib/gl_linkedhash_list.c: New file.
99201         * lib/gl_anyhash_list1.h: New file.
99202         * lib/gl_anyhash_list2.h: New file.
99203         * lib/gl_avltreehash_list.h: New file.
99204         * lib/gl_avltreehash_list.c: New file.
99205         * lib/gl_rbtreehash_list.h: New file.
99206         * lib/gl_rbtreehash_list.c: New file.
99207         * lib/gl_anytreehash_list1.h: New file.
99208         * lib/gl_anytreehash_list2.h: New file.
99210         * lib/gl_oset.h: New file.
99211         * lib/gl_oset.c: New file.
99212         * lib/gl_array_oset.h: New file.
99213         * lib/gl_array_oset.c: New file.
99214         * lib/gl_avltree_oset.h: New file.
99215         * lib/gl_avltree_oset.c: New file.
99216         * lib/gl_rbtree_oset.h: New file.
99217         * lib/gl_rbtree_oset.c: New file.
99218         * lib/gl_anytree_oset.h: New file.
99220 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
99222         * m4/mkancesdirs.m4: New file.
99223         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
99224         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
99225         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
99226         it.
99228 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
99230         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
99231         * lib/mkancesdirs.h: New files.
99232         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
99233         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
99234         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
99235         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
99236         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
99237         callers changed.  Revamp internals significantly, by not
99238         attempting to create directories that are temporarily more
99239         permissive than the final results.  Do not attempt to use
99240         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
99241         This removes some race conditions, fixes some bugs, and simplifies
99242         things.  Use new dirchownmod function to do owner and mode changes.
99243         * lib/mkdir-p.h: Likewise.
99244         * lib/modechange.c (octal_to_mode): New function.
99245         (struct mode_change): New member mentioned.
99246         (make_node_op_equals): New arg mentioned.  All callers changed.
99247         (mode_compile): Keep track of which mode bits the user has explicitly
99248         mentioned.
99249         (mode_adjust): New arg DIR, so that we implement the X op correctly.
99250         New arg PMODE_BITS, to keep track of which mode bits the user
99251         mentioned; it treats S_ISUID and S_ISGID speciall.
99252         All callers changed.
99253         * lib/modechange.h: Likewise.
99255 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
99257         * MODULES.html.sh: Add mkancestors.
99258         * modules/mkancesdirs: New module.
99259         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
99260         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
99261         The chdir-safer and afs files are now orphans; I'll remove them
99262         unless someone speaks up.
99263         Add lib/dirchownmod.c, lib/dirchownmod.h.
99264         (Depends-on): Remove alloca, chown, save-cwd, dirname.
99265         Add lchown, mkancesdirs.
99266         (Maintainer): Add self.
99268 2006-07-15  Karl Berry  <karl@gnu.org>
99270         * gnulib-tool: help message wording/arrangement.
99272 2006-07-14  Simon Josefsson  <jas@extundo.com>
99274         * doc/gnulib.texi (Libtool and Windows): New section.
99276 2006-07-12  Simon Josefsson  <jas@extundo.com>
99278         * modules/gendocs (License): Fix license, approved by Karl.
99280 2006-07-12  Eric Blake  <ebb9@byu.net>
99282         * MODULES.html.sh: Add gendocs.
99284 2006-07-11  Eric Blake  <ebb9@byu.net>
99286         * modules/fdl: New module, to install doc/fdl.texi.
99287         * MODULES.html.sh: Add new section for documentation modules.
99288         * gnulib-tool: Avoid space-tab.
99289         (--doc-base): New option, to manage files from doc.
99291 2006-07-11  Eric Blake  <ebb9@byu.net>
99293         * m4/absolute-header.m4: Fix comments to match recent change.
99295 2006-07-11  Eric Blake  <ebb9@byu.net>
99297         * gnulib-tool: List --doc-base before --tests-base.
99299 2006-07-11  Derek R. Price  <derek@ximbiot.com>
99301         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
99303 2006-07-11  Bruno Haible  <bruno@clisp.org>
99305         * README: Mention where to put documentation.
99307 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99309         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
99311 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
99313         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
99314         to stdint.m4.
99316 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
99318         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
99319         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
99320         "no/such/file/stdint.h" when there is no such file, so that
99321         the resulting C code can be parsed by dodgy compilers.
99322         Problems reported by Bob Proulx.
99324 2006-07-10  Derek R. Price  <derek@ximbiot.com>
99326         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
99327         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
99328         macros into the GNU _D_EXACT_NAMLEN.
99329         * lib/savedir.c:  Likewise.
99330         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
99332 2006-07-10  Derek R. Price  <derek@ximbiot.com>
99333         and Paul Eggert  <eggert@cs.ucla.edu>
99335         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
99336         * m4/savedir.m4:
99337         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
99338         macros into the GNU _D_EXACT_NAMLEN.
99340 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
99342         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
99343         around the absolute name, to work around a problem with the HP-UX
99344         11.23 native C compiler, reported by Bob Proulx.
99346 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
99348         * doc/maintain.texi, make-stds.texi: Sync from
99349         <http://savannah.gnu.org/projects/gnustandards>.
99351 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
99353         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
99355 2006-07-09  Jim Meyering  <jim@meyering.net>
99357         * m4/glob.m4: Remove a doubled word in a comment.
99359 2006-07-09  Jim Meyering  <jim@meyering.net>
99361         * lib/argp-pv.c: Remove a doubled word in a comment.
99362         * lib/check-version.c (check_version): Likewise.
99363         * lib/javacomp.c (compile_java_class): Likewise.
99365 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
99367         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
99368         for the benefit of people using Autoconf 2.60.  If you want to
99369         support older Autoconf versions you can copy m4/onceonly_2_57.m4
99370         (or m4/onceonly.m4, if pre-2.57) manually.
99372 2006-07-08  Jim Meyering  <jim@meyering.net>
99374         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
99375         comment.
99376         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
99377         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
99378         comment.
99380 2006-07-08  Jim Meyering  <jim@meyering.net>
99382         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
99384 2006-07-07  Simon Josefsson  <jas@extundo.com>
99386         * tests/test-crc.c: Change expected crc value, the test vector
99387         were probably computed using the old broken crc.c?
99389 2006-07-06  Simon Josefsson  <jas@extundo.com>
99391         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
99392         now the canonical place for the M4 file).
99394         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
99395         from the sys_socket dependency now.
99397         * modules/inet_pton (Files): Ditto.
99399         * modules/inet_ntop (Files): Ditto.
99401 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
99403         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
99404         not gl_PREREQ_GETUSERSHELL.
99406 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99408         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
99409         with only one argument, for Autoconf 2.60.
99410         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
99411         expand to nothing, so add a shell command to avoid syntax error.
99412         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
99414 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99416         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
99418 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
99420         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
99421         no longer needed.  Check for isblank decl.
99422         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
99423         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
99424         of existence.
99426 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
99428         * lib/getloadavg.c: Use __VMS, not VMS.
99429         * lib/getopt.c: Likewise.
99430         * lib/getpagesize.h: Likewise.
99431         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
99432         and probably does not work.
99434 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
99436         * lib/.cppi-disable: Add wcwidth.
99437         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
99438         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
99439         (ISGRAPH): Remove.  All uses changed to isgraph.
99440         (FOLD) [!defined _LIBC]: Remove special case.
99441         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
99442         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
99443         HAVE_ISBLANK.
99444         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
99445         case.
99447 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
99449         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
99450         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
99451         brackets.  Other minor changes to suppress some compiler
99452         warnings.
99454 2006-07-06  Derek R. Price  <derek@ximbiot.com>
99455         and Paul Eggert  <eggert@cs.ucla.edu>
99457         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
99458         of invoking obsolescent AC_HEADER_DIRENT macro.
99459         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
99460         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
99461         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
99462         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
99463         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
99464         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
99465         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
99466         * m4/readdir.m4: Remove; no longer needed.
99468 2006-07-06  Derek R. Price  <derek@ximbiot.com>
99469         and Paul Eggert  <eggert@cs.ucla.edu>
99471         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
99472         Don't worry about this obsolete case any more.
99473         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
99474         directories.
99475         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
99476         worry about this obsolete case any more.
99477         * lib/fts.c: Likewise.
99478         * lib/getcwd.c: Likewise.
99479         * lib/glob.h: Likewise.
99480         * lib/savedir.c: Likewise.
99482 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
99484         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
99485         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
99486         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
99487         needed.
99488         All uses removed.
99489         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
99490         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
99491         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
99492         needed.
99493         * m4/getdate.m4 (gl_GETDATE): Likewise.
99494         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
99495         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
99496         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
99497         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
99498         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
99499         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
99500         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
99501         needed.
99503 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
99505         * lib/memcasecmp.c: Include <limits.h>.
99506         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
99507         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
99508         Don't assume isdigit succeeds only on '0' through '9'.
99510 2006-07-05  Eric Blake  <ebb9@byu.net>
99512         * modules/getaddrinfo (Depends-on): Add snprintf.
99514 2006-07-05  Eric Blake  <ebb9@byu.net>
99516         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
99517         to avoid 'header present but could not be compiled' on cygwin.
99519 2006-07-05  Eric Blake  <ebb9@byu.net>
99521         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
99522         missing from netdb.h.
99523         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
99525 2006-07-05  Derek R. Price  <derek@ximbiot.com>
99527         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
99528         no longer needed.
99529         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
99530         * m4/getdate.m4 (gl_GETDATE): Likewise.
99531         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
99532         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
99533         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
99534         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
99535         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
99537 2006-07-05  Derek R. Price  <derek@ximbiot.com>
99539         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
99540         All uses of is_space replaced by isspace.
99541         * lib/exit.h: Don't talk about STDC_HEADERS.
99542         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
99543         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
99544         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
99545         replaced by isprint etc.
99546         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
99547         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
99548         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
99549         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
99550         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
99551         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
99553 2006-07-05  Bruno Haible  <bruno@clisp.org>
99555         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
99556         the function exists, before testing against AIX.
99557         Reported by Martin Lambers <marlam@marlam.de>.
99559 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
99561         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
99562         From Mark D. Baushke.
99564 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
99566         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
99567         to the absolute name, not just one, to bypass Sun C 5.8's
99568         "warning: #include of /usr/include/... may be non-portable".
99570 2006-07-04  Eric Blake  <ebb9@byu.net>
99572         * modules/dirname-tests: New test module.
99573         * tests/test-dirname.c: New file, replacing dirname.c
99574         TEST_DIRNAME section that was recently deleted.
99576 2006-07-04  Bruno Haible  <bruno@clisp.org>
99578         Assume ANSI C header files and <ctype.h> functions.
99579         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
99580         (mbsnwidth): Use isprint, iscntrl instead.
99582 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
99584         Merge from coreutils.
99585         * MODULES.html.sh: Add xstrtold.
99586         * modules/xstrtold: New file.
99587         * modules/cycle-check (Files): Add lib/same-inode.h.
99588         * modules/dirname (Files): Add m4/double-slash-root.m4.
99589         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
99590         * modules/mkdir-p (Files): Add lib/same-inode.h.
99591         * modules/same (Files): Add lib/same-inode.h.
99593 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
99595         * m4/absolute-header.m4: Renamed from full-header-path.m4.
99596         This is to keep the terminology clean; POSIX talks about
99597         "absolute pathnames", not "full pathnames", but the GNU
99598         Coding Standards say to use "path" for something else;
99599         so use "absolute" to keep both sides happy.
99600         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
99601         Set gl_absolute_header, not gl_full_header_path.
99602         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
99603         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
99604         All uses changed.
99606         Merge from coreutils.
99608         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
99610         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
99611         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
99612         want to require the building of c-strtod.o.
99613         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
99614         needs -lm directly.
99615         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
99617         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
99619         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
99620         --as-needed option if available.  Problem reported by Albert Chin in
99621         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00114.html>.
99622         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
99623         cc merely issues a bunch of annoying warnings for --as-needed
99624         (this problem was reported by Bob Proulx).  Also, try linking with
99625         -lm to detect a bug in binutils 2.16 (this problem was reported
99626         by Ralf Wildenhues).
99628         2006-06-18  Jim Meyering  <jim@meyering.net>
99630         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
99631         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
99632         macro.
99633         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
99634         also check for glibc-2.4's abort-inducing bug.
99636         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
99637         Low-probability clean-up should be to use rmdir to get rid of
99638         the just-created directory, not unlink.
99640         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
99641         configure fail, and request a bug report to inform us about it.
99642         Add a comment that, barring reports to the contrary, in 2007 we'll
99643         assume ftruncate is universally available.
99645         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
99647         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
99649         2006-03-12  Jim Meyering  <jim@meyering.net>
99651         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
99652         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
99653         * m4/same.m4 (gl_SAME): Likewise.
99654         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
99656         2006-03-11  Eric Blake  <ebb9@byu.net>
99658         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
99659         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
99660         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
99661         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
99663 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
99665         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
99666         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
99667         reported by Mark D. Baushke, one in
99668         <http://lists.gnu.org/r/bug-gnulib/2006-07/msg00015.html>.
99670         Merge from coreutils.
99672         * lib/.cppi-disable: Add stdint_.h.
99673         * lib/.cvsignore: Add stdint.h.
99675         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
99677         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
99678         both double and long double versions.
99679         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
99680         * lib/xstrtold.c: New file.
99681         * lib/xstrtod.h (xstrtold): New decl.
99683         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
99685         * lib/filemode.c (setst): Remove.
99686         (strmode): Rewrite to avoid setst.  This makes the code shorter,
99687         (arguably) clearer, and the generated code is a bit smaller on my
99688         Debian GNU/Linux stable x86 host.
99690         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
99692         * lib/filemode.c: Include "filemode.h" first, to test the interface.
99693         Assume that filemode.h includes sys/types.h and sys/stat.h.
99694         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
99695         (ftypelet): Reorder to put common cases first, for efficiency.
99696         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
99697         to do 'M'.
99698         (strmode): Renamed from mode_string, and now stores 12 bytes instead
99699         of 10, for compatibility with FreeBSD.  All callers changed.
99700         (filemodestring): Now stores 12 bytes instead of 10, and sets file
99701         types that can't be deduced solely from st_mode.  First arg is now a
99702         const pointer.
99703         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
99704         (strmode): Renamed from mode_string.
99705         (filemodestring): New decl.
99706         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
99707         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
99708         needed.
99709         (S_ISPORT, S_ISWHT): New macros, if not already defined.
99711         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
99713         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
99714         fsusage.h now does that.  Include fsusage.h first, to test interface.
99715         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
99716         at most one method (the old code could have generated decls that
99717         didn't conform to C89, not that this was ever exercised).
99718         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
99720         2006-03-19  Jim Meyering  <jim@meyering.net>
99722         Work even in a chroot where d_ino values for entries in "/"
99723         don't match the stat.st_ino values for the same names.
99724         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
99725         number, iterate through all entries again, using lstat instead.
99726         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
99727         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
99729         * lib/getcwd.c (__getcwd): Clarify a comment.
99730         Use memcpy in place of a call to strcpy.
99732         2006-03-12  Jim Meyering  <jim@meyering.net>
99734         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
99735         matches that of the current directory (which we're about to chdir ".."
99736         out of), then save the dev-ino of the parent, instead.
99738         * lib/same-inode.h (SAME_INODE): New file/macro.
99739         * lib/chdir-safer.c (SAME_INODE): Remove definition.
99740         Include "same-inode.h", instead.
99741         * lib/same.c: Likewise.
99742         * lib/cycle-check.h: Include "same-inode.h".
99743         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
99744         * lib/cycle-check.c (SAME_INODE): Remove definition.
99745         * lib/root-dev-ino.h: Include "same-inode.h".
99747         2006-03-11  Eric Blake  <ebb9@byu.net>
99749         * lib/same.c (same_name): s/base_name/last_component/
99750         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
99751         * lib/filenamecat.c (file_name_concat): Likewise.
99753         2006-03-11  Eric Blake  <ebb9@byu.net>,
99754                     Paul Eggert  <eggert@cs.ucla.edu>
99756         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
99757         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
99758         drive prefix.
99759         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
99760         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
99761         (last_component): New method.
99762         * lib/dirname.c (dir_len): Determine when drive letters need a
99763         subsequent slash.  Preserve // when it is special.
99764         (dir_name): Don't append dot when drive letter is absolute.
99765         [TEST_DIRNAME]: Move into a full-blown gnulib test.
99766         * lib/basename.c (base_name): New semantics - malloc the result.
99767         Preserve // when it is special.  Preserve relative files that look
99768         like drive letters.
99769         (base_len): Preserve // when it is special.
99770         (last_component): New method, similar to old base_name semantics.
99771         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
99772         base_name.  Strip redundant slashes from ///.
99774 2006-07-03  Jim Meyering  <jim@meyering.net>
99776         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
99777         macro is used before the first cycle_check call.
99779 2006-07-03  Eric Blake  <ebb9@byu.net>
99781         * modules/dirname (Depends-on): Add xstrndup.
99783 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
99785         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
99786         test cases, so that config.log is a bit easier to follow.
99788 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
99790         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
99791         both are 64 bits, since this seems to be the tradition, and this
99792         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
99793         we ever run into a host that prefers long long to long in this
99794         case, we'll need another configure-time test.  Problem reported by
99795         Jim Meyering.
99797 2006-07-02  Eric Blake  <ebb9@byu.net>
99799         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
99801 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
99803         * modules/inttypes (Depends-on): No longer depends on stdint.
99804         * modules/stdint (Description): Say more about assumptions.
99805         Say that the fast types might differ.  Say macros are used.
99806         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
99807         (Makefile.am): Revise list of substituted symbols to match
99808         new stdint.m4.
99809         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
99810         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
99811         * tests/test-stdint.c (verify_same_types)
99812         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
99813         the code conforms to C99/C89.
99814         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
99815         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
99817 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
99819         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
99820         but fix a bug, by requiring at least 64 bits.
99821         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
99822         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
99823         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
99824         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
99826         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
99827         changes.  Make 2.59 a prerequisite.  Check and substitute for
99828         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
99829         inttypes.h.  Do not use special include files; just use the
99830         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
99831         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
99832         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
99833         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
99834         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
99835         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
99836         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
99837         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
99838         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
99839         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
99840         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
99841         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
99842         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
99843         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
99844         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
99845         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
99846         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
99847         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
99848         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
99849         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
99850         WINT_MAX.  Check for C99 conformance more strictly, by detecting
99851         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
99852         not check for things that C99 does not require, e.g., int8_t.  If
99853         a test isn't needed unless <stdint.h> isn't working, and is
99854         unlikely to be needed for any other reason, then don't do it
99855         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
99856         size_t, since we assume C89 freestanding at least.  Do not check
99857         for sig_atomic_t, wchar_t, or wint_t, since the code now does
99858         the right thing even if the types are not defined.  Instead use:
99859         (gl_STDINT_TYPE_PROPERTIES): New macro.
99860         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
99861         testing whether <sys/types.h> clashes, as Autoconf does this for
99862         us now.  All uses removed.
99863         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
99864         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
99865         (gl_CHECK_TYPE_SAME):
99866         Remove; no longer needed.
99867         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
99868         exists, since we'll return 0 anyway in that case.
99869         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
99871 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
99873         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
99874         possible collision with system files.
99875         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
99876         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
99877         WCHAR_MIN and WCHAR_MAX in this case.
99878         (<stddef.h>): Do not include; no longer needed.
99879         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
99880         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
99881         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
99882         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
99883         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
99884         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
99885         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
99886         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
99887         !defined(__c99))]: Include in this case too, since it's harmless
99888         now.
99889         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
99890         dangerous to do so.
99891         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
99892         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
99893         (_STDINT_MIN, _STDINT_MAX): New macros.
99894         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
99895         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
99896         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
99897         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
99898         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
99899         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
99900         macros, not typedefs; this simplifies things quite a bit.
99901         Use long int for all types narrower than int64_t.
99902         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
99903         Define in terms of long long int or int64_t or long int,
99904         not int64_t or int32_t.  This saves some compile-time testing.
99905         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
99906         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
99907         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
99908         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
99909         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
99910         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
99911         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
99912         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
99913         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
99914         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
99915         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
99916         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
99917         undef any previous version and define our own version, for
99918         simplicity and consistency with the new macros for types.
99919         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
99920         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
99921         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
99922         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
99923         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
99924         @WINT_T_SUFFIX@ to keep things simple here.
99925         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
99926         Simplify by assuming typical 8/16/32/64 host, since we're
99927         already doing that elsewhere anyway.
99928         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
99929         and assume long long int is 64 bits if available.  This
99930         speeds up 'configure'.
99932 2006-07-01  Eric Blake  <ebb9@byu.net>
99934         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
99935         Reported by Andreas Buening.
99937 2006-07-01  Eric Blake  <ebb9@byu.net>
99939         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
99941 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
99943         * lib/getaddrinfo.c: fixed typo
99945 2006-06-29  Jim Meyering  <jim@meyering.net>
99947         * modules/strftime (Maintainer): Add my name, since with the
99948         FPRINTFTIME changes strftime.c has forked from glibc.
99950 2006-06-29  Eric Blake  <ebb9@byu.net>
99952         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
99954 2006-06-29  Eric Blake  <ebb9@byu.net>
99956         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
99958 2006-06-29  Eric Blake  <ebb9@byu.net>
99960         * lib/stat_.h: New file.
99962 2006-06-29  Eric Blake  <ebb9@byu.net>
99964         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
99965         unused static function.
99967 2006-06-29  Eric Blake  <ebb9@byu.net>
99969         * doc/functions.texi (Function Portability): Document missing lstat
99970         on mingw.
99972 2006-06-29  Eric Blake  <ebb9@byu.net>
99974         * MODULES.html.sh: Add sys_stat.
99975         * modules/sys_stat: New module.
99976         * modules/mkstemp (Depends-on): Add sys_stat.
99978 2006-06-29  Derek R. Price  <derek@ximbiot.com>
99980         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
99982 2006-06-29  Derek R. Price  <derek@ximbiot.com>
99984         * m4/c-bs-a.m4: Removed.
99986 2006-06-29  Derek R. Price  <derek@ximbiot.com>
99988         * lib/strftime.c: Assume strftime() exists.
99990 2006-06-29  Derek Price  <derek@ximbiot.com>
99992         * modules/c-bs-a: Removed - \a is C89.
99993         * MODULES.html.sh: Remove c-bs-a.
99995 2006-06-29  Bruno Haible  <bruno@clisp.org>
99997         * modules/wcwidth (License): Change to LGPL.
99999 2006-06-28  Simon Josefsson  <jas@extundo.com>
100001         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
100002         on _WIN32.
100004         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
100005         getnameinfo.
100007 2006-06-28  Simon Josefsson  <jas@extundo.com>
100009         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
100011 2006-06-28  Simon Josefsson  <jas@extundo.com>
100013         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
100014         functions there.  It will succeed on Windows XP, but on Windows
100015         2000 and (presumably) earlier, it will fail, and use the internal
100016         re-implementation.
100017         (use_win32_p): New function.
100018         (getaddrinfo): Use strtoul on servname, to support numeric ports.
100019         Support AI_NUMERICSERV to disable getservbyname.
100020         (getnameinfo): New function, only supports
100021         NI_NUMERICHOST|NI_NUMERICSERV for now.
100023         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
100024         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
100025         getnameinfo.
100027 2006-06-28  Eric Blake  <ebb9@byu.net>
100029         * modules/wcwidth: New file.
100030         * modules/mbchar (Depends-on): Add wcwidth.
100031         * modules/mbswidth (Depends-on): Add wcwidth.
100032         * MODULES.html.sh: Add wcwidth.
100034 2006-06-28  Eric Blake  <ebb9@byu.net>
100036         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
100037         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
100039 2006-06-28  Eric Blake  <ebb9@byu.net>
100041         * lib/xvasprintf.h: Fix comments.
100043 2006-06-28  Eric Blake  <ebb9@byu.net>
100045         * lib/mbchar.h (wcwidth): Include wcwidth.h.
100046         * lib/mbswidth.c (wcwidth): Move from here...
100047         * lib/wcwidth.h: ...to this new file.
100049 2006-06-28  Derek R. Price  <derek@ximbiot.com>
100051         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
100053         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
100054         it's obsolete.
100055         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
100057 2006-06-28  Derek R. Price  <derek@ximbiot.com>
100059         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
100060         Autoconf 2.60 says this stuff was obsolete.
100062 2006-06-28  Bruno Haible  <bruno@clisp.org>
100064         * modules/wcwidth (Files): Add m4/wchar_t.m4.
100066 2006-06-28  Bruno Haible  <bruno@clisp.org>
100068         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
100069         gt_TYPE_WCHAR_T.
100071 2006-06-28  Bruno Haible  <bruno@clisp.org>
100073         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
100074         declaration for wcwidth.
100075         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
100077 2006-06-28  Bruno Haible  <bruno@clisp.org>
100079         * lib/mkdtemp.c [MINGW]: Include <io.h>.
100080         (mkdir): Define using _mkdir.
100082 2006-06-28  Bruno Haible  <bruno@clisp.org>
100084         * lib/getaddrinfo.h: Fix POSIX URL.
100085         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
100086         _WIN32.
100087         (use_win32_p): Make static.
100088         (getaddrinfo): Reject service name if it is empty or does not consist
100089         solely of decimal digits, or if its value is > 65535.
100090         (getnameinfo): Remove useless casts.
100092 2006-06-27  Simon Josefsson  <jas@extundo.com>
100094         * modules/sys_select: New file, suggested by Bruno Haible, Paul
100095         Eggert and Martin Lambers.
100097 2006-06-27  Simon Josefsson  <jas@extundo.com>
100099         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
100100         Eggert and Martin Lambers.
100102 2006-06-27  Bruno Haible  <bruno@clisp.org>
100104         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
100105         result to 0, not to empty.
100106         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
100108 2006-06-27  Bruno Haible  <bruno@clisp.org>
100110         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
100112 2006-06-26  Simon Josefsson  <jas@extundo.com>
100114         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
100115         present.
100117 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
100119         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
100120         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
100121         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00181.html>.
100123 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
100125         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
100127 2006-06-26  Bruno Haible  <bruno@clisp.org>
100129         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
100131 2006-06-26  Bruno Haible  <bruno@clisp.org>
100133         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
100135 2006-06-26  Bruno Haible  <bruno@clisp.org>
100137         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
100138         SGI C compiler in pre-C99 mode.
100139         Suggested by Mark D. Baushke and Larry Jones.
100141 2006-06-26  Bruno Haible  <bruno@clisp.org>
100143         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
100144         WCHAR_MAX.
100145         Reported by Mark D. Baushke and Larry Jones.
100147 2006-06-26  Bruno Haible  <bruno@clisp.org>
100149         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
100150         in pre-C99 mode.
100151         Suggested by Mark D. Baushke and Larry Jones.
100153 2006-06-23  Simon Josefsson  <jas@extundo.com>
100154             Bruno Haible  <bruno@clisp.org>
100156         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
100157         Emit mostlyclean-local rule.
100158         (func_emit_tests_Makefile_am): Likewise.
100159         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
100161 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
100163         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
100165 2006-06-23  Bruno Haible  <bruno@clisp.org>
100167         * tests/test-stdint.c: Update to match ISO C 99 Technical
100168         Corrigendum 1.
100170 2006-06-23  Bruno Haible  <bruno@clisp.org>
100172         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
100174 2006-06-23  Bruno Haible  <bruno@clisp.org>
100176         * lib/stdint_.h: Treat IRIX like OpenBSD.
100178 2006-06-23  Bruno Haible  <bruno@clisp.org>
100180         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
100181         ISO C 99 Technical Corrigendum 1.
100183 2006-06-22  Simon Josefsson  <jas@extundo.com>
100185         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
100186         MinGW.
100188 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
100190         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
100191         needed.  Some compiler complained about some of them.  Problem reported
100192         by Larry Jones in
100193         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00172.html>.
100195 2006-06-21  Simon Josefsson  <jas@extundo.com>
100197         * tests/test-getaddrinfo.c: New file.
100199         * modules/getaddrinfo-tests: New file.
100201         * MODULES.html.sh: Add inet_pton.
100203         * modules/inet_pton: New file.
100205 2006-06-21  Simon Josefsson  <jas@extundo.com>
100207         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
100208         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
100209         of using the (limited) gnulib implementation on Windows XP.
100211         * m4/inet_pton.m4: New file.
100213 2006-06-21  Simon Josefsson  <jas@extundo.com>
100215         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
100216         variable.
100218         * lib/socket_.h: Don't define WINVER.
100220         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
100221         slightly modified to work in gnulib.
100223 2006-06-21  Simon Josefsson  <jas@extundo.com>
100225         * doc/gnulib.texi (Windows sockets): Add.
100227 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
100229         * lib/read-file.c (fread_file): Start with buffer allocation of
100230         0 bytes rather than 1 byte; this simplifies the code.
100231         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
100232         code to free buffer and save/restore errno.
100233         (internal_read_file): Remove unused local.
100235 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
100237         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
100238         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
100239         Problem reported by Denis Excoffier in
100240         <http://lists.gnu.org/r/bug-tar/2006-06/msg00023.html>.
100242 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
100244         * modules/sys_socket, modules/socklen: Include sys/types since
100245         FreeBSD 4.x's sys/socket.h needs it.
100247 2006-06-19  Simon Josefsson  <jas@extundo.com>
100249         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
100251 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
100253         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
100255 2006-06-19  Bruno Haible  <bruno@clisp.org>
100257         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
100258         and FULL_PATH_INTTYPES_H in angle brackets.
100259         Reported by Mark D. Baushke <mdb@gnu.org>.
100261 2006-06-17  Eric Blake  <ebb9@byu.net>
100263         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
100264         errno.
100266 2006-06-17  Bruno Haible  <bruno@clisp.org>
100268         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
100269         <sys/inttypes.h>.
100271 2006-06-17  Bruno Haible  <bruno@clisp.org>
100273         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
100274         whether errno is declared. Assume <errno.h> declares errno.
100276 2006-06-17  Bruno Haible  <bruno@clisp.org>
100278         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
100280 2006-06-17  Bruno Haible  <bruno@clisp.org>
100282         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
100283         problem on Solaris 2.5.1.
100285 2006-06-16  Eric Blake  <ebb9@byu.net>
100287         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
100288         * lib/unicodeio.c [!defined errno]: Likewise.
100289         * lib/strtol.c [!defined errno]: Likewise.
100290         * lib/strtod.c [!defined errno]: Likewise.
100292 2006-06-15  Eric Blake  <ebb9@byu.net>
100294         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
100296 2006-06-15  Eric Blake  <ebb9@byu.net>
100298         * config/srclist.txt (ssize_t.m4): Lose sync.
100300 2006-06-15  Bruno Haible  <bruno@clisp.org>
100302         * modules/stdint (Files): Include m4/full-header-path.m4,
100303         m4/size_max.m4, m4/wchar_t.m4.
100304         (Makefile.am): Many more substitutions.
100305         * modules/stdint-tests: New file.
100306         * tests/test-stdint.c: New file.
100308 2006-06-15  Bruno Haible  <bruno@clisp.org>
100310         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
100311         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
100312         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
100313         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
100314         gl_CHECK_TYPE_SAME): New macros.
100316 2006-06-15  Bruno Haible  <bruno@clisp.org>
100318         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
100320 2006-06-15  Bruno Haible  <bruno@clisp.org>
100322         * lib/stdint_.h: Rewritten to be fully auto-configured.
100323         Fixes bug on HP-UX/IA64.
100325 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
100327         * lib/getdate.y (__attribute__): Don't define if already defined.
100328         Problem reported by Larry Jones.
100329         * lib/utimens.c (__attribute__): Likewise.
100331 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
100333         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
100334         reported by Andreas Schwab.
100336 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100337             Bruno Haible  <bruno@clisp.org>
100339         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
100340         check for the declaration of strnlen and a run test that exposes the
100341         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
100342         rpl_strndup.
100344 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100345             Bruno Haible  <bruno@clisp.org>
100347         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
100349 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100351         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
100352         compile test, for Tru64 4.0D.
100354 2006-05-28  Karl Berry  <karl@gnu.org>
100356         * config/srclist.txt (printf-args.c): lose sync.
100358 2006-05-26  Martin Lambers  <marlam@marlam.de>
100360         * lib/getpass.c: Updates the test for the native W32 API, and adds
100361         missing includes, thus fixing compilation warnings.
100363 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
100365         * lib/exclude.c (exclude_fnmatch): New function.
100366         (excluded_file_name): Call exclude_fnmatch.
100367         * lib/exclude.h (excluded_file_name): New prototype
100369 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
100371         * lib/tempname.c (small_open, large_open): New macros.
100372         (__open, __open64) [!_LIBC]: Remove.
100373         (__gen_tempname): Use small_open and large_open instead of __open
100374         and __open64.  This fixes a portability bug on HP-UX 11.11i
100375         reported by Simon Wing-Tang in
100376         <http://lists.gnu.org/r/bug-coreutils/2006-05/msg00114.html>.
100378 2006-05-24  Bruno Haible  <bruno@clisp.org>
100380         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
100381         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
100382         Reported by Thorsten Maerz <torte@netztorte.de> via
100383         Aaron Stone <aaron@serendipity.cx>.
100385 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
100387         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
100388         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
100389         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
100390         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
100391         not really conditional on the cache.
100392         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
100394 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
100396         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
100397         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
100398         (my_usleep): Don't mishandle maximum value.
100400 2006-05-19  Jim Meyering  <jim@meyering.net>
100402         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
100404 2006-05-17  Bruno Haible  <bruno@clisp.org>
100406         Cygwin portability.
100407         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
100409 2006-05-17  Bruno Haible  <bruno@clisp.org>
100411         * lib/stdint_.h: Fix recognition of Cygwin.
100413 2006-05-15  Bruno Haible  <bruno@clisp.org>
100415         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
100416         on libtool patch by Ralf Wildenhues.
100418 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
100420         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
100421         test for C99 conformance; (bool) 0.5 is an integer constant
100422         expression, but (bool) -0.5 is not.  Problem reported by Fedor
100423         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
100425 2006-05-11  Simon Josefsson  <jas@extundo.com>
100427         * m4/xvasprintf.m4: Fix obvious typo.
100429 2006-05-11  Jim Meyering  <jim@meyering.net>
100431         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
100432         James Lemley.
100434 2006-05-10  Simon Josefsson  <jas@extundo.com>
100436         * lib/md4.c: Typo fix, update copyright years.
100437         (K1, K2): Don't use L because it turn computations into 64-bit on
100438         64-bit platforms.
100440 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
100442         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
100443         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
100444         unwanted sign propagation, e.g., on hosts with 64-bit int.
100445         There still are some problems with reeelly weird theoretical hosts
100446         (e.g., 33-bit int) but it's not worth worrying about now.
100447         * lib/sha1.c (rol): Likewise.
100448         (K1, K2, K3, K4): Remove unnecessary L suffix.
100450 2006-05-10  Bruno Haible  <bruno@clisp.org>
100452         * lib/des.c: Cast to avoid warnings.
100454 2006-05-09  Bruno Haible  <bruno@clisp.org>
100456         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
100457         (Depends-on): Depend also on xsize, stdarg.
100458         (configure.ac): Add gl_XVASPRINTF.
100460 2006-05-09  Bruno Haible  <bruno@clisp.org>
100462         * m4/xvasprintf.m4: New file.
100464 2006-05-09  Bruno Haible  <bruno@clisp.org>
100466         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
100467         (EOVERFLOW): Define fallback value.
100468         (xstrcat): New function.
100469         (xvasprintf): Recognize the special case of a string concatenation.
100471 2006-05-08  Eric Blake  <ebb9@byu.net>
100473         * gnulib-tool (func_version): Base copyright year on CVS date.
100474         (func_emit_copyright_notice): New function.
100475         (func_emit_lib_Makefile_am): Use it.
100476         (func_emit_tests_Makefile_am): Likewise.
100477         (func_import): Likewise.
100479 2006-05-08  Bruno Haible  <bruno@clisp.org>
100481         * modules/stdarg: New file.
100482         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
100484 2006-05-08  Bruno Haible  <bruno@clisp.org>
100486         * m4/stdarg.m4: New file, from GNU gettext.
100488 2006-05-08  Bruno Haible  <bruno@clisp.org>
100490         * config/srclist.txt (build-aux/config.rpath): different from latest
100491         release.
100493 2006-05-08  Bruno Haible  <bruno@clisp.org>
100495         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
100497 2006-05-05  Jim Meyering  <jim@meyering.net>
100499         * m4/warning.m4: New file, derived from bison's file by the same name.
100501 2006-05-03  Bruno Haible  <bruno@clisp.org>
100503         * lib/stdint_.h: Shorter URL.
100504         * lib/inttypes.h: Likewise.
100506 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
100508         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
100510 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
100512         * lib/verify.h: Document the internals better.  Most of this change
100513         was written by Bruno Haible.
100515 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
100517         * doc/verify.texi: New file, partly based on a proposal by
100518         Bruno Haible.
100520 2006-05-02  Bruno Haible  <bruno@clisp.org>
100522         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
100523         test from here...
100524         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
100526 2006-04-29  Bruno Haible  <bruno@clisp.org>
100528         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
100529         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
100531 2006-04-29  Bruno Haible  <bruno@clisp.org>
100533         * gnulib-tool: Make --update option actually work.
100535 2006-04-29  Bruno Haible  <bruno@clisp.org>
100537         * doc/gcd.texi: New file.
100538         * doc/gnulib.texi: Include it.
100540 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
100542         * lib/getdate.y (get_date): When adding relative date, start with the
100543         initial time, not with the result of the first mktime call.
100545 2006-04-25  Bruno Haible  <bruno@clisp.org>
100547         * gnulib-tool (func_import): Output the include directives in three
100548         blocks, sorted separately.
100549         Reported by Ben Pfaff <blp@cs.stanford.edu>.
100551 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
100553         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
100554         to define main with arguments, for C++.  Reported by Eric Blake.
100555         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
100556         Prefer 'int main ()' to 'int main (void)', for C++.
100557         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
100558         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
100559         for 'main', for C99 and C++.
100561 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
100563         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
100564         Don't assume that exit status -1 is valid.
100565         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
100566         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
100567         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
100568         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
100569         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
100570         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
100571         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
100572         functions can be used without declaring them, or that you can
100573         exit with status -1.
100574         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
100576 2006-04-24  Karl Berry  <karl@gnu.org>
100578         * config/srclist.txt (longdouble.m4): sync lost.
100580 2006-04-24  Eric Blake  <ebb9@byu.net>
100582         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
100584 2006-04-24  Bruno Haible  <bruno@clisp.org>
100586         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
100587         poll() implementation in AIX.
100588         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
100590 2006-04-24  Bruno Haible  <bruno@clisp.org>
100592         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
100593         assigned exactly once.
100595 2006-04-23  Claudio Fontana  <claudio@gnu.org>
100596             Bruno Haible  <bruno@clisp.org>
100598         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
100599         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
100600         for AM_CPPFLAGS.
100602 2006-04-23  Bruno Haible  <bruno@clisp.org>
100604         * modules/copy-file: Depend on unistd.
100605         * modules/execute: Likewise.
100606         * modules/fatal-signal: Likewise.
100607         * modules/findprog: Likewise.
100608         * modules/mkdtemp : Likewise.
100609         * modules/pipe: Likewise.
100610         * modules/wait-process: Likewise.
100612 2006-04-23  Bruno Haible  <bruno@clisp.org>
100614         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
100615         condition was already detected.
100616         Reported by Ben Pfaff <blp@cs.stanford.edu>.
100618 2006-04-23  Bruno Haible  <bruno@clisp.org>
100620         * lib/copy-file.c: Include <unistd.h> unconditionally.
100621         * lib/execute.c: Likewise.
100622         * lib/fatal-signal.c: Likewise.
100623         * lib/findprog.c: Likewise.
100624         * lib/mkdtemp.c: Likewise.
100625         * lib/pipe.h: Likewise.
100626         * lib/pipe.c: Likewise.
100627         * lib/wait-process.h: Likewise.
100629 2006-04-23  Bruno Haible  <bruno@clisp.org>
100631         * gnulib-tool (func_usage): Fix --import description. Document
100632         --update.
100633         (func_import): Create temporary file in a temporary directory, if
100634         --dry-run is specified. Silence errors from 'grep' when there are no
100635         m4 files in $m4dir.
100636         (func_create_testdir): Silence errors from 'grep' when there are no
100637         m4 files in $m4dir.
100638         Reported by Karl Berry <karl@freefriends.org>.
100640 2006-04-20  Bruno Haible  <bruno@clisp.org>
100642         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
100643         one argument, so that the code will be portable to Autoconf 2.60.
100644         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
100645         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
100646         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
100648 2006-04-19  Derek Price  <derek@ximbiot.com>
100649             Eric Blake  <ebb9@byu.net>
100651         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
100652         rather than "/full/path.h".  Update comment to match.  Shorten &
100653         generalize m4_translit call via AS_TR_CPP.
100655 2006-04-19  Derek Price  <derek@ximbiot.com>
100656             Eric Blake  <ebb9@byu.net>
100658         * lib/inttypes.h: Correct grammar in comment.
100660 2006-04-18  Derek Price  <derek@ximbiot.com>
100661             Paul Eggert  <eggert@cs.ucla.edu>
100663         * modules/inttypes: New file.
100664         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
100666 2006-04-18  Derek Price  <derek@ximbiot.com>
100667             Paul Eggert  <eggert@cs.ucla.edu>
100669         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
100670         New files.
100672 2006-04-18  Derek Price  <derek@ximbiot.com>
100673             Paul Eggert  <eggert@cs.ucla.edu>
100675         * lib/inttypes.h: New file.
100676         * lib/strtoimax.c: Assume <inttypes.h>.
100678 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
100680         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
100681         isn't mounted.  Problem reported by Kir Kolyshkin.
100683 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
100685         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
100686         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
100687         Derek R. Price.
100688         * lib/regex.h (RE_DUP_MAX): Update comment to match current
100689         implementation.
100691 2006-04-12  Eric Blake  <ebb9@byu.net>
100693         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
100694         is now done automatically by the corresponding Autoconf macro.
100696 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
100698         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
100699         time_r.h.
100701 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
100703         Merge regex changes from libc, removing some of our
100704         POSIX-conformance changes that were rejected and redoing them in a
100705         less-intrusive way.
100707         * lib/regcomp.c (re_compile_internal, init_dfa):
100708         Length arg is now size_t, not Idx.  All uses changed.
100709         (peek_token): Forward decl now says internal_function.
100710         (__re_error_msgid, __re_error_msgid_idx):
100711         Now static rather than extern with attribute_hidden.
100712         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
100713         For some reason libc prefers K&R style defns for external functions.
100714         (regerror) [!defined _LIBC]: Likewise.
100715         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
100716         (seek_collating_symbol_entry, lookup_collation_sequence_value):
100717         (build_range_exp, build_collating_symbol):
100718         Use K&R-style defn.
100719         (re_compile_fastmap): Use '\0' to memset, not 0.
100720         (utf8_sb_map): Make the calculations more obvious.
100721         (init_dfa, parse_bracket_exp, build_charclass_op):
100722         Call calloc and cast result, as glibc does.
100723         (init_word_char, fetch_token, peek_token, peek_token_bracket):
100724         (build_range_exp, build_collating_symbol):
100725         Now internal functions.
100727         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
100729         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
100730         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
100731         Don't depend on VMS; depend on __VMS instead, for POSIX
100732         namespace cleanness.
100733         (regoff_t): Define to ssize_t, not long int.
100735         Remove the REG_ macros named below.  Instead, make the old names
100736         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
100737         __USE_GNU_REGEX.
100738         (REG_BACKSLASH_ESCAPE_IN_LISTS):
100739         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
100740         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
100741         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
100742         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
100743         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
100744         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
100745         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
100746         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
100747         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
100748         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
100749         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
100750         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
100751         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
100752         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
100753         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
100754         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
100755         (REG_NREGS):
100756         Remove.  All uses replaced by the old RE_* names.
100757         (RE_BACKSLASH_ESCAPE_IN_LISTS):
100758         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
100759         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
100760         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
100761         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
100762         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
100763         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
100764         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
100765         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
100766         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
100767         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
100768         Don't bother having these macros be independent of each others'
100769         values, since they no longer exist in the POSIX name space.
100771         Rename the following member names back to their old names,
100772         unless !__USE_GNU_REGEX.  All uses changed back.
100773         (buffer): Renamed from re_buffer.
100774         (allocated): Renamed from re_allocated.
100775         (used): Renamed from re_used.
100776         (syntax): Renamed from re_syntax.
100777         (fastmap): Renamed from re_fastmap.
100778         (translate): Renamed from re_translate.
100779         (can_be_null): Renamed from re_can_be_null.
100780         (regs_allocated): Renamed from re_regs_allocated.
100781         (fastmap_accurate): Renamed from re_fastmap_accurate.
100782         (no_sub): Renamed from re_no_sub.
100783         (not_bol): Renamed from re_not_bol.
100784         (not_eol): Renamed from re_not_eol.
100785         (newline_anchor): Renamed from re_newline_anchor.
100786         (num_regs): Renamed from rm_num_regs.
100787         (start): Renamed from rm_start.
100788         (end): Renamed from rm_end.
100790         (free_state): Move up a bit.
100792         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
100793         #define to be empty.
100794         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
100795         when that is what is intended.
100796         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
100797         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
100798         (MAX): New macro.
100799         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
100800         All uses changed back to re_malloc, etc.  It's now the caller's
100801         responsibility to check for overflow; all callers changed.
100802         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
100803         (re_x2nrealloc): Remove.
100804         (free_state): Remove decl.
100806         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
100807         (re_set_registers, re_exec):
100808         Use K&R-style defn.
100810         2006-01-31  Roland McGrath  <roland@redhat.com>
100812         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
100813         Reported by Mike Frysinger <vapier@gentoo.org>.
100815         2006-01-15  Andreas Jaeger  <aj@suse.de>
100817         [BZ #1950]
100818         * lib/regex_internal.c (re_string_reconstruct): Adjust for
100819         build_wcs_upper_buffer change.
100820         (build_wcs_upper_buffer): Change return type.
100822         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
100824         * lib/regex_internal.h: Include <stdint.h> if available.
100826         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
100828         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
100830         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
100832         * lib/regcomp.c: Adjust for changed secondary hash function.
100834         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
100836         * lib/regex.h: Pretty printing.
100837         Clean up namespace a bit.
100839         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
100841         * lib/regexec.c (update_cur_sifted_state, check_arrival,
100842         check_arrival_add_next_nodes): Avoid using uninitialized variable.
100844         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
100845                     Ulrich Drepper  <drepper@redhat.com>
100847         [BZ #1302]
100848         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
100849         changed.
100850         (bitset_word_t): Renamed from bitset_word.  All uses changed.
100852         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
100854         [BZ #281]
100855         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
100856         * lib/regcomp.c: Remove unnecessary uses of
100857         unsigned RE_TRANSLATE_TYPE.
100858         * lib/regex_internal.h: Likewise.
100859         * lib/regex_internal.c: Likewise.
100860         * lib/regexec.c: Likewise.
100861         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
100863         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
100865         * lib/regexec.c (find_recover_state): Remove unnecessary
100866         initialization.
100867         (transit_state_bkref): Make DFA a const pointer.
100868         (get_subexp): Likewise.
100869         (check_arrival): Likewise.
100870         (update_cur_sifted_state): Likewise.
100871         (re_search_internal): Likewise.
100872         (prune_impossible_nodes): Likewise.
100873         (acquire_init_state_context): Likewise.
100874         (proceed_next_node): Likewise.
100875         (set_regs): Likewise.
100876         (free_fail_stack_return): Likewise.
100877         (check_arrival_expand_ecl): Mark DFA parameter as const.
100878         (check_arrival_expand_ecl_sub): Likewise.
100879         (check_subexp_limits): Likewise.
100880         (sub_epsilon_src_nodes):  Likewise.
100881         (add_epsilon_src_nodes):  Likewise.
100882         (merge_state_array): Likewise.
100883         (update_regs): Likewise.
100884         (build_trtable): Likewise.
100885         (sift_states_backward): Mark MCTX parameter as const.
100886         (build_sifted_states): Likewise.
100887         (update_cur_sifted_state): Likewise.
100888         (sift_states_mkref): Likewise.
100889         (check_arrival_expand_ecl): Mark eclosure as const.
100890         (check_dst_limits_calc_pos_1): Likewise.
100891         * lib/regex_internal.h (re_match_context_t): Make dfa a const
100892         pointer.
100894         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
100896         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
100897         (transit_state_sb): Likewise.
100898         (transit_state_mb): Likewise.
100899         (sift_states_iter_mb): Likewise.
100900         (check_arrival_add_next_nodes): Likewise.
100901         (check_node_accept_bytes): Change first parameter to pointer-to-const.
100902         [_LIBC] (re_search_2_stub): Use mempcpy.
100904         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
100905         mbrtowc for very simple UTF-8 case.
100907         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
100908         a pointer-to-const.
100909         (re_acquire_state_context): Likewise.
100910         * lib/regex_internal.h: Adjust prototypes.
100912         * lib/regex.c: Prevent using C++ compilers.
100914         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
100915         (re_acquire_state_context): Likewise.
100917 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
100919         * modules/regex (Depends-on): Add ssize_t.
100921 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
100923         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
100924         translation table.
100926 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
100928         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
100930 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
100931             Bruno Haible  <bruno@clisp.org>
100933         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
100934         <sys/types.h> and <inttypes.h>.
100936 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100938         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
100939         `__error_t_defined', so argp.h will not typedef the former.
100941 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
100943         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
100944         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
100945         glibc names.  Even if glibc is changed to conform to POSIX, the
100946         traditional names will be available anyway, since regex depends on
100947         the extensions module.  Also, fix a longstanding typo in the
100948         implementation of Spencer ERE test #75 from grep 2.3.  Problems
100949         reported by Emanuele Giaquinta.  Also, change sense of cached
100950         variable, so that the message makes sense.
100952 2006-03-24  Simon Josefsson  <jas@extundo.com>
100954         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
100955         including some doc fixes.
100956         (base64_encode_alloc): Fix +1 bug on allocation failures.
100958 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100960         * lib/base64.c (base64_encode): Do not read past end of array with
100961         unsanitized input on systems with CHAR_BIT > 8.
100963 2006-03-24  Eric Blake  <ebb9@byu.net>
100965         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
100967 2006-03-22  Karl Berry  <karl@gnu.org>
100969         * config/srclist.txt (*setenv.[ch]): get from coreutils.
100970         * config/srclistvars.sh (COREUTILS): new var.
100972 2006-03-17  Jim Meyering  <jim@meyering.net>
100974         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
100975         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
100977 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
100979         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
100980         no longer needs it.  Instead, check that regoff_t is as least
100981         as wide as ptrdiff_t.
100983         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
100984         so that our regex.h stays compatible with the installed regex.
100985         This is helpful for installers who configure --without-included-regex.
100986         Problem reported by Emanuele Giaquinta.
100988 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
100990         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
100991         Typedef to long int, not to off_, as POSIX will likely change
100992         in that direction.
100994 2006-03-15  Eric Blake  <ebb9@byu.net>
100996         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
100998 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
101000         * lib/argp-help.c (validate_uparams): Fix typo
101001         * lib/argp-parse.c (argp_default_options): Consistently begin help
101002         messages with a lowercase letter.
101004 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
101006         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
101007         overrun buffers and shouldn't be used (much as gets shouldn't be
101008         used).
101009         * lib/time_r.c (asctime_r, ctime_r): Likewise.
101011 2006-03-08  Simon Josefsson  <jas@extundo.com>
101013         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
101014         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
101016 2006-03-08  Simon Josefsson  <jas@extundo.com>
101018         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
101019         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
101021 2006-03-08  Simon Josefsson  <jas@extundo.com>
101023         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
101024         signal that configure disabled the device.
101026 2006-03-08  Simon Josefsson  <jas@extundo.com>
101028         * build-aux/maint.mk: Fix refresh-po, to handle no translated
101029         languages.
101031 2006-03-07  Simon Josefsson  <jas@extundo.com>
101033         * modules/getopt (Depends-on): Add unistd.
101035         * modules/unistd: New file.
101037 2006-03-07  Simon Josefsson  <jas@extundo.com>
101039         * modules/gc-random: New file.
101041 2006-03-07  Simon Josefsson  <jas@extundo.com>
101043         * m4/unistd_h.m4: New file.
101045 2006-03-07  Simon Josefsson  <jas@extundo.com>
101047         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
101048         test to be side-effect free by storing the result in the cache
101049         variable gl_cv_lib_readline, and moving the assignment of
101050         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
101051         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
101053 2006-03-07  Simon Josefsson  <jas@extundo.com>
101055         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
101056         error on missing devices (the functions will return an error).
101058         * m4/gc.m4: Move random stuff to gc-random.m4
101060 2006-03-07  Simon Josefsson  <jas@extundo.com>
101062         * lib/unistd_.h: New file.
101064 2006-03-07  Simon Josefsson  <jas@extundo.com>
101066         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
101068 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
101070         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
101071         Problem reported by Juan Manuel Guerrero.
101073 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
101075         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
101076         the unistd module.
101077         * lib/getlogin_r.c: Likewise.
101078         * lib/getlogin_r.h: Likewise.
101079         * lib/glob.c: Likewise.
101080         * lib/pagealign_alloc.c: Likewise.
101081         * lib/unistd_.h: Remove; no longer needed.
101083 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
101085         * MODULES.html.sh (Support for systems lacking POSIX:2001):
101086         Add unistd.
101087         * modules/c-stack (Depends-on): Add unistd.
101088         * modules/getlogin_r: Likewise.
101089         * modules/glob: Likewise.
101090         * modules/pagealign_alloc: Likewise.
101091         * modules/unistd (Files): Remove lib/unistd_.h.
101092         (EXTRA_DIST): Remove.
101093         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
101094         need unistd_.h.
101095         (MOSTLYCLEANFILES): Remove unistd.h-t.
101097 2006-03-03  Simon Josefsson  <jas@extundo.com>
101099         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
101101 2006-03-03  Simon Josefsson  <jas@extundo.com>
101103         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
101104         libidn and bison.
101106 2006-03-03  Simon Josefsson  <jas@extundo.com>
101108         * build-aux/maint.mk: Add indent target.
101110 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
101112         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
101113         our replacement poll.h in any case, to avoid a differing
101114         declaration from a system header.  Seen on AIX.
101116 2006-03-01  Simon Josefsson  <jas@extundo.com>
101118         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
101119         <kasal@ucw.cz>.
101121 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
101123         * modules/gettime (Depends-on): Add extensions module.
101124         * modules/nanosleep (Depends-on): Likewise.
101125         * modules/settime (Depends-on): Likewise.
101127 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
101129         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
101130         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
101131         pedantically.
101132         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
101133         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
101135         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
101136         not "==".  Reported by Ralf Wildenhues.
101138 2006-03-01  Karl Berry  <karl@gnu.org>
101140         * doc/Copyright/request-*: new files, synced from gnuorg.
101142 2006-03-01  Karl Berry  <karl@gnu.org>
101144         * config/srclist.txt (Copyright/*): new entries.
101146 2006-02-28  Simon Josefsson  <jas@extundo.com>
101148         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
101150 2006-02-27  Simon Josefsson  <jas@extundo.com>
101152         * lib/base64.h: Indent #define's.  From Jim Meyering
101153         <jim@meyering.net>.
101155 2006-02-27  Jim Meyering  <jim@meyering.net>
101157         Revert the change of 2006-02-24, so these files can continue
101158         to be sync'd from gettext.
101159         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
101160         of `config.h'.
101162 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
101164         * modules/intprops: New file.
101165         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
101166         Add intprops.
101167         * modules/getloadavg (Files): Remove lib/intprops.h.
101168         (Depends-on): Add intprops.
101169         * modules/human: Likewise.
101170         * modules/inttostr: Likewise.
101171         * modules/openat: Likewise.
101172         * modules/sig2str: Likewise.
101173         * modules/userspec: Likewise.
101174         * modules/utimecmp: Likewise.
101175         * modules/xnanosleep: Likewise.
101176         * modules/xstrtol: Likewise.
101178 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
101180         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
101181         * modules/lock-tests (TESTS): Use $(EXEEXT).
101182         * modules/tls-tests: Likewise.
101183         * modules/argp-tests: Likewise.
101184         (check_PROGRAMS): New var, replacing...
101185         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
101187 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101189         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
101190         `config.h'.
101192 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
101194         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
101196 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101198         Sync from coreutils.
101199         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
101200         gl_CHDIR_SAFER.
101202 2006-02-22  Jim Meyering  <jim@meyering.net>
101204         Sync from coreutils.
101205         * m4/chdir-safer.m4: New file.
101207 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
101209         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
101210         AT_FDCWD exceeds INT_MAX.
101211         * lib/openat.h (AT_FDCWD): Likewise.
101213 2006-02-17  Eric Blake  <address@hidden>
101215         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
101217 2006-02-16  Simon Josefsson  <jas@extundo.com>
101219         * modules/getaddrinfo (Depends-on): Add sys_socket.
101221 2006-02-15  Simon Josefsson  <jas@extundo.com>
101223         * build-aux/maint.mk: Add dsyntax-check rule.
101225 2006-02-15  Eric Blake  <ebb9@byu.net>
101227         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
101228         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
101229         'present but cannot compile' warnings on cygwin.
101230         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
101231         use ws2tcpip.h if sys/socket.h works.
101232         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
101233         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
101235 2006-02-14  Simon Josefsson  <jas@extundo.com>
101237         * modules/maintainer-makefile (Files): Rename.
101239         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
101240         and (the local) Makefile.cfg to maint-cfg.mk.
101242         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
101243         to the latter.
101245         * modules/maintainer-makefile: New module.
101247         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
101248         severaly stripped to make it possible to build it up from scratch
101249         with reliable tests.
101251         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
101252         fixes to permit overriding the default actions when configure and
101253         makefile are not available.
101255 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
101257         Sync from coreutils.
101258         * modules/lstat (Depends-on): Don't depend on xalloc.
101259         (License): Change from GPL to LGPL, since this is now simply a
101260         replacement for a libc function.
101262 2006-02-14  Jim Meyering  <jim@meyering.net>
101264         Sync from coreutils.
101266         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
101267         failure on deficient systems, and simplify gnulib lgpl dependencies.
101268         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
101269         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
101271         * lib/xalloc-die.c: Remove unused definition of N_.
101273 2006-02-14  Jim Meyering  <jim@meyering.net>
101275         Sync from coreutils.
101276         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
101277         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
101278         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
101279         double-quote uses of that variable, to accommodate the rare case in
101280         which getmntent is available in none of the libraries checked.  This
101281         happens at least on FreeBSD 5.0.
101283 2006-02-13  Simon Josefsson  <jas@extundo.com>
101285         * gnulib-tool (Usage): Fix --import, from
101286         karl@freefriends.org (Karl Berry).
101288 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
101290         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
101292 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
101294         * lib/argp-namefrob.h: Restore changes accidentally lost during the
101295         "autoupdate" on 2005-12-12.
101297 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
101299         * modules/closeout (Depends-on): Remove atexit.
101301 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
101303         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
101304         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
101306 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
101308         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
101309         __EXTENSIONS__ if this causes compilation to fail.  Problem
101310         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
101311         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
101313 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
101315         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
101316         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
101317         <http://lists.gnu.org/r/bug-gnulib/2006-01/msg00074.html>.
101318         All uses changed.
101320 2006-01-26  Simon Josefsson  <jas@extundo.com>
101322         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
101323         prototype is visible on mingw32.
101325         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
101326         for mingw32.
101328         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
101329         mingw32).
101331 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
101333         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
101334         attempt to open for write; this always fails, at least on POSIX
101335         hosts.  This reinstates the 2006-01-09 change, which was
101336         inadvertently removed.
101338 2006-01-26  Bruno Haible  <bruno@clisp.org>
101340         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
101341         Reported by Paul Eggert.
101343 2006-01-26  Bruno Haible  <bruno@clisp.org>
101344             Paul Eggert  <eggert@cs.ucla.edu>
101346         * lib/stdbool_.h (_Bool)
101347         [(! (defined __cplusplus || defined __BEOS__)
101348           && !defined __GNUC__
101349           && !(defined __HP_cc || defined __xlc__
101350                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
101351                || defined __sgi))]:
101352         #define to signed char in these cases too; this simplifies
101353         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
101354         etc., separately) and makes it more conservative.
101356 2006-01-25  Simon Josefsson  <jas@extundo.com>
101358         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
101359         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
101360         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
101362 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
101364         * lib/argp-namefrob.h: Bugfix. Remove stray #
101366 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
101368         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
101369         so that we test the test.
101370         Check for yet another HP-UX cc bug involving *bool |= bool.
101372 2006-01-25  Karl Berry  <karl@gnu.org>
101374         * config/srclist.txt (vasnprintf.c): sync lost.
101376 2006-01-25  Jim Meyering  <jim@meyering.net>
101378         Sync from the stable (b5) branch of coreutils:
101380         * lib/fts.c (fts_children): Don't let close() clobber errno from
101381         failed fchdir().
101383         * lib/fts.c (fts_stat): When following a symlink-to-directory,
101384         don't necessarily interpret stat-fails+lstat-succeeds as indicating
101385         a dangling symlink.  That can also happen at least for ELOOP.
101386         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
101387         FYI, this bug predates the inclusion of fts.c in coreutils.
101389         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
101390         in their own block, so pre-c99 compilers don't object.
101392         Avoid the double-free (first in fts_read, second in fts_close) that
101393         would occur when an `active' directory is made inaccessible (e.g.,
101394         via chmod a-x) during a traversal.
101395         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
101396         before returning.  Reproduce this failure by
101397         mkdir -p a/b; cd a; chmod a-x . b
101398         Reported by Stavros Passas.
101400 2006-01-25  Jim Meyering  <jim@meyering.net>
101402         * lib/fileblocks.c: Remove more useless parentheses.
101403         * lib/readutmp.h: Likewise.
101405 2006-01-25  Bruno Haible  <bruno@clisp.org>
101407         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
101408         warnings.
101409         Reported by Paul Eggert.
101411 2006-01-25  Bruno Haible  <bruno@clisp.org>
101413         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
101414         rid of a trap command. For Solaris sh.
101415         Reported by Mark D. Baushke <mdb@gnu.org>.
101417 2006-01-24  Simon Josefsson  <jas@extundo.com>
101419         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
101420         Bruno.
101422 2006-01-24  Karl Berry  <karl@gnu.org>
101424         * config/srclist.txt (argp-namefrob.h): sync lost.
101426 2006-01-24  Jim Meyering  <jim@meyering.net>
101428         * modules/openat (Files): Add lib/intprops.h.
101429         From Mark D. Baushke.
101431 2006-01-24  Jim Meyering  <jim@meyering.net>
101433         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
101434         Reported by Mark D. Baushke.
101436 2006-01-24  Jim Meyering  <jim@meyering.net>
101438         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
101440 2006-01-24  Bruno Haible  <bruno@clisp.org>
101442         * modules/strnlen (Maintainer): Change from glibc to all.
101444 2006-01-24  Bruno Haible  <bruno@clisp.org>
101446         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
101447         Patch by Paul Eggert.
101449 2006-01-24  Bruno Haible  <bruno@clisp.org>
101451         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
101452         already has it.
101453         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
101454         2005-11-26.
101456         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
101457         'signed char' to avoid problems with the built-in _Bool type.
101458         Reported by Paul Eggert on 2005-11-26.
101460 2006-01-24  Bruno Haible  <bruno@clisp.org>
101462         * gnulib-tool (func_import): Avoid constructing complicated sed
101463         expressions inside backquote.
101464         Report and solution by Mark D. Baushke <mdb@gnu.org>.
101466 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
101468         These changes imported from libc.
101469         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
101470         test and two separate function calls.
101471         * lib/strndup.c (__strndup): Add libc_hidden_def.
101473 2006-01-23  Simon Josefsson  <jas@extundo.com>
101475         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
101476         Remove the test_*_SOURCES variable: automake infers it by default.
101477         * modules/tls-tests: Likewise.
101479 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
101481         Work around porting bugs reported by Dieter in
101482         <http://lists.gnu.org/r/bug-bison/2006-01/msg00049.html>.
101483         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
101484         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
101485         Include "getopt.h" first, to check interface.
101486         (getenv): Declare only if defined HAVE_DECL_GETENV &&
101487         !HAVE_DECL_GETENV.
101488         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
101489         (__strndup): Revert to K&R-style function dfns, the glibc style.
101490         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
101491         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
101492         Include strnlen.h first, to get prototype properly.
101493         (strnlen): Renamed from __strnlen.
101494         Remove weak alias.
101496 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
101498         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
101500 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
101502         * config/srclist.txt: Adjust to reflect glibc reorganization.
101503         This affects only comments.
101505 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
101507          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
101508          Reported by Bruce Korb <bkorb@gnu.org>.
101510 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
101512         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
101513         to pacify gcc -Wswitch-default.
101515 2006-01-22  Bruno Haible  <bruno@clisp.org>
101517         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
101518         temporary buffer for sprintf, take into account the precision also
101519         for 'd', 'i', 'u', 'o', 'x', 'X'.
101521 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
101523         * modules/argp-tests: New module
101524         * tests/test-argp.c: New file
101525         * tests/test-argp-2.sh: New file
101527 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
101529         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
101530         (__argp_base_name): Removed
101531         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
101532         typo.
101533         (__argp_base_name): Provide macro definition or extern declaration
101534         depending on the configuration
101536 2006-01-20  Simon Josefsson  <jas@extundo.com>
101538         * modules/inet_ntop (Depends-on): Depend on sys_socket.
101540 2006-01-20  Simon Josefsson  <jas@extundo.com>
101542         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
101544 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
101546         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
101547         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
101548         Suggested by Bruno Haible.
101550 2006-01-20  Karl Berry  <karl@gnu.org>
101552         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
101553         until changes propagate, I guess.
101555 2006-01-19  Simon Josefsson  <jas@extundo.com>
101557         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
101559 2006-01-19  Simon Josefsson  <jas@extundo.com>
101561         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
101563 2006-01-19  Simon Josefsson  <jas@extundo.com>
101565         * gnulib-tool: Set check_PROGRAMS.
101567         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
101568         modules/des-tests, modules/gc-arcfour-tests,
101569         modules/gc-arctwo-tests, modules/gc-des-tests,
101570         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
101571         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
101572         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
101573         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
101574         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
101575         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
101576         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
101577         test_*_SOURCES.
101579 2006-01-18  Simon Josefsson  <jas@extundo.com>
101581         * modules/socklen (Depends-on): Depend on sys_socket.
101583 2006-01-18  Simon Josefsson  <jas@extundo.com>
101585         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
101586         modules/des-tests, modules/gc-arcfour-tests,
101587         modules/gc-arctwo-tests, modules/gc-des-tests,
101588         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
101589         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
101590         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
101591         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
101592         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
101593         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
101594         $(EXEEXT) to automake TESTS variable, for mingw32.
101596 2006-01-17  Simon Josefsson  <jas@extundo.com>
101598         * modules/socklen (Include): Need sys/socket.h.
101600 2006-01-17  Bruno Haible  <bruno@clisp.org>
101602         * modules/ssize_t (Include): Add <sys/types.h>.
101604 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
101606         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
101607         it's not portable and it doesn't work with cross-compiles.
101608         Problem reported by Bruno Haible.  Fix missing-$ typo in
101609         'test "gl_cv_ignore_unused_libraries" ...' that prevented
101610         -zignore from being used with Sun's C compiler.
101612 2006-01-12  Simon Josefsson  <jas@extundo.com>
101614         * lib/base64.c: Fix warning, reported by Bruno Haible
101615         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
101617 2006-01-12  Bruno Haible  <bruno@clisp.org>
101619         * modules/ldd: New file.
101620         * build-aux/ldd.sh.in: New file.
101621         * MODULES.html.sh (Support for building libraries and executables): Add
101622         ldd.
101624 2006-01-12  Bruno Haible  <bruno@clisp.org>
101626         * m4/ldd.m4: New file.
101628 2006-01-12  Bruno Haible  <bruno@clisp.org>
101630         * gnulib-tool (func_import, func_create_testdir): Don't go into an
101631         endless loop while replacing $auxdir with build-aux.
101633 2006-01-11  Simon Josefsson  <jas@extundo.com>
101635         * lib/stdint_.h (SIZE_MAX): Add missing (.
101637 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
101639         Sync from coreutils.
101640         * lib/md5.c: Fix commentary typos.
101641         (alignof, UNALIGNED_P): No need for a GCC-specific version.
101642         * lib/md5.h (__attribute__): Remove; unused.
101643         * lib/sha1.c: Fix commentary to match md5 better.
101644         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
101645         so that we don't need to worry about alignment.  All uses changed.
101646         This merges the 2005-10-28 md5 change into sha1.
101648 2006-01-11  Jim Meyering  <jim@meyering.net>
101650         Sync from coreutils.
101651         * lib/md5.c (OP): Fix spacing.
101653 2006-01-11  Bruno Haible  <bruno@clisp.org>
101655         Ensure automatic ordering between gl_LOCK and gl_ARGP.
101656         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
101657         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
101659 2006-01-11  Bruno Haible  <bruno@clisp.org>
101661         Ensure automatic ordering between gl_LOCK and gl_ARGP.
101662         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
101663         the "early" section as well.
101665 2006-01-11  Bruno Haible  <bruno@clisp.org>
101667         Avoid "ar: no archive members specified" error on MacOS X.
101668         * gnulib-tool (func_modules_add_dummy): New function.
101669         (func_import, func_create_testdir): Invoke it.
101671 2006-01-11  Bruno Haible  <bruno@clisp.org>
101673         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
101674         with $auxdir in AC_CONFIG_FILES statements.
101676 2006-01-11  Bruno Haible  <bruno@clisp.org>
101678         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
101679         Initialize also noinst_HEADERS to empty.
101681 2006-01-11  Bruno Haible  <bruno@clisp.org>
101683         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
101684         variables.
101685         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
101686         autoreconf.
101688 2006-01-11  Bruno Haible  <bruno@clisp.org>
101690         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
101691         overridable by the user.
101692         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
101694 2006-01-10  Simon Josefsson  <jas@extundo.com>
101696         * modules/sys_socket: New file.
101698 2006-01-10  Simon Josefsson  <jas@extundo.com>
101700         * m4/sys_socket_h.m4: New file.
101702 2006-01-10  Simon Josefsson  <jas@extundo.com>
101704         * lib/socket_.h: New file.
101706 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
101708         * modules/readutmp (Maintainer): Add myself.
101710 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
101712         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
101713         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
101714         People who are still concerned with buggy memcmp implementations
101715         can invoke gl_FUNC_MEMCMP themselves.
101717 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
101719         * lib/regex_internal.h (BITSET_WORD_BITS):
101720         Work around a bug in 64-bit PGC (before version 6.1-2), where the
101721         preprocessor mishandles large unsigned values as if they were signed.
101722         Problem reported by Claudio Fontana in
101723         <http://lists.gnu.org/r/bug-gnulib/2005-12/msg00061.html>.
101725 2006-01-10  Jim Meyering  <jim@meyering.net>
101727         Avoid the double-free (first in fts_read, second in fts_close) that
101728         would occur when an `active' directory is made inaccessible (e.g.,
101729         via chmod a-x) during a traversal.
101730         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
101731         before returning.  Reproduce this failure by
101732         mkdir -p a/b; cd a; chmod a-x . b
101733         Reported by Stavros Passas.
101735         Sync from coreutils.
101736         * lib/sha1.c: Tweak grammar in a comment.
101738 2006-01-10  Jim Meyering  <jim@meyering.net>
101740         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
101741         Patch by Joerg Sonnenberger.
101743 2006-01-10  Bruno Haible  <bruno@clisp.org>
101745         * modules/readutmp: Depend on module free.
101746         * modules/strtok_r: Depend on module restrict.
101748 2006-01-10  Bruno Haible  <bruno@clisp.org>
101750         * modules/gettext (configure.ac): Add an invocation of
101751         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
101753 2006-01-10  Bruno Haible  <bruno@clisp.org>
101755         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
101756         Reported by Werner Lemberg <wl@gnu.org>.
101758 2006-01-10  Bruno Haible  <bruno@clisp.org>
101760         * lib/localcharset.c: Update from GNU gettext.
101762 2006-01-10  Bruno Haible  <bruno@clisp.org>
101764         * lib/argp.h (__const): Remove macro. Use const instead.
101765         * lib/argp-fmtstream.h (__const): Likewise.
101766         * lib/glob_.h (__const): Remove macro.
101767         * lib/glob-libc.h: Use const instead of __const.
101769 2006-01-10  Bruno Haible  <bruno@clisp.org>
101771         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
101772         variable.
101773         Needed to avoid an automake error regarding the 'gettext' module.
101775 2006-01-09  Simon Josefsson  <jas@extundo.com>
101777         * modules/inet_ntop (Depends-on): Add restrict.
101779 2006-01-09  Simon Josefsson  <jas@extundo.com>
101781         * modules/gc-rijndael-tests (License): Put under LGPL.
101783         * modules/gc-des-tests (License): Likewise.
101785         * modules/gc-arcfour-tests (License): Likewise.
101787         * modules/gc-arctwo-tests (License): Likewise.
101789         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
101791         * modules/gc-hmac-sha1-tests (Files): Likewise.
101793         * modules/gc-hmac-md5-tests (License): Likewise.
101795         * modules/gc-sha1-tests (License): Likewise.
101797         * modules/gc-md5-tests (License): Likewise.
101799         * modules/gc-md4-tests (License): Likewise.
101801         * modules/gc-md2-tests (License): Likewise.
101803         * modules/gc-tests (License): Likewise.
101805         * modules/des-tests (License): Likewise.
101807         * modules/md4-tests (License): Likewise.
101809         * modules/md2-tests (License): Likewise.
101811 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
101813         Sync from coreutils:
101815         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
101816         * modules/lib-ignore: New file.
101817         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
101818         chdir-safer.m4, lchmod.m4.
101819         * modules/openat: Add mkdirat.c, openat-priv.h.
101821 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
101823         Sync from coreutils.
101824         * m4/lib-ignore.m4: New file.
101825         * m4/lchmod.m4: New file.
101827 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
101829         Sync from coreutils.
101830         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
101831         for write access: POSIX says that must fail.
101832         * lib/fts.c (diropen): Likewise.
101833         * lib/save-cwd.c (save_cwd): Likewise.
101834         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
101835         well, for minor improvements on hosts that lack O_DIRECTORY.
101836         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
101837         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
101838         Fall back on chown if open failed with EACCES.
101840         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
101841         Report an error at compile-time if only a 1-second nominal clock
101842         resolution is found.
101844         * lib/lchmod.h: New file.
101845         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
101846         (make_dir_parents): Use lchown rather than chown, and
101847         lchmod rather than chmod.
101849         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
101850         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
101851         "proc" reported by n0dalus.
101853         * lib/mountlist.c: Include <limits.h>.
101854         (dev_from_mount_options)
101855         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
101856         New function.  It no longer assumes "dev=" has the System V meaning
101857         on Linux (since it doesn't).  It also parses "dev=" more carefully.
101858         (read_file_system_list)
101859         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
101860         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
101861         dev= in that case.
101863         * lib/posixtm.h (PDS_PRE_2000): New macro.
101864         * lib/posixtm.c (year): Arg is now syntax_bits rather than
101865         allow_century.  All usages changed.  Reject dates outside the range
101866         1969-1999 if PDS_PRE_2000 is used.
101868 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
101870         Sync from coreutils.
101871         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
101872         (Time of day items): Mention the possibility of leap seconds.
101873         Problem reported by Dr. David Alan Gilbert.
101875 2006-01-09  Jim Meyering  <jim@meyering.net>
101877         Sync from coreutils.
101879         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
101881         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
101883         * lib/modechange.c (mode_compile): Reject an invalid mode string
101884         that starts with an octal digit.  From Andreas Gruenbacher.
101886         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
101887         and dup to open_safer and dup_safer, respectively.
101888         (openat_permissive): Fix typo in comment.
101890         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
101891         "gettext.h"; either no longer needed or are guaranteed by openat.h.
101892         (_): Remove; no longer needed.
101893         (openat): Renamed from rpl_openat; no need for rpl_openat
101894         since openat.h renames openat for us.
101895         Replace most of the body with a call to openat_permissive,
101896         to avoid duplicate code.
101897         Port to (probably hypothetical) environments were mode_t is
101898         wider than int.
101899         (openat_permissive): Require mode arg, so that we can check
101900         types better.  Put it just after flags.  Change cwd failure
101901         indicator from pointer-to-bool to pointer-to-errno-value.
101902         All callers changed.
101903         Invoke openat_save_fail and/or openat_restore_fail if
101904         cwd_errno is null, so that openat can call us.
101905         (openat_permissive, fdopendir, fstatat, unlinkat):
101906         Simplify errno handling to avoid some duplicate code,
101907         as it's OK to set errno on success.
101908         * lib/openat.h: Revamp code so that function macros depend on
101909         __OPENAT_PREFIX only, not also on AT_FDCWD.
101910         (openat_ro): Remove.  Caller changed to use openat_permissive.
101911         (openat_permissive): Now a macro, if not a function.
101912         (openat_restore_fail, openat_save_fail): Now always functions,
101913         since mkdirat needs them even if __OPENAT_PREFIX is defined.
101915         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
101916         and openat.c.
101917         * lib/mkdirat.c: Include openat-priv.h.
101918         Remove definitions of macros defined therein.
101919         * lib/openat.c: Likewise.
101921         * lib/mkdirat.c (mkdirat): New file and function.
101922         * lib/openat.h (mkdirat): Declare.
101924         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
101926         * lib/openat.h (openat_permissive): Declare.
101927         (openat_ro): Define.
101929         * lib/openat.c (EXPECTED_ERRNO): New macro.
101930         (openat_permissive): New function -- used in remove.c rewrite.
101931         (all functions): Set errno just before returning, only if there
101932         was an actual failure.
101933         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
101935         Emulate openat-family functions using Linux's procfs, if possible.
101936         Idea and some code based on Ulrich Drepper's glibc changes.
101938         * lib/openat.c: (BUILD_PROC_NAME): New macro.
101939         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
101940         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
101941         before falling back on save_cwd and restore_cwd.
101942         (fdopendir, fstatat, unlinkat): Likewise.
101944         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
101945         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
101947         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
101948         as second argument to va_arg.  Otherwise, some versions of gcc
101949         warn that `if this code is reached, the program will abort'.
101951 2006-01-09  Jim Meyering  <jim@meyering.net>
101953         Sync from coreutils.
101954         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
101955         Require openat-priv.h.
101957 2006-01-09  Bruno Haible  <bruno@clisp.org>
101959         * modules/strnlen (Include): Use strnlen.h.
101961 2006-01-09  Bruno Haible  <bruno@clisp.org>
101963         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
101965 2006-01-09  Bruno Haible  <bruno@clisp.org>
101967         * lib/sysexit_.h (EX_OK): New macro.
101968         Suggested by Martin Lambers <marlam@marlam.de>.
101970 2006-01-09  Bruno Haible  <bruno@clisp.org>
101972         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
101973         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
101975 2006-01-09  Bruno Haible  <bruno@clisp.org>
101977         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
101978         numbers.
101980 2006-01-09  Bruno Haible  <bruno@clisp.org>
101982         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
101983         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
101984         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
101985         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
101987 2006-01-09  Bruno Haible  <bruno@clisp.org>
101989         * build-aux/javacomp.sh.in: New file, moved from lib/.
101990         * modules/javacomp-script (Files): Update.
101991         (configure.ac): Add AC_CONFIG_FILES invocation.
101992         (EXTRA_DIST): Remove variable.
101994         * build-aux/javaexec.sh.in: New file, moved from lib/.
101995         * modules/javaexec (Files): Update.
101996         (configure.ac): Add AC_CONFIG_FILES invocation.
101997         (EXTRA_DIST): Remove javaexec.sh.in.
101999         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
102000         * modules/csharpcomp-script (Files): Update.
102001         (configure.ac): Add AC_CONFIG_FILES invocation.
102002         (EXTRA_DIST): Remove variable.
102004         * build-aux/csharpexec.sh.in: New file, moved from lib/.
102005         * modules/csharpexec (Files): Update.
102006         (configure.ac): Add AC_CONFIG_FILES invocation.
102007         (EXTRA_DIST): Remove csharpexec.sh.in.
102009 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
102011         Sync from coreutils.
102013         Add POSIX ACL support
102014         * lib/acl.h (copy_acl, set_acl): Add declarations.
102015         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
102016         systems other than Linux.
102017         (chmod_or_fchmod): New function: use fchmod when possible,
102018         and chmod otherwise.
102019         (file_has_acl): Add a POSIX ACL implementation, with a
102020         Linux-specific subcase.
102021         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
102022         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
102023         acls are unsupported.
102024         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
102025         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
102026         are unsupported.
102028 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
102030         Sync from coreutils.
102031         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
102033 2006-01-07  Bruno Haible  <bruno@clisp.org>
102035         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
102036         gl_EARLY.
102038 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
102040         * lib/strftime.c (tzname): Don't declare if it is already #defined.
102041         Problem reported for Mingw by Mark Junker.
102043 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
102045         * README: Gnulib normally doesn't generate a tarball.
102047 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
102049         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
102050         long int, not int, for nanosecond counts, so that people who are
102051         used to POSIX struct timespec won't be surprised.  Reported by Jim
102052         Meyering.
102054 2005-12-28  Bruno Haible  <bruno@clisp.org>
102056         * build-aux/config.rpath: Update from GNU gettext.
102058 2005-12-16  Jim Meyering  <jim@meyering.net>
102060         * modules/fprintftime: New module.
102061         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
102063 2005-12-16  Jim Meyering  <jim@meyering.net>
102065         * m4/fprintftime.m4: New file.
102067 2005-12-16  Jim Meyering  <jim@meyering.net>
102069         * lib/fprintftime.c, lib/fprintftime.h: New files.
102071 2005-12-15  Simon Josefsson  <jas@extundo.com>
102073         * modules/socklen (configure.ac): Fix M4 macro name, to align with
102074         new m4/socklen.m4.
102076 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
102078         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
102079         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
102081 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
102083         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
102084         * lib/argp-help.c (fill_in_uparams): Check if the constructed
102085         struct uparams is valid. Fall back to the default values if it is
102086         not.
102088 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
102090         * modules/argp (Files): Add argp-pin.c
102091         (Depends-on): dirname
102092         (lib_SOURCES): Add argp-pin.c
102094 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
102096         * m4/argp.m4:  Check if program_invocation_name and
102097         program_invocation_short_name are declared and define appropriate
102098         macros if they are not.
102100 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
102102         * lib/argp-help.c (__argp_base_name): New function
102103         (__argp_short_program_name): Rewrite using __argp_base_name
102104         * lib/argp-namefrob.h: Define program_invocation_name and
102105         program_invocation_short_name if requested
102106         (__argp_base_name): Add prototype
102107         * lib/argp-parse.c (argp_def): Use gettext wrappers
102108         (argp_default_parser): Use __argp_base_name
102109         * lib/argp-pin.c: New file. Defines program_invocation_name and
102110         program_invocation_short_name on systems that lack them.
102112 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
102114         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
102115         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
102116         porting problem reported by Georg Schwarz in
102117         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
102119 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
102121         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
102122         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
102123         porting problem reported by Georg Schwarz in
102124         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
102126 2005-12-05  Bruno Haible  <bruno@clisp.org>
102128         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
102129         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
102130         Reported by Mark Junker <mjscod@gmx.de>.
102132 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
102134         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
102135         Use implementation from Albert Chin, with some
102136         comments/corrections by Stepan Kasal and myself.
102138 2005-12-02  Bruno Haible  <bruno@clisp.org>
102140         * gnulib-tool (func_import): Accept GPLed build tool modules when
102141         --lgpl is given.
102142         * modules/csharpcomp-script: New file.
102143         * modules/csharpcomp: Depend on it.
102144         * modules/javacomp-script: New file.
102145         * modules/javacomp: Depend on it.
102146         Suggested by Simon Josefsson.
102148 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
102150         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
102151         statement, to work around an HP-UX 10.20 compiler bug reported by
102152         Peter O'Gorman.
102154 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
102156         * modules/savedir (Depends-on): Add openat.
102158 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
102160         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
102161         (uintmax_t) [defined uintmax_t]: Do not declare.
102162         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
102163         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
102164         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
102165         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
102166         sake of portability to weird hosts that C allows (though we don't
102167         know of any practical examples).
102169         * lib/savedir.h (fdsavedir): New decl.
102170         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
102171         contains most of the former guts of savedir.
102172         (savedir): Use savedirstream.
102173         Include "openat.h".
102175 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
102177         * modules/obstack (Files): Add m4/ulonglong.m4.
102178         Problem reported by Davide Angelocola.
102180 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
102182         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
102183         coreutils no longer futzes with rounding modes.
102185 2005-11-14  Jim Meyering  <jim@meyering.net>
102187         * lib/mkstemp-safer.c: Include <config.h>, required for possible
102188         replacement of mkstemp.
102190 2005-11-10  Simon Josefsson  <jas@extundo.com>
102192         * lib/readline.c: Remove EOL.
102194 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
102196         * modules/gethrxtime (Depends-on): Add gettime.
102198 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
102200         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
102201         or gettimeofday; no longer needed.
102203 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
102205         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
102206         time business.
102207         (gethrxtime) [! (HAVE_NANOUPTIME
102208         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
102209         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
102210         our own approximation.
102212 2005-11-08  Eric Blake  <ebb9@byu.net>
102214         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
102216 2005-11-08  Eric Blake  <ebb9@byu.net>
102218         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
102220 2005-11-04  Bruno Haible  <bruno@clisp.org>
102222         * gnulib-tool: Implement --update mode.
102224 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
102226         Fix porting problem reported by Theodoros V. Kalamatianos.
102227         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
102228         Don't assume that futimes failing means we must fail.
102230 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
102232         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
102233         variables to suggest the intended function of the PATH_MAX check.
102235 2005-10-30  Kean Johnston  <jkj@sco.com>
102237         Trivial changes to support SCO systems.
102238         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
102239         as PATH_MAX.
102240         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
102241         where __ptr is null when no I/O is pending.
102243 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
102245         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
102246         leave errno alone.  Problem reported by Dmitry V. Levin.
102248 2005-10-28  Simon Josefsson  <jas@extundo.com>
102250         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
102251         Test more.
102253         * tests/test-gc-md2.c, tests/test-md2.c: New files.
102255         * modules/md2, modules/md2-tests: New files.
102257 2005-10-28  Simon Josefsson  <jas@extundo.com>
102259         * m4/inet_ntop.m4: More tests.
102261         * m4/gc-md2.m4, md2.m4: New file.
102263 2005-10-28  Simon Josefsson  <jas@extundo.com>
102265         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
102266         "restrict" keywords, as per POSIX.  Protect the function
102267         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
102268         Don't use K&R prototypes.  Check the sprintf return values.
102269         Re-define EAFNOSUPPORT if not present.  Indent.
102271         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
102272         suggested by Bruno Haible <bruno@clisp.org>.
102274         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
102276         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
102278         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
102279         libgcrypt).
102281         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
102283         * lib/md2.h, lib/md2.c: New files.
102285 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
102287         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
102288         errno alone.  Problem reported by Frederic Jolliton.
102290 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
102292         * modules/verify (License): Change from GPL to LGPL.  This is a
102293         tiny module and there are apparently near-equivalents that are
102294         under the BSD license.
102296 2005-10-24  Simon Josefsson  <jas@extundo.com>
102298         * modules/sha1: Relicense to LGPL.
102300 2005-10-24  Simon Josefsson  <jas@extundo.com>
102302         * lib/md4.h: Shrink buffer size, now that we changed the type.
102304 2005-10-23  Simon Josefsson  <jas@extundo.com>
102306         * gnulib-tool (func_import): Fix --tests-base.
102308 2005-10-22  Simon Josefsson  <jas@extundo.com>
102310         * modules/arcfour (Depends-on): Need stdint.
102312 2005-10-22  Simon Josefsson  <jas@extundo.com>
102314         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
102315         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
102317 2005-10-22  Simon Josefsson  <jas@extundo.com>
102319         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
102320         suggested by Bruno Haible <bruno@clisp.org>.
102322 2005-10-22  Simon Josefsson  <jas@extundo.com>
102324         * lib/crc.h: Include stddef.h, for size_t.
102326 2005-10-22  Simon Josefsson  <jas@extundo.com>
102328         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
102329         arcfour_context struct (simplify test vector testing in GNU
102330         Shishi).
102332 2005-10-21  Simon Josefsson  <jas@extundo.com>
102334         * modules/des, modules/des-tests: New files.
102336         * modules/gc-des, modules/gc-des-tests: New files.
102338         * tests/test-des.c, tests/test-gc-des.c: New file.
102340 2005-10-21  Simon Josefsson  <jas@extundo.com>
102342         * modules/arctwo, modules/arctwo-tests: New files.
102344         * tests/test-arctwo.c: New file.
102346         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
102348         * tests/test-gc-arctwo.c: New file.
102350 2005-10-21  Simon Josefsson  <jas@extundo.com>
102352         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
102353         Bruno Haible <bruno@clisp.org>.
102355         * m4/gc-des.m4: New file.
102357 2005-10-21  Simon Josefsson  <jas@extundo.com>
102359         * m4/arctwo.m4: New file.
102361         * m4/gc-arctwo.m4: New file.
102363 2005-10-21  Simon Josefsson  <jas@extundo.com>
102365         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
102366         block.
102368 2005-10-21  Simon Josefsson  <jas@extundo.com>
102370         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
102371         <bruno@clisp.org>.
102373         * lib/hmac-sha1.c (hmac_sha1): Likewise.
102375         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
102376         Bruno Haible <bruno@clisp.org>.
102378         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
102379         <bruno@clisp.org>.
102381 2005-10-21  Simon Josefsson  <jas@extundo.com>
102383         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
102385 2005-10-21  Simon Josefsson  <jas@extundo.com>
102387         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
102389 2005-10-21  Simon Josefsson  <jas@extundo.com>
102391         * lib/des.h, lib/des.c: New files.
102393         * lib/gc-gnulib.c: Support DES.c
102395 2005-10-21  Simon Josefsson  <jas@extundo.com>
102397         * lib/arctwo.h, lib/arctwo.c: New files.
102399         * lib/gc-gnulib.c: Support ARCTWO.
102401 2005-10-21  Simon Josefsson  <jas@extundo.com>
102403         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
102404         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
102406 2005-10-21  Simon Josefsson  <jas@extundo.com>
102408         * gnulib-tool (func_import, func_create_testdir): Define automake
102409         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
102410         Makefile.am snippet),
102411         suggested by Bruno Haible <bruno@clisp.org>.
102413         * modules/gc (Makefile.am): Use it.
102415 2005-10-21  Bruno Haible  <bruno@clisp.org>
102417         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
102418         patch.
102420 2005-10-19  Simon Josefsson  <jas@extundo.com>
102422         * tests/test-gc-rijndael.c: New file.
102424         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
102426 2005-10-19  Simon Josefsson  <jas@extundo.com>
102428         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
102429         interface too.
102431 2005-10-19  Simon Josefsson  <jas@extundo.com>
102433         * tests/test-gc-arcfour.c: New file.
102435         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
102437 2005-10-19  Simon Josefsson  <jas@extundo.com>
102439         * modules/gc-md4, modules/gc-md4-tests: New file.
102441         * tests/test-gc-md4.c: New file.
102443 2005-10-19  Simon Josefsson  <jas@extundo.com>
102445         * m4/gc-md4.m4: New file.
102447 2005-10-19  Simon Josefsson  <jas@extundo.com>
102449         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
102450         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
102451         <kasal@ucw.cz>.
102453 2005-10-19  Simon Josefsson  <jas@extundo.com>
102455         * m4/gc-arcfour.m4: New file.
102457         * m4/gc-rijndael.m4: New file.
102459 2005-10-19  Simon Josefsson  <jas@extundo.com>
102461         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
102463 2005-10-19  Simon Josefsson  <jas@extundo.com>
102465         * lib/gc-gnulib.c: Support ARCFOUR.
102467 2005-10-19  Simon Josefsson  <jas@extundo.com>
102469         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
102470         support.
102472         * lib/gc.h: Add ECB enum type.
102474         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
102476 2005-10-18  Simon Josefsson  <jas@extundo.com>
102478         * tests/test-md5.c: New file.
102480         * modules/md5-tests: New file.
102482 2005-10-18  Simon Josefsson  <jas@extundo.com>
102484         * tests/test-md4.c: New file.
102486         * modules/md4, modules/md4-tests: New files.
102488 2005-10-18  Simon Josefsson  <jas@extundo.com>
102490         * m4/md4.m4: New file.
102492 2005-10-18  Simon Josefsson  <jas@extundo.com>
102494         * lib/md4.h, lib/md4.c: New files, based on md5.?.
102496 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
102498         * gnulib-tool (func_create_testdir): Omit the second check whether
102499         BUILT_SOURCES in nonempty.
102501 2005-10-17  Simon Josefsson  <jas@extundo.com>
102503         * tests/test-rijndael.c: New file.
102505 2005-10-17  Simon Josefsson  <jas@extundo.com>
102507         * modules/sha1: Depend on stdint instead of md5.
102509         * modules/md5: Depend on stdint, remove uint32_t.
102511 2005-10-17  Simon Josefsson  <jas@extundo.com>
102513         * modules/gc-sha1-tests: New file.
102515         * tests/test-gc-sha1.c: New file.
102517 2005-10-17  Simon Josefsson  <jas@extundo.com>
102519         * m4/md5.m4: Remove call to uint32_t.m4.
102521 2005-10-17  Simon Josefsson  <jas@extundo.com>
102523         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
102525         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
102526         md5.h.
102528         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
102530         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
102532 2005-10-17  Simon Josefsson  <jas@extundo.com>
102534         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
102536 2005-10-17  Simon Josefsson  <jas@extundo.com>
102538         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
102540 2005-10-17  Simon Josefsson  <jas@extundo.com>
102542         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
102544         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
102546 2005-10-17  Bruno Haible  <bruno@clisp.org>
102548         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
102549         that it can also be used in a test.
102551 2005-10-16  Bruno Haible  <bruno@clisp.org>
102553         * gnulib-tool (func_emit_tests_Makefile_am): Also define
102554         TESTS_ENVIRONMENT, so that individual tests can augment it.
102556         * gnulib-tool (func_create_testdir): Use an intermediate target for
102557         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
102558         macros, like $(ALLOCA_H), which cannot be passed through the command
102559         line.
102561 2005-10-15  Simon Josefsson  <jas@extundo.com>
102563         * modules/rijndael-tests: New file.
102565         * modules/rijndael: New file.
102567 2005-10-15  Simon Josefsson  <jas@extundo.com>
102569         * m4/rijndael.m4: New file.
102571 2005-10-15  Simon Josefsson  <jas@extundo.com>
102573         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
102575         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
102577 2005-10-14  Simon Josefsson  <jas@extundo.com>
102579         * tests/test-arcfour.c: New file.
102581         * modules/arcfour, modules/arcfour-tests: New files.
102583 2005-10-14  Simon Josefsson  <jas@extundo.com>
102585         * m4/arcfour.m4: New file.
102587 2005-10-14  Simon Josefsson  <jas@extundo.com>
102589         * lib/arcfour.h, lib/arcfour.c: New files.
102591 2005-10-14  Roland McGrath  <roland@redhat.com>
102593         Import from libc.  [BZ #1331]
102594         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
102595         macro argument.
102596         Reported by Matej Vela <vela@debian.org>.
102598 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
102600         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
102601         include <wchar.h>; no longer needed.
102603 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
102605         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
102607 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
102608         and  Ulrich Drepper  <drepper@redhat.com>
102610         Import from libc.
102611         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
102612         instead of inline stream orientation test and two separate
102613         function calls.  Pay no attention to USE_IN_LIBIO.
102615 2005-10-13  Simon Josefsson  <jas@extundo.com>
102617         * modules/gc-hmac-md5-tests: New file.
102619         * tests/test-gc-hmac-sha1.c: New file.
102621         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
102623         * modules/gc-hmac-md5-tests: New file.
102625         * tests/test-gc-md5.c: New file.
102627         * modules/gc-md5-tests: New file.
102629 2005-10-13  Simon Josefsson  <jas@extundo.com>
102631         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
102632         Move memory allocation outside of loop.
102634 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
102636         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
102637         intermediate directory is in a read-only file system.  Problem
102638         reported by Eric Blake.
102640 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
102642         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
102644 2005-10-12  Simon Josefsson  <jas@extundo.com>
102646         * tests/test-hmac-sha1.c: New file.
102648         * modules/hmac-sha1-tests: New file.
102650         * modules/hmac-sha1: New file.
102652 2005-10-12  Simon Josefsson  <jas@extundo.com>
102654         * modules/gc-sha1: New file.
102656 2005-10-12  Simon Josefsson  <jas@extundo.com>
102658         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
102660         * tests/test-gc-pbkdf2-sha1.c: New file.
102662 2005-10-12  Simon Josefsson  <jas@extundo.com>
102664         * modules/gc-md5, modules/gc-hmac-md5: New files.
102666         * modules/gc (Files): Remove md5, memxor and hmac files.
102668 2005-10-12  Simon Josefsson  <jas@extundo.com>
102670         * m4/gc-pbkdf2-sha1.m4: New file.
102672         * m4/gc-hmac-sha1.m4: New file.
102674         * m4/gc-sha1: New file.
102676         * m4/hmac-sha1.m4: New file.
102678 2005-10-12  Simon Josefsson  <jas@extundo.com>
102680         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
102682         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
102684 2005-10-12  Simon Josefsson  <jas@extundo.com>
102686         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
102687         suggested by Bruno Haible <bruno@clisp.org>.
102689 2005-10-12  Simon Josefsson  <jas@extundo.com>
102691         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
102693 2005-10-12  Simon Josefsson  <jas@extundo.com>
102695         * lib/gc-pbkdf2-sha1.c: New file.
102697         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
102699 2005-10-12  Simon Josefsson  <jas@extundo.com>
102701         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
102703         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
102705 2005-10-12  Simon Josefsson  <jas@extundo.com>
102707         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
102708         GC_USE_HMAC_MD5, respectively.
102710         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
102711         (gc_md5): Fix typo.
102713         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
102715         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
102717         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
102719 2005-10-12  Bruno Haible  <bruno@clisp.org>
102721         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
102722         Reported by Stepan Kasal <kasal@ucw.cz>.
102724 2005-10-11  Simon Josefsson  <jas@extundo.com>
102726         * tests/test-crc.c: New file.
102728         * modules/crc, modules/crc-tests: New files.
102730 2005-10-11  Simon Josefsson  <jas@extundo.com>
102732         * m4/crc.m4: New file.
102734 2005-10-11  Simon Josefsson  <jas@extundo.com>
102736         * lib/gc.h: Add gc_hash and gc_hash_buffer.
102738         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
102740         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
102742 2005-10-11  Simon Josefsson  <jas@extundo.com>
102744         * lib/crc.h, lib/crc.c: New files.
102746         * lib/gc.h (gc_hash_buffer): Add doc.
102748 2005-10-11  Bruno Haible  <bruno@clisp.org>
102750         * modules/c-strcasestr: New file.
102751         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
102753 2005-10-11  Bruno Haible  <bruno@clisp.org>
102755         * modules/c-strcase: New file.
102756         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
102758 2005-10-11  Bruno Haible  <bruno@clisp.org>
102760         * lib/strcasecmp.c: Include limits.h.
102761         (strcasecmp): Avoid integer overflow on exotic platforms.
102762         * lib/strncasecmp.c: Include limits.h.
102763         (strncasecmp): Avoid integer overflow on exotic platforms.
102764         Reported by Paul Eggert.
102766 2005-10-11  Bruno Haible  <bruno@clisp.org>
102768         * lib/c-strcasestr.h: New file, from GNU gettext.
102769         * lib/c-strcasestr.c: New file, from GNU gettext.
102771 2005-10-11  Bruno Haible  <bruno@clisp.org>
102773         * lib/c-strcase.h: New file, from GNU gettext.
102774         * lib/c-strcasecmp.c: New file, from GNU gettext.
102775         * lib/c-strncasecmp.c: New file, from GNU gettext.
102777 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
102779         * modules/mempcpy (License): GPL -> LGPL.
102780         * modules/strchrnul (License): Likewise.
102781         * modules/sysexits (License): Likewise.
102783 2005-10-08  Simon Josefsson  <jas@extundo.com>
102785         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
102787 2005-10-07  Simon Josefsson  <jas@extundo.com>
102789         * m4/memxor.m4: Remove gl_C_RESTRICT call.
102791 2005-10-06  Simon Josefsson  <jas@extundo.com>
102793         * tests/test-hmac-md5.c: New file.
102795         * modules/hmac-md5-tests: New file.
102797         * modules/hmac-md5: New file.
102799 2005-10-06  Simon Josefsson  <jas@extundo.com>
102801         * m4/hmac-md5.m4: New file.
102803         * m4/memxor.m4: Require gl_C_RESTRICT.
102805 2005-10-06  Simon Josefsson  <jas@extundo.com>
102807         * lib/memxor.c (memxor): Avoid casts and warnings.
102809 2005-10-06  Simon Josefsson  <jas@extundo.com>
102811         * lib/hmac-md5.c: New file.
102813         * lib/hmac.h: New file.
102815 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
102817         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
102818         promotes to int, not unsigned int, to catch the AIX 5.3
102819         compiler bug.
102821 2005-10-05  Simon Josefsson  <jas@extundo.com>
102823         * modules/memxor: New file.
102825         * modules/iconv (Files): Move config.rpath to havelib, it is used
102826         there.
102828         * modules/havelib (Files): Add config.rpath.
102830 2005-10-05  Simon Josefsson  <jas@extundo.com>
102832         * m4/memxor.m4: New file.
102834 2005-10-05  Simon Josefsson  <jas@extundo.com>
102836         * lib/memxor.c (memxor): Fix compiler error.
102838         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
102839         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
102841         * lib/memxor.h, lib/memxor.c: New files.
102843         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
102844         we assume all systems have it, suggested by Jim Meyering
102845         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
102846         any systems lack sys/socket.h; mingw32 is known to lack it, but we
102847         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
102848         same reasons.
102850 2005-10-05  Simon Josefsson  <jas@extundo.com>
102852         * config/srclist.txt: Add glibc bug 1423 for md5.h.
102854 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
102856         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
102857         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
102858         needed, since the source code now assumes these .h files.
102860 2005-10-05  Derek Price  <derek@ximbiot.com>
102862         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
102864 2005-10-05  Bruno Haible  <bruno@clisp.org>
102866         * modules/stdint (License): Change to LGPL.
102868 2005-10-04  Simon Josefsson  <jas@extundo.com>
102870         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
102871         D. Baushke" <mdb@gnu.org>.
102873 2005-10-04  Bruno Haible  <bruno@clisp.org>
102875         * lib/verify.h (verify_true): Provide alternative definition for C++.
102877 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
102879         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
102880         (SSIZE_MAX): New macro, if not already defined.
102881         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
102882         than 2 GiB.
102884 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
102886         Sync from coreutils.
102887         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
102888         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
102889         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
102890         ULLONG_MAX doesn't work with 2.7.2.1.
102892 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
102894         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
102895         From Ben Pfaff.
102897         * modules/exclude (Depends-on): Depend on verify.
102898         * modules/strtoimax (Depends-on): Likewise.
102899         * modules/utimecmp (Depends-on): Likewise.
102901 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
102903         * lib/exclude.c: Include verify.h.
102904         (verify): Remove.  All callers changed to use verify.h's version.
102905         * lib/strtoimax.c: Likewise.
102906         * lib/utimecmp.c: Likewis.e
102908         Sync from coreutils.
102909         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
102910         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
102911         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
102912         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
102913         bother returning ENOSYS if settimeofday or stime fails; just let
102914         them return whatever errno they want to return.
102915         * lib/utimens.c: Include unistd.h, for dup2.
102916         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
102917         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
102919 2005-10-02  Jim Meyering  <jim@meyering.net>
102921         Sync from coreutils.
102922         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
102923         from glibc-2.2.5 that fails for read-only files.
102925 2005-10-02  Jim Meyering  <jim@meyering.net>
102927         Sync from coreutils.
102928         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
102929         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
102930         `#if HAVE_CONFIG_H'.
102931         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
102932         Remove AT_FDCWD test.
102933         Do not consume the fd unless successful.
102934         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
102935         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
102936         block, so that we don't even try to compile it if settimeofday is
102937         available.  This works around a compilation failure on OSF1 V5.1,
102938         due to stime requiring a `long int*' while tv_sec is `int'.
102940 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
102942         Sync from coreutils.
102943         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
102944         against `yes', rather than just testing for nonempty.
102946 2005-10-01  Simon Josefsson  <jas@extundo.com>
102948         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
102949         and Darwin.
102951         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
102952         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
102953         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
102954         freeaddrinfo and gai_strerror are declared by the POSIX headers.
102955         Check if struct addrinfo is declared.
102957 2005-10-01  Simon Josefsson  <jas@extundo.com>
102959         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
102960         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
102961         AI_* and EAI_* definitions.  Protect function declarations.
102963 2005-10-01  Jim Meyering  <jim@meyering.net>
102965         Sync from coreutils.
102967         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
102968         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
102969         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
102970         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
102971         in the inet and nsl libraries.  Required on Solaris 5.7.
102973 2005-10-01  Jim Meyering  <jim@meyering.net>
102975         Sync from coreutils.
102976         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
102977         in the inet and nsl libraries.  Required on Solaris 5.7.
102979 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
102981         * lib/getdelim.c (getdelim): Remove unused variables.
102983 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
102985         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
102986         so that the code works even with ancient cpp.  Portability problem
102987         with GCC 2.7.2.1 reported by Thomas M.Ott.
102989 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
102991         * modules/regex (Depends-on): Add strcase.
102993         * modules/gethostname (Licence): Change from GPL to LGPL, since
102994         gethostname.c is a trivial implementation of a standard library
102995         function.
102996         * modules/poll (License): Change from GPL to LGPL, since it's
102997         derived from LGPL code.
102999 2005-09-27  Jim Meyering  <jim@meyering.net>
103001         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
103002         HAVE_CONFIG_H.
103004         * lib/intprops.h (signed_type_or_expr__): Define.
103005         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
103006         for unsigned types.
103008 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
103010         * lib/verify.h (verify_expr): Remove, replacing with:
103011         (verify_true): New macro that returns true instead of void.
103012         (verify_type__): Remove.
103013         (verify): Use verify_true rather than verify_type__.
103015 2005-09-26  Bruno Haible  <bruno@clisp.org>
103017         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
103018         is necessary.
103019         (lib_SOURCES): Remove mbchar.c.
103020         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
103021         (Files): Add m4/mbrtowc.m4.
103022         * modules/mbiter: Likewise.
103023         * modules/mbuiter: Likewise.
103025 2005-09-26  Bruno Haible  <bruno@clisp.org>
103027         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
103028         compile mbchar.c if they are not both present.
103029         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
103030         * m4/mbiter.m4 (gl_MBITER): Likewise.
103031         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
103032         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
103033         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
103035 2005-09-25  Jim Meyering  <jim@meyering.net>
103037         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
103038         also uses socklen_t.
103040 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
103042         * lib/utimens.c (ENOSYS): Define if not already defined.
103043         (futimens): Support having a null PATH if the file descriptor
103044         is nonnegative.
103046         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
103047         Remove.
103048         (__attribute): Define to empty unless GCC 3.1 or later.
103049         This works around a core dump on OpenBSD 3.4, which has GCC
103050         2.95.3, which dumps core when given __attribute__(()).  It also
103051         simplifies other tests, since we really don't want to bother with
103052         worrying about which ancient version of GCC supported what.
103053         Original problem reported by Yoann Vandoorselaere, with part of
103054         the fix suggested by Derek Price.
103056 2005-09-24  Jim Meyering  <jim@meyering.net>
103058         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
103059         so we can once again use a positive bitfield width of 1 -- now we
103060         don't have to explain why we were using a bitfield width of 2.
103062 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
103064         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
103065         and similarly for the other external symbols.  Problem reported
103066         by James Gallager.
103068         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
103069         bug reported by Jim Meyering.
103071         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
103072         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
103073         not needed, since socklen is a prerequisite module.
103075 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
103077         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
103078         Problem reported by Eric Blake.
103079         (getaddrinfo): Initialize se so that it's not garbage.
103080         Redo internal storage allocation so that it doesn't make unportable
103081         assumptions about alignment.
103082         Fix a memory leak.
103084         * lib/utimens.c (futimens): Use futimesat if available.
103085         Prefer it to futimes since it doesn't have the futimes bug.
103087         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
103088         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
103089         Instead, declare a function that returns a pointer to an array,
103090         and use verify_type__ to declare the size of the array.
103091         Problem and germ of a solution reported by Bruno Haible.
103092         (verify_type__): Use 2, not 1, for bitfield size, to avoid
103093         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
103095 2005-09-23  Jim Meyering  <jim@meyering.net>
103097         Sync from coreutils.
103098         Correct build failure (socklen_t not defined) on at least
103099         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
103100         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
103102 2005-09-23  Jim Meyering  <jim@meyering.net>
103104         * modules/getaddrinfo (Depends-on): Add socklen.
103106 2005-09-23  Bruno Haible  <bruno@clisp.org>
103108         * tests/test-verify.c: New file.
103110 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
103112         Sync from coreutils.
103114         * modules/argmatch (Depends-on): Add verify.
103115         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
103116         unistd-safer.
103117         * modules/save-cwd (Depends-on): Likewise.
103119         * modules/openat (Files): Add lib/openat-die.c.
103120         (Depends-on): Remove error, exitfail.
103121         Add dirname.
103123         * modules/verify: New file.
103124         * MODULES.html.sh (Diagnostics <assert.h>): New section,
103125         with "verify" module.
103127 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
103129         Sync from coreutils.
103131         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
103132         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
103133         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
103134         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
103135         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
103136         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
103137         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
103138         Don't bother checking for string.h, stdlib.h, unistd.h.
103139         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
103140         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
103141         module's job.
103142         * m4/jm-macros.m4 (gl_MACROS): Likewise.
103143         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
103145         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
103146         (gl_GETDATE): Use it.
103148         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
103150 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
103152         Sync from coreutils.
103154         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
103155         stat-time.h.
103156         * lib/argmatch.h: Include verify.h
103157         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
103158         (ARGMATCH_ASSERT): Remove; unused.
103159         * lib/canonicalize.c: Assume STDC_HEADERS.
103160         * lib/exclude.c: Include "strcase.h".
103161         * lib/regex_internal.h [!defined _LIBC]: Likewise.
103162         * lib/getusershell.c: Include stdio--.h rather than stdio.h
103163         and stdio-safer.h.
103164         (getusershell): Call fopen, not fopen_safer.
103165         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
103166         Do not include unistd-safer.h.
103167         (save_cwd): Don't call fd_safer; no longer needed
103168         now that we include fcntl--.h.
103170         * lib/getdate.y (relative_time): New type.
103171         (RELATIVE_TIME_0): New constant.
103172         (parser_control): Use relative_time instead of doing it ourselves.
103173         (%union): Add new relative_time rel member.
103174         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
103175         Now typeless.
103176         (relunit, relunit_snumber): Now of type rel.
103177         (zone, rel, relunit, get_date): Adjust to above changes.
103179         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
103180         Do not include unistd-safer.h.
103181         (getloadavg): Don't call fd_safer; no longer needed
103182         now that we include fcntl--.h.
103184         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
103185         (make_dir_parents): Treat ENOSYS like EEXIST.
103187         Improve quality of diagnostics on restore_cwd failure.
103188         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
103189         (make_dir_parents): Last arg is now int * (for errno), not bool *.
103190         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
103191         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
103192         each time through the loop.  Do not diagnose restore_cwd failure;
103193         that is the caller's job (and perhaps the caller does not care).
103195         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
103196         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
103197         If the file already exists but is not a directory, don't bother
103198         to try to make its parents.
103199         Close potential file descriptor leak if we can't chdir("/") (!).
103200         Don't always return true if chdir($PWD) fails; return true only
103201         if the requested action was done successfully (except for the
103202         chdir($PWD)).
103203         Don't log final directory unless we actually made it.
103204         Refactor to avoid duplicate code to fix up permissions.
103205         Don't attempt to fix up parent permissions if chdir($PWD) fails.
103207         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
103208         to make it a bit faster and (I hope) clearer.
103209         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
103210         Fix bug in formats like %2N.
103212         * lib/verify.h: New file.
103214 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
103216         Sync from coreutils.
103217         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
103219 2005-09-22  Jim Meyering  <jim@meyering.net>
103221         Sync from coreutils.
103223         * m4/lstat.m4 (gl_FUNC_LSTAT):
103224         Use AC_LIBSOURCES to require lstat.c and lstat.h.
103225         Remove obsolete comment.
103226         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
103227         * m4/xstrtod.m4: Likewise.
103229         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
103231 2005-09-22  Jim Meyering  <jim@meyering.net>
103233         Sync from coreutils.
103235         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
103237         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
103238         the .tm_year member, since otherwise gcc-4.0 would now warn about
103239         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
103241         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
103242         order to avoid an unsuppressible warning from gcc on 64-bit systems.
103244         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
103245         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
103246         when run in a time zone for which daylight savings time is in effect
103247         for the starting date.
103249         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
103250         stop us from restricting permissions of just-created absolute-named
103251         directories.
103252         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
103253         to restore initial working directory.
103254         * lib/mkdir-p.c (make_dir_parents): New parameter:
103255         different_working_dir, to tell caller if/when we change the working
103256         directory and are unable to return to the initial one.
103257         * lib/mkdir-p.h (make_dir_parents): Update prototype.
103258         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
103259         `return false'.  This fixes a bug introduced on 2004-07-30.
103261         * lib/openat.c (fdopendir): Be sure to close the supplied
103262         file descriptor before returning.  This makes our replacement
103263         implementation a little closer to Solaris's, where fdopendir
103264         ties the file descriptor to the returned DIR* pointer.
103265         * lib/openat.c (unlinkat): New function.
103266         * lib/openat.h (unlinkat): Add prototype.
103267         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
103268         (openat_restore_fail): Rename from openat_restore_die.
103269         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
103271         Provide an alternative to exiting immediately upon save_cwd or
103272         restore_cwd failure.  Now, an application can arrange e.g.,
103273         to perform a longjump in that case.
103274         * lib/openat.c: Include dirname.h.
103275         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
103276         (rpl_openat, fdopendir, fstatat): Call openat_save_die
103277         and openat_restore_die rather than calling error directly.
103278         Don't include "error.h" or "exitfail.h"; they're no longer needed.
103280         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
103281         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
103282         define.
103284         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
103285         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
103286                             int utc, int nanoseconds);
103287         Background:
103288         date should not have to allocate a megabyte of virtual memory to
103289         handle a format argument like +%1048575T.  When implemented with
103290         strftime, it must allocate such a buffer, use strftime to fill it
103291         in, print it, then free it.
103292         With fprintftime, it simply prints everything and exits.
103293         With no need for memory allocation, that's one fewer way to fail.
103294         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
103295         optional field width, not before, so we accept %9:z, not %:9z.
103296         (my_strftime): Be sure to use L_('x') for literals.
103298         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
103299         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
103300         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
103301         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
103302         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
103303         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
103304         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
103305         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
103306         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
103307         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
103308         * lib/xgethostname.c, lib/xreadlink.c:
103309         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
103311         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
103312         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
103313         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
103314         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
103315         and don't include <sys/file.h>).
103317 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
103319         Sync from coreutils.
103321         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
103322         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
103323         [!LDAV_DONE]: Avoid unused variable warning.
103325 2005-09-21  Bruno Haible  <bruno@clisp.org>
103327         * lib/unicodeio.h (unicode_to_mb): New declaration.
103329 2005-09-20  Derek Price  <derek@ximbiot.com>
103331         * lib/getaddrinfo.c: Don't include <netdb.h> included from
103332         getaddrinfo.h.
103334 2005-09-20  Bruno Haible  <bruno@clisp.org>
103336         * gnulib-tool: Remove trailing slashes from the values specified for
103337         --source-base, --m4-base, --tests-base, --aux-dir.
103338         Suggested by Simon Josefsson <jas@extundo.com>.
103340 2005-09-20  Bruno Haible  <bruno@clisp.org>
103342         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
103343         func_modules_to_filelist, func_import, func_create_testdir): Make all
103344         sorting results locale-independent, so that gnulib-cache.m4 doesn't
103345         change when gnulib-tool is invoked in a different locale.
103347 2005-09-19  Simon Josefsson  <jas@extundo.com>
103349         * m4/socklen.m4: Fix typo.
103351 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
103353         Use a consistent style for including <config.h>.
103354         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
103355         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
103356         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
103357         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
103358         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
103359         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
103360         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
103361         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
103362         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
103363         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
103364         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
103365         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
103366         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
103367         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
103368         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
103369         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
103370         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
103371         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
103372         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
103373         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
103374         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
103375         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
103376         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
103377         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
103378         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
103379         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
103380         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
103381         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
103382         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
103383         lib/xstrtoumax.c, lib/yesno.c:
103384         Standardize inclusion of config.h.
103385         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
103386         lib/inttostr.h:  Removed inclusion of config.h from header files.
103387         * lib/inttostr.c:  Adjusted in-tree users.
103388         * lib/timespec.h: Remove superfluous warning to include config.h.
103389         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
103390         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
103391         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
103392         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
103393         config.h with HAVE_CONFIG_H.
103395 2005-09-19  Jim Meyering  <jim@meyering.net>
103397         * modules/pathmax (License): Change to LGPL.
103399 2005-09-19  Derek Price  <derek@ximbiot.com>
103401         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
103403 2005-09-19  Bruno Haible  <bruno@clisp.org>
103405         * gnulib-tool (import): Provide default for --tests-base.
103407 2005-09-19  Bruno Haible  <bruno@clisp.org>
103409         * doc/quote.texi: New file, extracted from gnulib.texi.
103410         * doc/ctime.texi: New file, extracted from gnulib.texi.
103411         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
103412         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
103413         * doc/gnulib.texi: Include them.
103415 2005-09-18  Bruno Haible  <bruno@clisp.org>
103417         Portability fix.
103418         * gnulib-tool (func_readlink): New function.
103419         (func_ln_if_changed): Use it.
103421 2005-09-18  Bruno Haible  <bruno@clisp.org>
103423         * gnulib-tool: Support --with-tests also with --import.
103424         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
103425         (func_import): Use variables $testsbase and $inctests. Emit a
103426         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
103427         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
103428         SUBDIRS += $testsdir.
103429         (func_create_testdir): Update.
103431 2005-09-18  Bruno Haible  <bruno@clisp.org>
103433         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
103434         instead of $dry_run.
103435         (func_cp_if_changed, func_mv_if_changed): Remove functions.
103436         (func_ln_if_changed): Don't handle dry-run here.
103437         (func_import): In dry-run mode, detect more precisely which actions
103438         would be performed, and don't use "...ing" verbs.
103440 2005-09-18  Bruno Haible  <bruno@clisp.org>
103442         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
103443         (func_import): Use join on two temporary files instead of three nested
103444         loops, in order to determine which files are new or old.
103446 2005-09-18  Bruno Haible  <bruno@clisp.org>
103448         * gnulib-tool (func_import): Comment out code that spits out the
103449         new files with --dry-run.
103451 2005-09-18  Bruno Haible  <bruno@clisp.org>
103453         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
103455 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
103457         * lib/stat-time.h: New file.
103458         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
103459         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
103460         in a different way.
103461         (timespec_cmp): New function.
103462         * lib/utimecmp.c: Include stat-time.h.
103463         (SYSCALL_RESOLUTION): Depend on whether various struct stat
103464         members exist, not on the obsolescent ST_MTIM_NSEC.
103465         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
103467 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
103469         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
103471 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
103473         * MODULES.html.sh (File system functions): Add stat-time.
103474         * modules/stat-time: New file.
103475         * modules/timespec (Files): Remove m4/st_mtim.m4; this
103476         is now done in a different way, by the stat-time module.
103477         * modules/utimecmp (Depends-on): Add stat-time.
103479 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
103481         * m4/st_mtim.m4: Remove.  Superseded by...
103482         * m4/stat-time.m4: New file.
103483         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
103484         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
103486 2005-09-15  Derek Price  <derek@ximbiot.com>
103488         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
103490 2005-09-15  Derek Price  <derek@ximbiot.com>
103492         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
103493         * lib/regex_internal.c: Ditto, using this...
103494         (__GNUC_PREREQ): ...new macro.
103495         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
103496         using...
103497         (__GNUC_PREREQ): ...this new macro.
103499         * lib/strstr.h: Include string.h. Define strstr as a macro here.
103501 2005-09-15  Derek Price  <derek@ximbiot.com>
103502             Paul Eggert  <eggert@cs.ucla.edu>
103504         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
103505         changes, consolidating in...
103506         * lib/regex_internal.h: ...this file.
103508 2005-09-13  Jim Meyering  <jim@meyering.net>
103510         * lib/canon-host.c: Filter through gnu indent and reword comments
103511         slightly.
103512         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
103514 2005-09-13  Derek Price  <derek@ximbiot.com>
103516         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
103517         failure.
103518         Reported by Jim Meyering  <jim@meyering.net>.
103520 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
103522         * lib/base64.c: Typo.
103523         (base64_encode): Put b64str in initialized data section.
103525 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
103527         Merge glibc and coreutils changes into gnulib, plus a few
103528         extra fixes.
103529         * lib/md5.c: Use #error rather than a string.
103530         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
103531         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
103532         (__attribute__): Define to empty for non recent-GCC.
103533         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
103534         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
103535         Renamed from their non-__ counterparts, with new macros replacing
103536         them if not _LIBC.  Add __THROW attribute.
103537         (rol): Remove.
103538         (struct md5_ctx): Align buffer if using GCC.
103539         * lib/sha1.h (struct sha1_ctx): Likewise.
103540         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
103541         The old name was backwards.
103542         (NOTSWAP): Remove; not used.
103543         (rol): New macro, moved here from md5.h.
103544         (sha1_process_block): Remove a FIXME that doesn't make sense.
103546 2005-09-12  Derek Price  <derek@ximbiot.com>
103548         Return usable errors from canon-host.
103549         * lib/canon-host.h: New file.
103550         * lib/canon-host.c (canon_host): Wrap...
103551         (canon_host_r): ...this new function, which now relies exclusively on
103552         getaddrinfo.
103553         (ch_strerror): New function.
103554         (last_cherror): New global.
103555         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
103556         interface.
103557         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
103558         void *.
103559         (freeaddrinfo): Free ai->ai_canonname when set.
103561 2005-09-12  Derek Price  <derek@ximbiot.com>
103563         Make canon-host require getaddrinfo.
103564         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
103565         AC_LIBSOURCE canon-host.h.  Call...
103566         (gl_PREREQ_CANON_HOST): ...this new function, which requires
103567         gl_GETADDRINFO.
103568         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
103570 2005-09-12  Derek Price  <derek@ximbiot.com>
103572         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
103573         LGPL.
103574         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
103576 2005-09-12  Derek Price  <derek@ximbiot.com>
103578         * lib/gai_strerror.c: Include config.h when available.  Include
103579         getaddrinfo.h before other headers to test interface.
103580         Reported by Larry Jones <lawrence.jones@ugs.com>.
103582 2005-09-12  Derek Price  <derek@ximbiot.com>
103583             Paul Eggert  <eggert@cs.ucla.edu>
103585         * modules/glob (Files): Add glob-libc.h.
103587 2005-09-12  Derek Price  <derek@ximbiot.com>
103588             Paul Eggert  <eggert@cs.ucla.edu>
103590         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
103591         glob_.h, glob-libc.h.
103592         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
103594 2005-09-12  Derek Price  <derek@ximbiot.com>
103595             Paul Eggert  <eggert@cs.ucla.edu>
103597         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
103598         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
103599         protecting things that should be done only in gnulib contexts.
103600         * lib/glob_.h: New file, containing only the glob things needed for
103601         gnulib.
103602         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
103603         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
103604         (glob, globfree, glob_pattern_p): Now defined simply in terms of
103605         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
103606         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
103607         and to respect the namespace rules better.
103609 2005-09-08  Simon Josefsson  <jas@extundo.com>
103611         * modules/socklen: New file.
103613 2005-09-08  Simon Josefsson  <jas@extundo.com>
103615         * m4/socklen.m4: New file.
103617 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
103619         * modules/utimens (Files): Add m4/utimbuf.m4, since
103620         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
103621         Reported by Sergey Poznyakoff.
103623 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
103625         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
103626         definitions, since that's the preferred style in glibc.
103627         Fix a minor spacing issue, and update copyright notice to match
103628         glibc's.
103630 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
103632         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
103634 2005-09-06  Simon Josefsson  <jas@extundo.com>
103636         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
103637         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
103639 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
103641         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
103642         warning.
103644 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
103646         * config/srclist.txt: Add glibc bug 1302.
103648 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
103650         Change bitset word type from unsigned int to unsigned long int,
103651         as this has better performance on typical 64-bit hosts.
103652         Port bitset code to hosts with unusual word sizes.
103653         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
103654         (build_collating_symbol):
103655         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
103656         argument is a bitset.  This is merely a style issue, but it makes
103657         it clearer that an entire array is expected.
103658         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
103659         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
103660         Port to the case where bitset_word is not the same as unsigned int.
103661         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
103662         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
103663         Likewise.
103664         * lib/regexec.c (check_dst_limits_calc_pos_1,
103665         check_subexp_matching_top):
103666         (build_trtable, group_nodes_into_DFAstates):
103667         Likewise.
103668         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
103669         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
103670         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
103671         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
103672         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
103673         * lib/regcomp.c (optimize_subexps, lower_subexp):
103674         Work even if bitset_word has holes in its bitwise representation.
103675         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
103676         * lib/regexec.c (check_dst_limits_calc_pos_1,
103677         check_subexp_matching_top):
103678         Likewise.
103679         * lib/regex_internal.c (re_string_reconstruct):
103680         Don't assume UCHAR_MAX == 255.
103681         * lib/regex_internal.h (bitset_set_all): Likewise.
103682         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
103683         All uses changed.
103684         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
103685         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
103686         All uses changed.
103687         (BITSET_WORD_MAX): New macro.
103688         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
103689         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
103690         (bitset_empty, bitset_copy):
103691         Prefer sizeof (bitset) to multiplying it out ourselves.
103692         (bitset_not_merge): Remove; unused.
103693         (bitset_contain): Return bool, not unsigned int with one bit on.
103694         All callers changed.
103695         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
103696         alignment than re_node_set; do this by defining a new internal
103697         type struct dests_alloc and using it to allocate memory.
103699 2005-09-05  Bruno Haible  <bruno@clisp.org>
103701         * gnulib-tool (func_import): Fix comparison in handling of symbolic
103702         links.
103704 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
103706         * modules/size_max (Makefile.am): Add size_max.h
103708 2005-09-04  Derek Price  <derek@ximbiot.com>
103710         * gnulib-tool (func_import): Fix reversed $symbolic logic.
103712 2005-09-03  Simon Josefsson  <jas@extundo.com>
103714         * gnulib-tool: Fix typo.
103716 2005-09-03  Simon Josefsson  <jas@extundo.com>
103718         * config/srclist.txt: Add glibc bug 1293.
103720 2005-09-03  Derek Price  <derek@ximbiot.com>
103722         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
103723         From Larry Jones <lawrence.jones@ugs.com>.
103725 2005-09-02  Simon Josefsson  <jas@extundo.com>
103727         * modules/socklen: New file.
103729 2005-09-02  Simon Josefsson  <jas@extundo.com>
103731         * modules/havelib: New module.
103733         * modules/gettext, modules/iconv, modules/lock, modules/readline:
103734         Use havelib.
103736 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
103738         Check for arithmetic overflow when calculating sizes, to prevent
103739         some buffer-overflow issues.  These patches are conservative, in the
103740         sense that when I couldn't determine whether an overflow was possible,
103741         I inserted a run-time check.
103742         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
103743         macros.
103744         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
103745         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
103746         (re_xnrealloc, re_x2nrealloc): New inline functions.
103747         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
103748         parse_bracket_exp):
103749         (build_equiv_class, build_charclass): Check for arithmetic overflow
103750         in size expression calculations.
103751         * lib/regex_internal.c (re_string_realloc_buffers):
103752         (build_wcs_upper_buffer, re_node_set_add_intersect):
103753         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
103754         (re_dfa_add_node, register_state): Likewise.
103755         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
103756         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
103757         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
103758         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
103760 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
103762         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
103763         m4/ulonglong.m4.  Problem reported by Martin Lambers.
103765 2005-09-02  Bruno Haible  <bruno@clisp.org>
103767         Support for lib vs. lib64 distinction on biarch platforms.
103768         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
103769         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
103770         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
103772 2005-09-02  Bruno Haible  <bruno@clisp.org>
103774         * gnulib-tool (import): In the other first-use case, provide defaults
103775         as well.
103777 2005-09-02  Bruno Haible  <bruno@clisp.org>
103779         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
103780         patches not yet found in the latest gettext release.
103782 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
103784         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
103785         to avoid a collision with bits/local_lim.h in glibc.
103786         All uses changed.  Problem reported by Dmitry V. Levin in
103787         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
103789         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
103790         bugs in int versus size_t comparisons.
103791         (re_string_context_at): Fix bug where the code assumed that
103792         Idx is signed.
103794         Use bool where appropriate.
103795         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
103796         All callers changed.
103797         (calc_eclosure_iter): Likewise, for ROOT arg.
103798         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
103799         (build_charclass_op): Likewise, for NON_MATCH arg.
103800         * lib/regex_internal.c (re_string_allocate, re_string_construct):
103801         (re_string_construct_common): Likewise, for ICASE arg.
103802         * lib/regexec.c (re_search_2_stub, re_search_stub):
103803         Likewise, for RET_LEN arg.
103804         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
103805         (set_regs): Likewise, for FL_BACKTRACK arg.
103806         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
103807         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
103808         (calc_eclosure_iter, parse_bracket_exp):
103809         Use bool for internal variables that are booleans.
103810         * lib/regexec.c (re_search_internal, check_matching,
103811         proceed_next_node):
103812         (set_regs, build_sifted_states, sift_states_bkref):
103813         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
103814         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
103815         (find_collation_sequence_value):
103816         Likewise.
103817         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
103818         (re_node_set_compare):
103819         Return bool, not int. All callers changed.
103820         * lib/regexec.c (check_halt_node_context, check_dst_limits):
103821         (build_trtable, check_node_accept): Likewise.
103822         * lib/regex_internal.h: Include stdbool.h.
103824         Fix bugs uncovered when converting to bool.
103825         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
103826         failure instead of charging ahead blindly.
103827         * lib/regex_internal.c (register_state): Likewise.
103828         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
103829         for freeing internal storage.
103830         (group_nodes_into_DFA_states): Use unsigned int, not int, for
103831         bitset pieces used as boolean, to avoid undefined behavior
103832         on hosts that do int overflow checking.
103834 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
103836         * config/srclist.txt: Add glibc bugs 1285-1287.
103838 2005-09-01  Jim Meyering  <jim@meyering.net>
103840         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
103841         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
103842         Require gl_STAT_MACROS, too.
103844 2005-09-01  Bruno Haible  <bruno@clisp.org>
103846         * gnulib-tool (import): In the first-use case, provide defaults.
103848 2005-09-01  Bruno Haible  <bruno@clisp.org>
103850         * gnulib-tool (func_import): Remove the .tmp files.
103852 2005-09-01  Bruno Haible  <bruno@clisp.org>
103854         * gnulib-tool (func_import): Fix handling of symbolic links.
103856 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
103858         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
103859         old glibc regex code mishandles strings longer than 2**31 bytes.
103860         This patch fixes this when the regex code is used in gnulib
103861         (i.e., outside glibc).
103863         This patch should not affect the use of the regex code inside
103864         glibc.  No doubt this problem also needs to be handled for glibc
103865         as well, but the result will be an incompatible change to the
103866         glibc ABI, and the old ABI will have to be supported too.  That
103867         can be the subject for another patch.
103869         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
103870         governing whether the rest of this patch is active.  By default,
103871         the macro is disabled and the patch has no effect.
103872         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
103873         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
103874         (struct re_pattern_buffer, re_search, re_search_2, re_match):
103875         (re_match_2, re_set_registers): Use the new types.
103876         * lib/regex_internal.h (Idx, re_hashval_t): New types.
103877         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
103878         New macros.
103879         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
103880         (re_string_context_at, bin_tree_t, re_dfastate_t):
103881         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
103882         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
103883         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
103884         (re_string_char_size_at, re_string_wchar_at):
103885         (re_string_elem_size_at):
103886         Use the new types and macros to port to 64-bit hosts.
103887         Use unsigned types for internal values, so that the code
103888         mostly works even for arrays larger than SSIZE_MAX.
103889         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
103890         (search_duplicated_node, calc_eclosure_iter, fetch_number):
103891         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
103892         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
103893         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
103894         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
103895         (calc_inveclosure, parse_dup_op, build_range_exp):
103896         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
103897         (fetch_number, create_token_tree, mark_opt_subexp):
103898         Likewise.
103899         * lib/regex_internal.c (re_string_construct_common,
103900         create_ci_newstate):
103901         (create_cd_newstate, re_string_allocate, re_string_construct):
103902         (re_string_realloc_buffers, build_wcs_upper_buffer):
103903         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
103904         (re_string_reconstruct, re_string_peek_byte_case):
103905         (re_string_fetch_byte_case, re_string_context_at):
103906         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
103907         (re_node_set_init_copy, re_node_set_add_intersect):
103908         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
103909         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
103910         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
103911         (re_acquire_state, re_acquire_state_context, register_state):
103912         Likewise.
103913         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
103914         search_cur_bkref_entry):
103915         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
103916         (re_search_internal, re_search_2_stub, re_search_stub)
103917         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
103918         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
103919         (update_cur_sifted_state, check_dst_limits):
103920         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
103921         (check_subexp_limits, sift_states_bkref, merge_state_array):
103922         (check_subexp_matching_top, get_subexp, get_subexp_sub):
103923         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
103924         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
103925         (expand_bkref_cache, check_node_accept_bytes):
103926         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
103927         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
103928         (acquire_init_state_context, check_halt_node_context):
103929         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
103930         (sift_states_backward, clean_state_log_if_needed):
103931         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
103932         (find_recover_state, transit_state_sb, transit_state_mb):
103933         (transit_state_bkref, build_trtable, match_ctx_clean):
103934         Likewise.
103935         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
103936         to work around an assumption that REG_MISSING is negative.
103938         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
103939         (seek_collating_symbol_entry) [defined _LIBC]:
103940         (lookup_collation_sequence_value) [defined _LIBC]:
103941         (build_range_exp, build_collating_symbol) [defined _LIBC]:
103942         Use prototypes rather than old-style function definitions.
103943         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
103944         (transit_state_sb) [0]:
103945         (find_collation_sequence_value) [defined _LIBC]: Likewise.
103947         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
103948         rm_eo.
103950         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
103951         (optimize_subexps, lower_subexp):
103952         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
103953         since the signed shift might overflow.  Use 1u<<31 instead.
103954         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
103955         Likewise.
103956         * lib/regexec.c (check_dst_limits_calc_pos_1,
103957         check_subexp_matching_top): Likewise.
103959         * lib/regcomp.c (optimize_subexps, lower_subexp):
103960         Use CHAR_BIT rather than 8, for clarity.
103961         * lib/regexec.c (check_dst_limits_calc_pos_1):
103962         (check_subexp_matching_top): Likewise.
103963         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
103964         have to worry about portability issues when shifting it left.
103965         Remove no-longer-needed test for table_size > 0.
103966         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
103967         in a word, as the resulting behavior is undefined.
103968         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
103969         in one case, a <= should have been an <, and in another case the
103970         whole test was missing.
103971         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
103972         the standard name CHAR_BIT.
103973         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
103974         this is not true on one's complement and signed-magnitude hosts.
103976         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
103977         next_last_offset.
103978         (struct re_dfa_t): Remove unused member states_alloc.
103979         * lib/regcomp.c (init_dfa): Don't initialize unused members.
103981 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
103983         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
103984         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
103985         and large-file glibc and in 32-bit large-file Solaris.
103987 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
103989         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
103990         lengths fit in regoff_t; this isn't true if regoff_t is the same
103991         width as size_t.
103992         * lib/regex.c (re_search_internal): 5th arg is LAST_START
103993         (= START + RANGE) instead of RANGE.  This avoids overflow
103994         problems when regoff_t is the same width as size_t.
103995         All callers changed.
103996         (re_search_2_stub): Check for overflow when adding the
103997         sizes of the two strings.
103998         (re_search_stub): Check for overflow when adding START
103999         to RANGE; if it occurs, substitute the extreme value.
104001 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
104003         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
104005 2005-08-31  Jim Meyering  <jim@meyering.net>
104007         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
104008         a pointer-to-const.
104009         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
104010         (register_state): Likewise.
104011         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
104012         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
104013         (group_nodes_into_DFAstates): Likewise.
104015 2005-08-31  Jim Meyering  <jim@meyering.net>
104017         * check-module: Add a FIXME comment.
104019 2005-08-31  Eric Blake  <ebb9@byu.net>
104021         * modules/unistd-safer (Files): Add unistd--.h.
104022         * modules/stdio-safer (Files): Add stdio--.h.
104024 2005-08-31  Derek Price  <derek@ximbiot.com>
104026         * lib/getdelim.c (getdelim): Return EOF on EOF.
104027         Reported by Larry Jones <lawrence.jones@ugs.com>.
104029 2005-08-31  Bruno Haible  <bruno@clisp.org>
104031         Avoid unnecessary diffs in the generated lib/Makefile.am.
104032         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
104033         the generated files.
104034         (func_import): Don't set cmd.
104036 2005-08-31  Bruno Haible  <bruno@clisp.org>
104038         * lib/strstr.c: Include <stddef.h>, for NULL.
104039         * lib/strcasestr.c: Likewise.
104040         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
104042 2005-08-31  Bruno Haible  <bruno@clisp.org>
104044         * gnulib-tool: New option --macro-prefix.
104045         (func_import): Use macro_prefix.
104046         (import): Handle option --macro-prefix.
104048 2005-08-31  Bruno Haible  <bruno@clisp.org>
104050         * gnulib-tool (import): Rename most ac_* variables to cached_*.
104051         Also use new variables cached_lgpl, cached_libtool.
104053 2005-08-31  Bruno Haible  <bruno@clisp.org>
104055         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
104056         always instantiating them.
104058 2005-08-31  Bruno Haible  <bruno@clisp.org>
104060         * gnulib-tool (func_import): Read the previous cached settings
104061         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
104062         earlier added by gnulib but are now dropped. Warn when a gnulib file
104063         overwrites a non-gnulib file.
104065 2005-08-31  Bruno Haible  <bruno@clisp.org>
104067         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
104068         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
104069         projects that don't keep autogenerated files in CVS. Put into
104070         actioncmd only the specified modules, not the transitive closure.
104072 2005-08-31  Bruno Haible  <bruno@clisp.org>
104074         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
104075         Create directories that shall be filled.
104076         (import): Don't look for gl_* macros in configure.ac. Recurse across
104077         all directories containing a gnulib-cache.m4 files, if meaningful.
104079 2005-08-31  Bruno Haible  <bruno@clisp.org>
104081         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
104082         (import): Set seen_libtool when we see gl_LIBTOOL.
104084 2005-08-31  Bruno Haible  <bruno@clisp.org>
104086         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
104087         declaration macro definitions from generated gnulib.m4.
104089 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
104091         * lib/iconvme.h: Add prototype for iconv_alloc.
104093 2005-08-29  Simon Josefsson  <jas@extundo.com>
104095         * lib/iconvme.c: Fix errno.
104097 2005-08-29  Bruno Haible  <bruno@clisp.org>
104099         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
104100         that it works when the directory contains spaces.
104102 2005-08-29  Bruno Haible  <bruno@clisp.org>
104104         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
104106 2005-08-29  Bruno Haible  <bruno@clisp.org>
104108         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
104109         Emit more advice.
104111 2005-08-29  Bruno Haible  <bruno@clisp.org>
104112         and Stepan Kasal  <kasal@ucw.cz>
104114         * check-module: If more parameters are given, check each of them
104115         separately; add more exceptions, as noted by Jim Meyering.
104116         (check_module): New procedure.
104117         (%exempt_header): Now contains all exceptions.
104119 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
104121         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
104123 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
104125         * lib/iconvme.c: Split iconv_string into iconv_alloc.
104127 2005-08-28  Bruno Haible  <bruno@clisp.org>
104129         * m4/gnulib-tool.m4: New file.
104131 2005-08-27  Jim Meyering  <jim@meyering.net>
104133         * modules/unistd-safer (Files): Add pipe-safer.c.
104134         * modules/fcntl-safer (Files): Add creat-safer.c.
104136 2005-08-27  Jim Meyering  <jim@meyering.net>
104138         * m4/stdlib-safer.m4: New file.  From coreutils.
104139         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
104140         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
104141         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
104142         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
104143         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
104145 2005-08-27  Jim Meyering  <jim@meyering.net>
104147         * lib/fopen-safer.c: Merge minor changes from coreutils.
104148         * lib/dup-safer.c: Likewise.
104149         * lib/fd-safer.c: Likewise.
104151         Merge from coreutils.
104152         * lib/stdio--.h: New file.
104153         * lib/stdlib--.h: New file.
104154         * lib/mkstemp-safer.c: New file.
104156         GNU tar needs these.
104157         * lib/pipe-safer.c: New file.
104158         * lib/creat-safer.c: New file.
104159         * lib/fcntl--.h (creat): Define to creat_safer.
104160         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
104161         * lib/unistd--.h (pipe): Define to pipe_safer.
104162         * lib/unistd-safer.h: Declare pipe_safer.
104164 2005-08-26  Simon Josefsson  <jas@extundo.com>
104166         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
104167         Haible <bruno@clisp.org>.
104169 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
104171         * lib/regex_internal.h: Remove all references to
104172         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
104173         or better.
104174         (bitset_not, bitset_merge, bitset_not_merge):
104175         (bitset_mask, re_string_allocate, re_string_construct):
104176         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
104177         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
104178         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
104179         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
104180         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
104181         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
104182         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
104183         (re_acquire_state_context):
104184         Remove unnecessary forward decls.
104185         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
104186         Put __attribute at function definition,
104187         now that the function decl has been removed.
104188         * lib/regex_internal.c (re_string_peek_byte_case):
104189         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
104190         Likewise.
104192 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
104194         * m4/regex.m4: Add AC_PREREQ(2.50).
104195         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
104197 2005-08-25  Simon Josefsson  <jas@extundo.com>
104199         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
104200         __fsetlocking.
104202 2005-08-25  Simon Josefsson  <jas@extundo.com>
104204         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
104205         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
104206         GLIBC specific code.
104208 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
104210         Make regex safe for g++.  This fixes one real bug (an "err"
104211         that should have been "*err").  g++ problem reported by
104212         Sam Steingold.
104213         * lib/regex_internal.h (re_calloc): New macro, consistent with
104214         re_malloc etc.  All callers of calloc changed to use re_calloc.
104215         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
104216         not int.  All callers changed.
104217         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
104218         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
104219         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
104220         (find_recover_state): Change "err" to "*err"; this fixes what
104221         appears to be a real bug.
104222         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
104223         versus int.
104225 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
104227         * modules/regex (Depends-on): Add malloc, since the code
104228         assumes that !malloc(0) means failure.
104230 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
104232         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
104234         alloca modernization/simplification for regex.
104235         * lib/regex.c: Remove portability cruft for alloca.  This no longer
104236         needs to be at the start of the file, and can be moved into
104237         regex_internal.h and simplified.
104238         * lib/regex_internal.h: Include <alloca.h>.
104239         (__libc_use_alloca) [!defined _LIBC]: New macro.
104240         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
104241         now works outside glibc.
104243 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
104245         * config/srclist.txt: Add glibc bugs 1241, 1245.
104247 2005-08-25  Jim Meyering  <jim@meyering.net>
104249         * lib/open-safer.c: Include <config.h>.
104250         Otherwise, we'd lose LARGEFILE support in any file using
104251         e.g. "fcntl--.h"
104253 2005-08-25  Bruno Haible  <bruno@clisp.org>
104255         * m4/minmax.m4: Require autoconf 2.52.
104256         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
104257         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
104258         alternatives of translit over the alphabet.
104259         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
104261 2005-08-24  Simon Josefsson  <jas@extundo.com>
104263         * tests/test-getpass.c: New file.
104265 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
104267         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
104268         for GNU regex features.
104270 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
104272         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
104273         * lib/regex.h (regerror): Likewise.
104275         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
104276         requires this.  (The code never needed it.)
104278         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
104279         All uses of recently-renamed identifiers changed to use the new,
104280         POSIX-compliant names.  The code will build and run just fine
104281         without these changes, but it's better to eat our own dog food
104282         and use the standard-conforming names.
104284         * lib/regex.h: Fix a multitude of POSIX name space violations.
104285         These changes have an effect only for programs that define
104286         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
104287         do not change anything for programs compiled in the normal way.
104288         Also, there is no effect on the ABI.
104290         (_REGEX_SOURCE): New macro.
104291         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
104292         defined and _GNU_SOURCE is not; this fixes a name space violation.
104294         Rename the following macros to obey POSIX requirements.
104295         The old names are still visible as macros if _REGEX_SOURCE is defined.
104296         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
104297         RE_BACKSLASH_ESCAPE_IN_LISTS.
104298         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
104299         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
104300         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
104301         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
104302         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
104303         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
104304         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
104305         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
104306         (REG_INTERVALS): renamed from RE_INTERVALS.
104307         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
104308         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
104309         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
104310         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
104311         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
104312         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
104313         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
104314         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
104315         RE_UNMATCHED_RIGHT_PAREN_ORD.
104316         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
104317         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
104318         (REG_DEBUG): renamed from RE_DEBUG.
104319         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
104320         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
104321         unusual, since we can't clash with the POSIX REG_ICASE.
104322         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
104323         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
104324         (REG_NO_SUB): renamed from RE_NO_SUB.
104325         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
104326         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
104327         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
104328         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
104329         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
104330         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
104331         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
104332         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
104333         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
104334         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
104335         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
104336         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
104337         RE_SYNTAX_POSIX_MINIMAL_BASIC.
104338         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
104339         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
104340         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
104341         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
104342         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
104343         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
104344         (REG_FIXED): Renamed from REGS_FIXED.
104345         (REG_NREGS): Renamed from RE_NREGS.
104347         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
104348         of other REG_* macros, since POSIX says the user is allowed to
104349         #undef these macros selectively.
104351         (reg_errcode_t): Update comment stating what other tables need
104352         to be consistent.
104354         Rename the following enum values to obey POSIX requirements.
104355         The old names are still visible as macros.
104356         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
104357         is not defined, since GNU is supposed to be a superset of POSIX as
104358         much as possible, and since we want reg_errcode_t to be a signed
104359         type for implementation consistency.
104360         (_REG_NOERROR): Renamed from REG_NOERROR.
104361         (_REG_NOMATCH): Renamed from REG_NOMATCH.
104362         (_REG_BADPAT): Renamed from REG_BADPAT.
104363         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
104364         (_REG_ECTYPE): Renamed from REG_ECTYPE.
104365         (_REG_EESCAPE): Renamed from REG_EESCAPE.
104366         (_REG_ESUBREG): Renamed from REG_ESUBREG.
104367         (_REG_EBRACK): Renamed from REG_EBRACK.
104368         (_REG_EPAREN): Renamed from REG_EPAREN.
104369         (_REG_EBRACE): Renamed from REG_EBRACE.
104370         (_REG_BADBR): Renamed from REG_BADBR.
104371         (_REG_ERANGE): Renamed from REG_ERANGE.
104372         (_REG_ESPACE): Renamed from REG_ESPACE.
104373         (_REG_BADRPT): Renamed from REG_BADRPT.
104374         (_REG_EEND): Renamed from REG_EEND.
104375         (_REG_ESIZE): Renamed from REG_ESIZE.
104376         (_REG_ERPAREN): Renamed from REG_ERPAREN.
104377         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
104378         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
104379         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
104380         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
104382         (_REG_RE_NAME, _REG_RM_NAME): New macros.
104383         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
104384         changed.  But support the old name if the new one is not defined
104385         and if _REGEX_SOURCE.
104387         Change the following member names in struct re_pattern_buffer.
104388         The old names are still supported if !_REGEX_SOURCE.
104389         The new names are always supported, regardless of _REGEX_SOURCE.
104390         (re_buffer): Renamed from buffer.
104391         (re_allocated): Renamed from allocated.
104392         (re_used): Renamed from used.
104393         (re_syntax): Renamed from syntax.
104394         (re_fastmap): Renamed from fastmap.
104395         (re_translate): Renamed from translate.
104396         (re_can_be_null): Renamed from can_be_null.
104397         (re_regs_allocated): Renamed from regs_allocated.
104398         (re_fastmap_accurate): Renamed from fastmap_accurate.
104399         (re_no_sub): Renamed from no_sub.
104400         (re_not_bol): Renamed from not_bol.
104401         (re_not_eol): Renamed from not_eol.
104402         (re_newline_anchor): Renamed from newline_anchor.
104404         Change the following member names in struct re_registers.
104405         The old names are still supported if !_REGEX_SOURCE.
104406         The new names are always supported, regardless of _REGEX_SOURCE.
104407         (rm_num_regs): Renamed from num_regs.
104408         (rm_start): Renamed from start.
104409         (rm_end): Renamed from end.
104411         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
104412         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
104413         Prepend __ to parameter names.
104415         Undo yesterday's changes.
104417 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
104419         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
104420         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
104421         lib/regex.c.
104423 2005-08-24  Jim Meyering  <jim@meyering.net>
104425         Sync from coreutils.
104426         * m4/fcntl-safer.m4: New file.
104428         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
104429         and object files for this module.
104431 2005-08-24  Jim Meyering  <jim@meyering.net>
104433         Sync from coreutils.
104434         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
104436 2005-08-24  Jim Meyering  <jim@meyering.net>
104438         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
104439         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
104441 2005-08-24  Jim Meyering  <jim@meyering.net>
104443         * modules/fcntl-safer: New module.
104444         * modules/fts (Depends-on): Add fcntl-safer.
104445         * MODULES.html.sh (File descriptor based Input/Output):
104446         Add fcntl-safer.
104448 2005-08-24  Bruno Haible  <bruno@clisp.org>
104450         Support for unit test modules.
104451         * modules/README: Mention tests modules.
104452         * modules/TEMPLATE-TESTS: New file.
104453         * gnulib-tool: New options --extract-tests-module, --with-tests and
104454         --tests-base (unused for the moment).
104455         (testsbase, inctests): New variables.
104456         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
104457         (func_verify_module): Exclude TEMPLATE-TESTS.
104458         (func_verify_nontests_module, func_verify_tests_module): New functions.
104459         (func_get_dependencies): Add implicit dependency for tests modules.
104460         (func_get_tests_module): New function.
104461         (func_modules_transitive_closure): When --with-tests was specified,
104462         include the unit tests as well, unless explicitly avoided.
104463         (func_emit_lib_Makefile_am): Ignore the tests modules here.
104464         (func_emit_tests_Makefile_am): New function.
104465         (func_create_testdir): When --with-tests was specified, emit a
104466         tests/ directory.
104467         * MODULES.html.sh (Future developments): Update.
104469 2005-08-24  Bruno Haible  <bruno@clisp.org>
104471         * modules/tls-tests: New file.
104472         * tests/test-tls.c: New file, from GNU gettext.
104474 2005-08-24  Bruno Haible  <bruno@clisp.org>
104476         * modules/lock-tests: New file.
104477         * tests/test-lock.c: New file, from GNU gettext.
104479 2005-08-24  Bruno Haible  <bruno@clisp.org>
104481         * lib/lock.h: Add multiple inclusion guard.
104482         * lib/tls.h: Add multiple inclusion guard.
104484 2005-08-24  Bruno Haible  <bruno@clisp.org>
104486         * gnulib-tool: Add support for the --aux-dir option to
104487         --create-testdir, --create-megatestdir, --test, --megatest.
104488         (func_create_testdir, func_create_megatestdir): Optionally emit a
104489         AC_CONFIG_AUX_DIR directive.
104490         (create-testdir, create-megatestdir, test, megatest): Provide a
104491         default value for $auxdir.
104493 2005-08-24  Bruno Haible  <bruno@clisp.org>
104495         * gnulib-tool (import): Use compound statement instead of subshell
104496         where possible.
104498 2005-08-24  Bruno Haible  <bruno@clisp.org>
104500         * gnulib-tool (import): Change --aux-dir default to "build-aux".
104502 2005-08-24  Bruno Haible  <bruno@clisp.org>
104504         * gnulib-tool (func_version): Update.
104506 2005-08-24  Bruno Haible  <bruno@clisp.org>
104508         * gnulib-tool (func_import, func_create_testdir,
104509         func_create_megatestdir): Quote all autoconf macro arguments.
104511 2005-08-24  Bruno Haible  <bruno@clisp.org>
104513         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
104514         option --force, because --force causes the aclocal.m4 of each
104515         subdirectory to be newer than the corresponding config.h.in.
104517 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
104519         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
104520         All contents moved to gl_REGEX.
104521         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
104522         assume that it does.
104524 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
104526         * lib/regex.h (REG_NOSYS)
104527         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
104528         Define, since POSIX requires it as of 2001.
104529         (_REG_ENOSYS)
104530         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
104531         New private symbol, used to keep the enum signed in all cases.
104532         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
104533         Youngman in
104534         <http://lists.gnu.org/r/bug-gnulib/2005-07/msg00132.html>.
104536         * lib/regex_internal.c (re_string_skip_chars, register_state):
104537         (calc_state_hash):
104538         Remove forward decls; no longer needed now that we use prototypes.
104539         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
104540         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
104541         (clean_state_log_if_needed): Likewise.
104543 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
104545         * config/srclist.txt: Add glibc bugs 1231-1233.
104547 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
104549         Fix problems reported by Sam Steingold in
104550         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00007.html>.
104551         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
104552         assumed that reg_errcode_t is a signed type, which is not
104553         necessarily true if _XOPEN_SOURCE is not defined.
104554         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
104555         since some compilers warn about it otherwise.
104557 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
104559         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
104560         (init_word_char, create_initial_state, duplicate_node_closure):
104561         (fetch_token, peek_token_bracket, build_range_exp):
104562         (build_collating_symbol): Remove forward decls; no longer needed
104563         now that we use prototypes.
104565         * lib/regcomp.c:
104566         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
104567         (re_compile_fastmap_iter, regcomp, regerror, regfree):
104568         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
104569         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
104570         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
104571         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
104572         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
104573         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
104574         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
104575         (build_range_exp, build_collating_symbol, parse_bracket_exp):
104576         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
104577         (build_charclass, build_charclass_op, fetch_number, create_tree):
104578         (create_token_tree, mark_opt_subexp, duplicate_tree):
104579         Use prototypes rather than old-style definitions.
104581         * lib/regex_internal.c:
104582         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
104583         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
104584         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
104585         (re_string_reconstruct, re_string_peek_byte_case):
104586         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
104587         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
104588         (re_node_set_init_copy, re_node_set_add_intersect):
104589         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
104590         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
104591         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
104592         (re_acquire_state, re_acquire_state_context, register_state):
104593         (create_ci_newstate, create_cd_newstate, free_state):
104594         Likewise.
104595         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
104596         re_search_2):
104597         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
104598         (re_search_internal, prune_impossible_nodes):
104599         (acquire_init_state_context, check_matching, static):
104600         (check_halt_node_context, check_halt_state_context, proceed_next_node):
104601         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
104602         (update_regs, sift_states_backward, build_sifted_states):
104603         (clean_state_log_if_needed, merge_state_array):
104604         (update_cur_sifted_state, add_epsilon_src_nodes):
104605         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
104606         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
104607         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
104608         (find_recover_state, check_subexp_matching_top, transit_state_mb):
104609         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
104610         (check_arrival, check_arrival_add_next_nodes):
104611         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
104612         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
104613         (check_node_accept_bytes, check_node_accept, extend_buffers):
104614         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
104615         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
104616         (sift_ctx_init):
104617         Likewise.
104619         * lib/regex_internal.h:
104620         (re_string_allocate, re_string_construct, re_string_reconstruct):
104621         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
104622         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
104623         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
104624         (re_string_context_at, re_string_peek_byte_case):
104625         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
104626         is defined, since we now use prototypes always.
104628         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
104629         C89 or better.  All uses removed.
104631 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
104633         * config/srclist.txt: Add glibc bugs 1220-1227.
104635 2005-08-20  Jim Meyering  <jim@meyering.net>
104637         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
104638         of unused local, dfa.
104640 2005-08-20  Bruno Haible  <bruno@clisp.org>
104642         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
104644 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
104646         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
104647         (re_node_set_insert_last, re_dfa_add_node):
104648         Rename local variables to avoid GCC shadowing warnings.
104650 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
104652         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
104653         [defined lint]: Suppress bogus uninitialized-variable warnings.
104655         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
104656         and let the caller return REG_ESPACE if out of space.  This
104657         removes an uninitialied-variable warning with GCC 4.0.1, and also
104658         avoids taking the address of a local variable.  All callers
104659         changed.
104661 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
104663         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
104664         $LIBCSRC/posix/regexec.c.
104665         Add glibc bug 1217 for regcomp.c.
104667 2005-08-19  Jim Meyering  <jim@meyering.net>
104669         * lib/regexec.c (proceed_next_node): Redo local variables to
104670         avoid GCC shadowing warnings.
104672 2005-08-18  Bruno Haible  <bruno@clisp.org>
104674         * lib/strstr.c (strstr): Fix return value in multibyte case.
104675         * lib/strcasestr.c (strcasestr): Likewise.
104677 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
104679         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
104681 2005-08-17  Jim Meyering  <jim@meyering.net>
104683         Make the %s format (seconds since the epoch) work for a negative
104684         number and when used with a zero-padded field width, e.g. %015s.
104686         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
104687         label so that it precedes the code to set `digits'.  Otherwise,
104688         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
104689         print `00-22'.  Now, it prints `-0022', as it should.
104691 2005-08-17  Bruno Haible  <bruno@clisp.org>
104693         * modules/strstr (Files): Add m4/mbrtowc.m4.
104694         (Depends-on): Add mbuiter.
104696 2005-08-17  Bruno Haible  <bruno@clisp.org>
104698         * modules/strcasestr: New file.
104699         * MODULES.html.sh (String handling, based on ANSI C 89): Add
104700         strcasestr.
104702 2005-08-17  Bruno Haible  <bruno@clisp.org>
104704         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
104706 2005-08-17  Bruno Haible  <bruno@clisp.org>
104708         * modules/mbuiter: New file.
104709         * MODULES.html.sh (Extended multibyte and wide character utilities):
104710         Add mbuiter.
104712 2005-08-17  Bruno Haible  <bruno@clisp.org>
104714         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
104715         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
104717 2005-08-17  Bruno Haible  <bruno@clisp.org>
104719         * m4/strcasestr.m4: New file.
104721 2005-08-17  Bruno Haible  <bruno@clisp.org>
104723         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
104724         * lib/strstr.c: Completely rewritten, with multibyte locale support.
104726 2005-08-17  Bruno Haible  <bruno@clisp.org>
104728         * lib/strcasestr.h: New file.
104729         * lib/strcasestr.c: New file.
104731 2005-08-17  Bruno Haible  <bruno@clisp.org>
104733         * lib/strcasecmp.c: Use mbuiter.h.
104735 2005-08-17  Bruno Haible  <bruno@clisp.org>
104737         * lib/mbuiter.h: New file.
104739 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
104741         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
104742         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
104743         and gl_GETOPT are both invoked via different paths (as happens
104744         with GNU tar CVS because it uses both argp and getopt), the former
104745         wins.
104747 2005-08-16  Bruno Haible  <bruno@clisp.org>
104749         * modules/tls: New file.
104750         * MODULES.html.sh (Multithreading): Add tls.
104752 2005-08-16  Bruno Haible  <bruno@clisp.org>
104754         * modules/strnlen1: New file.
104755         * MODULES.html.sh (String handling): Add strnlen1.
104757 2005-08-16  Bruno Haible  <bruno@clisp.org>
104759         * modules/strcase (Files): Add m4/mbrtowc.m4.
104760         (Depends-on): Add strnlen1, mbchar.
104762 2005-08-16  Bruno Haible  <bruno@clisp.org>
104764         * modules/mbiter: New file.
104765         * MODULES.html.sh (Extended multibyte and wide character utilities):
104766         Add mbiter.
104768 2005-08-16  Bruno Haible  <bruno@clisp.org>
104770         * modules/mbfile: New file.
104771         * MODULES.html.sh (Extended multibyte and wide character utilities):
104772         Add mbfile.
104774 2005-08-16  Bruno Haible  <bruno@clisp.org>
104776         * modules/mbchar: New file.
104777         * MODULES.html.sh (Extended multibyte and wide character utilities):
104778         New section.
104780 2005-08-16  Bruno Haible  <bruno@clisp.org>
104782         * m4/tls.m4: New file, from GNU gettext.
104784 2005-08-16  Bruno Haible  <bruno@clisp.org>
104786         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
104787         always.
104788         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
104790 2005-08-16  Bruno Haible  <bruno@clisp.org>
104792         * m4/mbiter.m4: New file.
104794 2005-08-16  Bruno Haible  <bruno@clisp.org>
104796         * m4/mbfile.m4: New file.
104798 2005-08-16  Bruno Haible  <bruno@clisp.org>
104800         * m4/mbchar.m4: New file.
104802 2005-08-16  Bruno Haible  <bruno@clisp.org>
104804         * lib/tls.h: New file, from GNU gettext.
104805         * lib/tls.c: New file, from GNU gettext.
104807 2005-08-16  Bruno Haible  <bruno@clisp.org>
104809         * lib/strnlen1.h: New file.
104810         * lib/strnlen1.c: New file.
104812 2005-08-16  Bruno Haible  <bruno@clisp.org>
104814         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
104815         (mbi_init): Update.
104816         (mbi_avail, mbi_advance): Let the iteration end before the terminating
104817         NUL byte, not after it.
104819 2005-08-16  Bruno Haible  <bruno@clisp.org>
104821         * lib/strcase.h (strcasecmp): Add note in comments.
104822         * lib/strncasecmp.c: Use code from strcasecmp.c.
104823         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
104824         (strcasecmp): Work correctly in multibyte locales.
104826 2005-08-16  Bruno Haible  <bruno@clisp.org>
104828         * lib/mbiter.h: New file.
104830 2005-08-16  Bruno Haible  <bruno@clisp.org>
104832         * lib/mbfile.h: New file.
104834 2005-08-16  Bruno Haible  <bruno@clisp.org>
104836         * lib/mbchar.h: New file.
104837         * lib/mbchar.c: New file.
104839 2005-08-16  Bruno Haible  <bruno@clisp.org>
104841         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
104842         the valid ones. Makes the comparison operations transitive:
104843         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
104844         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
104846 2005-08-15  Simon Josefsson  <jas@extundo.com>
104848         * modules/ssize_t (License): Change to 'unlimited'.
104850         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
104852 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
104854         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
104855         Add comments for each pending glibc patch.
104857 2005-08-15  Bruno Haible  <bruno@clisp.org>
104859         * lib/regex.h (__restrict_arr): Don't define to __restrict if
104860         __cplusplus is defined.
104862 2005-08-14  Jim Meyering  <jim@meyering.net>
104864         Sync from coreutils.
104866         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
104867         Use the hash-table-based cycle-detection code not just when
104868         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
104869         Reported by James Youngman in
104870         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00011.html>.
104871         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
104872         FTS_TIGHT_CYCLE_CHECK.
104873         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
104874         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
104875         once again.
104876         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
104877         * lib/fts.c (fd_safer): Remove decl.
104878         Include fcntl--.h rather than unistd-safer.h
104879         (fts_safe_changedir): Don't call fd_safer; no longer needed
104880         now that we include fcntl--.h.
104882 2005-08-12  Simon Josefsson  <jas@extundo.com>
104884         * modules/getndelim2: Use ssize_t module.
104885         * modules/getnline: Likewise.
104886         * modules/safe-read: Likewise.
104887         * modules/xreadlink: Likewise.
104889         * modules/ssize_t: New file.
104891 2005-08-12  Simon Josefsson  <jas@extundo.com>
104893         * m4/readline.m4: Look for termcap, curses or ncurses if required.
104895 2005-08-12  Simon Josefsson  <jas@extundo.com>
104897         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
104898         ssize_t.
104900 2005-08-12  Simon Josefsson  <jas@extundo.com>
104902         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
104903         readline, getdelim and check_version.
104904         (Support for systems lacking ISO C 99: Sizes of integer types):
104905         Add size_max.
104907 2005-08-12  Bruno Haible  <bruno@clisp.org>
104909         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
104911 2005-08-11  Simon Josefsson  <jas@extundo.com>
104913         * modules/readline: New file.
104915         * modules/strnlen (Files): Add strnlen.h.
104917 2005-08-11  Simon Josefsson  <jas@extundo.com>
104919         * m4/readline.m4: New file.
104921 2005-08-11  Simon Josefsson  <jas@extundo.com>
104923         * lib/readline.h, readline.c: New file.
104925 2005-08-11  Simon Josefsson  <jas@extundo.com>
104927         * doc/gnulib.texi (Initial import, Finishing touches): Mention
104928         gl_AVOID.
104930 2005-08-11  Bruno Haible  <bruno@clisp.org>
104932         * lib/strnlen.h (strnlen): Change parameter name to match comment.
104934 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
104936         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
104938 2005-08-10  Simon Josefsson  <jas@extundo.com>
104940         * tests/test-iconvme.c: New file.
104942 2005-08-10  Simon Josefsson  <jas@extundo.com>
104944         * m4/strnlen.m4: New file.
104946         * m4/strndup.m4: Don't check for strnlen declaration, done in
104947         strnlen.m4.
104949 2005-08-10  Simon Josefsson  <jas@extundo.com>
104951         * lib/strndup.c: Use strnlen.h.
104953         * lib/strnlen.h: New file.
104955 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
104957         * README: Typos.
104959 2005-08-02  Simon Josefsson  <jas@extundo.com>
104961         * modules/readline: New file.
104963 2005-08-02  Simon Josefsson  <jas@extundo.com>
104965         * modules/getdelim: New file.
104967         * modules/getline: Rewrite, don't use getndelim2.
104969 2005-08-02  Simon Josefsson  <jas@extundo.com>
104971         * m4/getline.m4: Separate out getdelim stuff into separate module.
104973         * m4/getdelim.m4: New file.
104975 2005-08-02  Simon Josefsson  <jas@extundo.com>
104977         * lib/getline.h, getline.c: Rewrite.
104979         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
104981 2005-07-31  Bruno Haible  <bruno@clisp.org>
104983         * lib/lock.h (gl_lock_initializer): New macro.
104984         (gl_lock_define_initialized): Use it.
104985         (gl_rwlock_initializer): New macro.
104986         (gl_rwlock_define_initialized): Use it.
104987         (gl_recursive_lock_initializer): New macro.
104988         (gl_recursive_lock_define_initialized): Use it.
104990 2005-07-30  Karl Berry  <karl@gnu.org>
104992         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
104993         Report from Ben Pfaff, regarding getopt.
104995 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
104997         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
104998         normal way.
104999         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
105000         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
105001         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
105002         (gl_GETOPT): Use the new macros.  Most of the implementation
105003         is moved to the new macros.  This is for programs like Emacs
105004         that don't want all the functionality of gl_GETOPT.
105006 2005-07-26  Bruno Haible  <bruno@clisp.org>
105008         * m4/lock.m4: Update from GNU gettext.
105010 2005-07-26  Bruno Haible  <bruno@clisp.org>
105012         * lib/lock.h: Update from GNU gettext.
105013         * lib/lock.c: Update from GNU gettext.
105015 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
105017         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
105018         obsolescent AC_TRY_RUN.  Include the default includes files, for
105019         'exit'.
105021 2005-07-24  Bruno Haible  <bruno@clisp.org>
105023         * modules/visibility: New file.
105024         * MODULES.html.sh (Misc): Add visibility.
105026 2005-07-24  Bruno Haible  <bruno@clisp.org>
105028         * m4/visibility.m4: New file.
105030 2005-07-24  Bruno Haible  <bruno@clisp.org>
105032         * doc/visibility.texi: New file.
105034 2005-07-22  Bruno Haible  <bruno@clisp.org>
105036         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
105037         $(ALLOCA_H), redundant through BUILT_SOURCES.
105038         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
105039         redundant through BUILT_SOURCES.
105040         * modules/byteswap (Makefile.am): Remove explicit dependency on
105041         $(BYTESWAP_H), redundant through BUILT_SOURCES.
105042         * modules/fnmatch (Makefile.am): Remove explicit dependency on
105043         $(FNMATCH_H), redundant through BUILT_SOURCES.
105044         * modules/getopt (Makefile.am): Remove explicit dependency on
105045         $(GETOPT_H), redundant through BUILT_SOURCES.
105046         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
105047         redundant through BUILT_SOURCES.
105048         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
105049         redundant through BUILT_SOURCES.
105050         * modules/stdbool (Makefile.am): Remove explicit dependency on
105051         $(STDBOOL_H), redundant through BUILT_SOURCES.
105052         * modules/stdint (Makefile.am): Remove explicit dependency on
105053         $(STDINT_H), redundant through BUILT_SOURCES.
105054         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
105055         Remove explicit dependency on $(SYSEXITS_H).
105056         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
105058 2005-07-18  Simon Josefsson  <jas@extundo.com>
105060         * lib/check-version.c (check_version): Accept identical versions too.
105062 2005-07-18  Bruno Haible  <bruno@clisp.org>
105064         * modules/lock: New file.
105065         * MODULES.html.sh (Multithreading): New section.
105067 2005-07-18  Bruno Haible  <bruno@clisp.org>
105069         * m4/lock.m4: New file, from GNU gettext.
105071 2005-07-18  Bruno Haible  <bruno@clisp.org>
105073         * lib/lock.h: New file, from GNU gettext.
105074         * lib/lock.c: New file, from GNU gettext.
105076 2005-07-18  Bruno Haible  <bruno@clisp.org>
105078         * lib/lock.h (gl_once_t): New type.
105079         (gl_once_define, gl_once): New macros.
105080         * lib/lock.c (fresh_once): New variable.
105081         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
105082         functions.
105084 2005-07-16  Simon Josefsson  <jas@extundo.com>
105086         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
105087         workaround, suggested by Bruno.
105089 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
105091         * modules/xalloc (Depends-on): Add xalloc-die.
105092         * modules/xvasprintf (Depends-on): Add xalloc-die.
105094 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
105096         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
105097         with a minor change.
105099 2005-07-15  Bruno Haible  <bruno@clisp.org>
105101         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
105102         When using lib/poll.c, define poll as rpl_poll.
105104 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
105106         * modules/argp (Depends-on): Remove unlocked-io.
105108 2005-07-14  Derek Price  <derek@ximbiot.com>
105110         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
105111         for glob symlink bug.
105113 2005-07-14  Bruno Haible  <bruno@clisp.org>
105115         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
105116         Instead, test for *_unlocked function declarations directly.
105118 2005-07-11  Simon Josefsson  <jas@extundo.com>
105120         * modules/size_max: New file.
105122         * modules/xsize: Depend on size_max module for size_max.m4.
105124 2005-07-11  Simon Josefsson  <jas@extundo.com>
105126         * lib/size_max.h: New file.
105128 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
105130         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
105131         copyright symbol and the year.
105132         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
105133         (version_etc_va): Use parameterized copyright notice.
105134         Reword to conform to the current GNU coding standards.
105136 2005-07-11  Karl Berry  <karl@gnu.org>
105138         * doc/gnulib.texi (Quoting): new node.
105139         (Initial import): more info, from Patrice.
105141 2005-07-11  Bruno Haible  <bruno@clisp.org>
105143         * gnulib-tool (func_usage): Document option --avoid.
105144         (Command line options): Handle --avoid.
105145         (func_acceptable): New function.
105146         (func_modules_transitive_closure): Use it.
105148 2005-07-11  Bruno Haible  <bruno@clisp.org>
105150         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
105151         Reported by Jim Meyering.
105153 2005-07-10  Bruno Haible  <bruno@clisp.org>
105155         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
105156         Needed when size_t is smaller than 'unsigned int'.
105157         Reported by Paul Eggert.
105159 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
105161         * modules/argp (Depends-on): Add unlocked-io
105163 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
105165         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
105166         block of defines.
105168 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
105170         * config/srclist.txt: Comment out regcomp.c, since we have a porting
105171         fix now.
105173 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
105174         and Paul Eggert  <eggert@cs.ucla.edu>
105176         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
105177         in wint_t, not wchar_t.  Remove now-unnecessary cast.
105179 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
105181         * modules/regex (Files): Add lib/regex_internal.c,
105182         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
105183         (Depends-on): Add extensions.
105184         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
105186 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
105188         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
105189         pathconf.
105190         * m4/same.m4 (gl_SAME): Likewise.
105191         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
105193         * m4/regex.m4: Adjust to new libc regex implementation.
105194         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
105195         all the .c and .h parts of (the new) regex.
105196         Quote the m4 stuff better.
105197         Check for RE_ICASE bug of old gnulib.
105198         Check for REG_STARTEND of recent libc.
105199         Rename local variables from jm_* to gl_*.
105200         Quote operand of "test -f".
105201         Say "recent enough" version of libc, not "version 2".
105202         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
105203         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
105204         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
105205         Remove check for btowc, isascii.
105206         Require AM_LANGINFO_CODESET.
105208 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
105210         * lib/regex.c, regex.h: Sync from libc.
105211         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
105212         * lib/regexec.c:
105213         New files, synced from libc, except that regex_internal.h
105214         currently has a small porting fix.
105216 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
105218         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
105219         regex_internal.c, regexec.c.
105220         Add regex_internal.h too, but as a comment, since the libc version
105221         is currently broken in gnulib mode.
105223 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
105225         Support programs like Emacs that use gnulib but not gettext.
105226         * MODULES.html.sh (Internationalization functions): Add gettext-h.
105227         * modules/gettext-h: New file.
105228         * modules/gettext (Files): Remove lib/gettext.h.
105229         (Depends-on): Add gettext-h.
105230         (Makefile.am): Remove lib_SOURCES.
105231         * modules/argmatch, modules/c-stack, modules/closeout:
105232         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
105233         * modules/execute, modules/file-type, modules/getaddrinfo:
105234         * modules/getopt, modules/human, modules/javacomp:
105235         * modules/javaexec, modules/mkdir-p, modules/obstack:
105236         * modules/openat, modules/pagealign_alloc, modules/pipe:
105237         * modules/quotearg, modules/regex, modules/rpmatch:
105238         * modules/unicodeio, modules/userspec, modules/version-etc:
105239         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
105240         * modules/xsetenv:
105241         Depend on gettext-h, not gettext.
105243 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
105245         * gnulib-tool (func_import): Add support for 'public domain' license.
105246         * modules/alloca, modules/atexit, modules/memmove:
105247         Now public domain, not GPL.
105248         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
105249         * modules/realloc, modules/strerror, modules/strtod:
105250         Now LGPL, not GPL.
105252 2005-07-05  Bruno Haible  <bruno@clisp.org>
105254         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
105255         autoconf CVS. Needed for mingw.
105257 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
105259         Remove the dependency of the strftime module on the tzset module.
105260         * modules/strftime (Depends-on): Remove dependency on tzset.
105262 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
105264         Remove the dependency of the strftime module on the tzset module.
105265         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
105266         gl_FUNC_TZSET_CLOBBER.
105268 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
105270         Remove the dependency of the strftime module on the tzset module.
105271         * lib/strftime.c (my_strftime)
105272         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
105273         Copy the input structure, to work around some of the bug with
105274         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
105275         Solaris releases, you should also use the tzset module, but we won't
105276         require it as a dependency any more since we don't want LGPLed code
105277         to depend on GPLed code.
105279 2005-07-02  Jim Meyering  <jim@meyering.net>
105281         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
105282         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
105283         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
105284         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
105286 2005-07-02  Jim Meyering  <jim@meyering.net>
105288         * lib/backupfile.c (backup_args): Change a `0' to NULL.
105290 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
105292         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
105293         declares only 'struct timespec;' (!).
105295 2005-07-01  Jim Meyering  <jim@meyering.net>
105297         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
105298         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
105299         * lib/save-cwd.c, tempname.c:
105300         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
105301         and don't include <sys/file.h>).
105303 2005-06-29  Jim Meyering  <jim@meyering.net>
105305         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
105306         type name.  Use the variable name instead.
105307         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
105308         Likewise.
105310 2005-06-28  Simon Josefsson  <jas@extundo.com>
105312         * modules/check-version (Files): Add check-version.m4.
105314 2005-06-28  Simon Josefsson  <jas@extundo.com>
105316         * m4/check-version.m4: New file, suggested by Jim Meyering
105317         <jim@meyering.net>.
105319 2005-06-28  Simon Josefsson  <jas@extundo.com>
105321         * lib/check-version.h, lib/check-version.c: New files.
105323 2005-06-28  Simon Josefsson  <jas@extundo.com>
105325         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
105326         collision with global variable.  Better indentation.  Don't
105327         increment buffer pointer beyond buffer end.  Based on comments
105328         from Paul Eggert <eggert@cs.ucla.edu>.
105330         * lib/base64.h: Indent.
105332 2005-06-28  Simon Josefsson  <jas@extundo.com>
105334         * doc/gnulib.texi (Library version handling): New section.
105336 2005-06-28  Jim Meyering  <jim@meyering.net>
105338         * check-module (find_included_lib_files): Hard-code another
105339         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
105340         but modules/fts-lgpl (correctly) does not list those files.
105342         * modules/canonicalize (Files): Add lib/pathmax.h.
105344 2005-06-25  Simon Josefsson  <jas@extundo.com>
105346         * modules/check-version: New file.
105348 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
105350         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
105351         initializer of struct addrinfo, as an indication that we don't
105352         care how many members the structure has.
105354 2005-06-24  Derek Price  <derek@ximbiot.com>
105355         and Bruno Haible  <bruno@clisp.org>
105357         Remove stat module & update lstat.
105358         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
105359         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
105360         * m4/stat.m4: Remove this file.
105362 2005-06-24  Derek Price  <derek@ximbiot.com>
105363         and Bruno Haible  <bruno@clisp.org>
105365         Remove stat module & update lstat.
105366         * lib/stat.c: Remove this file...
105367         (slash_aware_lstat): ...moving this content and its support...
105368         * lib/lstat.c (rpl_lstat): ...into here.
105369         * lib/lstat.h: New file.
105371 2005-06-24  Derek Price  <derek@ximbiot.com>
105372         and Bruno Haible  <bruno@clisp.org>
105374         Remove stat module & update lstat.
105375         * config/srclist.txt (libc sources): Remove stat.
105377 2005-06-24  Derek Price  <derek@ximbiot.com>
105378         and Bruno Haible  <bruno@clisp.org>
105380         Remove stat module & update lstat.
105381         * MODULES.html.sh (stat): Remove.
105382         * MODULES.html: Regenerated.
105383         * modules/lstat (Description): Correct function name.
105384         (Files): Add "lstat.h".
105385         (Depends-on): Remove stat, add xalloc, stat-macros.
105386         * modules/stat: Remove this file.
105387         (Include): Add "lstat.h", remove <sys/stat.h>.
105389 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
105391         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
105392         (ranged_convert): Don't save conversion in a temporary struct.
105393         This causes a warning with GCC 4.0.0, and anyway in the typical
105394         case it's not worth the extra 100 bytes or so of code.
105395         (ranged_convert, __mktime_internal): When calling a function via a
105396         pointer P, use P () rather than (*P) (), as we now assume C89 or
105397         better.
105399 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
105401         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
105402         "who -r" failed to give output.  Problem reported by Tim Waugh.
105404         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
105405         (xcalloc): Use it to avoid needless tests.
105406         Problem reported by Jim Meyering.
105408 2005-06-20  Derek Price  <derek@ximbiot.com>
105410         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
105411         unnecessary for Autoconfs > 2.59c.
105413 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
105415         * lib/argp.h (__option_is_short): Check upper limit of
105416         __key. Isprint() requires its argument to have the value
105417         of an unsigned char or EOF.
105419 2005-06-16  Jim Meyering  <jim@meyering.net>
105421         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
105422         when either N or S is zero.
105424 2005-06-16  Derek Price  <derek@ximbiot.com>
105426         * m4/bison.m4: Declare YACC & YFLAGS precious.
105428 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
105430         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
105431         multibyte string or pattern, fall back on unibyte matching.
105432         Problem reported by James Youngman.
105434 2005-06-08  Bruno Haible  <bruno@clisp.org>
105436         * modules/csharpcomp: New file.
105437         * MODULES.html.sh (C#): Add csharpcomp.
105439 2005-06-08  Bruno Haible  <bruno@clisp.org>
105441         * m4/csharpcomp.m4: New file, from GNU gettext.
105443 2005-06-08  Bruno Haible  <bruno@clisp.org>
105445         * lib/csharpcomp.h: New file, from GNU gettext.
105446         * lib/csharpcomp.c: New file, from GNU gettext.
105447         * lib/csharpcomp.sh.in: New file, from GNU gettext.
105449 2005-06-08  Bruno Haible  <bruno@clisp.org>
105451         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
105452         warning on mingw.
105454 2005-06-07  Derek Price  <derek@ximbiot.com>
105456         Sync from CVS.
105457         * lib/glob_.h: Indent nested #ifdef.
105459 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
105461         Sync from coreutils.
105462         Use "file name" when talking about file names, instead of "filename"
105463         or "path", as per the GNU coding standards.
105464         * lib/mkdir-p.c: Renamed from makepath.c.
105465         (make_dir_parents): Renamed from make_path.  All callers changed.
105466         * lib/mkdir-p.h: Likewise.  All includers changed.
105467         * lib/filenamecat.c: Renamed from path-concat.c.
105468         (file_name_concat): Renamed from path_concat.  All callers changed.
105469         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
105470         * lib/filenamecat.h: Likewise.  All includers changed.
105471         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
105472         in comments or local variable names.
105473         * lib/basename.c: Likewise.
105474         * lib/canonicalize.c, canonicalize.h: Likewise.
105475         * lib/dirname.c, dirname.h: Likewise.
105476         * lib/euidaccess.c: Likewise.
105477         * lib/exclude.c: Likewise
105478         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
105479         * lib/fsusage.c, fsuage.h: Likewise.
105480         * lib/fts.c, fts_.h: Likewise.
105481         * lib/getcwd.c: Likewise.
105482         * lib/getloadavg.c: Likewise.
105483         * lib/mkstemp.c: Likewise.
105484         * lib/mountlist.c, mountlist.h: Likewise.
105485         * lib/openat.c, openat.h: Likewise.
105486         * lib/readlink-stub.c: Likewise.
105487         * lib/readutmp.c, readutmp.h: Likewise.
105488         * lib/rename.c: Likewise.
105489         * lib/rmdir.c: Likewise.
105490         * lib/same.c: Likewise.
105491         * lib/savedir.c: Likewise.
105492         * lib/stripslash.c: Likewise.
105493         * lib/tempname.c: Likewise.
105494         * lib/xreadlink.c: Likewise.
105495         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
105496         All uses changed.
105497         * lib/exclude.h: Likewise.
105499         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
105500         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
105501         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
105502         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
105503         * lib/pathmax.h: Include <limits.h> unconditionally, since other
105504         files have been getting away with it for years (MORE/BSD 4.3
105505         is extinct now).
105506         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
105507         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
105509         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
105510         Define to 256, not 255, as per modern POSIX.
105512 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
105514         Sync from coreutils.
105515         Use "file name" when talking about file names, instead of "filename"
105516         or "path", as per the GNU coding standards.
105517         * MODULES.html.sh: mkdir-p renamed from makepath.
105518         filenamecat renamed from path-concat.
105519         * modules/filenamecat: Renamed from modules/path-concat.
105520         (Files): filenamecat.h and filenamecat.c renamed from
105521         path-concat.h and path-concat.c.
105522         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
105523         (Include): filenamecat.h, not path-concat.h.
105524         * modules/mkdir-p: Renamed from modules/makepath.
105525         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
105526         makepath.c.
105527         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
105528         (Include): mkdir-p.h, not makepath.h.
105530 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
105532         Sync from coreutils.
105533         * m4/mkdir-p.m4: Renamed from makepath.m4.
105534         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
105535         Rename files from makepath.c to mkdir-p.c, and from
105536         makepath.h to mkdir-p.h.
105537         * m4/filenamecat.m4: Renamed from path-concat.m4.
105538         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
105539         Rename files from path-concat.c to filenamecat.c,
105540         and from path-concat.h to filenamecat.h.
105541         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
105542         "file name" in local variables or comments.
105543         * m4/rename.m4: Likewise.
105545 2005-06-01  Bruno Haible  <bruno@clisp.org>
105547         * modules/csharpexec: New file.
105548         * MODULES.html.sh (C#): New section.
105550 2005-06-01  Bruno Haible  <bruno@clisp.org>
105552         * m4/csharp.m4: New file, from GNU gettext.
105553         * m4/csharpexec.m4: New file, from GNU gettext.
105555 2005-06-01  Bruno Haible  <bruno@clisp.org>
105557         * lib/csharpexec.h: New file, from GNU gettext.
105558         * lib/csharpexec.c: New file, from GNU gettext.
105559         * lib/csharpexec.sh.in: New file, from GNU gettext.
105561 2005-05-31  Derek Price  <derek@ximbiot.com>
105562             Paul Eggert  <eggert@cs.ucla.edu>
105564         Sync from cvs.
105565         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
105567 2005-05-31  Derek Price  <derek@ximbiot.com>
105568             Paul Eggert  <eggert@cs.ucla.edu>
105570         Sync from cvs.
105571         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
105573 2005-05-29  Derek Price  <derek@ximbiot.com>
105575         * config/srclist.txt (glob_.h, glob.c): Add these files.
105577 2005-05-29  Derek Price  <derek@ximbiot.com>
105579         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
105580         * modules/glob: New file.
105581         * modules/getlogin_r: Add link to POSIX spec in description.
105583 2005-05-29  Derek Price  <derek@ximbiot.com>
105584             Paul Eggert  <eggert@cs.ucla.edu>
105586         * m4/glob.m4: New file.
105588 2005-05-29  Derek Price  <derek@ximbiot.com>
105589             Paul Eggert  <eggert@cs.ucla.edu>
105591         * lib/glob_.h, lib/glob.c: New files.
105593 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
105595         * modules/fts (Files): Remove m4/inttypes-pri.m4.
105596         * modules/fts-lgpl (Depends-on): Remove gettext.
105598 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
105600         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
105601         and don't require gt_INTTYPES_PRI.
105603 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
105605         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
105607         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
105608         the configuration hassle isn't worth it.
105609         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
105610         (LONGEST_MODIFIER, PRIuMAX): Remove.
105612 2005-05-27  Bruno Haible  <bruno@clisp.org>
105614         * lib/getlogin_r.h: Remove second include of <stddef.h>.
105616 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
105618         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
105619         _POSIX_PTHREAD_SEMANTICS for Solaris.
105621 2005-05-25  Derek Price  <derek@ximbiot.com>
105623         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
105625 2005-05-25  Derek Price  <derek@ximbiot.com>
105626             Paul Eggert  <eggert@cs.ucla.edu>
105628         * modules/getlogin_r, m4/getlogin_r.m4: New files.
105629         * lib/getlogin_r.c, getlogin_r.h: New files.
105631 2005-05-25  Bruno Haible  <bruno@clisp.org>
105632             Derek Price  <derek@ximbiot.com>
105634         * lib/getlogin_r.h: Simplify API documentation.
105636 2005-05-23  Derek Price  <derek@ximbiot.com>
105638         * modules/minmax (Files): Add m4/minmax.m4.
105639         (configure.ac): Add gl_MINMAX.
105641 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
105643         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
105644         so that unistd-safer.h (GPL'ed code) need not be included.
105646 2005-05-22  Bruno Haible  <bruno@clisp.org>
105648         * m4/minmax.m4: New file.
105649         Based on a patch by Derek Price <derek@ximbiot.com>.
105651 2005-05-22  Bruno Haible  <bruno@clisp.org>
105653         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
105654         (INT64_MIN): Fix definition.
105655         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
105657         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
105658         NEED_SIGNED_INT_TYPES.
105660         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
105661         HAVE_SYSTEM_INTTYPES.
105663 2005-05-22  Bruno Haible  <bruno@clisp.org>
105665         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
105666         Also include <sys/param.h> if it defines MIN, MAX.
105667         Based on a patch by Derek Price <derek@ximbiot.com>.
105669 2005-05-21  Jim Meyering  <jim@meyering.net>
105671         * modules/fts (Files): Add m4/inttypes-pri.m4.
105672         (Depends-on): Add lstat and remove gettext.  Alphabetize.
105674 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
105676         New fts module.
105677         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
105678         (setup_dir, free_dir): New functions.
105679         (enter_dir, leave_dir): Define trivial
105680         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
105681         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
105682         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
105683         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
105684         Move to fts-cycle.c.
105685         (fts_open): Use setup_dir.
105686         (fts_close): Use free_dir.
105687         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
105688         This adds a label and some gotos, but the alternatives were messier.
105689         Check for memory allocation failure when entering a dir.
105690         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
105691         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
105692         (FTS): New member fts_cycle, that is a union that contains the
105693         old active_dir_ht and cycle_state.  All uses changed to mention
105694         fts_cycle.ht and fts_cycle.state.
105695         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
105696         fts.c, with the following changes:
105697         (setup_dir, free_dir): New functions.
105698         (enter_dir): Now returns bool.  Return true if successful, false
105699         if memory exhausted.  All callers changed.
105700         Do not bother partly cleaning up on
105701         memory allocation failure; that is free_dir's job.
105702         However, free ad if hash_insert fails, to avoid memory leak.
105703         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
105704         fts->fts_options to see which union member to use.
105706 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
105708         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
105709         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
105711 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
105713         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
105715 2005-05-20  Jim Meyering  <jim@meyering.net>
105717         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
105718         Now a macro, to pacify GCC.
105720 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
105722         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
105723         of -1.
105725 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
105727         * lib/chown.c (rpl_chown): Return -1 on failure.
105729 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
105731         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
105732         Don't check for stddef.h.
105733         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
105734         don't use its results.
105735         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
105736         since we include them unconditionally.  Don't require
105737         AM_STDBOOL_H, since stdbool is a prerequisite.
105738         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
105739         since we assume C89 or better.
105740         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
105741         as we don't use their results.
105742         Don't check for fchdir, memmove, memset, strrchr, as we use
105743         them unconditionally.
105744         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
105745         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
105747 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
105749         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
105750         Include <stddef.h> unconditionally, since we assume C89 now.
105751         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
105752         * lib/fts.c: Include fts_.h first, to check interface.
105753         Do not include intprops.h; no longer needed.
105754         Include cycle-check.h and hash.h, since fts_.h no longer does.
105755         Remove unnecessary casts of closedir to void.
105756         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
105757         decide whether to decrement nlinks.
105758         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
105759         (FTS): Use struct hash_table * instead of Hash_table, so that
105760         we no longer need to include hash.h here.
105762 2005-05-18  Jim Meyering  <jim@meyering.net>
105764         * modules/dirfd (License): Change to LGPL.  Most of the code
105765         is already in the public domain.
105767 2005-05-18  Jim Meyering  <jim@meyering.net>
105769         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
105770         Reported by Yoann Vandoorselaere.
105772 2005-05-17  Jim Meyering  <jim@meyering.net>
105774         * m4/fts.m4: New file, from coreutils.
105776 2005-05-17  Jim Meyering  <jim@meyering.net>
105778         * lib/fts.c, lib/fts_.h: New files, from coreutils.
105780 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
105782         Sync from coreutils.
105783         * m4/unlinkdir.m4: New file.
105785 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
105787         Sync from coreutils.
105788         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
105789         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
105790         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
105791         White space changes only.
105792         * lib/makepath.c (make_path): Port to hosts where leading "//" is
105793         special.
105794         * lib/yesno.c: Include getline.h, not ctype.h.
105795         (yesno): Don't remove leading white space; POSIX doesn't allow it.
105796         Use getline to remove arbitrary restriction on response length.
105798 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
105800         * config/srclist-update: Spell out "Street" in FSF postal
105801         mail address; this is the style the FSF seems to prefer.
105803         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
105804         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
105805         this updates FSF postal mail address.
105807         Sync from coreutils.
105808         * modules/unlinkdir: New file.
105809         * modules/yesno (Depends-on): Add getline.
105810         * MODULES.html.sh (File system functions): Add unlinkdir.
105812 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
105814         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
105815         lib/strsep.h:
105816         Change the initial comment to refer to GPL, not LGPL.
105817         gnulib-tool will change it to LGPL as needed.
105819         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
105820         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
105821         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
105822         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
105823         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
105824         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
105825         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
105826         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
105827         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
105828         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
105829         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
105830         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
105831         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
105832         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
105833         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
105834         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
105835         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
105836         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
105837         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
105838         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
105839         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
105840         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
105841         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
105842         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
105843         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
105844         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
105845         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
105846         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
105847         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
105848         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
105849         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
105850         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
105851         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
105852         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
105853         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
105854         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
105855         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
105856         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
105857         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
105858         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
105859         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
105860         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
105861         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
105862         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
105863         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
105864         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
105865         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
105866         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
105867         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
105868         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
105869         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
105870         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
105871         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
105872         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
105873         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
105874         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
105875         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
105876         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
105877         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
105878         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
105879         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
105880         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
105881         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
105882         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
105883         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
105884         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
105885         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
105886         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
105887         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
105888         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
105889         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
105890         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
105891         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
105892         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
105893         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
105894         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
105895         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
105896         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
105897         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
105898         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
105899         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
105900         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
105901         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
105902         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
105903         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
105904         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
105905         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
105906         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
105907         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
105908         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
105909         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
105910         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
105911         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
105912         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
105913         lib/yesno.c, lib/yesno.h:
105914         Update FSF postal mail address.
105916 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
105918         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
105919         tests/test-memmem.c, tests/test-stpncpy.c:
105920         Update FSF postal mail address.
105922 2005-05-13  Bruno Haible  <bruno@clisp.org>
105924         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
105925         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
105926         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
105927         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
105928         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
105929         Add support for 64-bit integers in the MSVC compiler.
105931 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
105933         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
105935 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
105937         * gnulib-tool (func_import): Sort and uniquify recommended includes.
105939 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
105941         * doc/getdate.texi (General date syntax): Don't say that date
105942         date --iso-8601=ns generates acceptable dates; it doesn't yet.
105943         Problem reported by Nic Ferrier.
105945 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
105947         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
105948         specified in ai_socktype. Fix invalid ai_protocol
105949         check. ai_protocol is usually set to 0 or depending on
105950         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
105951         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
105952         ai_socktype / ai_protocol in the returned addrinfo structure.
105954 2005-05-10  Simon Josefsson  <jas@extundo.com>
105956         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
105957         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
105959 2005-05-10  Karl Berry  <karl@gnu.org>
105961         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
105962         (from http://www.gnu.org/licenses).
105963         * doc/COPYING.LIB: also rename to COPYING.LESSER.
105964         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
105965         fdl.texi suffices.
105967 2005-05-10  Karl Berry  <karl@gnu.org>
105969         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
105970         (COPYING.DOC): remove.
105972         * config/srclist-update: new FSF address.
105974 2005-05-10  Derek Price  <derek@ximbiot.com>
105976         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
105977         possible.
105979 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
105980             Bruno Haible  <bruno@clisp.org>
105982         * modules/inet_ntop: New file.
105983         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
105984         inet_ntop.
105986 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
105987             Bruno Haible  <bruno@clisp.org>
105989         * m4/inet_ntop.m4: New file.
105991 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
105992             Bruno Haible  <bruno@clisp.org>
105994         * lib/inet_ntop.h: New file.
105995         * lib/inet_ntop.c: New file, from glibc with modifications.
105997 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
105999         * modules/time_r (License): Change to LGPL.
106000         * modules/extensions (License): Change to LGPL.  Actually,
106001         the license is more permissive than that, but currently gnulib-tool
106002         doesn't know how to handle more-permissive licenses.
106004         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
106005         Problem reported by Dave Love.
106007 2005-05-08  Jim Meyering  <jim@meyering.net>
106009         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
106010         blank.
106012 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
106014         * modules/argmatch (Depends-on): Add stdbool.
106015         * modules/backupfile (Depends-on): Likewise.
106016         * modules/chdir-long (Depends-on): Likewise.
106017         * modules/closeout (Depends-on): Likewise.
106018         * modules/cycle-check (Depends-on): Likewise.
106019         * modules/dirname (Depends-on): Likewise.
106020         * modules/fnmatch (Depends-on): Likewise.
106021         * modules/fsusage (Depends-on): Likewise.
106022         * modules/fwriteerror (Depends-on): Likewise.
106023         * modules/getcwd (Depends-on): Likewise.
106024         * modules/getloadavg (Depends-on): Likewise.
106025         * modules/hard-locale (Depends-on): Likewise.
106026         * modules/makepath (Depends-on): Likewise.
106027         * modules/mountlist (Depends-on): Likewise.
106028         * modules/nanosleep (Depends-on): Likewise.
106029         * modules/posixtm (Depends-on): Likewise.
106030         * modules/quotearg (Depends-on): Likewise.
106031         * modules/readtokens (Depends-on): Likewise.
106032         * modules/readtokens0 (Depends-on): Likewise.
106033         * modules/readutmp (Depends-on): Likewise.
106034         * modules/save-cwd (Depends-on): Likewise.
106035         * modules/strftime (Depends-on): Likewise.
106036         * modules/userspec (Depends-on): Likewise.
106037         * modules/utimecmp (Depends-on): Likewise.
106038         * modules/xgetcwd (Depends-on): Likewise.
106039         * modules/xnanosleep (Depends-on): Likewise.
106040         * modules/xstrtod (Depends-on): Likewise.
106041         * modules/yesno (Depends-on): Likewise.
106043 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
106045         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
106046         needless checks.
106048 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
106050         Merge from coreutils.  Among other things,
106051         add bulletproofing for cases where stdin, stdout, or stderr are closed.
106052         * lib/fd-safer.c: New file.
106053         * lib/fcntl-safer.h, open-safer.c: Remove.
106054         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
106055         * lib/dup-safer.c: Include unistd-safer.h first.
106056         Don't include errno.h.
106057         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
106058         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
106059         * lib/file-type.c: Rely on file-type.h change.
106060         * lib/getloadavg.c: Include unistd-safer.h.
106061         (getloadavg): Use safer open.
106062         * lib/getusershell.c: Include "stdio-safer.h".
106063         (getusershell): Use safer fopen.
106064         * lib/long-options.c (long_options): Use NULL rather than 0.
106065         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
106066         'free'.
106067         * lib/modechange.c: Likewise.
106068         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
106069         (MODE_DONE): New constant.
106070         (struct mode_change): Remove 'next' member.
106071         (make_node_op_equals): New function; like the old one of the
106072         same name, except it allocates an array.
106073         (mode_compile, mode_create_from_ref): Use it.
106074         (mode_compile): Allocate result as an array, not a linked list.
106075         Parse octal string ourself, so that we catch mistakes like "+0".
106076         (mode_adjust): Arg is an array, not a linked list.
106077         * lib/modechange.c: Include stat-macros.h, xalloc.h.
106078         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
106079         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
106080         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
106081         Remove.  This is now stat-macros.h's job.
106082         (talloc): Remove.  All callers replaced by xalloc, so that
106083         our invokers don't have to worry about reporting memory failures.
106084         (make_node_op_equals): Remove.
106085         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
106086         New constants.
106087         (struct mode_change): Moved here from modechange.h.
106088         (mode_append_entry): Remove.
106089         (mode_compile): Remove MASKED_OPS arg, since it encouraged
106090         apps to have incorrect behavior.  Use simpler algorithm for head
106091         and tail.  Don't futz with umask; that's now the job of mode_adjust.
106092         Detect more invalid usages rather than having somewhat-random behavior.
106093         Don't insert an "a=" action, as that leads to incorrect behavior.
106094         (mode_compile, mode_create_from_ref): Return NULL on error instead
106095         of an enum, since now there's only one way to have an error.  All
106096         callers changed.
106097         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
106098         at the correct time.  Simplify calculation of "+u" and its ilk.
106099         Don't mishandle "+X".
106100         (mode_free): Remove "register" and localize decls.
106101         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
106102         (struct mode_change): Move to modechange.c; callers don't
106103         need to see this stuff.
106104         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
106105         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
106106         (mode_change, mode_adjust): Reflect the new signatures noted above.
106107         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
106108         that might redefine system include files.
106109         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
106110         (my_usleep): Use NULL rather than (void *) 0.
106111         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
106112         Use siginterrupt to specify that system calls should be interrupted.
106113         (rpl_nanosleep): Move initialization of suspended closer to call of
106114         my_usleep.
106115         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
106116         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
106117         (desirable_utmp_entry): New function.
106118         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
106119         using x2nrealloc, to simplify logic.
106120         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
106121         size calculation.  Do not assume utmp file is a regular file.
106122         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
106123         (READ_UTMP_CHECK_PIDS): New constant.
106124         * lib/save-cwd.c: Include unistd-safer.h.
106125         (save_cwd): Use fd_safer.
106126         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
106127         [!_LIBC] Include "stat-macros.h" instead.
106128         * lib/unistd-safer.h (fd_safer): New decl.
106130 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
106132         * modules/getloadavg (Depends-on): Add unistd-safer.
106133         * modules/getusershell (Depends-on): Add stdio-safer.
106134         * modules/lstat (Depends-on): Remove xalloc.
106135         * modules/mkstemp (Depends-on): Add stat-macros.
106136         * modules/modechange (Depends-on): Remove xstrtol.
106137         Add stat-macros, xalloc.
106138         * modules/save-cwd (Depends-on): Add unistd-safer.
106139         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
106140         * modules/unistd-safer (Files): Add lib/fd-safer.c
106141         (Makefile.am): Remove lib_SOURCES.
106143         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
106144         Remove fcntl-safer; unistd-safer supersedes it.
106146 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
106148         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
106149         AC_HEADER_STAT.
106150         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
106151         (gl_PREREQ_CHOWN): Remove.
106152         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
106153         it.  Don't require AC_HEADER_STAT.
106154         (gl_PREREQ_LSTAT): Remove.
106155         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
106156         Don't require AC_HEADER_STAT.
106157         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
106158         (gl_PREREQ_RMDIR): Remove.
106159         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
106160         mention stat-macros.h or AC_HEADER_STAT, since we'll make
106161         the stat-macros module a prerequisite.
106162         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
106163         * m4/filemode.m4 (gl_FILEMODE): Likewise.
106164         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
106165         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
106166         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
106167         variable names.
106168         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
106169         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
106170         variable prefixes.
106171         * m4/fcntl-safer.m4: Remove.
106172         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
106173         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
106174         Invoke gl_PREREQ_FD_SAFER.
106175         (gl_PREREQ_FD_SAFER): New macro.
106176         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
106177         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
106178         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
106179         Remove duplicate call to AC_LIBOBJ(readutmp).
106180         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
106182         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
106183         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
106185 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
106187         * MODULES.html.sh (Misc): Add byteswap.
106189 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
106191         * modules/getcwd (Depends-on): Add extensions.
106192         * modules/openat (Depends-on): Likewise.
106194 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
106196         * modules/byteswap: New file.
106198 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
106200         * m4/byteswap.m4: New file.
106202 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
106204         * lib/byteswap_.h: New file.
106206 2005-04-25  Karl Berry  <karl@gnu.org>
106208         * m4/gettext.m4: Update from GNU gettext 0.14.4.
106210 2005-04-25  Albert Chin  <china@thewrittenword.com>
106212         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
106213         Toolkit C bug.
106215 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
106217         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
106218         (func_ln_if_changed): Remove forcibly for no error message
106219         in case file does not exist.
106221 2005-04-19  Simon Josefsson  <jas@extundo.com>
106223         * gnulib-tool (Options): Make --symlink mean --symbolic.
106225 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
106227         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
106229 2005-04-16  Simon Josefsson  <jas@extundo.com>
106231         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
106233 2005-04-15  Simon Josefsson  <jas@extundo.com>
106235         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
106237 2005-04-15  Simon Josefsson  <jas@extundo.com>
106239         * gnulib-tool: Rename --symlink to --symbolic.
106241 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
106243         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
106244         symbolic links to files instead of copying/moving.  Add --aux-dir,
106245         specifying directory relative --dir where auxiliary build tools
106246         are placed.
106248 2005-04-14  Bruno Haible  <bruno@clisp.org>
106250         * modules/allocsa (License): Change to LGPL.
106251         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
106253 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
106255         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
106256         that "UTC +1 second" continues to work.  Problem reported
106257         by Dmitry V. Levin.
106258         (relunit_snumber): New rule.
106259         (relunit): Use it.
106261 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
106263         * lib/getdate.y (universal_time_zone_table): New constant.
106264         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
106265         universal_time_zone_table.
106266         (lookup_zone): Prefer universal_time_zone_table to
106267         local_time_zone_table, so that "GMT" time stamps are allowed in
106268         London during the summer.  Problem reported by Ian Abbott.
106270 2005-04-12  Jim Meyering  <jim@meyering.net>
106272         * lib/human.c (humblock): Set *options even when returning due to
106273         xstrtoumax conversion failure.  Thanks to a used-uninitialized
106274         warning from gcc-4.
106276 2005-04-09  Jim Meyering  <jim@meyering.net>
106278         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
106279         -Wuninitialized: initialize tm0.tm_year.
106281 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
106283         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
106284         count, since there's no maximum.  All uses changed.
106285         Add member dsts_seen.
106286         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
106287         not being INT_MAX.
106288         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
106289         Use pc_rels_seen to decide whether a date is absolute.
106291         * lib/getdate.y (number): Don't overwrite year.
106292         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
106293         check.
106295 2005-04-02  Simon Josefsson  <jas@extundo.com>
106297         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
106298         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
106300 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
106302         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
106303         where no absolute path name can be longer than PATH_MAX.
106305 2005-03-27  Jim Meyering  <jim@meyering.net>
106307         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
106309 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
106311         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
106312         "one's complement" -> "ones' complement" in comment, as per Knuth.
106313         "value of type" -> "type or expression" in comment.
106314         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
106316 2005-03-26  Jim Meyering  <jim@meyering.net>
106318         Comment nits.
106319         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
106320         Correct typos: s/or/of/.
106322 2005-03-26  Jim Meyering  <jim@meyering.net>
106324         * modules/check-include-files: Move to ../ and rename to...
106325         * check-module: ...this.
106327 2005-03-25  Jim Meyering  <jim@meyering.net>
106329         * modules/xvasprintf (Files): Add xalloc.h.
106331 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
106333         * modules/gettext (Files): config/config.rpath ->
106334         build-aux/config.rpath
106335         * modules/iconv (Files): Likewise.
106336         Problem reported by Oskar Liljeblad.
106338 2005-03-23  Jim Meyering  <jim@meyering.net>
106340         * modules/check-include-files: New script to check for
106341         missing dependencies, multiple includes, etc.
106343         * modules/c-strtold (Depends-on): Add xalloc.
106344         * modules/c-strtod (Depends-on): Add xalloc.
106345         * modules/hash (Depends-on): Add xalloc.
106346         (Files): Remove lib/xalloc.h.
106348         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
106349         * modules/userspec (Files): Add lib/inttostr.h.
106351 2005-03-23  Jim Meyering  <jim@meyering.net>
106353         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
106355 2005-03-22  Jim Meyering  <jim@meyering.net>
106357         * modules/stat-macros: New module.
106358         * modules/canonicalize, modules/euidaccess, modules/file-type,
106359         * modules/filemode, modules/lchown, modules/makepath,
106360         * modules/rmdir, modules/stat: Depend on new stat-macros module
106361         rather than listing lib/stat-macros.h manually.
106362         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
106364 2005-03-22  Jim Meyering  <jim@meyering.net>
106366         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
106368 2005-03-22  Bruno Haible  <bruno@clisp.org>
106370         * config/srclist.txt: Replace target directory 'config' with
106371         'build-aux'.
106372         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
106373         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
106374         ../build-aux/.
106376 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
106378         * modules/chdir-long (Depends-on): Add mempcpy.
106380         * modules/acl, modules/backupfile, modules/c-strtod,
106381         modules/c-strtold, modules/canon-host, modules/canonicalize,
106382         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
106383         modules/exclude, modules/exitfail, modules/file-type,
106384         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
106385         modules/getdate, modules/getline, modules/getpagesize,
106386         modules/getpass, modules/getugroups, modules/group-member,
106387         modules/hard-locale, modules/hash, modules/human, modules/idcache,
106388         modules/inttostr, modules/long-options, modules/makepath,
106389         modules/md5, modules/memcasecmp, modules/memcoll,
106390         modules/modechange, modules/mountlist, modules/path-concat,
106391         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
106392         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
106393         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
106394         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
106395         modules/strftime, modules/strndup, modules/strverscmp,
106396         modules/timespec, modules/unlocked-io, modules/userspec,
106397         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
106398         modules/yesno:
106399         Remove lib_SOURCES line from Makefile.am section, as this is now
106400         done automatically by the corresponding Autoconf macro.
106402 2005-03-21  Jim Meyering  <jim@meyering.net>
106404         Changes imported from coreutils.
106406         * lib/cycle-check.c: Don't include xalloc.h.
106408         * lib/path-concat.c: Don't include assert.h.
106409         (path_concat): Remove assertion that would have triggered
106410         for ABASE starting with more than one slash.
106411         Reported by Andreas Schwab.
106413         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
106414         properly when ABASE is an absolute file name.
106415         Correct the description of this function.
106416         Include <assert.h>.
106417         Add an assertion and a test driver.
106418         This fixes a bug introduced on 2004-07-02.
106419         Andreas Schwab reported the resulting failure of cp --parents:
106420         http://lists.gnu.org/r/bug-coreutils/2005-01/msg00130.html
106422 2005-03-21  Jim Meyering  <jim@meyering.net>
106424         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
106425         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
106427 2005-03-21  Jim Meyering  <jim@meyering.net>
106428         and  Paul Eggert  <eggert@cs.ucla.edu>
106430         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
106431         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
106432         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
106433         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
106434         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
106435         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
106436         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
106437         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
106438         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
106439         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
106440         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
106441         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
106442         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
106443         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
106444         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
106445         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
106446         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
106447         for these modules.
106449 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
106451         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
106452         (which shouldn't happen), generate nothing instead of returning 0
106453         immediately, so that nstrftime (NULL, ...) doesn't return 0.
106455 2005-03-16  Bruno Haible  <bruno@clisp.org>
106457         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
106458         HAVE_LONGLONG_64BIT.
106460 2005-03-16  Bruno Haible  <bruno@clisp.org>
106462         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
106463         HAVE_LONGLONG_64BIT.
106465 2005-03-16  Bruno Haible  <bruno@clisp.org>
106467         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
106468         HAVE_LONGLONG_64BIT.
106470 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
106472         * lib/strftime.c (my_strftime): Prepend space to format so that we can
106473         reliably distinguish strftime failure from empty output on POSIX
106474         hosts.
106476 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
106478         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
106479         (iconv_string): Don't guess a size-zero buffer, as that might cause
106480         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
106481         result would be 'too large', where 'too large' is (heuristically)
106482         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
106483         overflow concerns.  This will prevent some unwanted malloc failures
106484         when the inputs are very large.
106486 2005-03-15  Karl Berry  <karl@gnu.org>
106488         * config/srclist.txt (config.rpath): from gettext.
106489         * config/config.rpath: update.
106491 2005-03-15  Bruno Haible  <bruno@clisp.org>
106493         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
106494         to 'negate'.
106496         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
106497         variable.
106499         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
106500         results.
106502 2005-03-14  Simon Josefsson  <jas@extundo.com>
106504         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
106505         <fx@gnu.org>.
106507 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
106509         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
106510         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
106511         intprops.h.
106512         * lib/strtol.c: Likewise.
106514 2005-03-14  Jim Meyering  <jim@meyering.net>
106516         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
106517         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
106518         to be nonzero so that we (and caller) can detect the difference
106519         between a valid zero-length expansion and an error return, even
106520         when the underlying strftime fails before writing anything into
106521         that location.
106523 2005-03-14  Bruno Haible  <bruno@clisp.org>
106525         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
106526         Update from GNU gettext 0.14.3.
106528 2005-03-10  Jim Meyering  <jim@meyering.net>
106530         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
106532 2005-03-10  Jim Meyering  <jim@meyering.net>
106534         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
106535         so that this module works on systems without fchdir.
106537 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
106539         Factor int-properties macros into a single file, except for
106540         glibc-related files.
106541         * lib/intprops.h: New file.
106542         * lib/getloadavg.c: Include it instead of limits.h.
106543         (INT_STRLEN_BOUND): Remove.
106544         * lib/human.c: Include intprops.h.
106545         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
106546         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
106547         302/1000.
106548         * lib/inttostr.h: Include intprops.h instead of limits.h.
106549         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
106550         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
106551         for consistency with intprops.h.
106552         (time_t_is_integer, twos_complement_arithmetic): Use them.
106553         * lib/sig2str.h: Include <signal.h>, intprops.h.
106554         (INT_STRLEN_BOUND): Remove.
106555         * lib/strftime.c (TYPE_SIGNED): Remove.
106556         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
106557         * lib/strtol.c: Adjust comments to match intprops.h.
106558         * lib/userspec.c: Include intprops.h.
106559         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
106560         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
106561         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
106562         instead of rolling our own expressions.
106563         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
106565         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
106566         instead of int.
106567         (my_strftime): Do not mishandle years close to INT_MAX, by doing
106568         the right thing even if adding 1900 would overflow.  Similarly
106569         for tm_mon + 1 and tm_yday + 1.
106570         Make %Y always equivalent to %C%y, and similarly for %G and %g.
106571         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
106572         (DO_SIGNED_NUMBER): New macro.
106573         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
106575 2005-03-07  Bruno Haible  <bruno@clisp.org>
106577         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
106579 2005-03-07  Bruno Haible  <bruno@clisp.org>
106581         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
106583 2005-03-04  Derek R. Price  <derek@ximbiot.com>
106585         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
106586         (func_import): Only replace files via --import when they have actually
106587         changed.
106589 2005-03-03  Derek R. Price  <derek@ximbiot.com>
106591         * m4/mmap-anon.m4: New file.
106592         * m4/pagealign_alloc.m4: New file.
106594 2005-03-03  Derek R. Price  <derek@ximbiot.com>
106595             Bruno Haible  <bruno@clisp.org>
106597         * modules/pagealign_alloc: New file.
106598         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
106600 2005-03-03  Derek R. Price  <derek@ximbiot.com>
106601             Bruno Haible  <bruno@clisp.org>
106603         * lib/pagealign_alloc.h: New file.
106604         * lib/pagealign_alloc.c: New file.
106606 2005-03-03  Bruno Haible  <bruno@clisp.org>
106608         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
106609         Use an all-permissive copyright notice, recommended by RMS.
106611 2005-03-02  Bruno Haible  <bruno@clisp.org>
106613         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
106614         of AIX, the replacement has to be done only after <string.h> is
106615         included, therefore not in config.h. stpncpy.h does the replacement,
106616         and stpncpy.c uses it.
106618 2005-03-02  Bruno Haible  <bruno@clisp.org>
106620         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
106621         stpncpy.c uses it.
106623 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
106625         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
106626         The workaround isn't strictly needed for POSIX conformance, and
106627         it's too much of a pain to configure and maintain.  We'll ask
106628         people to fix their kernels instead.
106629         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
106630         (NANOSLEEP_BUG_WORKAROUND): Remove.
106631         (xnanosleep): Remove the workaround.
106633 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
106635         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
106636         Reported by Derek Price.
106637         (Include): Add "timespec.h".
106639         * modules/xnanosleep (Depends-on): Remove gethrxtime.
106641 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
106643         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
106644         to detect nanosleep bug.
106646 2005-03-01  Bruno Haible  <bruno@clisp.org>
106648         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
106650 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
106652         * modules/gethrxtime: New file.
106653         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
106654         (Depends-on): Add gethrxtime.
106655         (configure.ac): Add gl_XNANOSLEEP.
106656         (Makefile.am): Remove lib_SOURCES line.
106658 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
106660         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
106661         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
106663 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
106665         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
106666         * lib/timespec.h (gettime): Return void, since it always
106667         succeeds now.  All uses changed.
106668         * lib/gettime.c (gettime): Likewise.
106669         [HAVE_NANOTIME]: Prefer nanotime.
106670         Assume gettimeofday succeeds, as POSIX requires.
106671         Assime time () succeeds, since other code already does.
106672         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
106673         (timespec_subtract): Remove.
106674         (NANOSLEEP_BUG_WORKAROUND): New constant.
106675         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
106676         things considerably.  Use it only on GNU/Linux hosts, since the
106677         workaround shouldn't be needed elsewhere.
106679 2005-02-24  Bruno Haible  <bruno@clisp.org>
106681         * modules/gettext (Files): Add m4/glibc2.m4.
106683 2005-02-24  Bruno Haible  <bruno@clisp.org>
106685         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
106686         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
106687         * m4/progtest.m4:
106688         Update from GNU gettext 0.14.2.
106689         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
106691 2005-02-24  Bruno Haible  <bruno@clisp.org>
106693         * lib/localcharset.c: Update from GNU gettext 0.14.2.
106694         * lib/config.charset: Update from GNU gettext 0.14.2.
106696 2005-02-24  Bruno Haible  <bruno@clisp.org>
106698         * lib/gettext.h: Update from GNU gettext 0.14.2.
106700 2005-02-23  Simon Josefsson  <jas@extundo.com>
106702         * m4/iconvme.m4: New file.
106704 2005-02-23  Jim Meyering  <jim@meyering.net>
106706         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
106707         change.
106708         Thanks to Bruno Haible for catching it.
106710 2005-02-22  Simon Josefsson  <jas@extundo.com>
106712         * modules/iconvme: New file.
106714         * MODULES.html.sh: Add iconvme.
106716 2005-02-22  Simon Josefsson  <jas@extundo.com>
106718         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
106720 2005-02-22  Simon Josefsson  <jas@extundo.com>
106722         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
106724 2005-02-22  Jim Meyering  <jim@meyering.net>
106726         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
106727         s/ifndef/ifdef/.
106729 2005-02-20  Neil Conway  <neilc@samurai.com>
106731         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
106732         returned by OSX/Darwin if the specified buffer is not large
106733         enough for the hostname.
106735 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
106737         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
106738         pass it to _help, otherwise the latter coredumps trying to
106739         dereference state.root_argp.
106741 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
106743         * modules/chdir-long (Depends-on): Add memrchr.
106744         * modules/memrchr (Files): Add lib/memrchr.h.
106745         (Include): "memrchr.h".
106747 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
106749         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
106751 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
106753         * lib/memrchr.h: New file.
106754         * lib/chdir-long.c: Include it.
106755         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
106756         Don't bother including stddef.h.
106758 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
106760         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
106761         inclusion.
106762         Include <sys/types.h>, for dev_t.
106763         (ME_DUMMY, ME_REMOTE): Move from here....
106764         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
106765         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
106766         Dmitry V. Levin.
106767         Include mountlist.h first, to test the interface.
106769 2005-01-29  Bruno Haible  <bruno@clisp.org>
106771         * lib/progname.c (program_name): Initialize.
106772         Needed when linking statically on MacOS X.
106774 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
106776         Sync from coreutils.
106777         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
106778         (Depends-on): Add c-strtod.
106779         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
106781 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
106783         Sync from coreutils.
106784         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
106786         Remove files that are specific to coreutils.
106787         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
106789 2005-01-28  Bruno Haible  <bruno@clisp.org>
106791         * modules/javacomp: New file.
106792         * MODULES.html.sh (Java): Add javacomp.
106794 2005-01-28  Bruno Haible  <bruno@clisp.org>
106796         * m4/javacomp.m4: New file, from GNU gettext.
106798 2005-01-28  Bruno Haible  <bruno@clisp.org>
106800         * lib/javacomp.sh.in: New file, from GNU gettext.
106801         * lib/javacomp.h: New file, from GNU gettext.
106802         * lib/javacomp.c: New file, from GNU gettext.
106804 2005-01-26  Simon Josefsson  <jas@extundo.com>
106806         * lib/gai_strerror.c: Use GPL in header.
106808 2005-01-26  Bruno Haible  <bruno@clisp.org>
106810         * modules/javaexec: New file.
106811         * MODULES.html.sh (Java): Add javaexec.
106813 2005-01-26  Bruno Haible  <bruno@clisp.org>
106815         * m4/javaexec.m4: New file, from GNU gettext.
106817 2005-01-26  Bruno Haible  <bruno@clisp.org>
106819         * lib/javaexec.sh.in: New file, from GNU gettext.
106820         * lib/javaexec.h: New file, from GNU gettext.
106821         * lib/javaexec.c: New file, from GNU gettext.
106823 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
106825         * modules/lchown (Depends-on): Remove lchown.h
106827 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
106829         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
106830         must be defined if the header file was not found, in order
106831         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
106833 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
106835         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
106836         initializers for struct pentry_state.
106837         (__argp_error): Check return value of __asprintf
106838         (__argp_failure): Translate error message
106840         * lib/argp-parse.c: Removed braces around the expansion of N_()
106842 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
106844         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
106845         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
106846         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
106847         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
106848         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
106849         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
106850         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
106851         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
106852         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
106853         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
106854         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
106855         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
106856         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
106857         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
106858         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
106859         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
106860         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
106861         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
106862         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
106863         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
106864         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
106865         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
106866         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
106867         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
106868         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
106869         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
106870         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
106871         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
106872         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
106873         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
106874         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
106875         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
106876         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
106877         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
106878         xstrtol.m4, xstrtoumax.m4, yesno.m4:
106879         Use an all-permissive copyright notice, recommended by RMS.
106881 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
106883         * modules/chdir-long (Depends-on): Remove mempcpy.
106885 2005-01-21  Jim Meyering  <jim@meyering.net>
106887         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
106888         same value as for Solaris 9.
106890         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
106891         component length.  This included changing the parameter to be
106892         of type `char *' rather than `char const *'.
106893         * lib/chdir-long.h (chdir_long): Update prototype.
106895         * lib/openat.c (fdopendir, fstatat): New functions.
106896         * lib/openat.h: Include headers required for use of DIR and struct
106897         stat.
106898         [AT_SYMLINK_NOFOLLOW]: Define.
106899         (fdopendir, fstatat): Add prototypes.
106901 2005-01-21  Bruno Haible  <bruno@clisp.org>
106903         * modules/classpath: New file.
106904         * MODULES.html.sh (Java): Add classpath.
106906 2005-01-21  Bruno Haible  <bruno@clisp.org>
106908         * lib/classpath.h: New file, from GNU gettext.
106909         * lib/classpath.c: New file, from GNU gettext.
106911 2005-01-20  Simon Josefsson  <jas@extundo.com>
106913         * modules/version-etc-fsf: New file.
106915 2005-01-20  Simon Josefsson  <jas@extundo.com>
106917         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
106918         * lib/version-etc.c: Remove version_etc_copyright.
106919         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
106920         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
106922 2005-01-20  Simon Josefsson  <jas@extundo.com>
106924         * lib/base64.h (isbase64): Add.
106926         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
106927         using a unsigned prototype, don't inline.
106928         (base64_decode): Use it.
106930 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
106932         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
106933         it.
106935 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
106937         * lib/save-cwd.c (save_cwd): Remove code to support the case
106938         where fchdir is missing or flaky.
106940 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
106942         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
106944 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
106946         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
106947         AC_LIBSOURCES now does this.
106948         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
106949         with new ullong_max module.
106951 2005-01-19  Bruno Haible  <bruno@clisp.org>
106953         * modules/sh-quote: New file.
106954         * MODULES.html.sh (Executing programs): Add sh-quote.
106956 2005-01-19  Bruno Haible  <bruno@clisp.org>
106958         * lib/sh-quote.h: New file, from GNU gettext.
106959         * lib/sh-quote.c: New file, from GNU gettext.
106961 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
106963         Merge from coreutils.
106964         * m4/ullong_max.m4: New file.
106965         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
106966         (gl_MACROS): Assume localeconv exists.
106968 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
106970         Merge changes from coreutils, as described below in several
106971         changelogs dated today.
106973         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
106974         (O_DIRECTORY): Remove; not needed here, since "." must be
106975         a directory.  All uses removed.
106976         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
106977         universal on Suns, and we also need to test for IRIX.
106978         Revamp code to use 'if' rather than '#if'.
106979         Avoid unnecessary comparison of cwd->desc to 0.
106981         * lib/utimens.c (futimens): Robustify the previous patch, by checking
106982         for known valid error numbers rather than observed invalid ones.
106984 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
106986         * modules/ullong_max: New file.
106988         * modules/chdir-long, modules/openat: New files.
106989         * modules/save-cwd (Depends-on): Depend on chdir-long.
106990         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
106992 2005-01-18  Jim Meyering  <jim@meyering.net>
106994         Merge from coreutils.
106995         * m4/chdir-long.m4, m4/openat.m4: New files.
106996         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
106997         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
106998         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
106999         is sane and DOES follow symlinks.  Besides, testing 20 different
107000         systems found no broken chown implementations.
107001         Prompted by a change in rsync's copy of this macro.
107002         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
107004         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
107006         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
107007         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
107008         NULL-means-set-to-current-time semantics.
107009         Remove temporary file immediately, rather than waiting
107010         for configure's at-exit trap code to do it.
107012 2005-01-18  Jim Meyering  <jim@meyering.net>
107014         * lib/version-etc.c (version_etc_copyright): Update copyright date.
107016         * lib/utimens.c (futimens): Account for the fact that futimes
107017         can also fail with errno == ENOSYS or errno == ENOENT.
107018         Patch from Dmitry V. Levin.
107020         Change the name of the robust chdir function from chdir to chdir_long.
107021         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
107022         (restore_cwd): Use chdir_long, not chdir.
107023         * lib/chdir-long.c: Renamed from chdir.c.
107024         * lib/chdir-long.h: Renamed from chdir.h.
107025         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
107026         Hurd.
107028 2005-01-18  Bruno Haible  <bruno@clisp.org>
107030         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
107031         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
107032         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
107033         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
107034         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
107035         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
107036         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
107037         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
107038         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
107039         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
107040         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
107041         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
107042         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
107043         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
107044         Use an all-permissive copyright notice, recommended by RMS.
107046 2005-01-18  Bob Proulx  <bob@proulx.com>
107048         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
107049         simplify offsetof() macro construct to avoid compile failure with
107050         native HP-UX 11.0 ANSI C compiler.
107052 2005-01-17  Bruno Haible  <bruno@clisp.org>
107054         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
107055         redundant because stpncpy.m4 takes care of it.
107057 2005-01-17  Bruno Haible  <bruno@clisp.org>
107059         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
107061 2005-01-17  Bruno Haible  <bruno@clisp.org>
107063         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
107064         used.
107066 2005-01-17  Bruno Haible  <bruno@clisp.org>
107068         * lib/fwriteerror.h (fwriteerror): Change specification to include
107069         fclose.
107070         * lib/fwriteerror.c: Include <stdbool.h>.
107071         (fwriteerror): At the end, close the file stream. Record whether
107072         stdout was already closed.
107074 2005-01-17  Bruno Haible  <bruno@clisp.org>
107076         * lib/execute.c (environ): Declare if needed.
107077         * lib/pipe.c (environ): Likewise.
107078         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
107080 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
107082         * modules/argp: Depend on vsnprintf
107084 2005-01-10  Jim Meyering  <jim@meyering.net>
107086         * modules/closeout (Depends-on): Add atexit.
107088 2005-01-06  Bruno Haible  <bruno@clisp.org>
107090         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
107092 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
107094         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
107095         definitions to be after all include files, to avoid collisions.
107096         Problem reported by Bob Proulx.
107098 2005-01-04  Jim Meyering  <jim@meyering.net>
107100         Changes imported from coreutils.
107101         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
107102         as the mkstemp template, use a temporary directory and an
107103         8.3-friendly template to avoid trouble on systems like DJGPP.
107104         Reported by Juan M. Guerrero via Stepan Kasal.
107105         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
107106         close. Remove the temporary directory right away, rather than waiting
107107         for configure's at-exit trap code to do it.
107108         Suggestion from Stepan Kasal.
107110 2005-01-01  Simon Josefsson  <jas@extundo.com>
107112         * gnulib-tool: Print #include directives when --import'ing.
107114 2004-12-28  Simon Josefsson  <jas@extundo.com>
107116         * tests/test-base64.c: Include required header files.  Remove
107117         unused variables.
107119 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
107121         * modules/error (Depends-on): Remove gettext.
107123 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
107125         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
107126         not needed.  This removes a dependency on the gettext module.
107127         [defined _LIBC]: Do not include <libintl.h>; not needed.
107129 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
107131         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
107132         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
107134 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
107136         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
107137         HAVE_DECL_STRTOLD.
107139 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
107141         * modules/getdate (Depends-on): Remove alloca-opt.
107143 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
107145         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
107147 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
107149         * lib/argp-parse.c: Include <stddef.h>.
107150         (alignof, alignto): New macros.
107151         (parser_init): Don't assume that void * is aligned sufficiently
107152         for struct option.
107154         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
107155         need to extend the stack.
107156         (YYINITDEPTH): New macro, so that the initial stack isn't overly
107157         large.
107159 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
107161         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
107163 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
107165         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
107166         (2004-10-24) change.  Apparently this was a false alarm.
107168         * modules/getdate: Depend on alloca-opt, not alloca.
107170 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
107172         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
107173         Remove now-obsolete comment about AIX.
107174         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
107175         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
107176         (YYMAXDEPTH): New macro.
107178 2004-12-18  Simon Josefsson  <jas@extundo.com>
107180         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
107182 2004-12-18  Bruno Haible  <bruno@clisp.org>
107184         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
107186 2004-12-18  Bruno Haible  <bruno@clisp.org>
107188         * lib/fatal-signal.c (fatal_signals): Make non-const.
107189         (init_fatal_signals): New function.
107190         (uninstall_handlers, install_handlers): Ignore signals that were set to
107191         SIG_IGN.
107192         (at_fatal_signal): Call init_fatal_signals.
107193         (init_fatal_signal_set): Likewise. Ignore signals that were set to
107194         SIG_IGN.
107195         Reported by Paul Eggert.
107197 2004-12-18  Bruno Haible  <bruno@clisp.org>
107199         * doc/alloca.texi: New file.
107200         * doc/alloca-opt.texi: New file.
107202 2004-12-17  Jim Meyering  <jim@meyering.net>
107204         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
107205         Otherwise, install-sh could exit with improper exit status when
107206         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
107208 2004-12-16  Simon Josefsson  <jas@extundo.com>
107210         * tests/test-base64.c: Add license.
107212 2004-12-15  Stepan Kasal  <address@hidden>
107214         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
107216 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
107218         * modules/getcwd (Files): Add m4/d-ino.m4.
107219         Suggested by Mark D. Baushke.
107221 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
107223         * lib/getdate.y (textint): New member "negative".
107224         (time_zone_hhmm): New function.
107225         Expect 14 shift-reduce conflicts, not 13.
107226         (o_colon_minutes): New rule.
107227         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
107228         (yylex): Set the "negative" member of signed numbers.
107230 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
107232         * doc/getdate.texi (Time of day items, Time zone items):
107233         Describe new formats +00:00, UTC+00:00.
107235 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
107237         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
107238         spurious "-l"s.  Problem reported by Stepan Kasal.
107240 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
107242         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
107243         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
107245 2004-12-04  Simon Josefsson  <jas@extundo.com>
107247         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
107248         Vandoorselaere <yoann@prelude-ids.org>.
107250 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
107252         Changes imported from coreutils.
107253         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
107254         exist.
107255         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
107257 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
107259         Changes imported from coreutils.
107260         * lib/hard-locale.c: Assume <locale.h> exists.
107261         Include "strdup.h".
107262         (GLIBC_VERSION): New macro.
107263         (hard_locale): Assume setlocale exists.
107264         Rewrite to avoid #ifdef.
107265         Use strdup rather than malloc + strcpy.
107266         * lib/human.c: Assume <locale.h> exists.
107267         (human_readable): Assume localeconv exists.
107269 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
107271         * modules/hard-locale (Depends-on): Add strdup.
107273 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
107275         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
107276         convert T2, not T.  (Imported from libc.)
107278 2004-11-30  Simon Josefsson  <jas@extundo.com>
107280         * modules/restrict (License): Change to LGPL.
107282 2004-11-30  Simon Josefsson  <jas@extundo.com>
107284         * m4/restrict.m4: Add copyright and copying conditions.
107286 2004-11-30  Simon Josefsson  <jas@extundo.com>
107288         * m4/base64.m4: New file.
107290 2004-11-30  Simon Josefsson  <jas@extundo.com>
107292         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
107293         base64.
107295         * tests/test-base64.c: New file.
107297         * modules/base64: New file.
107299 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
107301         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
107302         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
107304         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
107306 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
107308         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
107309         (__getcwd.c): Don't restore errno; glibc doesn't.
107310         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
107311         first, falling back to our code only if its results look suspicious.
107312         Ensure that the resulting buffer is only as large as necessary.
107314         * lib/readutmp.c: Include readutmp.h first.
107315         Include <errno.h>, since readutmp.h no longer does that.
107316         * lib/readutmp.h: Don't include <errno.h>,
107317         <sys/param.h>, <time.h>; not needed to establish interface.
107318         (errno): Remove decl.
107319         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
107320         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
107321         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
107323 2004-11-28  Simon Josefsson  <jas@extundo.com>
107325         * lib/base64.h, base64.c: New file.
107327 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
107329         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
107331 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
107333         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
107334         (Depends-on): Remove pathmax, same.  Add mempcpy.
107335         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
107336         (Makefile.am): Append getcwd.h to lib_SOURCES.
107337         (Include): Add getcwd.h.
107338         (Maintainer): Change from Jim Meyering to "all, glibc",
107339         since getdate now uses intended-for-glibc code.
107340         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
107341         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
107343 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
107345         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
107346         HP's ANSI C compiler.
107347         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
107348         Declaring int functions causes warnings on some modern systems and
107349         shouldn't be needed to compile on ancient ones.
107350         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
107351         defined.
107353         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
107354         with the following changes.
107355         (__set_errno): Parenthesize properly.
107356         Include <stdbool.h>.
107357         (MIN, MAX, MATCHING_INO): New macros.
107358         (__getcwd): Define with prototype, not K&R form.
107359         Use heuristics to allocate default buffer on stack if possible.
107360         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
107361         behavior, and to avoid the PATH_MAX limit when computing
107362         ../../../../...
107363         Use MATCHING_INO to compare inode number to file.
107364         Check for arithmetic overflow in size calculations.
107365         Fix bug in reallocation of dot array that caused getcwd to fail
107366         on directories nested deeper than 75.
107367         Be more careful about saving errno on error.
107368         Do not use realloc; use only free+malloc, as this is a bit
107369         more flexible and avoids a needless copy operation.
107370         Do not inspect st_dev and st_ino for symbolic links; POSIX
107371         doesn't specify the latter.
107372         Check for closedir errors.
107373         Avoid needless casts.
107374         Use "#ifdef weak_alias" around weak_alias, to be like other
107375         glibc code.
107376         The following changes to getcwd.c have effect only when used in
107377         gnulib; they have no effect inside glibc proper.
107378         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
107379         as alloca isn't used.
107380         (alloca, __alloca): Likewise.
107381         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
107382         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
107383         unconditionally, as gnulib assumes C89 or better.
107384         Do not include <sys/param.h>.
107385         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
107386         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
107387         better.
107388         (NULL) [!defined NULL]: Remove; we assume C89 or better.
107389         Include <dirent.h> in a way that is compatible with modern Autoconf.
107390         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
107391         New macros, if not already defined.
107392         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
107393         Use "_LIBC", not "defined _LIBC", for consistency.
107394         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
107395         a mempcpy module.
107396         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
107397         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
107398         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
107399         credit only to Jim Meyering and adjust the copyright dates.
107400         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
107401         <stdlib.h>, <unistd.h>, "pathmax.h".
107402         Instead, include "xgetcwd.h" (first) and "getcwd.h".
107403         (INITIAL_BUFFER_SIZE): Remove.
107404         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
107406 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
107408         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
107409         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
107410         Use the _ONCE methods, for efficiency.
107411         Check for fcntl.h.  In test program, include <errno.h>
107412         and <fcntl.h> if available.  Remove old K&R cruft from
107413         test program.  Check for common errors in GNU/Linux,
107414         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
107415         don't do AC_LIBOBJ, as that's getcwd.m4's job.
107416         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
107417         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
107418         name accordingly.
107419         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
107420         accommodate new getcwd.c.
107421         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
107422         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
107423         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
107424         that's all we need now.
107426 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
107428         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
107429         argp-parse.c depends on getopt internals, that means we should
107430         always use our getopt, to be on the safe side.
107431         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
107432         order not to spoil the result of an eventual previous invocation
107433         of gl_GETOPT_SUBSTITUTE.
107435 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
107437         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
107438         redefinition warnings. To avoid them, include the defines
107439         in `#if !defined __need_getopt ... #endif'. The only place
107440         where __getopt_argv_const is used is in definitions
107441         of getopt_long and getopt_long_only below, which are as well
107442         protected by `#ifndef __need_getopt'.
107443         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
107444         __need_getopt after including <stdio.h> and <unistd.h> These
107445         headers might have defined it.
107447 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
107449         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
107451 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
107453         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
107454         (futimens): New function, which uses futimes if available.
107455         (futimens, utimens): Support timespec==NULL, with same semantics
107456         as utime and utimens.
107457         * lib/utimens.h (futimens): New decl.
107459 2004-11-23  Jim Meyering  <jim@meyering.net>
107461         * lib/getopt_.h: Remove trailing blanks.
107463 2004-11-23  Jim Meyering  <jim@meyering.net>
107465         * lib/__fpending.c: Add comment.
107467 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
107469         * modules/canonicalize (Depends-on): Add xreadlink.
107470         Problem reported by James Youngman.
107472 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
107474         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
107475         New macros.
107476         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
107477         optopt): Use them instead of invoking ## directly; otherwise, the
107478         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
107480 2004-11-19  Bruno Haible  <bruno@clisp.org>
107482         * lib/strtok_r.c: Move comments from here...
107483         * lib/strtok_r.h: ... to here.
107485 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
107487         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
107488         implementations that mishandle size_t overflow.
107490 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
107492         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
107493         might fail.  Problem reported by Yoann Vandoorselaere.
107494         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
107495         implementations that mishandle size_t overflow.
107497 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
107499         * modules/canon-host (Depends-on): Add strdup.
107501 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
107503         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
107505 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
107507         * lib/canon-host.c: Include "strdup.h".
107508         (canon_host): Use getaddrinfo if available, so that IPv6 works.
107509         Use strdup instead of malloc/strcpy to duplicate strings.
107511         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
107512         (human_space_before_unit): New constant.
107513         * lib/human.c (human_readable): Support it.
107515         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
107516         (xgetcwd): Set errno correctly when failing.
107517         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
107518         the failure is actually due to a PATH_MAX problem.
107520         Further getopt changes to make it more likely that glibc will
107521         buy the changes back.
107522         * lib/getopt.c (POSIXLY_CORRECT): New constant.
107523         (getopt): Use it, so to preserve glibc semantic
107524         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
107525         when compiling for libc.
107526         * lib/getopt_.h (__getopt_argv_const): Bring it back.
107527         (getopt_long, getopt_long_only): Use it.
107529         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
107530         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
107531         (getopt): Argv is now char * const *, as per standard.
107532         (_getopt_internal_r, _getopt_internal): Argv is now char **,
107533         not char *__getopt_argv_const *.
107534         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
107535         _getopt_long_only_r): Likewise.
107536         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
107537         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
107538         _getopt_long_r, _getopt_long_only_r): Likewise.
107539         * lib/getopt_.h (__getopt_argv_const): Remove.
107540         (getopt): Argv is now char * const *, as per standard.
107542         * lib/getdate.y (tORDINAL): New token.
107543         (day, relunit): Allow it for relative times.
107544         (relative_time_table): Use tORDINAL for ordinals.
107546 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
107548         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
107549         Document that "second" isn't allowed as an ordinal number.
107551 2004-11-16  Jim Meyering  <jim@meyering.net>
107553         * modules/closeout (Depends-on): Add fpending.
107555 2004-11-15  Jim Meyering  <jim@meyering.net>
107557         * lib/closeout.c: Include "__fpending.h" once again.
107558         Include <stdbool.h>.
107559         (close_stdout): Don't fail just because stdout was closed initially,
107560         since some programs don't write to stdout in the normal course of
107561         operation (other than --version and --help), and we don't want this
107562         function to make e.g. `touch file >&-' fail.
107563         But do fail if it was closed and someone has tried to write to it.
107564         E.g., `printf foo >&-' must fail.
107566 2004-11-13  Jim Meyering  <jim@meyering.net>
107568         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
107570 2004-11-12  Simon Josefsson  <jas@extundo.com>
107572         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
107573         small doc fix is still pending.
107575 2004-11-11  Simon Josefsson  <jas@extundo.com>
107577         * modules/strtok_r: New file.
107579         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
107580         strtok_r.
107582 2004-11-11  Simon Josefsson  <jas@extundo.com>
107584         * m4/strtok_r.m4: New file.
107586         * m4/getopt.m4: Replace opterr.
107588 2004-11-11  Simon Josefsson  <jas@extundo.com>
107590         * lib/strtok_r.h, strtok_r.c: New file.
107592 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
107594         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
107595         of replacing opterr, getopt, etc.  This should handle the
107596         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
107598 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
107600         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
107601         we can stop lying to compilers about the constness of argv when we
107602         are compiled outside glibc.
107603         (getopt, getopt_long, getopt_long_only): Use it.
107604         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
107605         _getopt_internal, getopt): Likewise.
107606         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
107607         _getopt_long_only_r): Likewise.
107608         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
107609         _getopt_long_r, _getopt_long_only_r): Likewise.
107611         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
107612         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
107613         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
107614         the other external symbols.
107615         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
107616         declaration, since the above renaming now works around collisions.
107618 2004-11-11  Jim Meyering  <jim@meyering.net>
107620         * lib/linebreak.c: Remove trailing blanks.
107621         * lib/alloca_.h: Likewise.
107622         * lib/acosl.c: Likewise.
107623         * lib/euidaccess.c: Likewise.
107624         * lib/allocsa.h: Likewise.
107626 2004-11-10  Simon Josefsson  <jas@extundo.com>
107628         * m4/getaddrinfo.m4: New file.
107630 2004-11-10  Simon Josefsson  <jas@extundo.com>
107632         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
107634 2004-11-10  Simon Josefsson  <jas@extundo.com>
107636         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
107637         getaddrinfo.
107639         * modules/getaddrinfo: New file.
107641 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
107643         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
107645 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
107647         * lib/mktime.c (SHR): New macro, which is a portable
107648         substitute for >> that should work even on Crays.
107649         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
107650         Problem reported by Mark D. Baushke in
107651         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00071.html>.
107652         * lib/getdate.y (SHR): Likewise.
107653         (tm_diff): Use it.
107654         * lib/strftime.c (SHR): Likewise.
107655         (tm_diff): Use it.
107656         * lib/quotearg.c (struct quoting_options): Use unsigned int for
107657         quote_these_too, so that right shifts are well defined.  All uses
107658         changed.
107660 2004-11-10  Jim Meyering  <jim@meyering.net>
107662         Ensure that no close failure goes unreported.
107663         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
107664         return early when it seems there's nothing to flush.
107665         Don't include __fpending.h.
107667 2004-11-10  Jim Meyering  <jim@meyering.net>
107669         * modules/closeout (Depends-on): Remove fpending.
107671 2004-11-10  Jim Meyering  <jim@meyering.net>
107673         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
107675 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
107677         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
107678         gl_FUNC_STRFTIME.
107679         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
107680         and AC_REQUIRE when possible, to avoid duplicate checks.
107681         Check for <wchar.h>.
107683 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
107685         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
107687 2004-11-09  Bruno Haible  <bruno@clisp.org>
107689         * m4/sockpfaf.m4: New file.
107691 2004-11-05  Bruno Haible  <bruno@clisp.org>
107693         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
107694         Reported by Mark D. Baushke <mdb@cvshome.org>.
107696 2004-11-04  Bruno Haible  <bruno@clisp.org>
107698         2004-09-11  Bruno Haible  <bruno@clisp.org>
107699                 * allocsa.valgrind: New file.
107700         2004-02-06  Bruno Haible  <bruno@clisp.org>
107701                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
107702                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
107703                 Reported by Christopher Seip <chris.seip@hp.com>.
107705 2004-11-04  Bruno Haible  <bruno@clisp.org>
107707         * modules/allocsa (Files): Add lib/allocsa.valgrind.
107708         (Makefile.am): Distribute it.
107710 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
107712         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
107713         with errno == ERANGE if the buffer is too small.
107714         Problem reported by Mark D. Baushke.
107716 2004-11-03  Albert Chin  <china@thewrittenword.com>
107717             Paul Eggert  <eggert@cs.ucla.edu>
107719         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
107720         equivalent, substitute $ac_type for equivalent type rather than
107721         blindly using uint32_t *always* which won't work if uint32_t is not
107722         available.  Define _UINT32_T to work around typedef of uint32_t if
107723         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
107724         2.5.1.
107726 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
107728         * m4/jm-macros.m4: Sync from coreutils.
107729         (gl_MACROS): Check for mbrlen, for pathchk.
107730         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
107732 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
107734         * lib/xreadlink.c (MAXSIZE): New macro.
107735         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
107736         size does not exceed MAXSIZE.  Avoid cast.
107737         As suggested by Mark D. Baushke in
107738         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00009.html>,
107739         if readlink fails with buffer size just under MAXSIZE, try again
107740         with MAXSIZE.
107742 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
107744         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
107746 2004-11-02  Derek R. Price  <derek@ximbiot.com>
107747         and  Paul Eggert  <eggert@cs.ucla.edu>
107749         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
107750         (get_date): Overparenthesize to avoid GCC warning.
107752 2004-11-02  Bruno Haible  <bruno@clisp.org>
107754         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
107755         returns void.
107757 2004-11-02  Bruno Haible  <bruno@clisp.org>
107759         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
107760         function returns void.
107762 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
107764         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
107765         fflush_unlocked, flockfile, funlockfile, funlockfile,
107766         fputs_unlocked, putc_unlocked.
107768 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
107770         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
107771         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
107772         already declared.
107774 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
107776         * modules/getdate (Files): Add doc/getdate.texi.
107777         (Depends-on): Add setenv, xalloc.
107779 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
107781         * lib/getdate.y: Add support for TZ="foo" within a date string.
107782         Fix some bugs near time_t boundaries.  Reject dates with
107783         out-of-range components, e.g., "Sept 31".
107784         Include <stdlib.h>, "setenv.h", "xalloc.h".
107785         (ISDIGIT_LOCALE): Remove; unused.
107786         Note that the TZ and time functions used here are not reentrant.
107787         (mktime_ok, get_tz): New functions.
107788         (TZBUFSIZE): New constant.
107789         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
107790         This requires that we sometimes generate our own TZ="XXX..." setting.
107792 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
107794         * doc/getdate.texi: New file, from coreutils with modifications for
107795         the new TZ parsing.
107797 2004-10-27  Derek R. Price  <derek@ximbiot.com>
107799         * lib/mktime.c (not_equal_tm): Remove redundant check.
107801 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
107803         * modules/regex (lib_SOURCES): Add regex.c.
107804         Reported by James Youngman in
107805         <http://lists.gnu.org/r/bug-gnulib/2004-10/msg00199.html>.
107807 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
107809         * lib/getdate.y: Use Bison 1.875 features, and some minor
107810         code cleanups.  This change does not affect semantics.
107811         Don't include <stdlib.h>; no longer needed.
107812         Don't include unlocked-io.h; only the "#if TEST" code uses
107813         stdio, and performance isn't crucial there.
107814         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
107815         Bison 1.875 features as described below.
107816         All uses of "PC." replaced by "pc->".
107817         (YYSTYPE): Add a forward declaration.
107818         (yylex, yyerror): Use full prototypes in forward decls.
107819         Use "%pure-parser" rather than obsolescent "%pure_parser".
107820         Use %parse-param and %lex-param instead of obsolescent
107821         YYPARSE_PARAM and YYLEX_PARAM.
107822         (meridian_table, month_and_day_table, time_units_table,
107823         relative_time_table, time_zone_table, military_table,
107824         lookup_zone, lookup_word, get_date):
107825         Use NULL instead of 0 where appropriate.
107826         (to_hour): Avoid abort (), to avoid a dependency on
107827         stdlib.h.
107828         (yyerror, yylex): Now accepts parser_control * arg.
107829         (main) [TEST]: Use '\0' rather than 0 for char.
107831 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
107833         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
107835 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
107837         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
107838         It's now the caller's responsibility to handle the case where
107839         !HAVE_GETPAGESIZE && !defined getpagesize.
107841         * lib/mktime.c (leapyear): Arg is long int, not int.
107843 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
107845         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
107847 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
107849         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
107850         missing.  Problem reported by James Youngman.
107852 2004-10-16  Simon Josefsson  <jas@extundo.com>
107854         * gnulib-tool: Fix comments.  Fix parse problem.
107855         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
107857 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
107859         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
107860         implementation of getopt_long.  Problem reported by Alexander Taler in:
107861         http://lists.gnu.org/r/bug-gnulib/2004-10/msg00103.html
107863 2004-10-15  Bruno Haible  <bruno@clisp.org>
107865         * gnulib-tool: Untabify. Initialize supplied_libname.
107866         (func_usage): More homogenous output.
107867         (func_modules_transitive_closure, func_modules_to_filelist,
107868         func_emit_lib_Makefile_am): New functions.
107869         (func_import): New function, extracted from big case statement. Use
107870         func_get_license, func_modules_transitive_closure,
107871         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
107872         opt_lgpl. Don't use test -a, as it's not portable.
107873         (func_create_testdir): Use func_modules_transitive_closure,
107874         func_modules_to_filelist, func_emit_lib_Makefile_am.
107876 2004-10-15  Bruno Haible  <bruno@clisp.org>
107878         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
107880 2004-10-15  Bruno Haible  <bruno@clisp.org>
107882         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
107883         the portions belonging to each module.
107884         Suggested by Derek Robert Price <derek@ximbiot.com>.
107886 2004-10-12  Simon Josefsson  <jas@extundo.com>
107888         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
107889         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
107890         to real functions.
107892 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
107894         * modules/vsnprintf: New file.
107896 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
107898         * m4/vsnprintf.m4: New file.
107900 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
107902         * lib/vsnprintf.h: New file.
107903         * lib/vsnprintf.c: New file.
107905 2004-10-11  Bruno Haible  <bruno@clisp.org>
107907         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
107908         vsnprintf.
107910 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
107912         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
107914 2004-10-07  Bruno Haible  <bruno@clisp.org>
107916         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
107917         fits into the provided buffer.
107919 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
107921         * lib/diacrit.c, diacrit.h: Add GPL notice.
107923         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
107924         notice.
107925         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
107926         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
107927         This avoids a potential constant-folding bug.
107929 2004-10-05  Bruno Haible  <bruno@clisp.org>
107931         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
107932         for the declaration of strsep.
107934 2004-10-05  Bruno Haible  <bruno@clisp.org>
107936         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
107938 2004-10-04  Simon Josefsson  <jas@extundo.com>
107940         * modules/memmem: New file.
107941         * tests/test-memmem.c: New file.
107942         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
107944 2004-10-04  Simon Josefsson  <jas@extundo.com>
107946         * m4/memmem.m4: New file.
107948 2004-10-04  Simon Josefsson  <jas@extundo.com>
107950         * lib/memmem.h: New file.
107951         * lib/memmem.c: New file, taken from glibc.
107953 2004-10-04  Simon Josefsson  <jas@extundo.com>
107955         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
107956         '#ifdef USE_UNLOCKED_IO'.
107958 2004-10-04  Simon Josefsson  <jas@extundo.com>
107960         * config/srclist.txt: Add memmem from glibc.
107962 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
107964         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
107966         * modules/argmatch, modules/argp, modules/closeout, modules/error,
107967         modules/exclude, modules/getdate, modules/getline,
107968         modules/getndelim2, modules/getpass, modules/getpass-gnu,
107969         modules/getusershell, modules/linebuffer, modules/md5,
107970         modules/mountlist, modules/posixtm, modules/readtokens,
107971         modules/readutmp, modules/regex, modules/sha1,
107972         modules/version-etc, modules/yesno:
107973         Remove dependency on unlocked-io.
107975 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
107977         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
107979         * m4/unlocked-io.m4: Add copyright notice.
107980         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
107982 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
107984         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
107985         * lib/xmalloc.c (xmemdup): Likewise.
107986         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
107987         XFREE): Remove these long-obsolescent macros.
107988         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
107989         * lib/xstrdup.c: Remove.
107991         * lib/regex.c (re_comp): Cast gettext return value to char *,
107992         Problem reported by Martin Neitzel via Mark D. Baushke.
107994 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
107996         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
107997         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
107998         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
107999         regex.c, sha1.c, version-etc.c, yesno.c:
108000         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
108001         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
108002         the includer's responsibility.
108004         Sync from coreutils.
108006         * lib/modechange.c (mode_compile): Don't decrement a pointer that
108007         points to the start of a string, as the C Standard says the
108008         resulting behavior is undefined.
108010         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
108011         simple -> simple_backups, numbered_existing ->
108012         numbered_existing_backups, numbered -> numbered_backups
108013         to avoid shadowing problems.  All uses changed.
108014         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
108015         * lib/backupfile.c (check_extension, numbered_backup):
108016         Rename locals to avoid shadowing 'basename'.
108017         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
108018         once.
108020         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
108021         * lib/.cvsignore: Add getopt.h.
108023 2004-10-04  Bruno Haible  <bruno@clisp.org>
108025         * modules/README: New file.
108026         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
108027         not a module.
108029 2004-10-02  Jim Meyering  <jim@meyering.net>
108031         * lib/dirfd.h, getpagesize.h: Add copyright notice.
108033 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
108035         * modules/strsep: New file.
108037 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
108039         * m4/strsep.m4: New file.
108041 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
108043         * lib/strsep.h: New file.
108044         * lib/strsep.c: New file.
108046 2004-10-01  Simon Josefsson  <jas@extundo.com>
108048         * lib/snprintf.c (snprintf): Handle size==0.
108050 2004-10-01  Simon Josefsson  <jas@extundo.com>
108051             Bruno Haible  <bruno@clisp.org>
108053         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
108054         (snprintf): Declare 'args'.
108056 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
108058         * lib/snprintf.c: Remove comments as to why each header is needed.
108060 2004-10-01  Bruno Haible  <bruno@clisp.org>
108062         * MODULES.html.sh: Add strsep.
108064 2004-09-30  Simon Josefsson  <jas@extundo.com>
108066         * modules/snprintf: New file.
108068 2004-09-30  Simon Josefsson  <jas@extundo.com>
108070         * m4/snprintf.m4: New file.
108072 2004-09-30  Simon Josefsson  <jas@extundo.com>
108074         * lib/snprintf.h, lib/snprintf.c: New files.
108076 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
108078         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
108079         (hol_entry_help): Never translate an empty string.
108080         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
108081         * lib/argp.h (OPTION_NO_TRANS): New option.
108083 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
108085         * modules/argp (Maintainer): Replace Simon Josefsson
108086         by Sergey Poznyakoff.
108088 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
108090         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
108091         changes merged back into glibc.
108093 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
108095         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
108097 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
108099         * lib/xvasprintf.c: Include xalloc.h.
108100         (xvasprintf): Use xalloc_die, not xmalloc_die.
108102 2004-09-29  Bruno Haible  <bruno@clisp.org>
108104         * modules/alloca-opt: New file, derived from modules/alloca.
108105         * modules/allocsa: Depend on alloca-opt instead of alloca.
108106         * modules/setenv: Likewise.
108107         * modules/vasnprintf: Likewise.
108108         * MODULES.html.sh: Add alloca-opt.
108110 2004-09-28  Simon Josefsson  <jas@extundo.com>
108112         * gnulib-tool: New parameter --lgpl, to asseert that modules are
108113         LGPL, and to replace license template from GPL to LGPL.
108115 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
108117         * modules/dummy: Change license to LGPL.
108119 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
108121         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
108123 2004-09-24  Simon Josefsson  <jas@extundo.com>
108125         * modules/minmax (License): Change from GPL to LGPL.
108127 2004-09-23  Simon Josefsson  <jas@extundo.com>
108129         * gnulib-tool (--import): Typo.
108131 2004-09-23  Simon Josefsson  <jas@extundo.com>
108133         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
108135 2004-09-22  Bruno Haible  <bruno@clisp.org>
108137         * modules/*: Add 'License' field.
108138         * gnulib-tool: Accept --extract-license option.
108139         (func_get_license): New function.
108141 2004-09-21  Bruno Haible  <bruno@clisp.org>
108143         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
108144         Reported by Simon Josefsson.
108146 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
108148         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
108149         gl_AC_TYPE_LONG_LONG.
108151 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
108153         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
108155 2004-09-18  Simon Josefsson  <jas@extundo.com>
108156         and  Paul Eggert  <eggert@cs.ucla.edu>
108158         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
108159         calls with autoreconf.  Define GL_LIB.
108161 2004-09-14  Karl Berry  <karl@gnu.org>
108163         * config/srclist.txt: unsync setenv.c, sigh.
108165 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
108167         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
108168         Problem reported by Bruno Haible in:
108169         http://lists.gnu.org/r/bug-tar/2004-09/msg00023.html
108171 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
108173         * config/srclist.txt: Comment out argp-pvh.c.
108175 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
108177         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
108178         in case some system header has #define'd it.  Problem reported by
108179         Soeren D. Schulze in
108180         <http://lists.gnu.org/r/bug-gnulib/2004-09/msg00017.html>.
108182 2004-09-09  Karl Berry  <karl@gnu.org>
108184         * regex.[ch]: delete from the root.  These were supposed to be
108185                 synced with emacs cvs, but this has not happened for about
108186                 a year, and anyway nothing else uses emacs regex.[ch].
108187                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
108188                 lib/regex[.ch] is untouched.
108190 2004-09-09  Bruno Haible  <bruno@clisp.org>
108192         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
108194 2004-09-09  Bruno Haible  <bruno@clisp.org>
108196         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
108197         modifications.
108198         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
108200 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
108202         * modules/xvasprintf: New file.
108203         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
108205 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
108207         * lib/xvasprintf.h: New file.
108208         * lib/xvasprintf.c: New file.
108209         * lib/xasprintf.c: New file.
108211 2004-09-08  Bruno Haible  <bruno@clisp.org>
108213         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
108215 2004-09-08  Bruno Haible  <bruno@clisp.org>
108217         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
108218         length is > INT_MAX.
108219         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
108220         more.
108222 2004-09-08  Bruno Haible  <bruno@clisp.org>
108224         * lib/stdint_.h: New file, taken from GNU clisp.
108226 2004-09-08  Bruno Haible  <bruno@clisp.org>
108227             Oskar Liljeblad  <oskar@osk.mine.nu>
108229         * modules/stdint: New file.
108230         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
108232 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
108234         Import from coreutils.
108235         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
108236         strings on unbounded length.  alloca's performance benefits aren't
108237         that important here.
108238         (V_STRDUP): Remove.
108239         (parse_with_separator): New function, with most of the internals
108240         of the old parse_user_spec.  Allow user to omit both user and group,
108241         for compatibility with FreeBSD.
108242         Clone only the user name, not the entire spec.
108243         Do not set *uid, *gid unless entirely successful.
108244         Avoid memory leak in some failing cases.
108245         Fix regression for USER.GROUP reported by Dmitry V. Levin in
108246         <http://lists.gnu.org/r/bug-coreutils/2004-08/msg00102.html>
108247         (parse_user_spec): Rewrite to use parse_with_separator.
108249 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
108251         * modules/userspec: Don't depend on alloca.
108253 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
108255         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
108257 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
108259         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
108260         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
108261         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
108263 2004-08-16  Simon Josefsson  <jas@extundo.com>
108265         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
108266         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
108267         Add --dry-run for --import.
108268         Let user provided command line parameters override configure.ac
108269         settings.
108271 2004-08-12  Simon Josefsson  <jas@extundo.com>
108273         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
108274         as discussed with Paul Eggert in threads rooted at
108275         <http://lists.gnu.org/r/bug-gnulib/2004-06/msg00039.html>
108276         and
108277         <http://lists.gnu.org/r/bug-gnulib/2004-07/msg00001.html>.
108278         Before, the test was empty, and relied on ELIDE_CODE in source
108279         code.)
108280         (gl_PREREQ_GETOPT): New macro.
108281         (gl_GETOPT): Use them.
108283 2004-08-12  Simon Josefsson  <jas@extundo.com>
108285         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
108286         * lib/getopt_.h: Renamed from getopt.h.
108288 2004-08-12  Simon Josefsson  <jas@extundo.com>
108290         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
108291         Change default library name from libfoo to libgnu.
108292         Now, if you have a configure.ac that says:
108293                 gl_SOURCE_BASE(gl)
108294                 gl_M4_BASE(gl/m4)
108295                 gl_MODULES(error getopt etcetera)
108296                 gl_INIT
108297         you can import all you need by running:
108298                 ../gnulib/gnulib-tool --import
108300         * modules/getopt (Files): Rename getopt.h to getopt_.h.
108301         (Makefile.am): Rewrite, use logic from argz.
108302         (Include): Use <getopt.h> instead of "getopt.h".
108304 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
108306         * modules/argp (Files): Add m4/unlocked-io.m4.
108307         (Depends-on): Add extensions.
108309 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
108311         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
108312         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
108313         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
108314         Check for program_invocation_name, program_invocation_short_name,
108315         flockfile, funlockfile, features.h, _getopt_long_only_r.
108317 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
108319         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
108320         its complicated substitute.
108321         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
108322         and program_invocation_name.
108323         (__argp_basename) [!_LIBC]: Remove; the only use was
108324         replaced by its body.
108325         (__argp_short_program_name): Change condition from
108326         !defined __argp_short_program_name to
108327         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
108328         to match argp-namefrob.h.
108329         (__argp_failure): Don't assume strerror_r returns char *.
108330         * lib/argp-parse.c (N_): Define unconditionally.
108331         (argp_default_options): Fill out initializers with 0 to avoid
108332         gcc warnings.
108334 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
108336         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
108337         getopt1.c.
108339 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
108341         Merge from coreutils.
108343         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
108345         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
108346         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
108348 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
108350         Merge from coreutils.
108352         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
108353         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
108354         for Reliant Unix 5.43.
108356         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
108357         (union fooround): Use uintmax_t, not long int.
108358         The rest is a merge from libc:
108359         [defined _LIBC]: Include <shlib-compat.h>.
108360         (_obstack) [defined _LIBC]: Remove after 2.3.4.
108362         * lib/settime.c (settime): Recode to avoid warning with
108363         Sun Forte C 6U2.
108365         * lib/strverscmp.c: Convert to UTF-8.
108367 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
108369         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
108370         m4/uintmax_t.m4.
108372 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
108374         * modules/xalloc-die: New file.
108375         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
108377         * modules/md5 (Files): Add m4/uint32_t.m4.
108378         * modules/sha1: Renamed from modules/sha.
108379         (Files):
108380         Rename lib/sha.h to lib/sha1.h.
108381         Rename lib/sha.c to lib/sha1.c.
108382         Rename m4/sha.m4 to m4/sha1.m4.
108383         (lib_SOURCES): Likewise.
108384         (configure.ac): Rename gl_SHA to gl_SHA1.
108385         (Include): sha.h -> sha1.h.
108387 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
108389         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
108390         * m4/sha1.m4: Renamed from sha.m4.
108391         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
108393 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
108395         * lib/obstack.h (obstack_empty_p):
108396         Don't assume that chunk->contents is suitably aligned.
108397         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
108398         Likewise. Problem reported by Benno in
108399         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
108401         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
108402         readable.  This could be improved further but it'd take some work.
108404 2004-08-08  Simon Josefsson  <jas@extundo.com>
108406         * modules/xgethostname (Depends-on): Remove exit and error (not
108407         used).
108409         * modules/getpass-gnu: Add getpass.h.
108410         (Depends-on): Add stdbool.
108411         * modules/getpass: Add getpass.h.
108413 2004-08-08  Simon Josefsson  <jas@extundo.com>
108415         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
108416         Check getpass declaration.
108418 2004-08-08  Simon Josefsson  <jas@extundo.com>
108420         * lib/xgethostname.c: Don't include error.h (not used).
108422         * lib/getpass.h: Add.
108423         * lib/getpass.c: Include getpass.h first.
108425 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
108427         * lib/xalloc-die.c: New file.
108428         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
108429         All uses removed.
108430         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
108431         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
108432         xalloc-die.c.
108433         (_, N_, xalloc_die): Move to xalloc-die.c.
108434         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
108435         so that we needn't mess with xalloc_msg_memory_exhausted.
108437         * lib/sha1.h: Renamed from sha.h.
108438         (SHA1_H): Renamed from _SHA_H.
108439         (sha1_ctx): Renamed from sha_ctx.
108440         (sha1_init_ctx): Renamed from sha_init_ctx.
108441         (sha1_process_block): Renamed from sha_process_block.
108442         (sha1_process_bytes): Renamed from sha_process_bytes.
108443         (sha1_finish_ctx): Renamed from sha_finish_ctx.
108444         (sha1_read_ctx): Renamed from sha_read_ctx.
108445         (sha1_stream): Renamed from sha_stream.
108446         (sha1_buffer): Renamed from sha_buffer.
108447         * lib/sha1.c: Likewise; renamed from sha.c.
108448         Do not include <sys/types.h>.
108449         Include <stddef.h> rather than <stdlib.h>.
108451 2004-08-08  Bruno Haible  <bruno@clisp.org>
108453         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
108454         FILESYSTEM_PREFIX_LEN.
108455         * lib/progreloc.c: Likewise.
108456         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
108458 2004-08-06  Simon Josefsson  <jas@extundo.com>
108460         * modules/progname (Depends-on): Don't depend on stdbool.
108462 2004-08-06  Simon Josefsson  <jas@extundo.com>
108464         * modules/getsubopt: New file.
108465         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
108466         getsubopt.
108468 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
108470         More merge from coreutils.
108472         * m4/utimens.m4, m4/utimecmp.m4: New files.
108473         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
108474         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
108475         prereq.m4, sha.m4: Import changes from coreutils.
108477 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
108479         More merge from coreutils.
108480         * modules/raise, modules/readtokens0, modules/utimens:
108481         * modules/utimecmp, module/xnanosleep: New files.
108482         * modules/strftime: Add lib/strftime.h.
108483         Change include from <time.h> to "strftime.h".
108484         * modules/yesno: Add lib/yesno.h.
108485         * modules/backupfile: Remove lib/addext.c.
108486         * modules/euidaccess: Add stat-macros.h.
108487         * modules/canonicalize, modules/euidaccess,
108488         modules/filemode, modules/lchown, modules/makepath,
108489         modules/rmdir, modules/stat: Likewise.
108491 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
108493         Merge from tar.
108494         * lib/argp-help.c (make_hol, hol_append): Don't assume that
108495         SIZE_MAX is a valid preprocessor constant.
108496         (__argp_basename): Change from "#ifndef _LIBC"
108497         to "#ifndef __argp_short_program_name", so that
108498         we don't compile these functions for tar.
108500         More merges from coreutils.
108501         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
108502         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
108503         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
108504         * lib/addext.c: Remove; no longer needed.
108505         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
108506         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
108507         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
108508         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
108509         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
108510         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
108511         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
108512         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
108513         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
108514         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
108515         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
108516         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
108517         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
108518         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
108519         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
108520         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
108521         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
108522         Import changes from coreutils.
108524 2004-08-05  Simon Josefsson  <jas@extundo.com>
108526         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
108528 2004-08-05  Simon Josefsson  <jas@extundo.com>
108530         * m4/getsubopt.m4: New file.
108532 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
108534         Merge from coreutils.
108536         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
108537         * m4/getcwd-path-max.m4: New files.
108539         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
108540         FILESYSTEM_PREFIX_LEN ->
108541         FILE_SYSTEM_PREFIX_LEN.
108542         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
108543         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
108544         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
108545         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
108547         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
108548         prerequisite modules now handle the DOS stuff.
108549         Don't check for unistd.h.
108551 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
108553         Merge from coreutils.
108555         * lib/.gdb-history: Remove; this doesn't belong here.
108557         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
108558         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
108559         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
108560         * lib/getcwd.c: New files.
108562         * lib/dirname.h: Include <stdbool.h>.
108563         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
108564         for consistency with POSIX terminology.  All uses changed.
108565         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
108566         (strip_trailing_slashes): Use bool for booleans.
108567         * lib/stripslash.c (strip_trailing_slashes): Likewise.
108569         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
108570         sometimes returns a positive errno value even when it succeeds.
108571         (print_errno_message) [!LIBC]: Fall back on strerror if
108572         __strerror_r fails.
108574         * lib/path-concat.c (mempcpy): Don't define if a system header defines
108575         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
108576         (longest_relative_suffix): New function.
108577         (path_concat): Use it.  Assume first argument is not NULL.
108578         Port to DOS.  Omit redundant separators.
108579         Report an error instead of returning NULL.
108580         Use mempcpy instead of memcpy.
108581         (xpath_concat): Remove: not declared or used.
108583         * lib/same.h: Include <stdbool.h>
108584         (same_name): Return bool, not int.
108585         * lib/same.c (same_name): Likewise.
108586         (errno): Don't declare; we assume C89 or better now.
108588         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
108589         if not already defined.
108591         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
108592         * lib/dup-safer.c (errno): Likewise.
108594 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
108596         Merge from coreutils.
108597         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
108598         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
108599         * modules/path-concat: Don't depend on strdup.
108601 2004-08-03  Simon Josefsson  <jas@extundo.com>
108603         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
108604         * lib/progname.h: Don't include stdbool.h.
108606 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
108608         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
108609         * MODULES.html.sh (func_all_modules): Remove fatal.
108611 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
108613         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
108615 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
108617         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
108618         working.
108620 2004-08-02  Simon Josefsson  <jas@extundo.com>
108622         * lib/getsubopt.h: New file, with comments from Bruno Haible.
108623         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
108624         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
108626 2004-08-01  Simon Josefsson  <jas@extundo.com>
108628         * lib/xgetdomainname.c: Include stdlib.h, for free().
108630 2004-07-19  Bruno Haible  <bruno@clisp.org>
108632         * MODULES.html.sh (func_all_modules): Add dummy.
108634 2004-07-16  Simon Josefsson  <jas@extundo.com>
108636         * modules/dummy: New file.
108638 2004-07-16  Simon Josefsson  <jas@extundo.com>
108640         * lib/dummy.c: New file.
108642 2004-07-16  Bruno Haible  <bruno@clisp.org>
108644         * lib/backupfile.h: Add extern "C" for C++.
108645         * lib/closeout.h: Likewise.
108646         * lib/copy-file.h: Likewise.
108647         * lib/findprog.h: Likewise.
108648         * lib/full-write.h: Likewise.
108649         * lib/pathname.h: Likewise.
108650         * lib/progname.h: Likewise.
108651         * lib/stpcpy.h: Likewise.
108652         * lib/stpncpy.h: Likewise.
108653         * lib/strcase.h: Likewise.
108654         * lib/strstr.h: Likewise.
108655         * lib/xalloc.h: Likewise.
108657         * lib/mbswidth.h: Add extern "C" for C++.
108658         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
108660 2004-07-13  Robert Millan  <robertmh@gnu.org>
108662         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
108664 2004-07-09  Simon Josefsson  <jas@extundo.com>
108666         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
108667         failed without this.)
108669 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
108671         * modules/chown (Files): Add lib/fchown-stub.c, since
108672         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
108674 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
108676         * lib/fchown-stub.c: New file.
108678 2004-06-24  Jim Meyering  <jim@meyering.net>
108680         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
108682 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
108684         * modules/argz: Omit "#include".
108686         * MODULES.html.sh (func_all_modules): Add calloc, to match
108687         2004-06-01 addition of calloc module.
108689 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
108691         * m4/argz.m4: New file, which is autoupdated from libtool.
108693 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
108695         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
108696         libtool.
108698 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
108700         * config/srclist-update: Don't insist on "USA." before the
108701         close-comment, as libtool omits the period and puts the */ on a
108702         separate line.
108703         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
108704         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
108706 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
108708         * modules/argz: New file.
108709         * MODULES.html.sh (func_all_modules): Add argz.
108711 2004-06-12  Jim Meyering  <jim@meyering.net>
108712         and  Paul Eggert  <eggert@cs.ucla.edu>
108714         * modules/hash (Files): Add lib/xalloc.h.
108715         * modules/pipe (Depends-on): Add wait-process.
108716         * modules/stat (Depends-on): Add xalloc.
108717         * modules/userspec (Files): Add lib/userspec.h.
108718         * modules/xstrto
108720         Upgrade from gettext-0.13.
108721         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
108722         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
108723         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
108725 2004-06-10  Jim Meyering  <jim@meyering.net>
108727         * lib/calloc.c: New file.
108729 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
108731         * lib/getdate.y (yylex): Allow space between sign and number.
108732         Problem reported by Dan Jacobson.
108734 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
108736         Merge from coreutils CVS.
108738         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
108739         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
108740         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
108741         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
108742         xstrtol.m4: Fix copyright date and/or serial number.
108744         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
108745         See if we need an fchown replacement.
108746         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
108747         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
108748         and use the replacement function if we detect either defect.
108750         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
108751         gl_UTIMECMP.
108753 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
108754         and  Jim Meyering  <jim@meyering.net>
108756         Merge from coreutils CVS.
108758         * lib/stat-macros.h: New file, with contents from file-type.h
108759         and coreutils' system.h.
108760         * lib/file-type.c: Include "stat-macros.h".
108761         * lib/file-type.h (file_type): Move all macro definitions to new file,
108762         stat-macros.h.
108764         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
108765         Wrap old code with this conditional.
108766         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
108767         function that does not dereference symlinks.
108768         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
108770         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
108771         dependency problems.
108772         (xreadlink): Accept new arg SIZE, for efficiency.
108773         All decls and uses changed.
108774         * lib/xreadlink.h: Include <stddef.h>, for size_t.
108776         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
108777         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
108779         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
108780         sysexits.h.
108782 2004-06-01  Jim Meyering  <jim@meyering.net>
108784         * m4/calloc.m4: New file.
108786 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
108788         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
108789         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
108790         Also, fix a typo in a diagnostic.
108792 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
108794         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
108795         or AC_FUNC_REALLOC.
108797 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
108799         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
108800         macros to be defined.
108801         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
108802         the allocator returns NULL because the requested size is zero.
108804 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
108806         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
108807         var.  Add comment explaining why libc still defines it.  This
108808         merges the following patch from glibc:
108809         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
108811 2004-05-20  Andreas Schwab  <schwab@suse.de>
108813         * m4/free.m4: Replace free if it not known to work, not the other
108814         way round.
108816 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
108818         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
108819         present in glibc since revision 1.1 of this file.
108820         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
108821         obstack_alignment_mask, obstack_alloc, obstack_base,
108822         obstack_blank, obstack_blank_fast, obstack_chunk_size,
108823         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
108824         obstack_grow0, obstack_init, obstack_int_grow,
108825         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
108826         obstack_next_free, obstack_object_size, obstack_ptr_grow,
108827         obstack_ptr_grow_fast, obstack_room): Remove declarations of
108828         nonexistent functions.
108830 2004-05-18  Karl Berry  <karl@gnu.org>
108832         * config/srclist.txt: break link for vasnprintf.c.
108834 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
108836         Port obstack to the AS/400, where pointers are 16 bytes wide and
108837         you cannot cast an integer to a valid pointer.  This patch is
108838         currently waiting to be integrated into glibc; see
108839         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
108841         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
108842         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
108843         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
108844         (struct obstack): temp member is now a union of a pointer and
108845         an integer, instead of an integer.  All integer uses changed.
108846         This does not affect the physical layout of struct obstack,
108847         except on hosts (like the AS/400) where the size or alignment of
108848         void * is greater than that of ptrdiff_t.
108849         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
108850         __STDC__)]: Store temporary in pointer member of union, not
108851         integer member.
108852         * lib/obstack.c: Include <stddef.h>, for offsetof.
108853         (struct fooalign): Remove; it doesn't need a name.
108854         (union fooround): Change double to long double, and add void *.
108855         (DEFAULT_ALIGNMENT): Use offsetof to compute.
108856         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
108857         not a macro.  Hence the values are always int; so remove all
108858         casts-to-int in uses.
108860 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
108862         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
108863         we can get this patch merged into glibc.
108865 2004-05-17  Derek R. Price  <derek@ximbiot.com>
108866             Paul Eggert  <eggert@cs.ucla.edu>
108868         * m4/argp: Depend on alloca.
108870 2004-05-17  Derek R. Price  <derek@ximbiot.com>
108871             Paul Eggert  <eggert@cs.ucla.edu>
108873         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
108874         freecoding.
108876 2004-05-17  Bruno Haible  <bruno@clisp.org>
108878         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
108879         precision that consists of a '.' followed by an empty digit string.
108880         Patch by Tor Lillqvist <tml@iki.fi>.
108882 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
108884         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
108885         for backward compatibility with older code.  We need our own
108886         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
108887         it under some other name, and our alloca.h will define it.
108889 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
108890             Derek Price  <derek@ximbiot.com>
108892         * lib/alloca.c: Include <alloca.h>, to get our interface.
108893         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
108894         include <alloca.h> first.  Use C89 prototype for alloca; this
108895         requires including <stddef.h> for size_t.  Use extern "C" if C++.
108896         Use #elif for simplicity, since we can assume C89 now.
108897         Don't try to source the system alloca.h since it will not be found
108898         and to prevent recursively including its replacement.
108899         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
108900         * lib/regex.c: Likewise.
108902 2004-05-16  Derek Price  <derek@ximbiot.com>
108903             Paul Eggert  <eggert@cs.ucla.edu>
108905         getline cleanup.  This changes the getndelim2 API: both order of
108906         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
108907         no delimiter).
108909         * lib/getline.c: Don't include stddef.h or stdio.h, since our
108910         interface does that.
108911         (getline): Always use getdelim, so that we don't have two
108912         copies of this code.
108913         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
108914         if available.
108915         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
108916         (GETNDELIM2_MAXIMUM): New macro.
108917         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
108918         instead of the old practice of delim2==0.  All callers changed.
108919         Return -1 on overflow, instead of returning junk.
108920         Do not set *linesize unless allocation succeeds.
108921         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
108922         that we include sys/types.h.
108923         * lib/getnline.h: Likewise.
108924         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
108925         (getndelim2): Reorder arguments.
108926         * lib/getnline.c (getnline, getndelim):
108927         Don't discard the NMAX argument.
108928         (getnline): Invoke getndelim, to avoid code duplication.
108929         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
108930         of (size_t) -1 by callers of the getnline family.
108932 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
108934         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
108935         Check for gettimeofday.
108936         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
108937         Check for settimeofday, stime.
108939 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
108941         * lib/nanosleep.c (suspended): Change its type from int to
108942         sig_atomic_t volatile.
108943         (first_call): Make it private to rpl_nanosleep, and have it
108944         be zero initially as that's a bit faster.
108945         (my_usleep): Round up fractional times instead of truncating them,
108946         as this is the usual meaning for 'sleep'.
108948         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
108949         doesn't work.
108950         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
108951         (ENOSYS): Define if not defined.
108952         (settime): Fall back on stime if it exists and settimeofday fails.
108953         But don't bother with fallbacks if a method fails with errno == EPERM.
108955 2004-05-11  Jim Meyering  <jim@meyering.net>
108957         Prior to this change, the save_cwd caller required read access to the
108958         current directory on most systems (ones with the fchdir function).
108960         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
108961         fails, try write-only, and finally, resort to using xgetcwd.
108963 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
108965         * lib/obstack.c, obstack.h: Import changes from libc.
108967 2004-04-28  Bruno Haible  <bruno@clisp.org>
108969         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
108970         also implicitly appends .exe to executables.
108971         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
108972         accepts Windows pathnames.
108973         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
108974         Treat Cygwin like Windows, since it now accepts Windows pathnames.
108975         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
108976         Treat Cygwin like Windows, since it now accepts Windows pathnames.
108977         Reported by Derek Robert Price <derek@ximbiot.com>.
108979 2004-04-21  Karl Berry  <karl@gnu.org>
108981         * config/srclist.txt (localcharset.c): break sync.
108983 2004-04-20  Paul Eggert  <eggert@twinsun.com>
108985         * m4/host-os.m4: Add a copyright notice.
108987 2004-04-20  Jim Meyering  <jim@meyering.net>
108989         Change UTILS_ to gl_ in AC_DEFINE'd names.
108990         Change utils_- and jm_-prefixed variables, too.
108991         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
108992         UTILS_FUNC_MKDIR_TRAILING_SLASH.
108993         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
108995         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
108996         Don't emit trailing blanks.
108997         Also rename jm_-prefixed variables to have gl_ prefix.
108999         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
109000         Also rename jm_-prefixed variables to have gl_ prefix.
109002         * m4/jm-macros.m4: Reflect the renamings.
109003         * m4/prereq.m4: Likewise.
109005 2004-04-20  Jim Meyering  <jim@meyering.net>
109007         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
109008         memory.
109010 2004-04-20  Jim Meyering  <jim@meyering.net>
109011             Bruno Haible  <bruno@clisp.org>
109013         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
109014         memory when realloc fails.
109016 2004-04-19  Jim Meyering  <jim@meyering.net>
109018         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
109019         now that readutmp.c may call `free (0)'.
109021 2004-04-19  Bruno Haible  <bruno@clisp.org>
109023         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
109024         * m4/inttypes_h.m4: Likewise.
109025         * m4/stdint_h.m4: Likewise.
109026         * m4/intmax_t.m4: Likewise.
109027         * m4/uintmax_t.m4: Likewise.
109029 2004-04-18  Jim Meyering  <jim@meyering.net>
109031         * m4/prereq.m4: Don't forbid jm_ prefix.
109033         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
109034         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
109035         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
109036         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
109037         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
109038         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
109039         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
109040         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
109041         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
109042         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
109043         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
109044         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
109045         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
109046         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
109047         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
109048         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
109049         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
109050         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
109051         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
109053 2004-04-18  Jim Meyering  <jim@meyering.net>
109055         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
109056         failure, don't leak memory and do call END_UTMP_ENT.
109058 2004-04-16  Jim Meyering  <jim@meyering.net>
109060         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
109061         coreutils' stat program.
109062         (gl_PREREQ): Don't require jm_PREREQ_STAT.
109064 2004-04-11  Paul Eggert  <eggert@twinsun.com>
109066         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
109067         C89.
109068         (CHAR_BIT): Remove, since we assume C89.
109069         Include <stdint.h> if available, as per current Autoconf CVS advice.
109071 2004-03-31  Jim Meyering  <jim@meyering.net>
109073         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
109074         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
109075         * m4/xalloc.m4: Likewise.
109077 2004-03-30  Paul Eggert  <eggert@twinsun.com>
109079         Merge from coreutils.
109081         * m4/inttostr.m4: New file.
109082         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
109083         Require AM_STDBOOL_H and gl_TIMESPEC instead.
109084         Require gl_CLOCK_TIME.
109085         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
109087 2004-03-30  Paul Eggert  <eggert@twinsun.com>
109089         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
109090         not bool, to be more consistent with Unix conventions.
109091         Suggested by Bruno Haible.
109093         Merge from coreutils.
109095         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
109096         * lib/umaxtostr.c: New files.
109098         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
109099         the usual <time.h> dance.
109100         (get_date): Change signature to support fractional time stamps.
109101         All callers changed.
109102         * lib/getdate.y: Include "getdate.h" first, as we can now
109103         assume C89 and don't need to worry about 'const'.
109104         Similarly, include "unlocked-io.h" near start, not in middle.
109105         Include <limits.h>.
109106         (textint.value): Use long int rather than int.
109107         (textint.digits): Use size_t rather than int.
109108         (BILLION, LOG10_BILLION): New constants.
109109         (parser_control): New member rel_ns.  Members day_ordinal,
109110         time_zone, month, day, hour, minutes, rel_year, rel_month,
109111         rel_day, rel_hour, rel_minutes, rel_seconds
109112         are now long int, not int.  Member seconds is now struct timespec,
109113         not int.  New member timespec_seen.  Members dates_seen, days_seen,
109114         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
109115         not int.
109116         (%union.intval): Now long int, not int.
109117         New member timespec.
109118         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
109119         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
109120         (spec): Now is a timespec or an item list.
109121         (timespec, items): New nonterminals.
109122         (time, rel, relunit, number, get_date):
109123         Add support for fractional seconds.
109124         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
109125         (gmtime, localtime, mktime): Remove decls; not needed with C89.
109126         (to_hour): First arg is now long int, not int.
109127         (to_year): Returns long int, not int.
109128         Don't treat year -70 like 70.
109129         (tm_diff): Returns long int, not int.
109130         (lookup_word): Use bool instead of int when appropriate.
109131         (yylex): Use size_t for count, not int.
109132         Detect overflow when parsing large integer constants.
109133         Add support for fractions.
109134         (get_date): Make pointers 'const' if possible.
109135         Use more-portable code to detect integer overflow.
109136         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
109137         Don't use ctime; it's not reliable if the year has >4 digits.
109139         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
109140         This is for compatibility with BSD.
109142         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
109143         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
109144         From coreutils' system.h.
109146         * lib/userspec.c: Don't include "posixver.h".
109147         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
109148         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
109149         compatible extension.  Simplify code by removing a boolean int
109150         that was always nonzero if a string was nonnull.
109152 2004-03-30  Jim Meyering  <jim@meyering.net>
109154         Merge from coreutils.
109156         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
109157         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
109158         on some systems one must include <grp.h> before it.
109159         Reported by Christian Krackowizer.
109161 2004-03-30  Jim Meyering  <jim@meyering.net>
109163         Merge from coreutils.
109165         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
109167         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
109168         an empty input stream.
109170         * lib/readtokens.c: Include <stdbool.h>.
109171         (readtoken): Use `size_t' rather than int/long.
109172         All callers adjusted.
109173         Use `bool' rather than `int' where appropriate.
109174         Use memset rather than an explicit loop.
109175         Use x2nrealloc rather than xrealloc.
109176         Allow the use of `\0' as a delimiter.
109177         (readtokens): Likewise.
109178         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
109180 2004-03-30  Jim Meyering  <jim@meyering.net>
109182         * m4/realloc.m4: Remove file, since now it does no more than
109183         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
109184         the `configure.ac' section of module/realloc.
109185         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
109187 2004-03-30  Bruno Haible  <bruno@clisp.org>
109189         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
109190         nonnull.
109192 2004-03-29  Paul Eggert  <eggert@twinsun.com>
109194         Merge changes to getloadavg.c from coreutils and Emacs.
109196         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
109197         Define to an expression, not to the empty string.
109198         Include cloexec.h and xalloc.h.
109199         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
109200         Use set_cloexec_flag rather than rolling our own.
109201         * lib/cloexec.c, lib/cloexec.h: New files.
109203 2004-03-29  Paul Eggert  <eggert@twinsun.com>
109205         * m4/cloexec.m4: New file.
109207 2004-03-18  Paul Eggert  <eggert@twinsun.com>
109209         * lib/getopt.h: Sync with libc CVS.
109211 2004-03-18  Paul Eggert  <eggert@twinsun.com>
109212             Bruno Haible  <bruno@clisp.org>
109214         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
109215         mbswidth.
109217 2004-03-18  Paul Eggert  <eggert@twinsun.com>
109218             Bruno Haible  <bruno@clisp.org>
109220         * lib/mbswidth.h: Include <wchar.h> only if
109221         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
109222         <wchar.h>.
109223         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
109225 2004-03-09  Paul Eggert  <eggert@twinsun.com>
109227         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
109228         Sync with libc CVS.
109229         * lib/getopt_int.h: New file, also synced from libc.
109231 2004-03-09  Paul Eggert  <eggert@twinsun.com>
109233         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
109234         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
109235         Bring back getopt.c, getopt.h, getopt1.c.
109237 2004-03-07  Paul Eggert  <eggert@twinsun.com>
109239         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
109240         All uses changed.  Check for sa_sigaction member; this fixes
109241         a bug first reported by Jason Andrade in
109242         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
109244 2004-03-07  Paul Eggert  <eggert@twinsun.com>
109246         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
109247         '#if' expressions.  Unlike the code it replaces, it does not
109248         depend on (defined _SC_PAGESIZE).  However, it does depend on
109249         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
109250         first reported by Jason Andrade in
109251         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
109253 2004-02-25  Simon Josefsson  <jas@extundo.com>
109255         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
109257 2004-02-25  Simon Josefsson  <jas@extundo.com>
109259         * lib/strdup.h: New file.
109260         * lib/strdup.c: Include it.
109261         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
109262         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
109264 2004-02-23  Karl Berry  <karl@gnu.org>
109266         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
109267         (from fencepost.gnu.org:/gd/gnuorg).
109269 2004-02-23  Karl Berry  <karl@gnu.org>
109271         * config/srclistvars.sh (GNUORG) [karl]: redefine.
109272         * config/srclist.txt: add maintain/standards documents.
109274 2004-02-18  Bruno Haible  <bruno@clisp.org>
109276         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
109277         Reported by Derek Robert Price <derek@ximbiot.com>.
109279 2004-02-16  Karl Berry  <karl@gnu.org>
109281         * config/mkinstalldirs, install-sh: update from automake.
109283 2004-02-06  Karl Berry  <karl@gnu.org>
109285         * m4/po.m4: update from gettext 0.14.1.
109287 2004-02-06  Karl Berry  <karl@gnu.org>
109289         * lib/config.charset: update from gettext 0.14.1.
109291 2004-02-05  Paul Eggert  <eggert@twinsun.com>
109293         Add comments and code, prompted by suggestions from Bruno Haible
109294         for sh-quote.
109295         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
109296         describing the enum quoting_style values.
109297         * lib/quotearg.c (quotearg_alloc): New function.
109298         (quotearg_buffer_restyled): Treat lone { and } as special.
109299         Treat = as special.  Work around bug with older shells
109300         that "see" a '\' that is really the 2nd byte of a multibyte char.
109301         Quote empty string with shell_quoting_style.
109303 2004-02-03  Bruno Haible  <bruno@clisp.org>
109305         * m4/pipe.m4: New file, from GNU gettext.
109307 2004-02-03  Bruno Haible  <bruno@clisp.org>
109309         * lib/pipe.h: New file, from GNU gettext.
109310         * lib/pipe.c: New file, from GNU gettext.
109312 2004-01-27  Bruno Haible  <bruno@clisp.org>
109314         * m4/execute.m4: New file, from GNU gettext.
109316 2004-01-27  Bruno Haible  <bruno@clisp.org>
109318         * lib/execute.h: New file, from GNU gettext.
109319         * lib/execute.c: New file, from GNU gettext.
109320         * lib/w32spawn.h: New file, from GNU gettext.
109322 2004-01-24  Paul Eggert  <eggert@twinsun.com>
109324         Merge from diffutils.
109326         * lib/file-type.c (file_type): Add typed memory objects.
109327         * lib/file-type.h (S_TYPEISTMO): New macro.
109329         * lib/c-stack.h (c_stack_action): Remove argv argument.
109330         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
109331         (die): Don't calculate message unless segv_action returns.
109332         (get_stack_location, min_address_from_argv, max_address_from_argv,
109333         volatile stack_base, volatile_stack_size): Remove.
109334         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
109335         that every segmentation violation is a stack overflow.  (Ouch!)
109336         See Debian bug 136249 (still outstanding) for more info about why
109337         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
109339 2004-01-24  Paul Eggert  <eggert@twinsun.com>
109341         Exit-status fix from coreutils.
109343         Use exit_failure consistently in place of EXIT_FAILURE,
109344         so that program exit statuses are consistent on failure.
109346         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
109347         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
109348         * lib/argmatch.h: Comment fix to match the above.
109349         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
109350         Now a macro referring to exit_failure, instead of a separate
109351         variable.  Include "exitfail.h" to get it.
109352         * lib/xstrtol.h: Include "exitfail.h".
109353         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
109355         * lib/long-options.c (parse_long_options): Use prototype
109356         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
109357         for clarity.
109359 2004-01-21  Jim Meyering  <jim@meyering.net>
109361         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
109362         so as not to conflict with a different-sized __mktime_internal
109363         function in GNU libc.
109364         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
109365         Problem building statically-linked `ls' reported by Michael Brunnbauer.
109367 2004-01-20  Karl Berry  <karl@gnu.org>
109369         * config/config.guess: update from config.
109371         * config/srclistvars.sh: GNUWWWLICENSES for karl.
109373 2004-01-20  Bruno Haible  <bruno@clisp.org>
109375         Safer stack allocation.
109376         * lib/setenv.c: Include allocsa.h.
109377         (alloca): Remove fallback definition.
109378         (freea): Remove macro.
109379         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
109380         instead of freea.
109382 2004-01-20  Bruno Haible  <bruno@clisp.org>
109384         * m4/eealloc.m4: New file, from GNU gettext.
109386 2004-01-20  Bruno Haible  <bruno@clisp.org>
109388         * m4/allocsa.m4: New file, from GNU gettext.
109390 2004-01-20  Bruno Haible  <bruno@clisp.org>
109392         * lib/xallocsa.h: New file, from GNU gettext.
109393         * lib/xallocsa.c: New file, from GNU gettext.
109395 2004-01-20  Bruno Haible  <bruno@clisp.org>
109397         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
109399 2004-01-20  Bruno Haible  <bruno@clisp.org>
109401         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
109402         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
109403         specially.
109405 2004-01-20  Bruno Haible  <bruno@clisp.org>
109407         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
109408         patch.
109410 2004-01-20  Bruno Haible  <bruno@clisp.org>
109412         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
109414 2004-01-20  Bruno Haible  <bruno@clisp.org>
109416         * lib/eealloc.h: New file.
109418 2004-01-20  Bruno Haible  <bruno@clisp.org>
109420         * lib/binary-io.h: Avoid warnings on Cygwin.
109422 2004-01-20  Bruno Haible  <bruno@clisp.org>
109424         * lib/allocsa.h: New file, from GNU gettext.
109425         * lib/allocsa.c: New file, from GNU gettext.
109427 2004-01-18  Karl Berry  <karl@gnu.org>
109429         * doc/gpl.texi, doc/lgpl.texi: new files.
109431 2004-01-18  Karl Berry  <karl@gnu.org>
109433         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
109434         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
109436 2004-01-15  Paul Eggert  <eggert@twinsun.com>
109438         Merge from coreutils.
109440         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
109441         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
109442         (gl_DEFAULT_POSIX2_VERSION): Move
109443         the documentation from 'configure' into 'config.hin',
109444         so that 'configure --help' isn't burdened by it and
109445         we don't have to worry about its formatting there.
109446         Reword the documentation so that it's more succinct
109447         and can be run together into a single paragraph.
109448         * m4/same.m4 (gl_SAME): Check for pathconf.
109450 2004-01-15  Paul Eggert  <eggert@twinsun.com>
109452         Merge from coreutils.
109454         * lib/posixver.c: Include posixver.h.
109456         * lib/same.c: Include <stdbool.h>, <limits.h>.
109457         (_POSIX_NAME_MAX): Define if not defined.
109458         (MIN): New macro.
109459         (same_name): If file names are silently truncated, report
109460         that the file names are the same if they are the same after
109461         the silent truncation.
109463         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
109464         conversion function.
109465         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
109466         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
109467         longer needed.
109469 2004-01-15  Jim Meyering  <jim@meyering.net>
109471         Merge from coreutils.
109473         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
109474         if no library is required.
109475         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
109476         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
109477         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
109478         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
109479         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
109480         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
109481         value, $ac_cv_search_crypt, if it's "none required".
109482         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
109483         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
109484         not gl_FUNC_GETLOADAVG.
109485         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
109486         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
109488 2004-01-15  Jim Meyering  <jim@meyering.net>
109490         Merge from coreutils.
109492         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
109493         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
109494         http://mail.gnu.org/r/bug-coreutils/2003-11/msg00144.html
109496         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
109497         optional configure-time default.
109499         * lib/version-etc.c (version_etc_copyright): Update copyright date.
109501         * lib/xreadlink.c (xreadlink): Correct outdated comment.
109503 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
109505         Merge from coreutils.
109507         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
109508         value, $ac_cv_search_nanosleep, if it's "none required".
109510 2004-01-14  Paul Eggert  <eggert@twinsun.com>
109512         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
109513         with like-named macro in fnmatch.c.
109514         (EXT): Use an internal constant instead.
109516         Merge fnmatch patches from glibc.
109517         * lib/fnmatch.c (mbsinit): Remove define.
109518         Add libc_hidden_ver (__fnmatch, fnmatch).
109519         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
109520         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
109522 2004-01-14  Karl Berry  <karl@gnu.org>
109524         * config/install-sh: update from automake.
109526 2004-01-13  Karl Berry  <karl@gnu.org>
109528         * config/install-sh: update from automake.
109530 2004-01-09  Karl Berry  <karl@gnu.org>
109532         * config/install-sh: update from automake.
109534 2004-01-05  Karl Berry  <karl@gnu.org>
109536         * config/config.{sub,guess}: update from config.
109538 2003-12-31  Karl Berry  <karl@gnu.org>
109540         * config/depcomp: update from automake.
109542 2003-12-14  Karl Berry  <karl@gnu.org>
109544         * lib/config.charset: update from gettext-runtime.
109546 2003-12-03  Paul Eggert  <eggert@twinsun.com>
109548         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
109549         Bug reported by Alfred M. Szmidt.
109551 2003-12-03  Bruno Haible  <bruno@clisp.org>
109553         * m4/gettext.m4: Upgrade from gettext-0.13.
109554         * m4/po.m4: Upgrade from gettext-0.13.
109555         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
109556         * m4/intmax.m4: New file, from gettext-0.13.
109557         * m4/printf-posix.m4: New file, from gettext-0.13.
109559 2003-11-29  Karl Berry  <karl@gnu.org>
109561         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
109563 2003-11-25  Paul Eggert  <eggert@twinsun.com>
109564             Bruno Haible  <bruno@clisp.org>
109566         * lib/printf-parse.h: Don't include sys/types.h.
109567         (ARG_NONE): New macro.
109568         (char_directive): Change type of *arg_index fields to size_t.
109569         * lib/printf-parse.c: Don't include sys/types.h.
109570         (SSIZE_MAX): Remove macro.
109571         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
109572         Remove unnecessary overflow check.
109573         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
109574         fields.
109576 2003-11-25  Bruno Haible  <bruno@clisp.org>
109578         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
109580 2003-11-25  Bruno Haible  <bruno@clisp.org>
109582         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
109583         gt_TYPE_SSIZE_T.
109585 2003-11-24  Paul Eggert  <eggert@twinsun.com>
109587         * modules/alloca: Remove dependency on xalloc.
109589 2003-11-24  Paul Eggert  <eggert@twinsun.com>
109591         * lib/alloca.c: Remove dependency on xalloc module.
109592         (xalloc_die): Remove.
109593         (memory_full) [!defined emacs]: New macro.
109594         [!defined emacs]: Don't include xalloc.h.
109595         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
109596         address arithmetic overflows.  Change datatypes a bit to avoid
109597         unnecessary casts.
109599 2003-11-22  Jim Meyering  <jim@meyering.net>
109601         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
109602         s/size/size_t/.
109604 2003-11-21  Karl Berry  <karl@gnu.org>
109606         * config/config.{sub,guess}: update from config.
109608 2003-11-18  Karl Berry  <karl@gnu.org>
109610         * config/config.{sub,guess}: update from config.
109612         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
109614 2003-11-17  Paul Eggert  <eggert@twinsun.com>
109616         * README: Mention that S+T cannot overflow if S is the size of
109617         an existing object and T is sufficiently small.
109619 2003-11-17  Jim Meyering  <jim@meyering.net>
109621         On systems without utime and without a utimes function capable of
109622         dealing with a NULL struct utimbuf* argument, this utime replacement
109623         could -- in unusual circumstances -- leak a file descriptor.
109624         * lib/utime.c: Include <unistd.h> and <errno.h>.
109625         (utime_null): Be sure to close `fd' and to preserve errno.
109626         Reported by Geoff Collyer via Arnold Robbins.
109628 2003-11-17  Bruno Haible  <bruno@clisp.org>
109630         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
109631         (Depends-on): Add xsize.
109633 2003-11-17  Bruno Haible  <bruno@clisp.org>
109635         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
109637 2003-11-17  Bruno Haible  <bruno@clisp.org>
109639         * lib/vasnprintf.c (alloca): Remove fallback definition.
109640         (freea): Remove definition.
109641         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
109642         Reported by Paul Eggert.
109644 2003-11-16  Paul Eggert  <eggert@twinsun.com>
109645             Bruno Haible  <bruno@clisp.org>
109647         Protect against address arithmetic overflow.
109648         * lib/printf-args.h: Include stddef.h.
109649         (arguments): Change type of field 'count' to size_t.
109650         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
109651         'unsigned int' where appropriate.
109652         * lib/printf-parse.h: Include sys/types.h.
109653         (char_directive): Change type of *arg_index fields to ssize_t.
109654         (char_directives): Change type of fields 'count', max_*_length to
109655         size_t.
109656         * lib/printf-parse.c: Include sys/types.h and xsize.h.
109657         (SSIZE_MAX): Define fallback value.
109658         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
109659         instead of 'int' where appropriate. Check a_allocated, d_allocated
109660         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
109661         * lib/vasnprintf.c: Include xsize.h.
109662         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
109663         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
109664         overflow. Avoid wraparound when converting a width or precision from
109665         decimal to binary.
109667 2003-11-16  Bruno Haible  <bruno@clisp.org>
109669         Update from GNU gettext.
109670         * lib/printf-parse.c: Generalize to it can be compiled for wide
109671         strings.
109672         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
109673         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
109674         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
109675         SNPRINTF): New macros.
109676         Don't include <alloca.h> if the file is used inside libintl.
109677         (local_wcslen): New function, for Solaris 2.5.1.
109678         (VASNPRINTF): Use it instead of wcslen.
109680 2003-11-16  Bruno Haible  <bruno@clisp.org>
109682         * lib/xsize.h (xmax): New function.
109683         (xsum, xsum3, xsum4): Declare as "pure" functions.
109685 2003-11-12  Paul Eggert  <eggert@twinsun.com>
109687         * modules/xalloc (Files): Undo latest change, since xalloc.h
109688         no longer needs SIZE_MAX or PTRDIFF_MAX.
109690 2003-11-12  Paul Eggert  <eggert@twinsun.com>
109692         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
109693         gl_PTRDIFF_MAX.
109695 2003-11-12  Paul Eggert  <eggert@twinsun.com>
109697         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
109698         "return", to pacify some unknown compiler.  Problem reported
109699         by Joerg Schilling.
109701 2003-11-12  Paul Eggert  <eggert@twinsun.com>
109703         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
109704         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
109705         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
109706         heuristic is just as accurate as far as we know, and it removes a
109707         dependency on size_max.m4 and ptrdiff_max.m4.
109709 2003-11-11  Bruno Haible  <bruno@clisp.org>
109711         * modules/xsize (Files): Add m4/size_max.m4.
109712         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
109714 2003-11-11  Bruno Haible  <bruno@clisp.org>
109716         * m4/size_max.m4: New file.
109717         * m4/ptrdiff_max.m4: New file.
109718         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
109719         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
109720         (gl_XALLOC): Invoke it.
109722 2003-11-11  Bruno Haible  <bruno@clisp.org>
109724         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
109725         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
109726         defined.
109728 2003-11-10  Paul Eggert  <eggert@twinsun.com>
109730         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
109731         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
109732         rejected some allocations of exactly SIZE_MAX - 2 bytes.
109733         From Bruno Haible.
109734         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
109735         not (size_t) -1, since it's defined here.
109737 2003-11-09  Karl Berry  <karl@gnu.org>
109739         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
109741 2003-11-06  Paul Eggert  <eggert@twinsun.com>
109743         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
109744         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
109745         Reject sizes of exactly SIZE_MAX bytes.
109746         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
109747         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
109749 2003-11-05  Bruno Haible  <bruno@clisp.org>
109751         * lib/xsize.h: Include limits.h, to avoid a possible collision with
109752         SIZE_MAX defined in <limits.h> on Solaris.
109754 2003-11-04  Jim Meyering  <jim@meyering.net>
109756         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
109757         variable names, rather than @VAR@.
109758         * modules/poll: Likewise.
109760 2003-11-04  Bruno Haible  <bruno@clisp.org>
109762         * modules/xsize: New file.
109763         * modules/linebreak: Depend on xsize.
109764         * MODULES.html.sh (func_all_modules): Add xsize.
109766 2003-11-04  Bruno Haible  <bruno@clisp.org>
109768         * m4/xsize.m4: New file.
109770 2003-11-04  Bruno Haible  <bruno@clisp.org>
109772         * lib/xsize.h: New file.
109773         * lib/linebreak.c: Include xsize.h.
109774         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
109775         argument for overflow.
109776         Suggested by Paul Eggert.
109778 2003-11-03  Karl Berry  <karl@gnu.org>
109780         * config/config.{guess,sub}: update from config.
109782 2003-11-03  Jim Meyering  <jim@meyering.net>
109784         * modules/userspec (lib_SOURCES): Add userspec.h.
109785         (Include): Add "userspec.h".
109786         Improve description.
109788 2003-11-03  Jim Meyering  <jim@meyering.net>
109790         * lib/userspec.c: Include "userspec.h".
109791         * lib/userspec.h: New file.
109793 2003-11-03  Bruno Haible  <bruno@clisp.org>
109795         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
109797 2003-11-03  Bruno Haible  <bruno@clisp.org>
109799         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
109800         available, to avoid (extremely rare) race condition.
109801         Suggested by Paul Eggert.
109803 2003-11-02  Karl Berry  <karl@gnu.org>
109805         * config/srclist.txt (vasprintf.c): sync broken, sigh.
109807 2003-10-31  Paul Eggert  <eggert@twinsun.com>
109809         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
109810         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
109811         (read_filesystem_list): Set and use me_type_malloced.
109812         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
109813         whatever the type happens to be), for brevity and consistency.
109814         Check for size calculation overflow on Alphas running OSF/1.
109816 2003-10-31  Jim Meyering  <jim@meyering.net>
109818         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
109820         * lib/linebuffer.c: Include <string.h> for declaration of memset.
109822 2003-10-30  Paul Eggert  <eggert@twinsun.com>
109823             Bruno Haible  <bruno@clisp.org>
109825         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
109826         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
109828 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
109830         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
109831         netbsd*-gnu*.  Suggested by Robert Millan.
109833 2003-10-29  Paul Eggert  <eggert@twinsun.com>
109835         * modules/group-member: Depend on stdbool.
109837 2003-10-29  Paul Eggert  <eggert@twinsun.com>
109839         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
109841 2003-10-29  Paul Eggert  <eggert@twinsun.com>
109843         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
109844         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
109845         after the 'gnu' in these cases.  This fixes some bugs in the
109846         previous change, and is based on suggestions by Robert Millan.
109848 2003-10-29  Paul Eggert  <eggert@twinsun.com>
109850         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
109851         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
109852         no longer needed.
109853         * lib/quotearg.c (quotearg_n_options): Use it.
109854         * lib/group-member.c: Include <stdbool.h>.
109855         (free_group_info): Arg is now const *; don't free arg.
109856         (get_group_info): Now returns bool and accepts struct group_info *,
109857         rather than returning a malloc'ed struct group_info *.
109858         All uses changed.  Check for overflow in internal size calculation.
109860         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
109861         rather than xmalloc/xrealloc.
109862         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
109863         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
109864         conformance bug: the old code used a pointer after freeing the
109865         storage that it addressed.
109866         * lib/hash.c (hash_initialize): Simplify the code by using
109867         xalloc_oversized rather than doing it by hand.
109868         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
109869         the buffer preserved.  Use free and xmalloc instead.
109870         * lib/quotearg.c (quotearg_n_options): Likewise.
109871         Use a simpler test for size overflow.  Don't use xalloc_oversized
109872         because unsigned int might be wider than size_t (!); this suggests
109873         that we should switch from unsigned int to size_t for slot numbers.
109875 2003-10-28  Paul Eggert  <eggert@twinsun.com>
109877         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
109878         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
109879         NetBSD kernels.  Requested by Richard Stallman.
109881 2003-10-27  Paul Eggert  <eggert@twinsun.com>
109883         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
109884         to allocate the returned structure.  Do not allocate a subarray,
109885         as x2nrealloc will do that.
109886         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
109887         instead of xnrealloc.
109888         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
109890 2003-10-27  Bruno Haible  <bruno@clisp.org>
109892         * lib/stdbool_.h: Better support for BeOS.
109894 2003-10-26  Paul Eggert  <eggert@twinsun.com>
109896         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
109897         now uses inline.
109899 2003-10-26  Paul Eggert  <eggert@twinsun.com>
109901         * lib/xalloc.h (xalloc_oversized): New static inline function, for
109902         callers that want to do their own size-overflow checking.  Include
109903         <stdbool.h>, since xalloc_oversized returns bool.
109904         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
109905         to use xalloc_oversized.
109907         Add two functions x2realloc, x2nrealloc, for programs that grow
109908         arrays dynamically by doubling their sizes.
109909         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
109910         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
109911         New functions.
109913         Port to C99 semantics for 'inline' of external functions.
109914         Bug reported by Bruno Haible.
109915         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
109916         with the old contents of xnmalloc.
109917         (xnmalloc, xmalloc): Use it.
109918         (xnrealloc_inline): New static inline function,
109919         with the old contents of xnrealloc.
109920         (xnrealloc, xrealloc): Use it.
109922         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
109923         that.
109925 2003-10-26  Karl Berry  <karl@gnu.org>
109927         * config/srclist.txt (COPYING.DOC): no longer available from
109928         /gd/gnuorg; don't know where the ultimate source is.
109930 2003-10-25  Paul Eggert  <eggert@twinsun.com>
109932         Fix several address-calculation bugs in the hash modules,
109933         plus some minor code cleanup.
109935         * lib/hash.h: Include <stdbool.h>, for bool.
109936         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
109937         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
109938         hash_get_n_entries, hash_get_max_bucket_length,
109939         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
109940         hash_rehash): Use size_t rather than unsigned.
109941         * lib/hash.c (struct hash_table, hash_get_n_buckets,
109942         hash_get_n_buckets_used, hash_get_n_entries,
109943         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
109944         hash_get_entries, hash_do_for_each, hash_string, is_prime,
109945         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
109946         Likewise.
109947         (SIZE_MAX): Define if not defined.
109948         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
109949         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
109950         hash_print):
109951         Use const * when possible.
109952         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
109953         (check_tuning): Fix bug: if tuning parameters were very close to
109954         0 or 1, rounding errors could have caused subscript violations.
109955         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
109956         (hash_initialize): Add 'fail:' label
109957         to free table and return NULL, and use it to simplify code.
109958         Use calloc rather than clearing the storage ourself.
109959         (hash_initialize, hash_rehash): Check for arithmetic overflow in
109960         buffer size calculations.
109961         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
109962         Include <stddef.h>, for size_t.
109963         * lib/hash-pjw.c (hash_pjw): Likewise.
109964         Switch to method described by Bruno Haible.
109965         Include <limits.h>, for CHAR_BIT.
109966         (SIZE_BITS): New macro.
109968 2003-10-23  Paul Eggert  <eggert@twinsun.com>
109970         * m4/getline.m4 (AM_FUNC_GETLINE):
109971         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
109972         hosts.  Problem reported by Derek Robert Price in
109973         <http://mail.gnu.org/r/bug-gnulib/2003-10/msg00092.html>.
109974         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
109975         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
109977 2003-10-21  Paul Eggert  <eggert@twinsun.com>
109979         * lib/getndelim2.c (getndelim2): When size calculation overflows,
109980         ceiling the allocation at NMAX bytes rather than silently
109981         discarding input bytes before NMAX is reached.  This makes
109982         a difference only if NMAX exceeds SIZE_MAX / 2.
109984         * lib/obstack.c: Merge from glibc.
109985         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
109986         Add libc_hidden_def (_obstack_newchunk).
109987         (_obstack_free) [! defined _LIBC]: Remove.
109988         [defined _LIBC]: Make a strong alias from obstack_free, rather than
109989         a clone of the function body.
109990         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
109991         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
109993         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
109994         glibc.
109995         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
109996         arg to memcpy.
109998         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
109999         (obstack_ptr_grow_fast, obstack_int_grow_fast):
110000         Don't use lvalue casts, as GCC plans to remove support for them
110001         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
110002         was also present in the non-GCC version, indicating that this
110003         code had always been buggy and had never been widely used.
110004         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
110005         Use the fast variant of each macro, rather than copying the
110006         definiens of the fast variant; that way, we'll be more likely to
110007         catch future bugs in the fast variants.
110009 2003-10-20  Bruno Haible  <bruno@clisp.org>
110011         * modules/wait-process: New file.
110012         * MODULES.html.sh (func_all_modules): Add wait-process.
110014 2003-10-20  Bruno Haible  <bruno@clisp.org>
110016         * m4/wait-process.m4: New file.
110018 2003-10-20  Bruno Haible  <bruno@clisp.org>
110020         * lib/wait-process.h: New file, from GNU gettext.
110021         * lib/wait-process.c: New file, from GNU gettext.
110023 2003-10-19  Jim Meyering  <jim@meyering.net>
110025         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
110026         HPUX 10.20.
110028 2003-10-18  Karl Berry  <karl@gnu.org>
110030         * config/config.guess: update from config.
110032 2003-10-16  Paul Eggert  <eggert@twinsun.com>
110034         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
110035         (getgroups): First arg is int, not size_t.
110036         Don't let 'free' mangle errno.
110038 2003-10-16  Paul Eggert  <eggert@twinsun.com>
110040         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
110042 2003-10-16  Karl Berry  <karl@gnu.org>
110044         * config/config.{guess,sub}: update from config.
110046 2003-10-16  Jim Meyering  <jim@meyering.net>
110048         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
110049         memcpy.
110051 2003-10-15  Paul Eggert  <eggert@twinsun.com>
110053         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
110054         (SIZE_MAX): Remove.
110055         (new_exclude, add_exclude_file): Initial size no longer needs to
110056         be a power of 2.
110057         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
110058         our own address arithmetic overflow checking.
110060         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
110061         (fnmatch): Do not alloca more than 2000 wide characters;
110062         instead, use malloc for large buffers.
110063         Check for address arithmetic overflow, and return -1
110064         with errno set to ENOMEM in that case.
110065         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
110066         (NEW_PATTERN): Do not alloca more than 8000 bytes;
110067         instead, return -1.  Check for address arithmetic overflow.
110069 2003-10-14  Paul Eggert  <eggert@twinsun.com>
110071         Handle invalid suffixes and overflow independently, so that
110072         callers can treat them independently as needed.  Fix some bugs in
110073         suffix handling, e.g., "100k@" was not diagnosed as an invalid
110074         suffix for a human-readable blocksize.  The major caller-visible
110075         change is the addition of a new
110076         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
110077         that both overflow and suffix chars were found.
110079         * lib/human.c (humblock): Don't check separately for invalid suffix
110080         char; that is xstrtoumax's job (now that its bug is fixed).
110081         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
110082         INTMAX_MAX]: New macros.
110083         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
110084         TYPE_MAXIMUM): New macros.
110085         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
110086         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
110087         if overflow occurs, as it's what __strtol does and it's more useful
110088         in practice.
110089         (__xstrtol): If __strtol reports some error other than ERANGE,
110090         reflect it to the caller as LONGINT_INVALID.  If it reports
110091         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
110092         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
110093         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
110094         value.
110095         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
110096         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
110097         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
110098         [defined UINTMAX_MAX]: New macros.
110100 2003-10-14  Bruno Haible  <bruno@clisp.org>
110102         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
110104 2003-10-14  Bruno Haible  <bruno@clisp.org>
110106         * m4/sig_atomic_t: New file, from GNU gettext.
110107         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
110109 2003-10-14  Bruno Haible  <bruno@clisp.org>
110111         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
110112         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
110113         Also use volatile where needed.
110115 2003-10-12  Paul Eggert  <eggert@twinsun.com>
110117         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
110118         Change maintainer from Bruno Haible to 'all'.
110120 2003-10-12  Paul Eggert  <eggert@twinsun.com>
110122         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
110124 2003-10-12  Paul Eggert  <eggert@twinsun.com>
110126         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
110127         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
110128         and define in terms of the other primitives.
110129         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
110130         (SIZE_MAX): Define if not already defined.
110131         (array_size_overflow): New function.
110132         (xalloc_die): Abort instead of exiting if 'error' returns.
110133         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
110134         (xmalloc, xrealloc): Use them.
110135         (xcalloc): Check for address arithmetic overflow.
110136         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
110137         a bit faster than strcpy.
110139 2003-10-10  Simon Josefsson  <jas@extundo.com>
110141         * modules/argp (Depends-on): Add restrict and strcase.
110143 2003-10-10  Simon Josefsson  <jas@extundo.com>
110145         * m4/argp.m4: Add AC_C_INLINE.
110147 2003-10-08  Paul Eggert  <eggert@twinsun.com>
110149         Merge getpass from libc, plus a few fixes.
110151         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
110152         Include <stdbool.h>.
110153         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
110154         __fsetlocking to empty.
110155         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
110156         do include <bits/libc-lock.h>.
110157         Do not include <fcntl.h>; not needed.
110158         [_LIBC]: Include <wchar.h>.
110159         (NOTCANCEL_MODE): New macro.
110160         (flockfile, funlockfile) [_LIBC]: New macros.
110161         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
110162         [!_LIBC]: New macros.
110163         (call_fclose): New function.
110164         (getpass): Use it.  Save tty stream separately; this simplifies the
110165         code and makes it more reliable if stdin happens to equal stdout.
110166         Invoke __fsetlocking on tty.
110167         Handle thread cancellation if needed.
110168         Namespace cleanup (use __tcgetattr, __getline).
110169         Use bool for Booleans.
110170         [USE_IN_LIBIO]: Handle wide streams.
110171         [!_LIBC]: Unconditionally do the fseek, since we don't know what
110172         stream might go where.
110174         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
110175         doesn't have to include <stdio.h> before us.
110176         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
110177         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
110178         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
110179         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
110180         if not declared, so that we can use getpass.c code from libc without
110181         rewriting it.
110182         (flockfile, ftrylockfile, funlockfile): New macros.
110184 2003-10-08  Paul Eggert  <eggert@twinsun.com>
110186         * modules/getpass: Depend on stdbool.
110188 2003-10-08  Paul Eggert  <eggert@twinsun.com>
110190         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
110192 2003-10-07  Karl Berry  <karl@gnu.org>
110194         * config/config.{guess,sub}: update from config.
110196 2003-10-06  Jim Meyering  <jim@meyering.net>
110197             Bruno Haible  <bruno@clisp.org>
110199         This lets translators provide better translations for the
110200         "Written by ..." part of --version output.
110201         * lib/version-etc.h: Include stdarg.h.
110202         (version_etc_copyright): Declare as readonly.
110203         (version_etc): Make this function variadic with a NULL-terminated list
110204         of author name strings.
110205         (version_etc_va): New declaration.
110206         * lib/version-etc.c: Include stdarg.h, stdlib.h.
110207         (version_etc_copyright): Declare as readonly.
110208         (version_etc_va): New function. Provide a different translatable string
110209         for each possible number of authors < 10. Abbreviate when there are 10
110210         authors or more.
110211         (version_etc): Make this function variadic. Call version_etc_va.
110212         Suggestion from Gary V. Vaughan.
110214         * lib/long-options.h (parse_long_options): Change prototype: the
110215         authors string is moved to the end and becomes variadic.
110216         * lib/long-options.c: Include stdarg.h.
110217         (parse_long_options): Make this function variadic, too.
110218         Call version_etc_va, not version_etc.
110220 2003-10-06  Bruno Haible  <bruno@clisp.org>
110222         * modules/version-etc-2: Remove file.
110223         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
110225 2003-10-06  Bruno Haible  <bruno@clisp.org>
110227         * modules/fatal-signal: New file.
110228         * MODULES.html.sh (func_all_modules): Add fatal-signal.
110230 2003-10-06  Bruno Haible  <bruno@clisp.org>
110232         * m4/fatal-signal.m4: New file.
110233         * m4/signalblocking.m4: New file, from GNU gettext.
110235 2003-10-06  Bruno Haible  <bruno@clisp.org>
110237         * lib/version-etc-2.h: Remove file.
110238         * lib/version-etc-2.c: Remove file.
110240 2003-10-06  Bruno Haible  <bruno@clisp.org>
110242         * lib/fatal-signal.h: New file, from GNU gettext.
110243         * lib/fatal-signal.c: New file, from GNU gettext.
110245 2003-10-05  Paul Eggert  <eggert@twinsun.com>
110247         * README: Rework advice for preventing empty .o files.
110248         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
110249         not <sys/types.h>.
110251 2003-10-04  Karl Berry  <karl@gnu.org>
110253         * lib/argp*: update from libc.
110255 2003-10-04  Karl Berry  <karl@gnu.org>
110257         * config/config.{guess,sub}: update from config.
110259 2003-10-02  Bruno Haible  <bruno@clisp.org>
110261         * modules/lchown (Include): Add lchown.h.
110262         * modules/time_r (Include): Use "..." syntax.
110263         * modules/xgetdomainname (Include): Add xgetdomainname.h.
110265 2003-10-01  Simon Josefsson  <jas@extundo.com>
110267         * MODULES.html.sh (func_all_modules): Move gethostname from section
110268         'based on' to section 'lacking' POSIX:2001.
110270 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
110272         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
110273         to output mode on the same stream.
110275 2003-09-29  Paul Eggert  <eggert@twinsun.com>
110277         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
110278         Fix arg typo in previous patch.
110280 2003-09-28  Jim Meyering  <jim@meyering.net>
110282         * lib/error.c: Correct cpp indentation.
110284 2003-09-27  Paul Eggert  <eggert@twinsun.com>
110286         * modules/free: New file.
110288 2003-09-27  Paul Eggert  <eggert@twinsun.com>
110290         * m4/free.m4: New file.
110292 2003-09-27  Paul Eggert  <eggert@twinsun.com>
110294         * lib/minmax.h (MIN, MAX)
110295         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
110296         Omit the special code that used __typeof__, since we worry that
110297         it could be more trouble than it's worth.  See:
110298         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00090.html
110299         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00095.html
110301         * lib/free.c: New file.
110303 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
110305         Trivial fixes to Makefile.am parts of module listings.
110306         * modules/strstr: Append strstr.h to lib_SOURCES.
110307         * modules/strcase: Likewise, for strcase.h.
110309 2003-09-27  Karl Berry  <karl@gnu.org>
110311         * config/mkinstalldirs: update from automake.
110313 2003-09-26  Paul Eggert  <eggert@twinsun.com>
110315         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
110316         (error_tail): Do not loop, reallocating temporary buffer, since
110317         the output cannot contain more wide characters than the input
110318         contains bytes, the size must be big enough already.  This avoids
110319         one potential size overflow calculation.  Check for size overflow
110320         when calculating temporary buffer size.  Free temporary buffer
110321         when done, if it was allocated with malloc; this plugs a memory
110322         leak.  Remove casts from void * to pointers, that are no longer
110323         needed now that we're assuming C89 or better.
110325         Merge error changes from glibc.
110327         * lib/error.c, error.h: Update copyright notice header to match glibc.
110328         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
110329         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
110330         Disable cancellation while printing error.
110331         * lib/error.h: Prepend __ to parameter names.
110333 2003-09-26  Jim Meyering  <jim@meyering.net>
110335         * lib/error.c (error_tail): Move some declarations
110336         into inner scope where the local variables are used.
110338 2003-09-26  Bruno Haible  <bruno@clisp.org>
110340         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
110341         stpncpy().
110342         Don't define stpncpy through config.h; it's now done through stpncpy.h.
110344 2003-09-26  Bruno Haible  <bruno@clisp.org>
110346         * lib/stpncpy.h (gnu_stpncpy): New declaration.
110347         (stpncpy): Define as alias for gnu_stpncpy.
110348         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
110350 2003-09-25  Simon Josefsson  <jas@extundo.com>
110352         * lib/xgetdomainname.h: New file.
110353         * lib/xgetdomainname.c: New file.
110355 2003-09-25  Simon Josefsson  <jas@extundo.com>
110356             Bruno Haible  <bruno@clisp.org>
110358         * modules/getdomainname: New file.
110359         * modules/xgetdomainname: New file.
110360         * MODULES.html.sh (func_all_modules): Add getdomainname,
110361         xgetdomainname.
110363 2003-09-25  Simon Josefsson  <jas@extundo.com>
110364             Bruno Haible  <bruno@clisp.org>
110366         * m4/getdomainname.m4: New file.
110368 2003-09-25  Simon Josefsson  <jas@extundo.com>
110369             Bruno Haible  <bruno@clisp.org>
110371         * lib/getdomainname.h: New file.
110372         * lib/getdomainname.c: New file.
110374 2003-09-25  Karl Berry  <karl@gnu.org>
110376         * lib/argp-fmtstream.c, argp-help.c: update from libc.
110378 2003-09-25  Karl Berry  <karl@gnu.org>
110380         * config/install-sh: update from automake.
110382 2003-09-25  Bruno Haible  <bruno@clisp.org>
110384         * modules/version-etc-2: New file, from modules/version-etc with
110385         modifications.
110386         * MODULES.html.sh (func_all_modules): Add version-etc-2.
110388 2003-09-25  Bruno Haible  <bruno@clisp.org>
110390         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
110391         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
110393 2003-09-24  Simon Josefsson  <jas@extundo.com>
110395         * modules/xgethostname: Add xgethostname.h.
110397 2003-09-24  Paul Eggert  <eggert@twinsun.com>
110399         * lib/linebuffer.c (freebuffer): Don't free the argument, just
110400         the buffer associated with the argument.  Bug reported by
110401         Simon Josefsson.
110403 2003-09-24  Paul Eggert  <eggert@twinsun.com>
110405         * README: Document assumptions that 'int' is at least 32 bits
110406         wide, that integer arithmetic is 2's complement without overflow,
110407         that there are no holes in integer values, that adding sizes of
110408         two nonoverlapping objects can't overflow, and that all-bits-zero
110409         yields scalar zero.  Fix spelling and capitalization typos.
110411 2003-09-19  Karl Berry  <karl@gnu.org>
110413         * lib/argp.h: update from libc.
110415 2003-09-17  Paul Eggert  <eggert@twinsun.com>
110417         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
110418         to avoid spurious warnings like "AC_RUN_IFELSE was called before
110419         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
110421 2003-09-17  Paul Eggert  <eggert@twinsun.com>
110423         * gnulib-tool: Use "test -h", not "test -L", for portability
110424         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
110425         (tags_regexp): Remove, since \| doesn't conform to POSIX.
110426         (sed_extract_prog): Issue s commands one-by-one, rather than
110427         using \| in one s command.
110429 2003-09-16  Paul Eggert  <eggert@twinsun.com>
110431         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
110432         input error, instead of returning NULL the next time we are called
110433         (and therefore losing track of errno).
110435 2003-09-16  Bruno Haible  <bruno@clisp.org>
110437         * gnulib-tool (func_create_testdir): Warn about duplicated
110438         dependencies.
110440 2003-09-15  Paul Eggert  <eggert@twinsun.com>
110442         * modules/argmatch, modules/fatal, modules/obstack,
110443         modules/xalloc, modules/xgethostname: Sort dependencies by
110444         importance, not alphabetically.
110446 2003-09-15  Paul Eggert  <eggert@twinsun.com>
110448         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
110449         fails, so that the caller gets the proper errno.
110451         * lib/readutmp.c (read_utmp): Likewise.
110452         Check for fstat error.  Close stream and free storage
110453         when failing.
110455 2003-09-14  Karl Berry  <karl@gnu.org>
110457         * config/srclist.txt (strdup.c): disable for c89 changes.
110459 2003-09-14  Jim Meyering  <jim@meyering.net>
110461         * lib/getloadavg.c: Correct cpp indentation.
110462         * lib/strdup.c: Likewise.
110463         * lib/vasnprintf.c: Likewise.
110465 2003-09-14  Bruno Haible  <bruno@clisp.org>
110467         * modules/fwriteerror: New file.
110468         * MODULES.html.sh (func_all_modules): Add fwriteerror.
110470 2003-09-14  Bruno Haible  <bruno@clisp.org>
110472         * lib/fwriteerror.h: New file.
110473         * lib/fwriteerror.c: New file.
110475 2003-09-12  Paul Eggert  <eggert@twinsun.com>
110477         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
110478         modules/xgethostname, modules/xalloc: Depend on exit.
110480 2003-09-12  Paul Eggert  <eggert@twinsun.com>
110482         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
110484         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
110485         and AC_MINIX, too, so that their extensions are available.
110487         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
110488         This macro has been superseded by gl_BACKUPFILE.
110490         More patches to assume C89 or better.
110492         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
110494         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
110495         unconditionally.
110496         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
110497         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
110498         Include <string.h>, <stdlib.h> unconditionally.
110499         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
110500         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
110501         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
110502         headers or for string.h.
110503         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
110504         or strtoul.
110506         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
110507         headers.
110508         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
110509         * m4/userspec.m4 (gl_USERSPEC): Likewise.
110510         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
110511         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
110512         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
110513         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
110514         memcpy, memset.
110515         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
110516         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
110517         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
110518         strtol.
110519         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
110520         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
110521         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
110522         strtoul.
110524 2003-09-12  Paul Eggert  <eggert@twinsun.com>
110526         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
110527         * lib/obstack.c [!defined _LIBC]: Likewise.
110528         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
110529         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
110530         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
110532         More changes to assume C89 or better.
110534         * lib/error.c (error_tail): Assume vprintf.
110536         * lib/argmatch.c (getenv): Remove decl.
110537         * lib/progreloc.c (get_full_program_name): Define via prototype.
110538         * lib/setenv.c (clearenv): Likewise.
110539         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
110540         needed.
110541         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
110542         (malloc, memcpy): Remove decls.
110543         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
110544         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
110545         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
110546         (memcpy): Remove macro.
110547         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
110548         (__P): Remove.  All uses removed.
110549         (PTR): Remove.  All uses changed to void *.
110550         (CHAR_BIT, NULL): Remove.
110551         (spaces, zeros, memset_space, memset_zero)
110552         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
110553         Remove.
110554         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
110555         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
110556         Define with prototype.
110557         Remove now-unnecessary prototype decl.
110558         (extra_args_spec): Assume ANSI C.  All uses changed.
110559         (extra_args_spec_iso): Remove.
110560         (my_strftime, emacs_strftimeu): Define via prototype.
110561         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
110562         unconditionally.
110563         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
110564         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
110565         (strtoul, strtol): Remove decls.
110566         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
110567         LONG_MAX): Remove.
110568         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
110569         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
110570         (LOCALE_PARAM_PROTO): New macro.
110571         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
110572         (INTERNAL (strtol), strtol): Define with a prototype.
110573         (PARAMS): Remove.  All uses removed.
110574         * lib/tempname.c: Include <string.h> unconditionally.
110575         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
110576         * lib/xgethostname.c (main): Define with a prototype.
110577         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
110578         Include <stdlib.h> unconditionally.
110579         (calloc, malloc, realloc, free): Remove decls.
110580         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
110581         Include <stdlib.h> unconditionally.  Sort include file names.
110582         (strtod): Remove.
110583         (xstrtod): Define with a prototype.
110584         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
110585         (strtol, strtoul): Remove decls.
110587 2003-09-11  Paul Eggert  <eggert@twinsun.com>
110589         More patches to assume C89 or better.
110590         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
110591         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
110592         string.h, memchr, STDC_HEADERS.
110594 2003-09-11  Paul Eggert  <eggert@twinsun.com>
110596         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
110597         Include <stdlib.h>, <string.h> unconditionally.
110598         Remove now-unnecessary cast to char *.
110599         * lib/strnlen.c: Include <string.h> unconditionally.
110600         * lib/yesno.c (yesno): Define with a prototype.
110602 2003-09-11  Bruno Haible  <bruno@clisp.org>
110604         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
110606 2003-09-10  Jim Meyering  <jim@meyering.net>
110608         * lib/error.c: Correct indentation of cpp directives.
110610 2003-09-10  Bruno Haible  <bruno@clisp.org>
110612         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
110613         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
110614         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
110615         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
110616         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
110617         <stdlib.h> and <string.h> checks.
110618         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
110619         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
110621 2003-09-10  Bruno Haible  <bruno@clisp.org>
110623         * lib/strcspn.c: Include <string.h> unconditionally.
110624         * lib/strpbrk.c: Include <string.h> unconditionally.
110625         * lib/strstr.c: Include <string.h> unconditionally.
110626         * lib/unicodeio.c: Include <string.h> unconditionally.
110627         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
110628         * lib/unsetenv.c: Likewise.
110629         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
110630         * lib/yesno.c: Include <stdlib.h> unconditionally.
110631         (rpmatch): Add prototype.
110633 2003-09-09  Paul Eggert  <eggert@twinsun.com>
110635         More patches to assume C89 or better.
110636         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
110637         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
110638         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
110639         or for string.h.
110640         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
110641         stdlib.h.
110642         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
110643         C headers.
110644         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
110645         string.h.
110646         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
110647         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
110648         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
110649         or for string.h.
110650         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
110651         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
110652         C headers.
110653         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
110654         memcpy.
110655         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
110656         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
110657         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
110658         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
110659         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
110660         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
110661         string.h, free.
110662         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
110663         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
110664         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
110665         C headers, or for string.h.
110666         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
110667         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
110668         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
110669         headers, memory.h, stdlib.h, string.h, strings.h.
110670         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
110671         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
110672         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
110673         strchr.
110674         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
110675         headers, memory.h, string.h.
110676         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
110677         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
110678         free.
110679         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
110680         headers.
110681         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
110682         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
110683         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
110684         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
110685         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
110687 2003-09-09  Paul Eggert  <eggert@twinsun.com>
110689         More K&R removal.
110691         * lib/acosl.c (main): Use a prototype.
110692         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
110693         tanl.c: Likewise.
110695         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
110697         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
110698         (getopt, etopt_long, getopt_long_only, _getopt_internal)
110699         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
110700         with a prototype.
110701         * lib/getopt.c (const): Remove macro.
110702         Include <string.h> unconditionally.
110703         (my_index): Remove; all uses changed to strchr.
110704         (strlen): Remove decl.
110705         (exchange): Remove forward decl; no longer needed.
110706         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
110707         Define with prototype.
110708         * lib/getopt1.c (const): Remove macro.
110709         (getopt_long, getopt_long_only, main): Define with prototype.
110711         * lib/getugroups.c: Include <string.h> unconditionally.
110713         * lib/getusershell.c: Include <stdlib.h> unconditionally.
110714         (getusershell, setusershell, endusershell, readname, main):
110715         Define with prototypes.
110717         * lib/group-member.c: Include group-member.h first.
110718         Include <stdlib.h> unconditionally.
110720         * lib/hard-locale.c: Include hard-locale.h first.
110721         Include <stdlib.h>, <string.h> unconditionally.
110723         * lib/hash.c (free, malloc): Remove decls.
110724         Include <stdlib.h> unconditionally.
110726         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
110727         (getenv): Do not declare.
110729         * lib/idcache.c: Include <string.h> unconditionally.
110731         * lib/long-options.c: Include long-options.h first, to test interface.
110732         Include <stdlib.h> unconditionally.
110734         * lib/makepath.c: Include makepath.h first, to test interface.
110735         Include <stdlib.h> and <string.h> unconditionally.
110737         * lib/linebuffer.c: Include <stdlib.h>.
110738         (free): Remove decl.
110740         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
110741         stddef.h. rpl_malloc returns void *, not char *.
110742         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
110743         prototype.
110745         * lib/md5.h: Include <limits.h> unconditionally.
110746         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
110747         (__P): Remove; all uses removed.
110748         * lib/md5.c: Include "md5.h" first.
110749         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
110750         md5_buffer, md5_process_bytes, md5_process_block):
110751         Define with prototypes.
110752         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
110753         * lib/sha.c: Include "sha.h" first.
110754         Include <stdlib.h>, <string.h> unconditionally.
110756         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
110757         * lib/memcmp.c (__ptr_t): Likewise.
110758         * lib/memrchr.c (__ptr_t): Likewise.
110759         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
110760         Include <string.h> unconditionally.
110761         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
110762         * lib/memchr.c: Include <stdlib.h> unconditionally.
110763         * lib/memchr.c (LONG_MAX): Remove.
110764         * lib/memrchr.c (LONG_MAX): Likewise.
110765         * lib/memchr.c (__memchr): Define via a prototype.
110766         * lib/memrchr.c (__memrchr): Likewise.
110767         * lib/memcmp.c (__P): Remove, and remove all uses.
110768         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
110769         Remove forward decls; no longer needed.
110770         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
110771         Use types required by C89 in prototype.
110773         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
110774         * lib/savedir.c: Likewise.
110775         * lib/mkdir.c (free): Remove decl.
110776         * lib/rmdir.c (rmdir): Define with a prototype.
110777         * lib/savedir.c: Include savedir.h first, to test interface.
110779         * lib/mktime.c (STDC_HEADERS): Remove.
110780         Include <stdlib.h>, <string.h> unconditionally.
110782         * lib/modechange.c: Include <stdlib.h> unconditionally.
110783         (malloc): Remove decl.
110785         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
110786         (free): Remove decl.
110788         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
110789         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
110790         (This type really should be intptr_t, but that's a C99ism.)
110791         (_obstack_memcpy): Remove: all uses changed to memcpy.
110792         Include <string.h> unconditionally.
110793         (struct obstack): Assume __STDC__ for types of members
110794         chunkfun, freefun, extra_arg.
110795         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
110796         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
110797         obstack_begin, obstack_specify_allocation,
110798         obstack_specify_allocation_with_arg, obstack_chunkfun,
110799         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
110800         Remove unprototyped decls and the macros that use them.
110801         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
110802         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
110803         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
110804         (defined __STDC__ && __STDC__)]:
110805         Remove nonprototyped code.
110806         Include <stdlib.h> unconditionally.
110807         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
110808         _obstack_allocated_p, _obstack_free, obstack_free,
110809         _obstack_memory_used, print_and_abort):
110810         Define using prototypes.
110811         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
110812         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
110813         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
110814         obstack_next_free, obstack_object_size, obstack_room) [0]:
110815         Remove unused, unprototyped code.
110817         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
110819         * lib/physmem.c (physmem_total, physmem_available, main): Define
110820         with prototypes.
110822         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
110823         (main): Define with a prototype.
110825         * lib/posixver.c (getenv): Remove decl.
110827         * lib/putenv.c (malloc): Returns void *, not char *.
110828         Include <string.h> unconditionally.
110829         (strchr, memcpy, NULL): Do not define.
110831         * lib/readtokens.c: Include readtokens.h first, to test interface.
110832         Include <stdlib.h>, <string.h> unconditionally.
110833         (init_tokenbuffer): Define with a prototype.
110835         * lib/regex.c (PARAMS): Remove.  All uses removed.
110836         All uses of _RE_ARGS removed, too.
110837         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
110838         unconditionally.
110839         (bzero): Assume memset exists.
110840         (memcmp, memcpy, NULL): Remove.
110841         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
110842         char, or assignments to local vars of type signed char.
110843         (init_syntax_once, PREFIX(extract_number_and_incr),
110844         PREFIX(print_partial_compiled_pattern),
110845         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
110846         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
110847         PREFIX(regex_grow_registers), PREFIX(regex_compile),
110848         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
110849         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
110850         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
110851         wcs_compile_range, byte_compile_range, truncate_wchar,
110852         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
110853         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
110854         count_mbs_length, wcs_re_match_2_internal,
110855         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
110856         PREFIX(alt_match_null_string_p),
110857         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
110858         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
110859         regfree, PREFIX(extract_number)): Define with prototype.  Remove
110860         now-unnecessary declaration, if any.
110861         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
110862         regcomp, regexec):
110863         Remove now-unnecessary casts among pointer types.
110864         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
110866         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
110867         (free): Remove decl.
110869         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
110871         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
110872         (free): Remove decl.
110874         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
110875         * lib/xgetcwd.c: Likewise.
110877         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
110878         (free): Remove decl.
110880         * lib/strchrnul.c (strchrnul): Define with a prototype.
110881         Fix bug: c_in was not converted to char before searching.
110883         The following changes are not K&R related:
110885         * lib/group-member.h: Include <sys/types.h>, so that this file is
110886         self-contained.
110887         * lib/makepath.h: Likewise.
110889         * lib/getusershell.c (readname, default_index, line_size, readname):
110890         Use size_t, not int, for sizes.
110891         (readname): If the size overflows, report an error instead of
110892         looping forever.
110894 2003-09-09  Paul Eggert  <eggert@twinsun.com>
110896         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
110897         libc.
110899 2003-09-09  Paul Eggert  <eggert@twinsun.com>
110901         * README: New section: portability guidelines.
110903 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
110905         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
110906         C89 spec.
110908 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
110910         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
110912 2003-09-08  Paul Eggert  <eggert@twinsun.com>
110914         Assume C89 or better; remove K&R cruft.
110915         A few of these changes were first proposed by Derek Robert Price
110916         in <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00105.html>.
110918         * lib/addext.c: Include <string.h> unconditionally.
110919         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
110920         Don't declare getenv or malloc.
110922         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
110923         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
110924         (NULL): Remove.
110925         (find_stack_direction, alloca): Use prototypes.
110927         * lib/atexit.c (atexit): Define using a prototype.
110929         * lib/basename.c, dirname.c, stripslash.c:
110930         Include <string.h> unconditionally.
110932         * lib/bcopy.c: Include <stddef.h>.
110933         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
110935         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
110937         * lib/error.h (error, error_at_line, error_print_progname)
110938         [! (defined (__STDC__) && __STDC__)]: Remove decls.
110939         * lib/error.c: Include error.h first, to check interface.
110940         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
110941         (VA_START): Remove; all uses changeed to va_start.
110942         (exit, strerror): Remove decls.
110943         (error_print_progname): Prototype uncondionally.
110944         Don't include <errno.h>; no longer needed.
110945         (private_strerror): Remove.
110946         (error_tail): Always define.
110947         (error, error_at_line): Assume C89 or better; always use prototypes.
110948         * lib/fatal.c: Include "fatal.h" first, to test interface.
110949         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
110950         (VA_START): Remove; all uses changed to va_start.
110951         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
110952         this case.
110953         (exit): Remove decl.
110954         (fatal): Prototype unconditionally.  Assume va_start works.
110955         Abort at end, to pacify gcc.
110957         * lib/euidaccess.c (main): Define with a prototype.
110959         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
110961         * lib/exitfail.c: Include <stdlib.h> unconditionally.
110963         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
110964         prototypes.
110965         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
110966         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
110967         (getenv): Remove decl.
110968         (fnmatch): Define using a prototype.
110969         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
110970         (FCT): Define using a prototype.
110972         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
110974         * lib/gethostname.c: Include <stddef.h>.
110975         (gethostname): Define with prototype.  Length is size_t, not int.
110977 2003-09-08  Paul Eggert  <eggert@twinsun.com>
110979         Assume C89 or better; remove K&R cruft.
110980         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
110981         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
110982         string.h, getenv, malloc.
110983         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
110984         headers.
110985         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
110986         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
110987         do not check for strerror.
110988         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
110989         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
110990         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
110991         do not check for doprnt or vprintf.
110992         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
110993         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
110995 2003-09-08  Paul Eggert  <eggert@twinsun.com>
110997         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
110998         getversion.c should have been removed then, but was accidentally
110999         preserved.
111001         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
111002         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
111004 2003-09-08  Karl Berry  <karl@gnu.org>
111006         * config/config.sub, config.guess, srclistvars.sh: update from savannah
111007                 config, forget about prep.
111009         * config/depcomp, missing: update from automake.
111011 2003-09-07  Paul Eggert  <eggert@twinsun.com>
111013         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
111014         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
111016 2003-09-07  Paul Eggert  <eggert@twinsun.com>
111018         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
111019         copy_tm_result.  Bug reported by Simon Josefsson in
111020         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
111022 2003-09-06  Paul Eggert  <eggert@twinsun.com>
111024         * m4/time_r.m4: New file.
111025         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
111026         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
111027         is. Check for timegm declaration.
111028         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
111029         Do not check for gmtime_r.
111030         Replace mktime if __mktime_internal does not exist and if mktime
111031         hasn't been replaced already.
111033 2003-09-06  Paul Eggert  <eggert@twinsun.com>
111035         * lib/time_r.c, lib/time_r.h: New files.
111037         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
111038         __localtime_r.
111039         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
111040         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
111042         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
111043         __gmtime_r.
111044         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
111045         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
111046         Include <time_r.h>.
111048         * lib/timegm.c: Switch to glibc implementation, with the following
111049         changes:
111050         [defined HAVE_CONFIG_H]: Include <config.h>.
111051         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
111052         (__mktime_internal) [!defined _LIBC]: New decl.
111053         (__gmtime_r) [!defined _LIBC]: New macro and function.
111054         (timegm): Use a prototype, since gnulib assumes C89.
111055         Do not bother declaring tmp to be const, as it's not really usefu.
111056         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
111057         (timegm): Declare only if HAVE_DECL_TIMEGM.
111059 2003-09-06  Paul Eggert  <eggert@twinsun.com>
111061         * MODULES.html.sh (func_all_modules): Add time_r.
111062         * modules/time_r: New file.
111063         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
111064         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
111066 2003-09-03  Paul Eggert  <eggert@twinsun.com>
111068         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
111069         Bug reported by Lute Kamstra in
111070         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00003.html>.
111072         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
111073         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
111074         course with correspondingly smaller numbers for tomorrow and
111075         yesterday.  From Tadayoshi Funaba.  Originally installed into
111076         sh-utils on 1999-08-07, but the patch got lost (I guess during the
111077         coreutils merge?).
111079 2003-08-31  Simon Josefsson  <jas@extundo.com>
111081         * modules/timegm: New file.
111082         * MODULES.html.sh (func_all_modules): Add timegm.
111084 2003-08-31  Simon Josefsson  <jas@extundo.com>
111086         * m4/timegm.m4: New file.
111088 2003-08-31  Simon Josefsson  <jas@extundo.com>
111090         * lib/timegm.h: New file.
111091         * lib/timegm.c: New file.  Based on
111092         wget-1.8.2/src/http.c:mktime_from_utc.
111094 2003-08-31  Karl Berry  <karl@gnu.org>
111096         * lib/argp.h: update from libc.
111098 2003-08-28  Bruno Haible  <bruno@clisp.org>
111100         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
111101         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
111102         followed by '#define fnmatch fnmatch_posix' gives an error.
111104 2003-08-28  Bruno Haible  <bruno@clisp.org>
111106         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
111107         warning on QNX, which defines O_BINARY to 000000.
111109 2003-08-27  Jim Meyering  <jim@meyering.net>
111111         * m4/mkstemp.m4: Require that the system mkstemp be able to create
111112         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
111113         would fail after 32.  Reported by Danny Levinson.  Details here:
111114         http://mail.gnu.org/r/bug-coreutils/2003-08/msg00124.html
111116 2003-08-24  Bruno Haible  <bruno@clisp.org>
111118         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
111119         MSVC7 <stdio.h> is included later.
111121 2003-08-22  Simon Josefsson  <jas@extundo.com>
111123         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
111125 2003-08-20  Karl Berry  <karl@gnu.org>
111127         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
111129 2003-08-20  Bruno Haible  <bruno@clisp.org>
111131         * modules/progname: New file.
111132         * MODULES.html.sh (func_all_modules): Add progname.
111134 2003-08-20  Bruno Haible  <bruno@clisp.org>
111136         * lib/progname.h: New file, from GNU gettext.
111137         * lib/progname.c: New file, from GNU gettext.
111138         * lib/progreloc.c: New file, from GNU gettext.
111140 2003-08-19  Jim Meyering  <jim@meyering.net>
111142         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
111143         http://mail.gnu.org/r/bug-gnulib/2003-08/msg00155.html
111145 2003-08-19  Bruno Haible  <bruno@clisp.org>
111147         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
111148         more.
111150 2003-08-19  Bruno Haible  <bruno@clisp.org>
111152         * lib/xstrdup.c: Assume <string.h> exists.
111154 2003-08-18  Paul Eggert  <eggert@twinsun.com>
111156         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
111157         in makefile rules.
111159 2003-08-18  Jim Meyering  <jim@meyering.net>
111161         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
111162         * m4/lib-ld.m4: Likewise.
111164 2003-08-18  Jim Meyering  <jim@meyering.net>
111166         * lib/setenv.h: Indent nested cpp directive.
111167         * lib/vasnprintf.c: Remove trailing blanks.
111169 2003-08-17  Simon Josefsson  <jas@extundo.com>
111171         * modules/xstrndup: New file.
111172         * MODULES.html.sh (func_all_modules): Add xstrndup.
111174 2003-08-17  Simon Josefsson  <jas@extundo.com>
111176         * modules/argp: Fix autoconf macro name. Add more dependencies.
111178 2003-08-17  Simon Josefsson  <jas@extundo.com>
111180         * m4/xstrndup.m4: New file.
111182 2003-08-17  Simon Josefsson  <jas@extundo.com>
111184         * m4/argp.m4: New file.
111186 2003-08-17  Simon Josefsson  <jas@extundo.com>
111187             Bruno Haible  <bruno@clisp.org>
111189         * lib/xstrndup.h: New file.
111190         * lib/xstrndup.c: New file.
111192 2003-08-17  Bruno Haible  <bruno@clisp.org>
111194         * modules/strndup (Files, Include): Add lib/strndup.h.
111196 2003-08-17  Bruno Haible  <bruno@clisp.org>
111198         * modules/euidaccess (Files): Add lib/euidaccess.h.
111200 2003-08-17  Bruno Haible  <bruno@clisp.org>
111202         * lib/strndup.h: New file.
111204 2003-08-17  Bruno Haible  <bruno@clisp.org>
111206         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
111207         like AC_GNU_SOURCE.
111208         * modules/extensions (configure.ac): Comment out the invocation of
111209         gl_USE_SYSTEM_EXTENSIONS.
111211 2003-08-16  Paul Eggert  <eggert@twinsun.com>
111213         Merges from coreutils, etc.
111214         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
111215         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
111216         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
111217         fixing a typo.
111218         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
111219         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
111221 2003-08-16  Paul Eggert  <eggert@twinsun.com>
111223         Document merge from coreutils.
111224         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
111225         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
111226         * modules/utime: Add m4/utimes-null.m4.
111228 2003-08-16  Paul Eggert  <eggert@twinsun.com>
111230         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
111231         space, undoing this 2003-08-12 change:
111232         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
111234 2003-08-16  Paul Eggert  <eggert@twinsun.com>
111236         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
111237         strtoul.c from libc, undoing this 2003-08-12 change:
111238         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
111240 2003-08-16  Jim Meyering  <jim@meyering.net>
111242         Merges from coreutils.
111243         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
111244         prefix.  Adjust cache variables similarly.  Create 500 rather than
111245         just 300 files, to exercise bug on Darwin6.5, too.
111246         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
111247         $missing_dir.
111248         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
111249         AM_SYS_POSIX_TERMIOS.
111250         Reported by mkc@mathdogs.com.
111251         Also change use of $am_cv_sys_posix_termios
111252         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
111253         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
111254         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
111255         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
111256         in /proc/mounts until it finds one with matching device number.  This
111257         is unnecessary when the FILE argument *is* a mount point.  No stat call
111258         is necessary in that case.  So, disable the statvfs-testing code on
111259         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
111260         as RedHat bug# 84846.
111261         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
111262         to 1MB, so as not to render systems with no stack size limit (e.g.,
111263         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
111264         Include <unistd.h>.  On some systems,
111265         it is required for the definition of _SC_PAGESIZE.
111267 2003-08-16  Jim Meyering  <jim@meyering.net>
111269         Merge from coreutils.
111270         * lib/xstrtoimax.c: #else #if -> #elif.
111271         * lib/xstrtoumax.c: Likewise.
111273 2003-08-16  Jim Meyering  <jim@meyering.net>
111275         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
111276         * m4/utimes.m4: Removed.
111277         * m4/utimes-null.m4: Renamed from utimes.m4.
111279         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
111280         to 1MB, so as not to render systems with no stack size limit (e.g.,
111281         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
111282         Include <unistd.h>.  On some systems,
111283         it is required for the definition of _SC_PAGESIZE.
111285 2003-08-16  Jim Meyering  <jim@meyering.net>
111286         and Paul Eggert  <eggert@cs.ucla.edu>
111288         Merges from coreutils, etc.
111290         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
111291         using the latest version from cvs.  This avoids problems with #line
111292         directives using a vendor (Sun) compiler.
111293         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
111294         Don't set GETGROUPS_LIB here; now it's
111295         done via getgroups.m4's wrapper function.
111296         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
111297         rather than just in sh-util/configure.in, so that the
111298         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
111299         same.
111300         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
111301         AC_FUNC_GETLOADAVG where to find getloadavg.c.
111302         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
111303         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
111304         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
111305         Remove code that is now done by the newly-required macros.
111306         Append $(EXEEXT) to DF_PROG.
111307         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
111308         Do not invoke or require the following here,
111309         since prereq.m4 or some gnulib .m4 now does this for us:
111310         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
111311         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
111312         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
111313         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
111314         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
111315         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
111316         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
111317         AC_FUNC_OBSTACK.
111318         Do not replace the following functions, as this is now the job
111319         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
111320         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
111321         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
111322         atexit getpass, strdup, getpagesize.
111323         Replace 'raise'.
111324         Do not check for the following functions, as this is now the job
111325         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
111326         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
111327         setregid.
111328         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
111329         Check for sys/sysctl.h.
111330         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
111331         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
111332         of checking for ssize_t ourselves.
111334         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
111335         Require every macro that gnulib/modules/* suggests for us.
111336         (jm_PREREQ_ADDEXT): New macro.
111337         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
111338         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
111340         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
111341         (gl_PHYSMEM): Use it.
111342         Also check for `table' function.
111343         Check for new headers and functions.
111344         Add check for sys/sysmp.h.
111345         With suggestions from Kaveh Ghazi.
111346         Ignore headers that are present but cannot be compiled.  This
111347         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
111348         C 5.4.
111350 2003-08-15  Paul Eggert  <eggert@twinsun.com>
111352         Document merge from coreutils.
111353         * modules/userspec: Depend on posixver.
111354         * modules/strftime: Depend on tzset.
111356 2003-08-15  Paul Eggert  <eggert@twinsun.com>
111358         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
111359         rather than tab, after '#' in shell-script copyright notices.
111360         Suggested by Bruno Haible.
111362 2003-08-15  Paul Eggert  <eggert@twinsun.com>
111364         * config/srclist-update: Use three spaces, rather than tab, after '#'
111365         in shell-script copyright notices.  Suggested by Bruno Haible.
111366         Remove unnecessary parenthesization in regular expression.
111368 2003-08-15  Jim Meyering  <jim@meyering.net>
111370         Merge from coreutils.
111371         * lib/xgethostname.c: Include <stdlib.h>.
111372         (xghostname): Don't exit for anything other than memory-related
111373         failure; just return NULL.
111374         * lib/userspec.c: Include "posixver.h".
111375         (parse_user_spec): Accept `.' as a separator only
111376         in pre-POSIX-200112 mode.
111377         * lib/strtoimax.c: Use #elif rather than #else #if.
111378         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
111379         Remove function, now that we can rely on a working tzset function.
111380         [!_LIBC]: Ensure that the required autoconf test has been run.
111381         [!defined _NL_CURRENT && HAVE_STRFTIME]:
111382         Use underlying_strftime for %r.
111383         * lib/sha.c: Merge in some clean-up and optimization changes from
111384         glibc.
111385         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
111386         Ensure that it is a multiple of 64.
111387         Rearrange loop exit tests so as to avoid performing an
111388         additional fread after encountering an error or EOF.
111389         * lib/realloc.c: Update copyright date.
111391 2003-08-15  Jim Meyering  <jim@meyering.net>
111392         and Paul Eggert  <eggert@twinsun.com>
111394         Merge from coreutils.
111395         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
111396         member but strut utmpx does not.  Needed for AIX 4.3.3.
111397         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
111399 2003-08-15  Jim Meyering  <jim@meyering.net>
111400         and Paul Eggert  <eggert@cs.ucla.edu>
111402         Merges from coreutils, etc.
111403         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
111404         Require gl_FUNC_TZSET_CLOBBER.
111405         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
111406         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
111407         members.
111409 2003-08-14  Paul Eggert  <eggert@twinsun.com>
111411         Help the merge from coreutils.
111412         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
111413         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
111414         * m4/tzset.m4: Use it too.
111416 2003-08-14  Paul Eggert  <eggert@twinsun.com>
111418         * modules/tzset: New file.
111420 2003-08-14  Jim Meyering  <jim@meyering.net>
111422         Merges from coreutils.
111423         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
111424         variable names, rather than @FNMATCH_H@.
111425         * modules/alloca: Likewise for $(ALLOCA_H).
111427         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
111428         the three copies of the literal target, `fnmatch.h'.
111429         * modules/alloca (alloca.h): Likewise.
111431 2003-08-14  Jim Meyering  <jim@meyering.net>
111433         Merge from coreutils.
111434         * m4/tzset.m4: New file.
111435         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
111436         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
111437         otherwise, AIX 5.1 systems would end up using the latter.
111438         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
111439         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
111440         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
111441         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
111443 2003-08-14  Jim Meyering  <jim@meyering.net>
111445         Merge from coreutils.
111446         * lib/obstack.h: Whitespace changes.
111447         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
111448         and xcalloc return values.
111449         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
111450         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
111451         hang on OSF/1 5.1 for DIR on both local and remote file systems.
111452         Reported by (and fix confirmed by) Nelson H. F. Beebe.
111453         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
111454         error from mntctl.
111455         Use mntctl's return value to drive the entry-processing loop, since
111456         we can't rely on the value of the vmt_length member in the last
111457         entry.  On some systems doing so could result in exhausting
111458         virtual memory.  Based in part on a patch from Mike Jetzer.
111460 2003-08-14  Jim Meyering  <jim@meyering.net>
111461         and Paul Eggert  <eggert@twinsun.com>
111463         Merges from coreutils, plus other fixes.
111464         * lib/physmem.c: Merge in portability changes from gcc/libiberty
111465         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
111466         for credits and details.  Thanks to Kaveh Ghazi for helping
111467         to keep these files in sync.
111468         (ARRAY_SIZE): Define it.
111469         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
111470         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
111471         (memcasecmp): Don't assume size_t fits in unsigned int.
111472         Remove casts and duplicate code.
111473         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
111474         (memcpy): Remove definition.
111475         Merge in some clean-up and optimization changes from glibc.
111476         [BLOCKSIZE]: Move definition to top of file.
111477         Ensure that it is a multiple of 64.
111478         Rearrange loop exit tests so as to avoid performing an
111479         additional fread after encountering an error or EOF.
111480         * lib/md5.h (md5_uintptr): Define.
111481         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
111482         return to the initial working directory.  Preserve errno
111483         for caller.
111484         * lib/idcache.c: Include "xalloc.h".
111485         (xmalloc, xrealloc): Remove decls.
111486         (getuser): Remove casts no longer required in C89.
111487         * lib/human.c: Include stdio.h, for sprintf.
111488         * lib/group-member.c: Include "xalloc.h".
111489         (xmalloc, xrealloc): Remove decls.
111490         (get_group_info): Remove casts no longer required in C89.
111491         * lib/getusershell.c (readname): Remove casts no longer required in
111492         C89.
111493         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
111494         * lib/getline.c: Whitespace fix, from coreutils.
111496 2003-08-13  Paul Eggert  <eggert@twinsun.com>
111498         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
111499         Check for isascii.
111501         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
111502         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
111503         Undo previous (whitespace-only) change.
111505 2003-08-13  Paul Eggert  <eggert@twinsun.com>
111507         * lib/exclude.c: Include <ctype.h>
111508         (IN_CTYPE_DOMAIN): New macro.
111509         (is_space): New fn.
111510         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
111511         and empty lines.
111513         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
111514         Undo previous (whitespace-only) change.
111516 2003-08-13  Paul Eggert  <eggert@twinsun.com>
111518         * config/srclist-update: Change update back to the old behavior,
111519         leaving whitespace alone.  Use one 'sed' command rather than a
111520         pipeline.
111521         (fixlicense): Now a variable, not a function.
111522         (remove_trailing_blanks): Remove.
111523         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
111524         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
111525         Undo previous (whitespace-only) change.
111527 2003-08-12  Paul Eggert  <eggert@twinsun.com>
111529         Merge from coreutils.
111530         * modules/euidaccess: Add lib_SOURCES, include for new
111531         file euidaccess.h
111533 2003-08-12  Paul Eggert  <eggert@twinsun.com>
111535         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
111536         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
111537         Normalize leading white space and remove trailing white space.
111539         Merge from coreutils
111540         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
111542         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
111543         0.12.1.  These files are now being upgraded automatically by
111544         ../config/srclist-update.
111546 2003-08-12  Paul Eggert  <eggert@twinsun.com>
111548         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
111549         Normalize leading white space and remove trailing white space.
111550         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
111551         notice, as per ../config/srclist-update.
111553         Merge from coreutils.
111554         * lib/euidaccess.h: New file.
111555         * lib/euidaccess.c: Include it.
111556         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
111557         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
111558         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
111560 2003-08-12  Paul Eggert  <eggert@twinsun.com>
111562         * config/srclist-update: Add copyright notice.
111563         (remove_id_lines, remove_trailing_blanks): New constants.
111564         (fixfile): Use them to normalize spacing a bit in copied files.
111565         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
111566         Normalize leading white space and remove trailing white space.
111568         * config/texinfo.tex: Sync with texinfo.
111570         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
111571         strtoul.c from libc, to merge coreutils whitespace changes.
111573         * config/srclist.txt: Get the following m4 files from gettext:
111574         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
111575         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
111576         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
111577         wint_t.m4.
111579 2003-08-12  Karl Berry  <karl@gnu.org>
111581         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
111582         been made.
111584 2003-08-11  Paul Eggert  <eggert@twinsun.com>
111586         * modules/gnu-source, m4/gnu-source.m4:
111587         Remove; we're assuming Autoconf 2.54 or later now.
111588         Suggested by Bruno Haible.
111589         * MODULES.html.sh (func_all_modules): Remove gnu-source.
111591 2003-08-11  Bruno Haible  <bruno@clisp.org>
111593         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
111595 2003-08-11  Bruno Haible  <bruno@clisp.org>
111597         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
111598         (vasnprintf): Use it instead of wcslen.
111600 2003-08-11  Bruno Haible  <bruno@clisp.org>
111602         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
111603         value to ensure that _Bool promotes to int. Use #define for _Bool when
111604         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
111606 2003-08-10  Karl Berry  <karl@gnu.org>
111608         * lib/regex.h: update from libc (whitespace fix).
111610 2003-08-09  Paul Eggert  <eggert@twinsun.com>
111612         Merge some files from coreutils.  These changes were
111613         originally made by Jim Meyering.
111614         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
111615         many older Unixes require this.
111616         * lib/alloca.c (alloca): Remove cast to argument of free;
111617         no longer needed in C89.
111618         * lib/alloca_.h, regex.h: Fix white space to match
111619         what GNU indent does.
111621 2003-08-09  Paul Eggert  <eggert@twinsun.com>
111623         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
111624         apparently Emacs's Unicode mode got confused before my 2003-08-05
111625         checkin.
111627 2003-08-08  Paul Eggert  <eggert@twinsun.com>
111629         * m4/extensions.m4: New file.
111630         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
111631         Require gl_USE_SYSTEM_EXTENSIONS.
111632         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
111633         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
111635 2003-08-08  Paul Eggert  <eggert@twinsun.com>
111637         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
111638         * modules/extensions, modules/gnu-source: New files.
111639         * modules/timespec, modules/unlocked-io: Depend on extensions.
111641 2003-08-07  Paul Eggert  <eggert@twinsun.com>
111643         * modules/restrict: New file.
111644         * MODULES.html.sh (func_all_modules): Add restrict.
111645         * modules/regex: Depend on restrict.
111647 2003-08-07  Paul Eggert  <eggert@twinsun.com>
111649         * m4/restrict.m4: New file.
111650         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
111652 2003-08-07  Bruno Haible  <bruno@clisp.org>
111654         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
111655         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
111657 2003-08-07  Bruno Haible  <bruno@clisp.org>
111659         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
111660         makes the module 'getndelim2' compatible with the module 'getline'.
111662 2003-08-05  Paul Eggert  <eggert@twinsun.com>
111664         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
111665         byte with "\201" to avoid glitches when editing that source file
111666         with multi-gnome-terminal.
111668 2003-08-05  Paul Eggert  <eggert@twinsun.com>
111670         * lib/bumpalloc.h: Remove.
111672 2003-08-05  Paul Eggert  <eggert@twinsun.com>
111674         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
111675         * modules/bumpalloc: Remove.
111677 2003-08-04  Paul Eggert  <eggert@twinsun.com>
111679         * lib/getloadavg.c: Change copyright notice and spacing to conform to
111680         GNU coding style.
111682         Merge from coreutils.
111683         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
111684         1. From glibc.
111685         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
111686         from Karl Berry, implemented by Jim Meyering.
111687         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
111688         from Dmitry V. Levin.
111689         Remove anachronistic cast of xrealloc.
111690         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
111691         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
111692         type. Otherwise, it wouldn't compile with at least /bin/cc on
111693         ymp-cray-unicos9.0.2.X.
111694         Combine two mostly-identical uses of alloca into one.
111695         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
111697 2003-08-04  Dave Love  <d.love@dl.ac.uk>
111699         [From Emacs.]
111701         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
111702         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
111703         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
111704         obsolete NLIST_NAME_UNION.
111705         [__GNU__]: Undef BSD and FSCALE.
111706         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
111708 2003-08-03  Paul Eggert  <eggert@twinsun.com>
111710         * lib/stdbool_.h (_Bool): Make it signed char, instead of
111711         an enum type, so that it's guaranteed to promote to int.  See:
111712         <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00124.html>
111714 2003-08-03  Karl Berry  <karl@gnu.org>
111716         * config/depcomp: update from automake.
111718 2003-07-31  Paul Eggert  <eggert@twinsun.com>
111720         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
111721         (strerror): Don't assume that a printable int fits in 14 bytes.
111723 2003-07-31  Bruno Haible  <bruno@clisp.org>
111725         * modules/getpass-gnu: New file.
111726         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
111728 2003-07-31  Bruno Haible  <bruno@clisp.org>
111730         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
111732 2003-07-24  Karl Berry  <karl@gnu.org>
111734         * config/missing: update from automake.
111736 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
111737             Bruno Haible  <bruno@clisp.org>
111739         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
111740         * lib/getline.c (getline, getdelim): Likewise.
111741         Remove _GNU_SOURCE define; now it's defined in config.h through
111742         m4/getline.m4.
111744 2003-07-23  Karl Berry  <karl@gnu.org>
111746         * config/config.sub: update from prep.
111748 2003-07-22  Paul Eggert  <eggert@twinsun.com>
111750         * modules/xalloc (Depends-on): Add exitfail.
111751         * modules/xmemcoll: Likewise.
111753 2003-07-22  Paul Eggert  <eggert@twinsun.com>
111755         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
111756         over-parenthesization in macros.
111758         Sync with coreutils.
111760         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
111761         required by C99.
111763         Use `exit_failure' for xalloc and xmemcoll instead of their own
111764         private exit-failure variables.
111765         * lib/xalloc.h (xalloc_exit_failure): Remove.
111766         * lib/xmalloc.c: Likewise.  Include exitfail.h.
111767         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
111768         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
111769         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
111770         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
111772 2003-07-20  Jim Meyering  <jim@meyering.net>
111774         * modules/closeout (Depends-on): Add exitfail.
111775         Suggestion from Bruno Haible.
111777 2003-07-19  Karl Berry  <karl@gnu.org>
111779         * config/config.sub: update from prep.
111781 2003-07-18  Paul Eggert  <eggert@twinsun.com>
111783         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
111784         Remove.
111785         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
111786         to test that it can stand by itself.  Include "exitfail.h".
111787         Clients should set exit_failure instead.
111788         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
111790 2003-07-18  Bruno Haible  <bruno@clisp.org>
111792         * modules/getndelim2: New file.
111793         * modules/getline: Share files with module getndelim2.
111794         * modules/getnline: Depend on getndelim2 instead of sharing files with
111795         it. Add getnline.c to lib_SOURCES.
111796         * MODULES.html.sh (func_all_modules): Add getndelim2.
111798 2003-07-18  Bruno Haible  <bruno@clisp.org>
111800         * m4/getndelim2.m4: New file.
111801         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
111802         invoke gl_PREREQ_GETNDELIM2.
111803         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
111804         gl_PREREQ_GETNDELIM2.
111805         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
111806         gl_GETNDELIM2.
111808 2003-07-18  Bruno Haible  <bruno@clisp.org>
111810         * lib/getndelim2.h: New file.
111811         * lib/getndelim2.c: Make into a module of its own. Include config.h,
111812         getndelim2.h.
111813         (getndelim2): Make non-static. Change return type to ssize_t.
111814         * lib/getline.h: Change argument names.
111815         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
111816         * lib/getnline.c: Include getndelim2.h.
111818 2003-07-18  Andreas Schwab  <schwab@suse.de>
111820         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
111822 2003-07-17  Karl Berry  <karl@gnu.org>
111824         * config/config.sub: update from prep.
111826 2003-07-17  Bruno Haible  <bruno@clisp.org>
111828         * modules/getnline: New file.
111829         * modules/getline: Add lib/getndelim2.c to source file list.
111830         * MODULES.html.sh (func_all_modules): Add getnline.
111832 2003-07-17  Bruno Haible  <bruno@clisp.org>
111834         * m4/getnline.m4: New file.
111836 2003-07-17  Bruno Haible  <bruno@clisp.org>
111838         * m4/Makefile.am.in: Remove file.
111839         * m4/Makefile.am: Remove file.
111840         * m4/Makefile.in: Remove file.
111842 2003-07-17  Bruno Haible  <bruno@clisp.org>
111844         * lib/getnline.h: New file.
111845         * lib/getnline.c: New file.
111846         * lib/getndelim2.c: New file, extracted from getline.c.
111847         (getndelim2): Renamed from getdelim2, with added nmax argument.
111848         * lib/getline.c: Include getndelim2.c.
111849         (getdelim2): Moved out to getndelim2.c.
111850         (getline, getdelim): Update.
111852 2003-07-17  Bruno Haible  <bruno@clisp.org>
111854         * lib/Makefile.am: Remove file.
111855         * lib/Makefile.in: Remove file.
111857 2003-07-17  Bruno Haible  <bruno@clisp.org>
111859         * configure.in: Remove file.
111860         * Makefile.in: Remove file.
111862 2003-07-17  Bruno Haible  <bruno@clisp.org>
111864         * MODULES.html.sh: Put the </BODY> right before </HTML>.
111866 2003-07-16  Karl Berry  <karl@gnu.org>
111868         * config/srclist-update: was running fixlicense twice, which caused
111869                 texinfo.tex to be nullified for some reason.  Simplify,
111870                 $gplsrc is no longer needed as far as I can see?
111872 2003-07-16  Jim Meyering  <jim@meyering.net>
111874         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
111876 2003-07-15  Paul Eggert  <eggert@twinsun.com>
111878         * config/srclist.txt: Get the following files from gettext-runtime/intl
111879         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
111880         ref-del.sin.  From Bruno Haible.
111881         * config/srclist-update (fixfile): Change grep pattern again, since the
111882         previous fix didn't work (there was another trailing $).  Use
111883         '[$]' to escape the $s.
111885 2003-07-15  Karl Berry  <karl@gnu.org>
111887         * lib/vasnprintf.c: update from gettext.
111889 2003-07-15  Karl Berry  <karl@gnu.org>
111891         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
111892         gets expanded when surrounded by '$'.
111894 2003-07-15  Jim Meyering  <jim@meyering.net>
111896         * modules/save-cwd: Don't depend on error.  From Derek Price.
111898 2003-07-15  Jim Meyering  <jim@meyering.net>
111900         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
111902 2003-07-14  Simon Josefsson  <jas@extundo.com>
111904         * modules/mempcpy: New file.
111905         * MODULES.html.sh (func_all_modules): Add mempcpy.
111907 2003-07-14  Simon Josefsson  <jas@extundo.com>
111909         * m4/mempcpy.m4: New file.
111911 2003-07-14  Simon Josefsson  <jas@extundo.com>
111913         * lib/mempcpy.h: New file.
111914         * lib/mempcpy.c: New file.
111916 2003-07-14  Paul Eggert  <eggert@twinsun.com>
111918         * modules/getdate, modules/posixtm: Depend on mktime.
111920 2003-07-14  Paul Eggert  <eggert@twinsun.com>
111922         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
111923         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
111924         unicodeio.c, unicodeio.h, unlocked-io.h:
111925         Switch from LGPL to GPL.
111927 2003-07-14  Paul Eggert  <eggert@twinsun.com>
111929         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
111930         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
111931         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
111932         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
111933         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
111934         updated automatically by ../config/srclist-update.  This changes
111935         their license from LPGL to GPL.
111937 2003-07-14  Paul Eggert  <eggert@twinsun.com>
111939         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
111940         assumed to refer to the root of the most recent stable gettext version.
111941         * config/srclistvars.sh: Add defaults for eggert.
111942         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
111943         Match "This program" as well as "The program".  This is needed
111944         for gettext.
111946 2003-07-14  Jim Meyering  <jim@meyering.net>
111948         Don't emit diagnostics.  Let callers do that.
111949         * lib/save-cwd.c: Don't include "error.h".
111950         (save_cwd): Don't call error.  Ensure that errno is valid
111951         when returning nonzero.
111953         * lib/save-cwd.h (restore_cwd): Update prototype.
111954         * lib/save-cwd.c (restore_cwd): Remove two parameters.
111955         Simplify.  Don't call error upon failure.  Let callers do that.
111956         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
111957         when auditing is enabled.  But don't bother updating the #if.
111959 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
111961         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
111962         it breaks C++ compilation.
111963         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
111965 2003-07-10  Simon Josefsson  <jas@extundo.com>
111967         * modules/strchrnul (Makefile.am): Add strchrnul.h.
111969 2003-07-10  Jim Meyering  <jim@meyering.net>
111971         * m4/clock_time.m4: Remove trailing blank.
111972         * m4/intmax_t.m4: Likewise.
111974 2003-07-10  Jim Meyering  <jim@meyering.net>
111976         * lib/vasnprintf.c: Remove trailing blanks.
111977         Make cpp indentation consistent.
111979 2003-07-09  Paul Eggert  <eggert@twinsun.com>
111981         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
111982         posixver.c, strftime.c, strnlen.c, strverscmp.c:
111983         Switch from LGPL to GPL.
111985 2003-07-09  Paul Eggert  <eggert@twinsun.com>
111987         * config/srclist.txt: Sort sublists.  Add
111988         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
111989         that differ from gnulib for one reason or another; we'd like this list
111990         to be smaller but for now let's document what we have.
111992 2003-07-08  Paul Eggert  <eggert@twinsun.com>
111994         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
111995         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
111996         and sweeter "eval x=$x".
111997         * config/srclist.txt: Get lib/argp* from glibc.
111999 2003-07-07  Paul Eggert  <eggert@twinsun.com>
112001         * lib/mktime.c: Fix some boundary cases and remove need for floating
112002         point.
112004         Issue a compile-time diagnostic if time_t is floating point, or if
112005         two's complement arithmetic is not in effect, or if arithmetic
112006         right shift does not propagate the sign.  These assumptions were
112007         all in the original code but they weren't checked.
112009         (TIME_T_MIDPOINT, verify): New macros.
112010         (__isleap): Remove; it has integer overflow problems.
112011         (leapyear): New function, without those problems.
112012         (ydhms_tm_diff): Remove; splitting into two parts.
112013         (ydhms_diff): New function, containing the arithmetic part of
112014         the old ydhms_tm_diff function.  Issue a compile-time
112015         diagnostic if we are not using C99 integer division.
112016         Avoid casts when possible.
112017         (guess_time_tm): New function, containing the checking part of
112018         the old ydhms_tm_diff function.  Return the new value, rather than
112019         the difference between it and the old.  Accept a new argument T
112020         so that *T specifies the old value.  Check for overflow in the result.
112022         (__mktime_internal): Use a time_t offset, not a long int offset.
112023         This undoes the 2003-06-04 change, which is no longer needed now
112024         that we have better overflow checking.
112025         (localtime_offset): Likewise.
112027         (__mktime_internal): Avoid harmful overflow on hosts where time_t
112028         and long are 64-bit but int is only 32-bit.
112029         (ydhms_diff): Use long int to store year1 and yday1.
112030         Issue a compile-time diagnostic if long int is not wide enough.
112032         (__mktime_internal): Use long int to store adjusted year and yday.
112033         Use plain C rather than preprocessor commands, if that doesn't
112034         affect efficiency.
112035         Check for overflow (and try to repair) after each probe
112036         rather than checking only at the very end.  This avoids some bugs
112037         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
112038         does not equal GMT offset at maximum time).
112039         Use integer to check for overflow rather than floating point; this
112040         is more portable to non-IEEE hosts, and is a tad faster.
112041         When we detect that we are oscillating between two values,
112042         don't check whether tm_isdst has the requested value, since
112043         we already know the answer.  When tm_isdst has the wrong value,
112044         use a different heuristic to find the right one, based on the
112045         extreme values actually observed in practice in tz2003a,
112046         rather than the (overly optimistic) "previous 3 calendar quarters".
112048         (not_equal_tm, print_tm, check_result): Use "const T" rather than
112049         "T const" to accommodate glibc style.
112050         (check_result): Use less-confusing report format.  "long" -> "long int.
112051         (main): Likewise.
112052         Don't loop if the iteration overflows time_t.
112053         Allow a negative step in the iteration.
112055 2003-07-06  Karl Berry  <karl@gnu.org>
112057         * config/depcomp: update from automake.
112058         * config/config.sub: update from prep.
112060 2003-07-03  Karl Berry  <karl@gnu.org>
112062         * config/config.guess: update from prep.
112064 2003-07-01  Paul Eggert  <eggert@twinsun.com>
112066         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
112067         xreadlink.c now includes it unconditionally.
112069 2003-07-01  Paul Eggert  <eggert@twinsun.com>
112071         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
112072         having it depend on HAVE_SYS_TYPES_H.
112074 2003-07-01  Bruno Haible  <bruno@clisp.org>
112076         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
112077         <sys/types.h> should be sufficient.
112078         Reported by Paul Eggert.
112080 2003-06-26  Karl Berry  <karl@gnu.org>
112082         * config/depcomp: update from automake.
112084 2003-06-26  Bruno Haible  <bruno@clisp.org>
112086         * modules/human: Depend on module stdbool.
112088 2003-06-25  Bruno Haible  <bruno@clisp.org>
112090         * modules/readlink: New file.
112091         * modules/xreadlink: Depend on it.
112092         * MODULES.html.sh (func_all_modules): Add readlink.
112094 2003-06-25  Bruno Haible  <bruno@clisp.org>
112096         * m4/readlink.m4: New file.
112098 2003-06-25  Bruno Haible  <bruno@clisp.org>
112100         * lib/readlink.c: New file.
112102 2003-06-22  Karl Berry  <karl@gnu.org>
112104         * config/srclist.txt: update mkinstalldirs from automake.
112105         * config/mkinstalldirs: update.
112107 2003-06-22  Bruno Haible  <bruno@clisp.org>
112109         Portability to mingw32.
112110         * m4/ssize_t.m4: New file, from GNU gettext.
112111         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
112112         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
112114 2003-06-22  Bruno Haible  <bruno@clisp.org>
112116         * modules/safe-read: Add m4/ssize_t.m4.
112117         * modules/xreadlink: Add m4/ssize_t.m4.
112119 2003-06-20  Bruno Haible  <bruno@clisp.org>
112121         Assume C89, so PARAMS isn't needed.
112122         * lib/unicodeio.h (PARAMS): Remove.
112123         * lib/unicodeio.c: Don't use PARAMS.
112125 2003-06-18  Karl Berry  <karl@gnu.org>
112127         * config/config.{guess,sub}: update from prep.
112129 2003-06-18  Jim Meyering  <jim@meyering.net>
112131         Merge changes from coreutils.
112132         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
112133         Remove explicit declarations of xmalloc and realloc.
112134         Include xalloc.h.
112135         (read_utmp): Remove anachronistic cast of xmalloc.
112137 2003-06-17  Paul Eggert  <eggert@twinsun.com>
112139         Assume C89, so PARAMS isn't needed.
112140         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
112141         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
112142         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
112143         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
112144         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
112145         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
112146         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
112147         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
112148         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
112149         lib/xstrtod.h, lib/xstrtol.h: Likewise.
112150         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
112151         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
112152         no longer needed. Anyway, config.h should always be included before any
112153         other file.
112155 2003-06-11  Simon Josefsson  <jas@extundo.com>
112157         * modules/sysexits: New file.
112158         * MODULES.html.sh (func_all_modules): Add sysexits.
112160 2003-06-11  Simon Josefsson  <jas@extundo.com>
112162         * lib/sysexit_.h: New file.
112164 2003-06-11  Derek Price  <derek@ximbiot.com>
112166         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
112167         necessary.
112169 2003-06-11  Bruno Haible  <bruno@clisp.org>
112171         * m4/sysexits.m4: New file.
112173 2003-06-10  Simon Josefsson  <jas@extundo.com>
112175         * lib/argp.h: New file, from glibc.
112176         * lib/argp-ba.c: New file, from glibc.
112177         * lib/argp-eexst.c: New file, from glibc.
112178         * lib/argp-fmtstream.c: New file, from glibc.
112179         * lib/argp-fmtstream.h: New file, from glibc.
112180         * lib/argp-fs-xinl.c: New file, from glibc.
112181         * lib/argp-help.c: New file, from glibc.
112182         * lib/argp-namefrob.h: New file, from glibc.
112183         * lib/argp-parse.c: New file, from glibc.
112184         * lib/argp-pv.c: New file, from glibc.
112185         * lib/argp-pvh.c: New file, from glibc.
112186         * lib/argp-xinl.c: New file, from glibc.
112188 2003-06-10  Simon Josefsson  <jas@extundo.com>
112190         * modules/strchrnul: New file.
112192 2003-06-10  Simon Josefsson  <jas@extundo.com>
112194         * modules/argp: New file.
112196 2003-06-10  Simon Josefsson  <jas@extundo.com>
112198         * m4/strchrnul.m4: New file.
112200 2003-06-10  Simon Josefsson  <jas@extundo.com>
112202         * lib/strchrnul.h: New file.
112203         * lib/strchrnul.c: New file.
112205 2003-06-10  Bruno Haible  <bruno@clisp.org>
112207         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
112209 2003-06-07  Karl Berry  <karl@gnu.org>
112211         * config/config.{guess,sub}: update from prep.
112213 2003-06-07  Jim Meyering  <jim@meyering.net>
112215         * modules/strtod: Use $(...) notation, not @...@ for
112216         AC_REPLACE'd variables.
112217         * modules/localcharset: Likewise.
112219 2003-06-07  Jim Meyering  <jim@meyering.net>
112221         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
112222         in place of my name in the copyright comment.
112223         Remove definition and uses of __P.
112225         From coreutils.
112226         * lib/stat.c: Don't declare xmalloc explicitly.
112227         Instead, include "xalloc.h".
112228         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
112229         xrealloc, and xcalloc return values.
112230         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
112231         Improve comment.
112232         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
112234 2003-06-07  Bruno Haible  <bruno@clisp.org>
112236         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
112237         avoid AC_CONFIG_LINKS.
112238         * modules/fnmatch (Makefile.am): Use explicit creation rule for
112239         fnmatch.h, to avoid AC_CONFIG_LINKS.
112240         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
112242 2003-06-07  Bruno Haible  <bruno@clisp.org>
112244         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
112245         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
112246         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
112247         directory.
112248         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
112249         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
112250         directory.
112252 2003-06-06  Jim Meyering  <jim@meyering.net>
112254         Merge from coreutils.
112255         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
112256         Consolidate declarations and initializations of *_base* locals.
112258         Merge from coreutils.
112259         This avoids a core dump on systems without GNU putenv,
112260         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
112261         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
112262         (unsetenv): New static function, from GNU libc.
112263         (rpl_putenv): Use it.
112265         * lib/modechange.c: Remove trailing blanks.
112267         Merge from coreutils.
112268         * lib/fsusage.c: Remove declaration of statfs.
112269         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
112271         * lib/posixtm.c: Include <stdbool.h> unconditionally.
112273 2003-06-06  Jim Meyering  <jim@meyering.net>
112275         * lib/stdbool_.h: Renamed from stdbool.h.in.
112277 2003-06-06  Jim Meyering  <jim@meyering.net>
112278             Bruno Haible  <bruno@clisp.org>
112280         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
112281         Adjust Makefile.am snippet not to redirect directly to target.
112282         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
112284 2003-06-05  Paul Eggert  <eggert@twinsun.com>
112286         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
112287         mismatch, look in future quarters as well as past.  This fixes a
112288         bug when processing fall-backwards gaps immediately after a long
112289         period of daylight-saving time.
112291         * lib/mktime.c: Assume freestanding C89 or better.
112292         (HAVE_LIMITS_H): Remove.  Assume it's 1.
112293         (__P): Remove; not used.
112294         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
112295         (mktime, not_equal_tm, print_tm, check_result,
112296         main): Use prototypes.  Use const * where appropriate.
112297         (main): Fix typo in testing code that uncovered by above changes.
112298         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
112300 2003-06-04  Paul Eggert  <eggert@twinsun.com>
112302         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
112303         locale.h, localeconv.  This merges changes from coreutils.
112305         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
112306         It can be removed after the next Autoconf is released.
112307         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
112308         needed.
112310 2003-06-04  Paul Eggert  <eggert@twinsun.com>
112312         * lib/mktime.c: Fix Debian bug 177940
112313         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
112314         (localtime_offset): Now long int, not time_t, because we want it
112315         to be guaranteed to be signed.  All uses changed.
112316         (__mktime_internal): If overflow would occur when adding offset,
112317         don't add it.
112319         Merge 'human' changes from coreutils.  Rewrite to support
112320         locale-specific notations like thousands separators.
112321         * lib/human.c: Simplify authorship notice.
112322         Include human.h immediately after config.h.
112323         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
112324         <limits.h>: Do not include, since human.h does.
112325         (SIZE_MAX, UINTMAX_MAX): New macros.
112326         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
112327         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
112328         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
112329         (power_letter): Renamed from suffixes.
112330         (generate_suffix_backwards): Remove.
112331         (adjust_value): Now takes int style (because of human.h changes)
112332         and long double value (for greater precision on some platforms).
112333         (group_number): New function.
112334         (human_readable): Use it.  Use integer options, not enum.
112335         Put the options before the sizes in the arg list.
112336         Support all the new options.
112337         The old human_readable function has been removed;
112338         use inttostr.h instead.
112339         (human_readable, default_block_size, humblock):
112340         Use uintmax_t, not int, for block sizes.
112341         (human_readable_inexact, block_size_types): Remove.
112342         (block_size_opts): New constant.
112343         (human_options): Renamed from human_block_size, with new signature
112344         that allows block sizes up to UINTMAX_MAX.  All callers changed.
112345         * lib/human.h: Add copyright and authorship notice.
112346         Include <limits.h> and <stdbool.h> unconditionally.
112347         (PARAMS): Remove.  All uses removed.
112348         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
112349         (enum human_inexact_style): Remove tag; now a nameless enum.
112350         (human_floor, human_ceiling, human_round_to_even): Now have
112351         values 2, 0, 1 rather than -1, 1, 0.
112352         (human_group_digits, human_suppress_point_zero, human_autoscale,
112353         human_base_1024, human_SI, human_B): New constants.
112354         (human_readable_inexact, human_block_size): Remove.
112355         (human_readable): Size args are now uintmax_t, not int.
112356         (human_options): New decl.
112358         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
112359         unnecessary now that we assume C89 or better.  This change
112360         imported from coreutils.
112362         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
112363         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
112364         in the 2003-05-30 sync from glibc.
112366         .h files should stand alone, but we shouldn't include <sys/types.h>
112367         if we can get away with just <stddef.h>.
112369         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
112370         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
112371         rather than <sys/types.h>, as we merely need size_t.
112372         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
112373         to get size_t.
112374         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
112375         Include <stdio.h>, to get FILE.
112376         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
112377         memcasecmp.h has included <stddef.h> and all we need is size_t.
112378         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
112379         our interface, instead of including <sys/types.h>
112381 2003-06-04  Paul Eggert  <eggert@twinsun.com>
112383         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
112384         now, as glibc mktime is buggy on non-glibc systems.
112386 2003-06-03  Karl Berry  <karl@gnu.org>
112388         * config/config.sub: update from prep.
112390 2003-06-02  Paul Eggert  <eggert@twinsun.com>
112392         [from coreutils]
112393         Fix some minor time-related bugs with POSIX time arguments.
112394         Some valid time stamps were being rejected (notably -1, and
112395         time stamps before 1900 on 64-bit hosts).  And some invalid
112396         time stamps were being accepted, e.g. September 31.
112398         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
112399         that we can return (time_t) -1 successfully.
112400         * lib/posixtm.c: Likewise.
112401         [HAVE_STDBOOL_H]: Include <stdbool.h>.
112402         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
112403         (t): Remove static var.
112404         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
112405         of static var.  All uses changed.
112406         (year): Do not reject years before 1900; they can occur with
112407         64-bit time_t.
112408         (posix_time_parse): Do not check for out-of-range components;
112409         that is now the caller's responsibility, since our checks were
112410         only approximations.
112411         (posixtime): Use mktime to check for out-of-range components,
112412         since it knows them exactly.
112413         If mktime returns (time_t) -1, check whether an error actually occurred
112414         by invoking localtime on -1.
112415         (main) [TEST_POSIXTIME]: Check for input data errors, and report
112416         posixtime failures better.
112417         Improve the test data (in comments only).
112419 2003-06-02  Karl Berry  <karl@gnu.org>
112421         * config/mkinstalldirs (version): new variable.
112422         (--version): new option.
112423         (usage): improve message.
112425 2003-05-30  Karl Berry  <karl@gnu.org>
112427         * lib/mktime.c: update from libc.
112429 2003-05-30  Bruno Haible  <bruno@clisp.org>
112431         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
112432         * config/config.rpath: Upgrade to gettext-0.12.1.
112434 2003-05-30  Bruno Haible  <bruno@clisp.org>
112436         * m4/gettext.m4: Upgrade to gettext-0.12.1.
112437         * m4/nls.m4: New file, from gettext-0.12.1.
112438         * m4/po.m4: New file, from gettext-0.12.1.
112439         * m4/progtest.m4: Upgrade to gettext-0.12.1.
112441 2003-05-30  Bruno Haible  <bruno@clisp.org>
112443         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
112444         * lib/localcharset.h: Likewise.
112445         * lib/localcharset.c: Likewise.
112447 2003-05-29  Karl Berry  <karl@gnu.org>
112449         * config/config.rpath: update from gettext.
112451 2003-05-28  Paul Eggert  <eggert@twinsun.com>
112453         Assume the headers required for C89 freestanding compilers.
112454         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
112455         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
112456         * m4/human.m4 (gl_HUMAN): Likewise.
112457         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
112458         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
112459         * m4/userspec.m4 (gl_USERSPEC): Likewise.
112460         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
112461         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
112462         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
112464 2003-05-28  Paul Eggert  <eggert@twinsun.com>
112466         Assume the headers required for C89 freestanding compilers.
112467         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
112468         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
112469         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
112470         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
112471         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
112472         define, since <limits.h> is guaranteed to do that.
112473         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
112474         * lib/exclude.c: Include <stdbool.h> unconditionally.
112475         * lib/tempname.c: Include <stddef.h> unconditionally.
112476         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
112477         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
112478         <stddef.h> does that.
112479         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
112480         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
112481         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
112482         needed.
112483         * lib/xstrtol.c: Likewise.
112484         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
112485         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
112487         * lib/addext.c (addext): Use assignment rather than cast, to avoid
112488         warnings on some platforms.
112490         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
112491         arbitrarily.
112493 2003-05-26  Jim Meyering  <jim@meyering.net>
112495         Merge in a change from coreutils:
112496         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
112497         that is guaranteed to be `no'.  Use `no_such_member' to indicate
112498         that condition, rather than `-1' which is slightly misleading.
112499         Change the name of the cache variable to have the gl_ prefix.
112500         Prompted by a patch from Richard Dawe for DJGPP.
112502 2003-05-24  Karl Berry  <karl@gnu.org>
112504         * config/config.guess: update from prep.
112506 2003-05-22  Karl Berry  <karl@gnu.org>
112508         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
112510 2003-05-20  Karl Berry  <karl@gnu.org>
112512         * config/config.guess: update from prep.
112514 2003-05-18  Karl Berry  <karl@gnu.org>
112516         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
112517         might actually be set by the user.
112519         * config/depcomp, install-sh, mdate-sh: update from automake.
112521 2003-05-17  Bruno Haible  <bruno@clisp.org>
112523         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
112524         invalid expansion for AC_EGREP_CPP.
112525         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
112526         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
112527         Suggested by Akim Demaille <akim@epita.fr> in
112528         http://mail.gnu.org/r/bug-autoconf/2003-05/threads.html
112530 2003-05-12  Jim Meyering  <jim@meyering.net>
112532         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
112533         the space-padded-by-default conversion specifiers, %e, %k, %l.
112535 2003-05-12  Bruno Haible  <bruno@clisp.org>
112537         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
112538         the string is longer than 4 KB.
112540 2003-05-11  Karl Berry  <karl@gnu.org>
112542         * config/config.{guess,sub}: update from prep.
112544 2003-05-09  Bruno Haible  <bruno@clisp.org>
112546         * modules/error: Add m4/strerror_r.m4 to file list.
112548 2003-05-03  Bruno Haible  <bruno@clisp.org>
112550         Upgrade to Unicode-4.0.
112551         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
112552         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
112553         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
112554         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
112555         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
112556         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
112557         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
112558         Change width of U+E0100..U+E01EF from 1 to 0.
112560 2003-04-25  Jim Meyering  <jim@meyering.net>
112562         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
112563         of type size_t, not int.
112565 2003-04-25  Bruno Haible  <bruno@clisp.org>
112567         * lib/copy-file.c: Include <stddef.h>, for size_t.
112569 2003-04-21  Paul Eggert  <eggert@twinsun.com>
112571         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
112572         code which expansion is under static control.  Patch imported from
112573         Akim Demaille's patch to Bison; see
112574         <http://mail.gnu.org/r/bison-patches/2003-03/msg00057.html>.
112576 2003-04-14  Bruno Haible  <bruno@clisp.org>
112578         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
112580 2003-04-11  Jim Meyering  <jim@meyering.net>
112582         Merge changes from Coreutils.
112584         2003-03-22  Jim Meyering  <jim@meyering.net>
112586         * lib/strftime.c (widen): Cast alloca return value to proper type.
112588         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
112590         From GNU libc.
112591         * lib/strftime.c (my_strftime): Handle very large width
112592         specifications for numeric values correctly.  Improve checks for
112593         overflow.
112595         2003-01-19  Jim Meyering  <jim@meyering.net>
112597         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
112598         definitions.
112599         (nl_get_alt_digit) [! defined my_strftime]: Define.
112600         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
112601         _nl_get_alt_digit and _nl_get_walt_digit.
112603         * lib/strftime.c (my_strftime): Merge in locale-related changes from
112604         libc. These changes have no effect outside of _LIBC.
112606 2003-04-10  Bruno Haible  <bruno@clisp.org>
112608         * modules/findprog: New file.
112609         * MODULES.html.sh (func_all_modules): Add it.
112611 2003-04-10  Bruno Haible  <bruno@clisp.org>
112613         * m4/findprog.m4: New file.
112614         * m4/eaccess.m4: New file.
112616 2003-04-10  Bruno Haible  <bruno@clisp.org>
112618         * lib/findprog.h: New file, from GNU gettext.
112619         * lib/findprog.c: New file, from GNU gettext.
112621 2003-04-05  Jim Meyering  <jim@meyering.net>
112623         Merge changes from Coreutils.
112625         * lib/exclude.h (PARAMS): Remove definition and uses.
112626         * lib/exclude.c: Remove uses of `PARAMS'.
112628         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
112629         Add test-cases for DOS filenames. Declare program_name.
112630         (main): Set up program_name.  Patch by Rich Dawe.
112632         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
112633         error from mntctl.
112634         Use mntctl's return value to drive the entry-processing loop, since
112635         we can't rely on the value of the vmt_length member in the last
112636         entry.  On some systems doing so could result in exhausting
112637         virtual memory.  Based in part on a patch from Mike Jetzer.
112639 2003-04-04  Bruno Haible  <bruno@clisp.org>
112641         * modules/linebreak: New file.
112642         * MODULES.html.sh (func_all_modules): Add it.
112644 2003-04-04  Bruno Haible  <bruno@clisp.org>
112646         * m4/linebreak.m4: New file.
112648 2003-04-04  Bruno Haible  <bruno@clisp.org>
112650         * lib/linebreak.h: New file, from GNU gettext.
112651         * lib/linebreak.c: New file, from GNU gettext with slight
112652         modifications.
112653         * lib/lbrkprop.h: New file, from GNU gettext.
112655 2003-04-03  Bruno Haible  <bruno@clisp.org>
112657         * modules/utf8-ucs4: New file.
112658         * modules/utf16-ucs4: New file.
112659         * modules/ucs4-utf8: New file.
112660         * modules/ucs4-utf16: New file.
112661         * MODULES.html.sh (func_all_modules): Add them.
112663 2003-04-03  Bruno Haible  <bruno@clisp.org>
112665         * m4/utf-ucs4.m4: New file.
112666         * m4/ucs4-utf.m4: New file.
112668 2003-04-03  Bruno Haible  <bruno@clisp.org>
112670         * lib/utf8-ucs4.h: New file, from GNU gettext.
112671         * lib/utf16-ucs4.h: New file, from GNU gettext.
112672         * lib/ucs4-utf8.h: New file, from GNU gettext.
112673         * lib/ucs4-utf16.h: New file, from GNU gettext.
112675 2003-04-02  Bruno Haible  <bruno@clisp.org>
112677         * modules/binary-io: New file.
112678         * MODULES.html.sh (func_all_modules): Add it.
112680 2003-04-02  Bruno Haible  <bruno@clisp.org>
112682         * lib/binary-io.h: New file, from GNU gettext.
112684 2003-04-01  Bruno Haible  <bruno@clisp.org>
112686         * modules/pathname: New file.
112687         * MODULES.html.sh (func_all_modules): Add it.
112689 2003-04-01  Bruno Haible  <bruno@clisp.org>
112691         * lib/pathname.h: New file, from GNU gettext.
112692         * lib/concatpath.c: New file, from GNU gettext.
112694 2003-03-30  Bruno Haible  <bruno@clisp.org>
112696         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
112698 2003-03-30  Bruno Haible  <bruno@clisp.org>
112700         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
112701         function chown() doesn't exist.
112703 2003-03-28  Bruno Haible  <bruno@clisp.org>
112705         * modules/copy-file: New file.
112706         * MODULES.html.sh (func_all_modules): Add it.
112708 2003-03-28  Bruno Haible  <bruno@clisp.org>
112710         * m4/copy-file.m4: New file.
112712 2003-03-28  Bruno Haible  <bruno@clisp.org>
112714         * lib/copy-file.h: New file, from GNU gettext.
112715         * lib/copy-file.c: New file, from GNU gettext.
112717 2003-03-18  Jim Meyering  <jim@meyering.net>
112719         * lib/quote.c (quote_n): Fix typo in comment.
112721 2003-03-18  Bruno Haible  <bruno@clisp.org>
112723         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
112724         checking.
112725         * m4/onceonly_2_57.m4: Likewise.
112727 2003-03-17  Bruno Haible  <bruno@clisp.org>
112729         * m4/onceonly.m4: Require autoconf 2.54 or newer.
112730         (m4_quote): Remove macro.
112731         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
112733 2003-03-14  Jim Meyering  <jim@meyering.net>
112735         Merge changes from Coreutils.
112736         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
112737         to be const, in order to avoid warnings.
112738         (obstack_room): Likewise.
112739         (obstack_empty_p): Likewise.
112741 2003-03-14  Bruno Haible  <bruno@clisp.org>
112743         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
112744         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
112746 2003-03-13  Paul Eggert  <eggert@twinsun.com>
112748         Merge changes from Bison.
112749         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
112750         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
112751         when compiling Bison 1.875's `bitset bset = obstack_alloc
112752         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
112753         * lib/hash.c: Include <stdbool.h> unconditionally.
112755 2003-03-13  Paul Eggert  <eggert@twinsun.com>
112757         * m4/onceonly.m4 (m4_quote): New macro.
112758         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
112759         Quote AC_FOREACH variable-expansions properly.
112761 2003-03-13  Paul Eggert  <eggert@twinsun.com>
112763         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
112765 2003-03-09  Paul Eggert  <eggert@twinsun.com>
112767         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
112768         Reported by Bruce Becker; see:
112769         http://mail.gnu.org/r/bug-bison/2003-03/msg00017.html
112771 2003-03-03  Paul Eggert  <eggert@twinsun.com>
112772             Bruno Haible  <bruno@clisp.org>
112774         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
112775         Reported by John Hughes, see
112776         http://mail.gnu.org/r/bug-bison/2003-02/msg00030.html
112778 2003-02-20  Bruno Haible  <bruno@clisp.org>
112780         * MODULES.html.sh (func_all_modules): Add poll.
112782 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
112784         * modules/poll: New file.
112786 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
112788         * lib/poll_.h: New file.
112789         * lib/poll.c: New file.
112791 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
112793         * m4/poll.m4: New file.
112795 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
112797         * modules/mathl: New file.
112799 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
112801         * lib/mathl.h: New file.
112802         * lib/acosl.c: New file.
112803         * lib/asinl.c: New file.
112804         * lib/atanl.c: New file.
112805         * lib/ceill.c: New file.
112806         * lib/cosl.c: New file.
112807         * lib/expl.c: New file.
112808         * lib/floorl.c: New file.
112809         * lib/frexpl.c: New file.
112810         * lib/ldexpl.c: New file.
112811         * lib/logl.c: New file.
112812         * lib/sincosl.c: New file.
112813         * lib/sinl.c: New file.
112814         * lib/sqrtl.c: New file.
112815         * lib/tanl.c: New file.
112816         * lib/trigl.c: New file.
112817         * lib/trigl.h: New file.
112819 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
112821         * m4/mathl.m4: New file.
112823 2003-02-18  Bruno Haible  <bruno@clisp.org>
112825         * MODULES.html.sh (func_all_modules): Add mathl.
112827 2003-02-17  Bruno Haible  <bruno@clisp.org>
112829         * modules/mkdtemp: New module.
112830         * MODULES.html.sh (func_all_modules): Add it.
112832 2003-02-17  Bruno Haible  <bruno@clisp.org>
112834         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
112836 2003-02-17  Bruno Haible  <bruno@clisp.org>
112838         * lib/mkdtemp.h: New file, from GNU gettext.
112839         * lib/mkdtemp.c: New file, from GNU gettext.
112841 2003-02-02  Jim Meyering  <jim@meyering.net>
112843         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
112844         e.g. glibc-2.2.93.
112846 2003-01-31  Bruno Haible  <bruno@clisp.org>
112848         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
112849         'rpl_rename'.
112850         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
112851         'rpl_strnlen'.
112852         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
112853         'rpl_strtod'.
112854         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
112855         'rpl_utime'.
112857 2003-01-31  Bruno Haible  <bruno@clisp.org>
112859         * lib/rename.c: #undef rename before defining rpl_rename.
112860         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
112862 2003-01-30  Bruno Haible  <bruno@clisp.org>
112864         * modules/vasnprintf, modules/vasprintf: New modules.
112865         * MODULES.html.sh (func_all_modules): Add them.
112867 2003-01-30  Bruno Haible  <bruno@clisp.org>
112869         * m4/signed.m4: New file, from GNU gettext.
112870         * m4/longdouble.m4: New file, from GNU gettext.
112871         * m4/wchar_t.m4: New file, from GNU gettext.
112872         * m4/wint_t.m4: New file, from GNU gettext.
112873         * m4/vasnprintf.m4: New file.
112874         * m4/vasprintf.m4: New file.
112876 2003-01-30  Bruno Haible  <bruno@clisp.org>
112878         * lib/printf-args.h: New file, from GNU gettext.
112879         * lib/printf-args.c: New file, from GNU gettext.
112880         * lib/printf-parse.h: New file, from GNU gettext.
112881         * lib/printf-parse.c: New file, from GNU gettext.
112882         * lib/vasnprintf.h: New file, from GNU gettext.
112883         * lib/vasnprintf.c: New file, from GNU gettext.
112884         * lib/asnprintf.c: New file, from GNU gettext.
112885         * lib/vasprintf.h: New file, from GNU gettext with modifications.
112886         * lib/vasprintf.c: New file, from GNU gettext.
112887         * lib/asprintf.c: New file, from GNU gettext.
112889 2003-01-29  Bruno Haible  <bruno@clisp.org>
112891         * modules/stpncpy: New module.
112892         * MODULES.html.sh (func_all_modules): Add it.
112894 2003-01-29  Bruno Haible  <bruno@clisp.org>
112896         * m4/stpncpy.m4: New file.
112898 2003-01-29  Bruno Haible  <bruno@clisp.org>
112900         * lib/stpncpy.h: New file, from GNU gettext with modifications.
112901         * lib/stpncpy.c: New file, from GNU gettext with modifications.
112903 2003-01-28  Bruno Haible  <bruno@clisp.org>
112905         * modules/c-ctype: New module.
112906         * MODULES.html.sh (func_all_modules): Add it.
112908 2003-01-28  Bruno Haible  <bruno@clisp.org>
112910         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
112911         Paul Eggert.
112912         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
112913         Paul Eggert.
112915 2003-01-27  Bruno Haible  <bruno@clisp.org>
112917         * modules/xsetenv: New module.
112918         * MODULES.html.sh (func_all_modules): Add it.
112920 2003-01-27  Bruno Haible  <bruno@clisp.org>
112922         * lib/xsetenv.h: New file, from GNU gettext.
112923         * lib/xsetenv.c: New file, from GNU gettext.
112925 2003-01-23  Jim Meyering  <jim@meyering.net>
112927         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
112928         from working on systems without dirfd (at least Irix and OSF1/Tru64).
112930 2003-01-23  Bruno Haible  <bruno@clisp.org>
112932         * modules/minmax: New module.
112933         * MODULES.html.sh (func_all_modules): Add it.
112935 2003-01-23  Bruno Haible  <bruno@clisp.org>
112937         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
112938         Eggert.
112940 2003-01-22  Bruno Haible  <bruno@clisp.org>
112942         * modules/exit: New module.
112943         * MODULES.html.sh (func_all_modules): Add it.
112945 2003-01-22  Bruno Haible  <bruno@clisp.org>
112947         * lib/exit.h: New file, from GNU gettext.
112949 2003-01-19  Bruno Haible  <bruno@clisp.org>
112951         * gnulib-tool: Recognize option --extract-maintainer.
112952         (func_get_maintainer): New function.
112953         * modules/*: Add Maintainer entry.
112955 2003-01-16  Jim Meyering  <jim@meyering.net>
112957         * m4/regex.m4: The `regex' struct is both input and output.
112958         Initialize it before each use.  Patch by Tim Waugh.
112960 2003-01-16  Bruno Haible  <bruno@clisp.org>
112962         * MODULES.html.sh: Add a table of contents. Add the module name as
112963         leftmost column. Add hyperlinks.
112965 2003-01-15  Bruno Haible  <bruno@clisp.org>
112967         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
112969 2003-01-15  Bruno Haible  <bruno@clisp.org>
112971         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
112972         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
112973         suffix.
112975 2003-01-15  Bruno Haible  <bruno@clisp.org>
112977         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
112979 2003-01-15  Bruno Haible  <bruno@clisp.org>
112981         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
112982         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
112984 2003-01-14  Jim Meyering  <jim@meyering.net>
112986         * lib/same.c (same_name): Tweak a comment.
112988 2003-01-14  Bruno Haible  <bruno@clisp.org>
112990         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
112991         when a string comparison is sufficient.
112993 2003-01-14  Bruno Haible  <bruno@clisp.org>
112995         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
112996         'unsigned int'.
112998 2003-01-14  Bruno Haible  <bruno@clisp.org>
113000         * lib/hash-pjw.c: Add comment about low quality of this function.
113002 2003-01-13  Bruno Haible  <bruno@clisp.org>
113004         * modules/stpcpy: Distribute lib/stpcpy.h.
113005         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
113007 2003-01-13  Bruno Haible  <bruno@clisp.org>
113009         * modules/*: Add a description.
113010         * modules/strpbrk: Fix Makefile.am snippet.
113011         * modules/strtoimax: Fix dependencies.
113012         * modules/strtoumax: Likewise.
113014 2003-01-13  Bruno Haible  <bruno@clisp.org>
113016         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
113017         * modules/alloca (Makefile.am): All object files depend on alloca.h.
113018         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
113020 2003-01-13  Bruno Haible  <bruno@clisp.org>
113022         * gnulib-tool (func_create_testdir): Store config/* files in the main
113023         directory.
113024         * config.rpath: Move to ...
113025         * config/config.rpath: ... here.
113026         * modules/gettext: Contains config/config.rpath, not config.rpath.
113027         * modules/iconv: Likewise.
113029 2003-01-12  Paul Eggert  <eggert@twinsun.com>
113031         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
113032         to avoid collisions with libcurses and libreadline.
113034         * m4/getstr.m4: Remove.
113035         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
113037 2003-01-12  Paul Eggert  <eggert@twinsun.com>
113039         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
113040         to avoid collisions with libcurses and libreadline.
113042         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
113043         * lib/getstr.h, getstr.c: Remove.
113044         * lib/getline.c: Include "getline.h", to check interface.
113045         Move body of old getstr.c here: this defines MIN_CHUNK and
113046         declares getdelim2, which is renamed from getstr.
113047         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
113049         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
113050         All uses changed.
113051         * lib/linebuffer.h: Likewise.
113052         (readline): Remove backward-compatibility macro.
113054 2003-01-12  Paul Eggert  <eggert@twinsun.com>
113056         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
113057         to avoid collisions with libcurses and libreadline.
113058         * getstr: Remove.
113059         * MODULES.html.sh: Remove getstr.
113060         * modules/getline: Depend on unlocked-io, not getstr.
113062 2003-01-12  Jim Meyering  <jim@meyering.net>
113064         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
113066 2003-01-10  Bruno Haible  <bruno@clisp.org>
113068         * modules/alloca: Change Makefile.am requirements. Simplify Include
113069         requirements. Add lib/alloca_.h to file list.
113071 2003-01-10  Bruno Haible  <bruno@clisp.org>
113073         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
113075 2003-01-10  Bruno Haible  <bruno@clisp.org>
113077         * lib/alloca_.h: New file.
113078         * lib/getdate.y: Unconditionally include alloca.h.
113079         * lib/makepath.c: Likewise.
113080         * lib/setenv.c: Likewise.
113081         * lib/userspec.c: Likewise.
113083 2003-01-09  Karl Berry  <karl@gnu.org>
113085         * MODULES.html.sh: include `dirname $0` in PATH, to find
113086         gnulib-tool.
113088 2003-01-09  Bruno Haible  <bruno@clisp.org>
113090         * modules/stdbool: Change configure.ac, Makefile.am requirements.
113091         Simplify Include requirements. Add lib/stdbool.h.in to file list.
113093 2003-01-09  Bruno Haible  <bruno@clisp.org>
113095         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
113097 2003-01-09  Bruno Haible  <bruno@clisp.org>
113099         * lib/stdbool.h.in: New file.
113101 2003-01-09  Bruno Haible  <bruno@clisp.org>
113103         * gnulib-tool (func_all_modules): Ignore files ending in ~.
113104         * MODULES.html.sh: Likewise.
113106 2003-01-08  Jim Meyering  <jim@meyering.net>
113108         * lib/full-write.c: Undefine and define-away `const' after inclusion
113109         of errno.h, not before.  Suggestion from Bruno Haible.
113111 2003-01-08  Bruno Haible  <bruno@clisp.org>
113113         * modules/full-read: Depend on full-write.
113115 2003-01-08  Bruno Haible  <bruno@clisp.org>
113117         * lib/safe-read.c: Include specification header first, to ensure its
113118         selfcontainedness.
113119         * lib/full-write.c: Likewise.
113121 2003-01-07  Jim Meyering  <jim@meyering.net>
113123         * lib/full-write.c: Rework so that it may serve to define full_read,
113124         too.
113125         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
113127 2003-01-07  Bruno Haible  <bruno@clisp.org>
113129         * lib/strtoimax.c: Include <stdint.h> as an alternative to
113130         <inttypes.h>.
113131         * lib/xstrtol.h: Likewise.
113132         * lib/xstrtoimax.c: Likewise.
113133         * lib/xstrtoumax.c: Likewise.
113134         * lib/human.h: Likewise.
113136         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
113137         on systems that have <inttypes.h> but not <stdint.h>.
113139 2003-01-07  Bruno Haible  <bruno@clisp.org>
113141         * MODULES.html.sh: Add copyright notice.
113142         (missed_files): Omit CVS directory entries.
113143         (func_module): Make it work with sed-3.02.
113144         * MODULES.txt: Remove file.
113146 2003-01-06  Jim Meyering  <jim@meyering.net>
113148         * lib/version-etc.c: Update year in translatable copyright string.
113150 2003-01-03  Karl Berry  <karl@gnu.org>
113152         * config/config.{guess,sub}: update from prep.
113154 2003-01-02  Karl Berry  <karl@gnu.org>
113156         * doc/COPYING.DOC: belatedly updated to 1.2.
113158 2003-01-01  Karl Berry  <karl@gnu.org>
113160         * gnulib-tool (func_verify_module): report module name $module in
113161         error message, not $1.
113162         * gnulib-tool (create-testdir): don't complain if destdir couldn't
113163         be created, only if it doesn't exist.
113164         * gnulib-tool (last_checkin_date): don't expand the $Date here.
113166 2002-12-31  Paul Eggert  <eggert@twinsun.com>
113168         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
113170 2002-12-31  Paul Eggert  <eggert@twinsun.com>
113172         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
113173         memcmp if strcoll doesn't work.
113175 2002-12-31  Bruno Haible  <bruno@clisp.org>
113177         * lib/utime.c (utime_null): No need to call ftruncate if the file was
113178         nonempty.
113180 2002-12-31  Bruno Haible  <bruno@clisp.org>
113182         * lib/memcoll.c (STRCOLL): New macro.
113183         (memcoll): Use it.
113185 2002-12-31  Bruno Haible  <bruno@clisp.org>
113187         * lib/localcharset.h: New file.
113188         * lib/localcharset.c: Include it.
113189         * lib/unicodeio.c: Likewise.
113191 2002-12-31  Bruno Haible  <bruno@clisp.org>
113193         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
113194         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
113196 2002-12-31  Bruno Haible  <bruno@clisp.org>
113198         * lib/getline.h: Include <stddef.h>, for size_t.
113200         * lib/unicodeio.h: Include <stddef.h>, for size_t.
113201         * lib/unicodeio.c: Don't include <stddef.h>.
113203 2002-12-31  Bruno Haible  <bruno@clisp.org>
113205         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
113206         HAVE_TM_ZONE.
113208 2002-12-24  Karl Berry  <karl@gnu.org>
113210         * config/config.guess: update from prep.
113212 2002-12-24  Bruno Haible  <bruno@clisp.org>
113214         General infrasructure.
113215         * m4/README: Rewritten.
113216         * m4/onceonly.m4: New file.
113217         * m4/onceonly_2_57.m4: New file.
113219         Module atexit.
113220         * m4/atexit.m4: New file.
113222         Module strtod.
113223         * m4/strtod.m4: New file.
113225         Module strtol.
113226         * m4/strtol.m4: New file.
113228         Module strtoul.
113229         * m4/strtoul.m4: New file.
113231         Module memchr.
113232         * m4/memchr.m4: New file.
113234         Module memcmp.
113235         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
113236         (jm_FUNC_MEMCMP): Invoke it.
113238         Module memcpy.
113239         * m4/memcpy.m4: New file.
113241         Module memmove.
113242         * m4/memmove.m4: New file.
113244         Module memset.
113245         * m4/memset.m4: New file.
113247         Module strcspn.
113248         * m4/strcspn.m4: New file.
113250         Module strpbrk.
113251         * m4/strpbrk.m4: New file.
113253         Module strstr.
113254         * m4/strstr.m4: New file.
113256         Module strerror.
113257         * m4/strerror.m4: New file.
113259         Module mktime.
113260         * m4/mktime.m4: Renamed from jm-mktime.m4.
113261         (gl_PREREQ_MKTIME): New macro.
113262         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
113264         Module malloc.
113265         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
113266         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
113267         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
113269         Module realloc.
113270         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
113271         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
113272         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
113274         Module strftime.
113275         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
113276         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
113277         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
113278         gl_TM_GMTOFF.
113279         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
113281         Module xalloc.
113282         * m4/xalloc.m4: New file.
113284         Module alloca.
113285         * m4/alloca.m4: New file.
113287         Module putenv.
113288         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
113289         (jm_FUNC_PUTENV): Invoke it.
113291         Module setenv.
113292         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
113293         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
113294         when invoked twice.
113295         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
113296         gt_FUNC_SETENV.
113298         Module memrchr.
113299         * m4/memrchr.m4: New file.
113301         Module stpcpy.
113302         * m4/stpcpy.m4: New file.
113304         Module strcase.
113305         * m4/strcase.m4: New file.
113307         Module strdup.
113308         * m4/strdup.m4: New file.
113310         Module strnlen.
113311         * m4/strnlen.m4: New file.
113313         Module strndup.
113314         * m4/strndup.m4: New file.
113316         Module xstrtod.
113317         * m4/xstrtod.m4: New file.
113319         Module xstrtol.
113320         * m4/xstrtol.m4: New file.
113322         Module getdate.
113323         * m4/getdate.m4: New file.
113325         Module unlocked-io.
113326         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
113327         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
113328         * m4/jm-glibc-io.m4n: Remove file.
113330         Module long-options.
113331         * m4/long-options.m4: New file.
113333         Module md5.
113334         * m4/md5.m4: New file.
113336         Module sha.
113337         * m4/sha.m4: New file.
113339         Module getstr.
113340         * m4/getstr.m4: New file.
113342         Module getline.
113343         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
113344         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
113345         <sys/types.h>, for size_t. Use the function name gnu_getline, not
113346         simply getline. Infoke gl_PREREQ_GETLINE.
113348         Module obstack.
113349         * m4/obstack.m4: New file.
113351         Module hash.
113352         * m4/hash.m4: New file.
113354         Module readtokens.
113355         * m4/readtokens.m4: New file.
113357         Module strverscmp.
113358         * m4/strverscmp.m4: New file.
113360         Module stdbool.
113361         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
113362         OSF/1.
113364         Module strtoll.
113365         * m4/strtoll.m4: New file.
113367         Module strtoull.
113368         * m4/strtoull.m4: New file.
113370         Module strtoimax.
113371         * m4/strtoimax.m4: New file.
113373         Module strtoumax.
113374         * m4/strtoumax.m4: New file.
113376         Module xstrtoimax.
113377         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
113378         jm_AC_PREREQ_XSTRTOIMAX.
113379         Moved the strtol prerequisites to strtol.m4.
113380         Moved the strtoll prerequisites to strtoll.m4.
113381         Moved the strtoimax prerequisites to strtoimax.m4.
113383         Module xstrtoumax.
113384         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
113385         jm_AC_PREREQ_XSTRTOUMAX.
113386         Moved the strtoul prerequisites to strtoul.m4.
113387         Moved the strtoull prerequisites to strtoull.m4.
113388         Moved the strtoumax prerequisites to strtoumax.m4.
113390         Module chown.
113391         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
113392         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
113394         Module dup2.
113395         * m4/dup2.m4: New file.
113397         Module ftruncate.
113398         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
113399         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
113401         Module getgroups.
113402         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
113403         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
113405         Module gettimeofday.
113406         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
113407         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
113408         gl_PREREQ_GETTIMEOFDAY.
113410         Module mkdir.
113411         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
113412         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
113414         Module mkstemp.
113415         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
113416         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
113417         jm_AC_TYPE_UINTMAX_T.
113418         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
113420         Module stat.
113421         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
113422         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
113424         Module lstat.
113425         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
113426         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
113428         Module timespec.
113429         * m4/timespec.m4 (gl_TIMESPEC): New macro.
113430         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
113431         * m4/st_mtim.m4: Indentation.
113433         Module nanosleep.
113434         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
113435         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
113436         gl_PREREQ_NANOSLEEP.
113438         Module regex.
113439         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
113440         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
113441         (gl_REGEX): New macro.
113443         Module rename.
113444         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
113445         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
113447         Module rmdir.
113448         * m4/rmdir.m4: New file.
113450         Module utime.
113451         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
113452         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
113453         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
113455         Module dirname.
113456         * m4/dirname.m4: New file.
113458         Module getopt.
113459         * m4/getopt.m4: New file.
113461         Module unistd-safer.
113462         * m4/unistd-safer.m4: New file.
113464         Module fnmatch.
113465         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
113466         declaration.
113467         (gl_PREREQ_FNMATCH_EXTRA): New macro.
113468         (gl_FUNC_FNMATCH_POSIX): New macro.
113469         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
113470         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
113471         simply fnmatch.
113473         Module exclude.
113474         * m4/exclude.m4: New file.
113476         Module human.
113477         * m4/human.m4: New file.
113479         Module acl.
113480         * m4/acl.m4: Nop.
113482         Module backupfile.
113483         * m4/backupfile.m4: New file.
113484         * m4/d-ino.m4: Indentation.
113486         Module fsusage.
113487         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
113488         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
113489         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
113491         Module dirfd.
113492         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
113493         requirements.
113495         Module euidaccess.
113496         * m4/euidaccess.m4: New file.
113498         Module file-type.
113499         * m4/file-type.m4: New file.
113501         Module fileblocks.
113502         * m4/fileblocks.m4: New file.
113504         Module filemode.
113505         * m4/filemode.m4: New file.
113507         Module isdir.
113508         * m4/isdir.m4: New file.
113510         Module lchown.
113511         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
113512         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
113514         Module makepath.
113515         * m4/makepath.m4: New file.
113517         Module modechange.
113518         * m4/modechange.m4: New file.
113520         Module mountlist.
113521         * m4/mountlist.m4: New file.
113522         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
113523         Indentation.
113525         Module path-concat.
113526         * m4/path-concat.m4: New file.
113528         Module pathmax.
113529         * m4/pathmax.m4: New file.
113531         Module same.
113532         * m4/same.m4: New file.
113534         Module save-cwd.
113535         * m4/save-cwd.m4: New file.
113537         Module savedir.
113538         * m4/savedir.m4: New file.
113540         Module xgetcwd.
113541         * m4/xgetcwd.m4: New file.
113542         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
113544         Module xreadlink.
113545         * m4/xreadlink.m4: New file.
113547         Module safe-read.
113548         * m4/safe-read.m4: New file.
113550         Module safe-write.
113551         * m4/safe-write.m4: New file.
113553         Module closeout.
113554         * m4/closeout.m4: New file.
113556         Module stdio-safer.
113557         * m4/stdio-safer.m4: New file.
113559         Module getpass.
113560         * m4/getpass.m4: New file.
113562         Module getugroups.
113563         * m4/getugroups.m4: New file.
113565         Module group-member.
113566         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
113567         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
113569         Module idcache.
113570         * m4/idcache.m4: New file.
113572         Module userspec.
113573         * m4/userspec.m4: New file.
113575         Module gettime.
113576         * m4/clock_time.m4: New file.
113577         * m4/gettime.m4: New file.
113579         Module settime.
113580         * m4/settime.m4: New file.
113582         Module posixtm.
113583         * m4/posixtm.m4: New file.
113585         Module gethostname.
113586         * m4/gethostname.m4: New file.
113588         Module canon-host.
113589         * m4/canon-host.m4: New file.
113591         Module gettext.
113592         * m4/codeset.m4: New file, from gettext-0.11.5.
113593         * m4/gettext.m4: New file, from gettext-0.11.5.
113594         * m4/glibc21.m4: New file, from gettext-0.11.5.
113595         * m4/iconv.m4: New file, from gettext-0.11.5.
113596         * m4/intdiv0.m4: New file, from gettext-0.11.5.
113597         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
113598         * m4/inttypes.m4: New file, from gettext-0.11.5.
113599         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
113600         * m4/isc-posix.m4: New file, from gettext-0.11.5.
113601         * m4/lcmessage.m4: New file, from gettext-0.11.5.
113602         * m4/lib-ld.m4: New file, from gettext-0.11.5.
113603         * m4/lib-link.m4: New file, from gettext-0.11.5.
113604         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
113605         * m4/progtest.m4: New file, from gettext-0.11.5.
113606         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
113607         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
113608         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
113610         Module localcharset.
113611         * m4/localcharset.m4: New file.
113613         Module hard-locale.
113614         * m4/hard-locale.m4: New file.
113616         Module mbswidth.
113617         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
113618         onceonly macros.
113619         * m4/mbrtowc.m4: Add comment.
113621         Module memcasecmp.
113622         * m4/memcasecmp.m4: New file.
113624         Module memcoll.
113625         * m4/memcoll.m4: New file.
113627         Module unicodeio.
113628         * m4/unicodeio.m4: New file.
113630         Module rpmatch.
113631         * m4/rpmatch.m4: New file.
113633         Module yesno.
113634         * m4/yesno.m4: New file.
113636         Module exitfail.
113637         * m4/exitfail.m4: New file.
113639         Module c-stack.
113640         * m4/c-stack.m4 (gl_C_STACK): New macro.
113641         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
113643         Module error.
113644         * m4/error.m4 (gl_ERROR): New macro.
113645         (jm_PREREQ_ERROR): Use onceonly macros.
113647         Module fatal.
113648         * m4/fatal.m4: New file.
113650         Module getloadavg.
113651         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
113652         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
113654         Module getpagesize.
113655         * m4/getpagesize.m4: New file.
113657         Module getusershell.
113658         * m4/getusershell.m4: New file.
113660         Module physmem.
113661         * m4/physmem.m4: New file.
113663         Module posixver.
113664         * m4/posixver.m4: New file.
113666         Module quotearg.
113667         * m4/quotearg.m4: New file.
113669         Module quote.
113670         * m4/quote.m4: New file.
113672         Module readutmp.
113673         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
113675         Module sig2str.
113676         * m4/sig2str.m4: New file.
113678         Other.
113679         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
113680         ulonglong.m4.
113681         * m4/intmax_t.m4: New file.
113682         * m4/d-type.m4: Indentation.
113683         * m4/jm-macros.m4: Update.
113684         * m4/prereq.m4 (jm_PREREQ): Update.
113685         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
113686         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
113687         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
113688         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
113689         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
113690         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
113691         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
113692         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
113693         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
113694         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
113695         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
113696         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
113697         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
113698         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
113699         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
113700         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
113701         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
113702         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
113703         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
113705 2002-12-24  Bruno Haible  <bruno@clisp.org>
113707         * MODULES.txt: Update according to m4/ changes.
113709         Module gettext.
113710         * config.rpath: New file, from gettext-0.11.5.
113712         * modules/*: New module descriptions.
113713         * gnulib-tool: New file.
113714         * MODULES.html.sh: New file.
113716 2002-12-21  Karl Berry  <karl@gnu.org>
113718         * doc/fdl.texi: update to version 1.2.
113720 2002-12-19  Karl Berry  <karl@gnu.org>
113722         * config/config.guess: update from prep.
113724 2002-12-18  Bruno Haible  <bruno@clisp.org>
113726         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
113727         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
113729 2002-12-17  Bruno Haible  <bruno@clisp.org>
113731         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
113732         stdlib.h, string.h.
113734 2002-12-17  Bruno Haible  <bruno@clisp.org>
113736         * lib/canon-host.c (strdup): Remove unused declaration.
113738         * lib/fsusage.c: Include full_read.h.
113739         (get_fs_usage): Use full_read instead of safe_read.
113741         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
113743 2002-12-12  Karl Berry  <karl@gnu.org>
113745         * config/config.guess: update from prep.
113747 2002-12-11  Bruno Haible  <bruno@clisp.org>
113749         * m4/setenv.m4: New file, from gettext-0.11.5.
113751 2002-12-11  Bruno Haible  <bruno@clisp.org>
113753         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
113754         not unsetenv().
113755         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
113756         modifications:
113758         2002-12-11  Bruno Haible  <bruno@clisp.org>
113760                 * setenv.c (alloca): Fall back to malloc.
113761                 (freea): New macro.
113762                 (setenv): Use freea() to free memory allocated with alloca().
113764         2002-11-13  Bruno Haible  <bruno@clisp.org>
113766                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
113767                 function declarations.
113768                 * unsetenv.c (unsetenv): Likewise.
113770         2002-03-04  Bruno Haible  <bruno@clisp.org>
113772                 Portability to AIX 4.3.3.
113773                 * unsetenv.c: New file, extracted from setenv.c.
113774                 * setenv.c: Move the unsetenv() function to unsetenv.c.
113776         2001-12-20  Bruno Haible  <bruno@clisp.org>
113778                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
113779                 use malloc instead. For SunOS 4.
113781         2001-12-11  Bruno Haible  <bruno@clisp.org>
113783                 * setenv.c: Declare alloca.
113784                 (compar_fn_t): New typedef.
113785                 (KNOWN_VALUE, STORE_VALUE): Use it.
113787         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
113788         setenv.h.
113790 2002-12-10  Paul Eggert  <eggert@twinsun.com>
113792         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
113793         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
113794         Choose values that are less likely to collide with system fnmatch
113795         options.
113796         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
113797         defined (e.g., a pure POSIX system).
113798         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
113799         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
113801 2002-12-06  Paul Eggert  <eggert@twinsun.com>
113803         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
113804         a pain in practice to deal with generated m4 files.  This change
113805         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
113807         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
113808         and jm-glibc-io.m4, as they are no longer a special case.
113809         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
113810         kludge and the auto-generation stuff.  Check only whether the
113811         functions are declared, not whether they exist, since older hosts
113812         that don't declare the functions can't use the optimization anyway.
113814 2002-12-06  Jim Meyering  <jim@meyering.net>
113816         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
113818         Merge in changes from libc's misc/error.c, in preparation
113819         for the merge of gnulib's changes back into libc.
113821         * lib/error.c (_): Define only if not already defined.
113822         Move definition to follow all #include directives.
113823         Include unlocked-io.h only if !_LIBC.
113824         [_LIBC]: Include <libio/libioP.h>.
113825         [USE_IN_LIBIO]: Include <libio/iolibio.h>
113826         (fflush): Tweak definition to use INTUSE.
113827         (putc): Define.
113829 2002-12-05  Paul Eggert  <eggert@twinsun.com>
113831         * lib/alloca.c [defined emacs]: Include "lisp.h".
113832         (xalloc_die) [defined emacs]: New macro.
113833         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
113834         [! defined emacs]: Include <xalloc.h>.
113835         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
113836         (pointer): Typedef to POINTER_TYPE *.
113837         (malloc): Remove decl; we now always use xmalloc.
113838         (alloca): Use old-style definition, since Emacs needs this.
113839         Check for arithmetic overflow when computing combined size.
113841 2002-12-04  Paul Eggert  <eggert@twinsun.com>
113843         Do not generate unlocked-io.h automatically, since it's easier to
113844         maintain it by hand.
113846         * lib/unlocked-io.h: New file, from GNU diffutils,
113847         but with proper copyright notice and attribution.
113848         * lib/gen-uio: Remove.
113849         * lib/Makefile.am: Add copyright notice.
113850         (libfetish_a_SOURCES): Add unlocked-io.h.
113851         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
113852         (DISTCLEANFILES, io_functions): Remove macros.
113853         (EXTRA_DIST): Remove gen_uio.
113854         (unlocked-io.h): Remove rule.
113856 2002-12-04  Jim Meyering  <jim@meyering.net>
113858         Reflect the fact that stat.c and lstat.c are no longer generated.
113859         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
113860         (DISTCLEANFILES): Likewise.
113861         (EXTRA_DIST): Likewise.
113862         (all_local): Don't depend on stat.c or lstat.c.
113863         (stat.c, lstat.c): Remove rules.
113864         (EXTRA_DIST): Remove xstat.in.
113866         * lib/xstat.in: Remove file.  Contents moved into stat.c.
113867         * lib/stat.c: New file.  Contents mostly from xstat.in.
113868         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
113869         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
113871         * lib/safe-read.c: Rework so that it may serve to define safe_write,
113872         too.
113873         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
113875 2002-12-03  Jim Meyering  <jim@meyering.net>
113877         * lib/safe-read.c, safe-write.c: Change variable names and comments,
113878         but not semantics, to minimize the differences between these two files.
113879         (safe_read): Change comment to mention SAFE_READ_ERROR.
113881         * lib/safe-read.c (IS_EINTR): Define.
113882         (safe_read): Use IS_EINTR in place of in-function cpp directives.
113884 2002-12-02  Jim Meyering  <jim@meyering.net>
113886         * lib/safe-read.c (EINTR): Define.
113887         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
113888         (INT_MAX): Provide fallback.
113889         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
113891         * lib/safe-read.h (SAFE_READ_ERROR): Define.
113893 2002-12-02  Bruno Haible  <bruno@clisp.org>
113895         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
113896         Define, taken from safe-read.c.
113897         (INT_MAX): Provide fallback.
113898         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
113899         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
113901         * lib/safe-read.c (EINTR): Remove definition.
113902         (safe_read): Don't use EINTR if it is absent.
113904 2002-12-01  Jim Meyering  <jim@meyering.net>
113906         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
113907         zero.
113908         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
113910 2002-11-27  Paul Eggert  <eggert@twinsun.com>
113912         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
113913         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
113914         with `if (! (value < limit)) abort ();', for readability.
113916 2002-11-26  Karl Berry  <karl@gnu.org>
113918         * lib/strdup.c: copy from libc again, with jim's ok.
113919         * lib/.cppi-disable: re-add strdup.c
113921 2002-11-25  Karl Berry  <karl@gnu.org>
113923         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
113924         instead of "strtol.c".
113926 2002-11-25  Karl Berry  <karl@gnu.org>
113928         * config/install-sh: update from automake for variable quoting, $0 in
113929         error msgs, etc.
113931         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
113932         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
113933         entry.
113935 2002-11-25  Jim Meyering  <jim@meyering.net>
113937         * lib/mktime.c: Sync from libc, now that it has the latest fix.
113939 2002-11-24  Karl Berry  <karl@gnu.org>
113941         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
113942         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
113944 2002-11-24  Jim Meyering  <jim@meyering.net>
113946         Update from coreutils:
113948         * lib/mktime.c: Merge in changes from libc.
113950         Avoid a link-time failure on some Linux systems.
113951         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
113952         (otherwise).
113953         (__mon_yday): Declare with the STATIC attribute.
113954         (__mktime_internal): Likewise.
113955         Based on a report from Greg Schafer.
113957 2002-11-23  Jim Meyering  <jim@meyering.net>
113959         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
113960         Use `unsigned', not `int', as type of index.
113962         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
113964         * lib/fsusage.c: Remove unneeded parentheses around operands of
113965         `defined'.
113967 2002-11-22  Paul Eggert  <eggert@twinsun.com>
113969         * lib/quotearg.h: Allow multiple inclusion by surrounding with
113970         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
113971         so that we can be included first.
113972         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
113973         * lib/quotearg.c: Include quotearg.h immediately after config.h.
113974         No need to include stddef.h or sys/types.h any more.
113975         Surround local include files with "", not "<>".
113976         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
113977         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
113978         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
113979         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
113980         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
113981         (ISPRINT): Remove; no longer needed now that we assume C89.
113983         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
113984         Preserve errno.
113986         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
113987         quotearg_char): Use SIZE_MAX rather than
113988         (size_t) -1 when we are talking about "infinity".
113990         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
113992 2002-11-22  Paul Eggert  <eggert@twinsun.com>
113994         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
113995         hint that one should use `if (! x) abort ();' rather than `assert
113996         (x);', and anyway it's one less thing to worry about configuring.
113997         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
113998         hash_rehash, hash_insert): Use abort rather than assert.
114000 2002-11-22  Bruno Haible  <bruno@clisp.org>
114002         * lib/safe-read.h: Assume C89. Add comments.
114003         (safe_read): Change return type to size_t.
114004         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
114005         byte counts > SSIZE_MAX correctly.
114006         * lib/safe-write.h: New file.
114007         * lib/safe-write.c: New file.
114008         * lib/full-read.h: New file.
114009         * lib/full-read.c: New file.
114010         * lib/full-write.h: Assume C89. Add comments.
114011         * lib/full-write.c: Include safe-write.h.
114012         (full_write): Rewritten to use safe_write.
114013         Suggested by Jim Meyering and Paul Eggert.
114015 2002-11-21  Jim Meyering  <jim@meyering.net>
114017         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
114019         Merge in changes from the coreutils.
114021         2002-09-25  Paul Eggert  <eggert@twinsun.com>
114022         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
114023         <stdint.h>.
114024         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
114025         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
114026         int.  Work more efficiently if X is the same width as uintmax_t.
114027         Do not compare X to -1, to avoid bogus compiler warning.
114028         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
114029         Don't assume that f_frsize and f_bsize are the same type.
114031         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
114032         warning on FreeBSD.
114034         * lib/makepath.c (make_path): Restore umask *before* creating the final
114035         component.
114036         (make_path): Minor reformatting.
114038         * lib/xmalloc.c: Adjust to work with new autoconf macros,
114039         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
114040         HAVE_MALLOC/HAVE_REALLOC.
114042         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
114043         dummy ones.  At least on GNU/Linux systems, `auto' means something
114044         else.
114045         From Michael Stone.
114047 2002-11-21  Bruno Haible  <bruno@clisp.org>
114049         Remove case insensitive option matching.
114050         * lib/argmatch.h (argcasematch): Remove declaration.
114051         (ARGCASEMATCH): Remove macro.
114052         (__xargmatch_internal): Remove case_sensitive argument.
114053         (XARGMATCH): Update.
114054         (XARGCASEMATCH): Remove macro.
114055         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
114056         case_sensitive argument.
114057         (argcasematch): Remove function.
114058         (__xargmatch_internal): Remove case_sensitive argument.
114059         (main): Use XARGMATCH instead of XARGCASEMATCH.
114061         * lib/xmalloc.c: Change compile-time error message. Add comment about
114062         required autoconf version.
114064 2002-11-20  Paul Eggert  <eggert@twinsun.com>
114066         Merge argmatch cleanups from Bison.  Assume C89.
114068         * lib/argmatch.c: Include config.h here, not in argmatch.h.
114069         Include stdlib.h, for EXIT_FAILURE.
114070         Always include <string.h>, since we assume C89.
114071         (EXIT_FAILURE): Remove pre-C89 bug workaround.
114072         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
114073         Include <stddef.h> instead, since it's all we need for size_t.
114074         (PARAMS): Remove.  All uses removed.
114075         (ARRAY_CARDINALITY): Do not bother to #undef.
114076         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
114077         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
114078         Remove unnecessary parentheses.
114079         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
114080         Insert necessary parentheses.
114081         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
114082         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
114084 2002-11-19  Bruno Haible  <bruno@clisp.org>
114086         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
114087         * lib/mbswidth.h: Include <stddef.h>, for size_t.
114089         * lib/mbswidth.h (PARAMS): Remove macro.
114090         (mbswidth, mbsnwidth): Use ANSI C function declarations.
114091         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
114093         * lib/gcd.h (PARAMS): Remove macro.
114094         (gcd): Use ANSI C function declarations.
114095         * lib/gcd.c (gcd): Likewise.
114097 2002-11-15  Bruno Haible  <bruno@clisp.org>
114099         * lib/strcspn.c: Include <stddef.h>.
114100         (strcspn): Use ANSI C function declaration. Change return type to
114101         size_t. Use NULL.
114102         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
114103         (strpbrk): Use NULL.
114104         * lib/strpbrk.h (PARAMS): Remove macro.
114105         (strpbrk): Use ANSI C function declaration.
114106         * lib/strstr.c: Don't include <sys/types.h>.
114107         * lib/strstr.h (PARAMS): Remove macro.
114108         (strstr): Use ANSI C function declarations.
114110 2002-11-14  Karl Berry  <karl@gnu.org>
114112         * config/mkinstalldirs: `do' on separate line, instead of
114113         `for var; do'.
114115 2002-11-06  Bruno Haible  <bruno@clisp.org>
114117         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
114118         * lib/gcd.c (gcd): Likewise.
114120 2002-11-05  Bruno Haible  <bruno@clisp.org>
114122         * lib/gcd.h: New file, from gettext-0.11.5.
114123         * lib/gcd.c: New file, from gettext-0.11.5.
114125 2002-11-05  Bruno Haible  <bruno@clisp.org>
114127         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
114128         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
114129         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
114130         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
114132         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
114133         <libintl.h>.
114134         * lib/makepath.c: Include gettext.h instead of <locale.h> and
114135         <libintl.h>.
114137         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
114138         * lib/human.c: Include gettext.h instead of <libintl.h>.
114139         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
114140         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
114141         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
114142         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
114143         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
114144         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
114145         (textdomain): Remove definition.
114146         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
114148         * lib/long-options.c: Remove include of <libintl.h> and definition of
114149         _.
114150         * lib/same.c: Remove include of <libintl.h> and definition of _.
114152 2002-11-04  Owen Taylor  <otaylor@redhat.com>
114154         * lib/config.charset: A few additions for Solaris.
114156 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
114158         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
114159         * lib/localcharset.c (locale_charset): Declare as extern "C".
114161 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
114163         * lib/config.charset: msdos in uk_UA uses CP1125.
114165 2002-11-04  Bruno Haible  <bruno@clisp.org>
114167         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
114168         * lib/strcase.h: New file, from GNU gettext-0.11.5.
114169         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
114170         * lib/strstr.h: New file, from GNU gettext-0.11.5.
114171         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
114173 2002-11-04  Bruno Haible  <bruno@clisp.org>
114175         * lib/localcharset.c (locale_charset): Don't return an empty string.
114177 2002-11-04  Bruno Haible  <bruno@clisp.org>
114179         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
114180         aliases.
114182 2002-11-04  Bruno Haible  <bruno@clisp.org>
114184         * lib/config.charset: Update for newest glibc. Add canonical names
114185         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
114187 2002-11-04  Bruno Haible  <bruno@clisp.org>
114189         * lib/config.charset: Add support for NetBSD.
114191 2002-11-04  Bruno Haible  <bruno@clisp.org>
114193         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
114195 2002-11-01  Bruno Haible  <bruno@clisp.org>
114197         * configure.in: Add AC_CONFIG_AUX_DIR call.
114198         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
114199         test/Makefile.
114200         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
114202 2002-09-28  Karl Berry  <karl@gnu.org>
114204         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
114205         installed automake until the next release, since changes have been
114206         made.
114208 2002-09-25  Karl Berry  <karl@gnu.org>
114210         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
114211         * lib/getopt*: copy from libc/posix.
114212         * lib/gettext.h: copy from gettext.
114213         * lib/.cppi-disable: add strdup.c, gettext.h.
114215 2002-09-25  Karl Berry  <karl@gnu.org>
114217         * config/srclist.txt: enable gettext.h check.
114218         * config/config.{guess,sub}: update from prep.
114219         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
114220                 from automake 1.6.3.
114221         See srclist*.
114223 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
114225         * regex.c (PATFETCH): Remove the translating fetch.
114226         (PATFETCH_RAW): Rename to PATFETCH.
114227         (set_image_of_range): New fun.
114228         (SET_RANGE_TABLE_WORK_AREA): Use it.
114229         (regex_compile): Don't translate the pattern chars so eagerly.
114230         Only do it when inserting an `exactn' bytecode or when handling
114231         a char-range.
114232         (mutually_exclusive_p): Avoid empty statement.
114234 2002-07-06  Jim Meyering  <meyering@lucent.com>
114236         * m4/README: Don't mention Makefile.am.in.
114237         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
114239 2002-07-01  Jim Meyering  <meyering@lucent.com>
114241         * lib/c-stack.c: Include sys/time.h.
114242         From Volker Borchert.
114244 2002-06-26  Paul Eggert  <eggert@twinsun.com>
114246         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
114248 2002-06-26  Paul Eggert  <eggert@twinsun.com>
114250         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
114251         New macro.  Use it uniformly instead of
114252         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
114253         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
114254         reported by Vin Shelton.
114256 2002-06-22  Paul Eggert  <eggert@twinsun.com>
114258         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
114259         Do not assume SA_SIGINFO behavior.
114260         Bug reported by Jim Meyering on NetBSD 1.5.2.
114262 2002-06-22  Jim Meyering  <meyering@lucent.com>
114264         * m4/c-stack.m4: New file, from diffutils-2.8.2.
114265         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
114267         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
114268         now that configure.ac uses AC_GNU_SOURCE.
114269         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
114270         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
114272         Update to latest tools.  Suggestions from Paul Eggert.
114273         * m4/stdbool.m4: New file, from diffutils-2.8.2.
114274         * m4/gnu-source.m4: Update from diffutils-2.8.2.
114275         * m4/fnmatch.m4: Likewise.
114276         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
114277         to AC_HEADER_STDBOOL
114279 2002-06-22  Jim Meyering  <meyering@lucent.com>
114281         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
114282         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
114284 2002-06-22  Jim Meyering  <meyering@lucent.com>
114286         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
114288         * lib/exitfail.c, exitfail.h: Likewise.
114289         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
114291         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
114292         of fnmatch.h.
114293         (EXTRA_DIST): Add fnmatch_loop.c.
114294         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
114296         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
114297         * lib/fnmatch.c: Update from diffutils-2.8.2.
114298         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
114299         * lib/fnmatch.h: Remove file.
114301 2002-06-21  Jim Meyering  <meyering@lucent.com>
114303         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
114304         * m4/mbrtowc.m4: Likewise.
114306         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
114307         * m4/mbswidth.m4: Reflect name change:
114308         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
114309         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
114311         * m4/lib-link.m4: Update from gettext-0.11.2.
114312         * m4/gettext.m4: Likewise.
114314         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
114315         From Alfred M. Szmidt.
114317 2002-06-18  Paul Eggert  <eggert@twinsun.com>
114319         * lib/file-type.h: Report an error if neither S_ISREG nor
114320         S_IFREG is defined, instead of using a test specific to glibc
114321         2.2.  This should be safe, since POSIX requires S_ISREG and
114322         Unix Version 7 had S_IFREG.  We don't need to check for
114323         <sys/types.h> since we don't use any symbols that it defines.
114325 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
114327         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
114328         $@-t, so that each temporary file name is unique and valid in the first
114329         8 characters, for operation under DOS.
114331 2002-06-15  Paul Eggert  <eggert@twinsun.com>
114333         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
114335 2002-06-15  Jim Meyering  <meyering@lucent.com>
114337         Work even with DJGPP 2.03, which lacks support for symlinks.
114338         From Richard Dawe.
114339         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
114340         is defined.
114341         * lib/lchown.c (S_ISLNK): Likewise.
114343 2002-06-15  Jim Meyering  <meyering@lucent.com>
114345         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
114346         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
114347         have been included before this file.
114349 2002-06-14  Jim Meyering  <meyering@lucent.com>
114351         * lib/file-type.h: Use the version from diffutils-2.8.2.
114352         * lib/file-type.c: Likewise.
114354 2002-06-07  Jim Meyering  <meyering@lucent.com>
114356         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
114357         They're needed at least for NetBSD 1.5.2.
114358         ($statxfs_includes): Include those same headers.
114359         ($statxfs_includes): Include sys/vfs.h if available.
114360         ($statxfs_includes): Likewise for sys/statvfs.h.
114361         Check for the following members in both structs statfs and statvfs:
114362         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
114364 2002-06-01  Jim Meyering  <meyering@lucent.com>
114366         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
114367         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
114369 2002-05-28  Jim Meyering  <meyering@lucent.com>
114371         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
114372         Reported by Volker Borchert.
114374 2002-05-27  Jim Meyering  <meyering@lucent.com>
114376         Fix a problem seen only on nonconforming systems whereby ls.c's
114377         use of localtime, and then of gettimeofday would cause trouble:
114378         the localtime call used to initialize rpl_gettimeofday's save
114379         mechanism would clobber ls's current local time information so
114380         that in any long listing the first file would always be listed
114381         with date 1970-01-01.  Analysis by Volker Borchert.
114383         * lib/gettimeofday.c (localtime): Undefine.
114384         (rpl_localtime): New function.
114386 2002-05-27  Jim Meyering  <meyering@lucent.com>
114388         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
114389         localtime.
114391         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
114392         use the replacement function; it wouldn't resolve at link time.
114393         Reported by Volker Borchert.
114395 2002-05-22  Jim Meyering  <meyering@lucent.com>
114397         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
114398         file-type.h.
114399         * lib/file-type.h: New file.
114400         * lib/file-type.c (file_type): New file/function.  Extracted from
114401         diffutils.
114403 2002-04-30  Jim Meyering  <meyering@lucent.com>
114405         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
114407 2002-04-29  Paul Eggert  <eggert@twinsun.com>
114409         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
114411 2002-04-29  Paul Eggert  <eggert@twinsun.com>
114413         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
114414         Do not check for alloca.h (no longer used) or stdbool.h (was never
114415         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
114417 2002-04-29  Paul Eggert  <eggert@twinsun.com>
114419         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
114421 2002-04-29  Jim Meyering  <meyering@lucent.com>
114423         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
114424         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
114425         Use AC_FUNC_STRNLEN here instead.
114427         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
114428         With autoconf-2.53a, it's part of AC_PROG_CC.
114430 2002-04-28  Paul Eggert  <eggert@twinsun.com>
114432         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
114433         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
114435 2002-04-28  Paul Eggert  <eggert@twinsun.com>
114437         * lib/sig2str.h, lib/sig2str.c: New files.
114438         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
114440 2002-04-28  Paul Eggert  <eggert@twinsun.com>
114442         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
114443         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
114444         of 127, since 64 is the largest conceivable number for ancient
114445         nonstandard hosts.
114446         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
114448 2002-04-28  Jim Meyering  <meyering@lucent.com>
114450         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
114452 2002-04-24  Jim Meyering  <meyering@lucent.com>
114454         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
114455         (jm_PREREQ): Use it.
114457         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
114458         mach/mach.h fcntl.h.
114459         Check for this function: setlocale.
114461 2002-04-24  Jim Meyering  <meyering@lucent.com>
114463         * lib/gettext.h: New file, from Gettext.
114464         * lib/Makefile.am (INCLUDES): Remove -I../intl.
114465         (libfetish_a_SOURCES): Add gettext.h.
114467 2002-04-16  Jim Meyering  <meyering@lucent.com>
114469         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
114470         ut_pid, ut_id, ut_exit.
114472 2002-04-16  Jim Meyering  <meyering@lucent.com>
114474         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
114475         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
114476         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
114478 2002-04-12  Jim Meyering  <meyering@lucent.com>
114480         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
114481         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
114482         existence of the getmntinfo function.  Needed for Darwin 5.3.
114484         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
114485         This is necessary at least on Darwin 5.3.
114487         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
114488         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
114489         strnlen.o in the library, and that makes some versions of ranlib
114490         object.
114492 2002-04-12  Jim Meyering  <meyering@lucent.com>
114494         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
114496 2002-04-09  Jim Meyering  <meyering@lucent.com>
114498         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
114499         to be more precise.  Rather than saying we're checking whether the
114500         function `works', say what we're testing.
114501         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
114502         Reported by Bruno Haible.
114504 2002-03-10  Jim Meyering  <meyering@lucent.com>
114506         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
114507         Suggestion from Santiago Vila.
114509 2002-03-08  Jim Meyering  <meyering@lucent.com>
114511         * lib/rename.c: Mention that this wrapper is needed also on
114512         mips-dec-ultrix4.4 systems.
114514 2002-03-02  Jim Meyering  <meyering@lucent.com>
114516         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
114517         not HAVE_CLOCK_SETTIME.
114519 2002-02-27  Paul Eggert  <eggert@twinsun.com>
114521         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
114522         Check for clock_settime.
114524 2002-02-27  Paul Eggert  <eggert@twinsun.com>
114526         * lib/nanosleep.h: Rename to....
114527         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
114529         * lib/gettime.c: New file.
114530         * lib/settime.c: New file.
114531         * lib/stime.c: Remove.
114533         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
114534         timespec.h.  Remove nanosleep.h.
114536 2002-02-25  Paul Eggert  <eggert@twinsun.com>
114538         * m4/acl.m4: New file.
114539         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
114540         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
114542 2002-02-25  Paul Eggert  <eggert@twinsun.com>
114544         * lib/acl.c, lib/acl.h: New files.
114545         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
114547 2002-02-24  Jim Meyering  <meyering@lucent.com>
114549         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
114550         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
114551         cause trouble.  Reported by Nelson Beebe.
114553 2002-02-23  Paul Eggert  <eggert@twinsun.com>
114555         * lib/path-concat.c (xpath_concat): Reorder code to pacify
114556         compilers that don't know that xalloc_die never returns.
114558 2002-02-20  Jim Meyering  <meyering@lucent.com>
114560         * lib/getdate.c: Regenerate using bison-1.33.
114562 2002-02-17  Jim Meyering  <meyering@lucent.com>
114564         * config/config.guess (main): Don't use `head -1'; it's no longer
114565         portable. Use `sed 1q' instead.
114567 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
114569         * m4/codeset.m4: Upgrade to gettext-0.11.
114570         * m4/gettext.m4: Upgrade to gettext-0.11.
114571         * m4/glibc21.m4: Upgrade to gettext-0.11.
114572         * m4/iconv.m4: Upgrade to gettext-0.11.
114573         * m4/isc-posix.m4: Upgrade to gettext-0.11.
114574         * m4/lcmessage.m4: Upgrade to gettext-0.11.
114575         * m4/lib-ld.m4: New file, from gettext-0.11.
114576         * m4/lib-link.m4: New file, from gettext-0.11.
114577         * m4/lib-prefix.m4: New file, from gettext-0.11.
114578         * m4/progtest.m4: Upgrade to gettext-0.11.
114580 2002-02-15  Paul Eggert  <eggert@twinsun.com>
114582         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
114583         (jm_PREREQ): Use it.
114585 2002-02-15  Paul Eggert  <eggert@twinsun.com>
114587         * lib/posixver.c, lib/posixver.h: New files.
114588         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
114590 2002-02-02  Paul Eggert  <eggert@twinsun.com>
114591             Bruno Haible  <bruno@clisp.org>
114593         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
114594         (fwrite_success_callback): New declaration.
114595         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
114596         print_unicode_char. Call failure callback instead of error.
114597         (fwrite_success_callback): New function.
114598         (exit_failure_callback): New function.
114599         (fallback_failure_callback): New function.
114600         (print_unicode_char): Call unicode_to_mb.
114602 2002-01-26  Jim Meyering  <meyering@lucent.com>
114604         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
114605         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
114607 2002-01-26  Jim Meyering  <meyering@lucent.com>
114609         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
114611 2002-01-22  Paul Eggert  <eggert@twinsun.com>
114613         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
114615 2002-01-22  Jim Meyering  <meyering@lucent.com>
114617         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
114618         Otherwise, some versions of automake would omit the rule that makes
114619         Makefile from Makefile.in.
114621 2002-01-21  Paul Eggert  <eggert@twinsun.com>
114623         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
114624         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
114625         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
114626         (memcoll): Set errno to zero if there is no error.
114628         * lib/quotearg.c (quotearg_buffer_restyled):
114629         Fix bug with quoting buffers containing NUL when backslashing escapes.
114630         This bug was exposed by the other changes in this patch.
114631         (quotearg_n_options): New arg ARGSIZE.
114632         All callers changed.
114633         (quoting_options_from_style): New function.
114634         (quotearg_n_style): Use it.
114635         (quotearg_n_style_mem): New function.
114637         * lib/quotearg.h (quotearg_n_style_mem): New function.
114639 2002-01-19  Jim Meyering  <meyering@lucent.com>
114641         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
114642         Remove useless quotes: DF_PROG="df".
114643         * m4/strnlen.m4: New file.
114645 2002-01-16  Paul Eggert  <eggert@twinsun.com>
114647         * lib/backupfile.c (ISDIGIT): Comment fix.
114648         * lib/getdate.y (ISDIGIT): Likewise.
114649         * lib/posixtm.c (ISDIGIT, year): Likewise.
114650         * lib/strverscmp.c (ISDIGIT): Likewise.
114651         * lib/userspec.c (ISDIGIT): Likewise.
114653 2002-01-16  Jim Meyering  <meyering@lucent.com>
114655         * lib/getdate.y: Add three semicolons, each just before a closing
114656         brace. Bison (as of version 1.31) no longer papers over that mistake.
114658 2002-01-05  Jim Meyering  <meyering@lucent.com>
114660         * lib/version-etc.c (version_etc_copyright): Update copyright year.
114662 2001-12-19  Paul Eggert  <eggert@twinsun.com>
114664         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
114665         not silently exit merely because the output buffer happens to
114666         have nothing pending.
114668 2001-12-18  Paul Eggert  <eggert@twinsun.com>
114670         See the big note in ../ChangeLog.
114671         * lib/human.c (suffixes): Prefer K to k for 1024.
114672         (generate_suffix_backwards): New function.
114673         (human_readable_inexact): Use it.
114674         * lib/xstrtol.c (__xstrtol): If there is no number but there
114675         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
114676         Accept 'K' as well as 'k'.
114678 2001-12-15  Jim Meyering  <meyering@lucent.com>
114680         * lib/regex.h (__restrict_arr): Update from libc.
114682         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
114683         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
114684         (STREQ): Define.
114686 2001-12-14  Jim Meyering  <meyering@lucent.com>
114688         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
114689         Suggestion from Bruno Haible.
114691 2001-12-10  Jim Meyering  <meyering@lucent.com>
114693         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
114694         xrealloc, Instead, include "xalloc.h".
114695         (initbuffer): Don't cast xmalloc return value to char*.
114696         (readline): Reword comment.
114697         Don't cast xrealloc return value to char*
114698         Return NULL, not 0.
114700 2001-12-09  Jim Meyering  <meyering@lucent.com>
114702         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
114703         about `signed and unsigned type in conditional expression'.
114704         * lib/posixtm.c (posix_time_parse): Likewise.
114706         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
114708         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
114709         to avoid a pedantic warning.
114711         * lib/getstr.c: Don't include assert.h.
114712         (getstr): Remove warning-evoking assertions.
114713         Return -1 if offset parameter is out of bounds.
114714         Change the type of a local from int to size_t.
114716         * lib/strftime.c (my_strftime_localtime_r): Include this function
114717         definition in the `#if ! HAVE_TM_GMTOFF' block.
114719         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
114720         Include xalloc.h instead.
114722 2001-12-02  Jim Meyering  <meyering@lucent.com>
114724         * lib/tempname.c: Don't declare getenv, thus reverting the change of
114725         2001-11-18.  It's no longer necessary, now that stdlib.h is always
114726         included.
114728         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
114729         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
114731 2001-11-30  Akim Demaille  <akim@epita.fr>
114733         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
114734         before being defined.
114736 2001-11-27  Paul Eggert  <eggert@twinsun.com>
114738         * lib/quotearg.h (quotearg_n, quotearg_n_style):
114739         First arg is int, not unsigned.
114740         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
114741         (SIZE_MAX, UINT_MAX): New macros.
114742         (quotearg_n_options): Abort if N is negative.
114743         Avoid overflow check on hosts where size_t is 64 bits and int
114744         is 32 bits, as overflow is impossible there.
114745         Fix off-by-one typo that caused unnecessary reallocation.
114747 2001-11-27  Jim Meyering  <meyering@lucent.com>
114749         * lib/tempname.c: Merge with version from libc.
114750         * lib/regex.c: Likewise.
114752         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
114753         systems for which STDC_HEADERS is 0, it was not included, resulting in
114754         a warning about an integer-to-pointer conversion problem with getenv.
114755         Reported by Volker Borchert.
114757 2001-11-26  Jim Meyering  <meyering@lucent.com>
114759         * lib/gtod.h: Remove file.
114760         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
114761         * lib/gettimeofday.c: Don't include gtod.h.
114762         (GTOD_init): Remove function.
114763         (rpl_gettimeofday): Do its job here instead, rather than aborting.
114764         Suggestion from Volker Borchert.
114766 2001-11-23  Jim Meyering  <meyering@lucent.com>
114768         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
114769         it.
114770         * lib/hash.c (struct hash_table): Define it here instead.
114772 2001-11-22  Jim Meyering  <meyering@lucent.com>
114774         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
114776 2001-11-20  Jim Meyering  <meyering@lucent.com>
114778         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
114779         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
114781 2001-11-19  Jim Meyering  <meyering@lucent.com>
114783         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
114784         directory.  Use "conftestXXXXXX" as the template.
114785         Suggestion from Paul Eggert.
114787         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
114788         immediately, so the test doesn't mistakenly hit the max-open-files
114789         limit.
114791 2001-11-18  Paul Eggert  <eggert@twinsun.com>
114793         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
114794         (TEMPORARIES): New macro.
114795         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
114796         removes an artificial limitation (e.g. HP-UX 10.20, where
114797         TMP_MAX is 17576).
114799 2001-11-18  Jim Meyering  <meyering@lucent.com>
114801         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
114803 2001-11-18  Jim Meyering  <meyering@lucent.com>
114805         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
114806         on SunOS 4.
114808         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
114809         files will be created before anything else.
114811 2001-11-17  Paul Eggert  <eggert@twinsun.com>
114813         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
114814         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
114816 2001-11-17  Jim Meyering  <meyering@lucent.com>
114818         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
114819         Prompted by a report from Bob Proulx.
114821         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
114822         Instead, require UTILS_FUNC_MKSTEMP.
114824 2001-11-17  Jim Meyering  <meyering@lucent.com>
114826         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
114827         Now, that's done as part of AC_FUNC_STRTOD.
114829 2001-11-17  Jim Meyering  <meyering@lucent.com>
114831         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
114832         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
114833         rather than group writable.  Patch by Juan F. Codagnone.
114835         * lib/readtokens.c: Remove explicit declarations of xmalloc and
114836         xrealloc, Instead, include "xalloc.h".
114838         * lib/mountlist.c: Include unlocked-io.h after all system headers.
114839         Remove explicit declarations of xmalloc, xrealloc,
114840         and xstrdup.  Instead, include "xalloc.h".
114842         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
114843         unlocked-io.h.
114844         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
114845         Likewise.
114846         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
114848         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
114849         Reported by Padraig Brady.
114851         * lib/mkstemp.c: #undef mkstemp.
114852         Include config.h.
114853         (rpl_mkstemp): Rename from mkstemp.
114854         Protoize.
114856 2001-11-16  Jim Meyering  <meyering@lucent.com>
114858         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
114859         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
114860         determine the amount of total physical memory, use pstat_getstatic.
114861         HPUX-11 doesn't define _SC_PHYS_PAGES.
114862         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
114863         If sysconf couldn't be used to determine the amount of available
114864         physical memory, use both pstat_getstatic and pstat_getdynamic.
114865         Based on a patch from Bob Proulx.
114867 2001-11-10  Jim Meyering  <meyering@lucent.com>
114869         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
114870         (jm_PREREQ): Use it.
114872 2001-11-09  Jim Meyering  <meyering@lucent.com>
114874         * m4/jm-macros.m4: Require autoconf-2.52f.
114875         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
114876         Use these AC_-prefixed names, not the AM_-prefixed ones.
114878         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
114880 2001-11-05  Jim Meyering  <meyering@lucent.com>
114882         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
114884 2001-11-04  Jim Meyering  <meyering@lucent.com>
114886         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
114887         $DEFS.
114889 2001-11-03  Jim Meyering  <meyering@lucent.com>
114891         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
114892         of AC_DEFUN.
114894         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
114895         know the name of the variable in the macro definition.
114897 2001-11-03  Jim Meyering  <meyering@lucent.com>
114899         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
114900         in argmatch_to_argument call.
114902         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
114903         argument.
114905         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
114906         e.g., a fault due to an attempt to free a NULL pointer.
114908 2001-11-01  Jim Meyering  <meyering@lucent.com>
114910         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
114911         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
114913 2001-11-01  Jim Meyering  <meyering@lucent.com>
114915         * lib/dirfd.c, lib/dirfd.h: New files.
114916         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
114918         * lib/hash.c (hash_print) [TESTING]: Clean up.
114920 2001-10-22  Paul Eggert  <eggert@twinsun.com>
114922         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
114923         to avoid a warning if -Wall.
114925 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
114927         * README: New file
114928         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
114929         (per RMS's instructions, this is now the canonical source)
114930         * lgpl/, gpl/: New directories.
114932 2001-10-21  Paul Eggert  <eggert@twinsun.com>
114934         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
114936 2001-10-21  Jim Meyering  <meyering@lucent.com>
114938         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
114939         this code would end up calling gettext even in packages built
114940         with --disable-nls.
114941         * lib/getopt.c (_): Likewise.
114942         * lib/regex.c (_): Likewise.
114944 2001-10-20  Paul Eggert  <eggert@twinsun.com>
114946         * m4/error.m4 (jm_PREREQ_ERROR):
114947         Do not invoke AC_CHECK_FUNCS with strerror_r, as
114948         AC_FUNC_STRERROR_R does that.
114949         Check for strerror declaration.
114951         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
114952         are supposed to have them these days.
114953         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
114954         Merge changes from latest Autoconf CVS.
114955         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
114956         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
114957         POSIX decided to standardize on the int flavor of strerror_r.
114959 2001-10-20  Paul Eggert  <eggert@twinsun.com>
114961         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
114962         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
114963         Use strerror_r that is only a macro, even if it is not a function.
114964         (strerror): Check for HAVE_DECL_STRERROR before declaring.
114965         (private_strerror): Use prototypes, not old-style function definition.
114966         (print_errno_message): New function.
114967         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
114968         char*-flavored one.
114969         (error_tail, error, error_at_line): Use it.
114971 2001-10-11  Jim Meyering  <meyering@lucent.com>
114973         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
114974         and quote_n (1, ... to avoid clobbering a buffer.
114976 2001-10-05  Jim Meyering  <meyering@lucent.com>
114978         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
114979         hash-pjw.h.
114980         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
114981         * lib/hash-pjw.h: New file.
114983 2001-09-30  Jim Meyering  <meyering@lucent.com>
114985         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
114986         `struct fsstat' has the `f_fstypename' member.
114987         Use that to define FS_TYPE, which is now used to make
114988         the getfsstat link test tighter.
114990 2001-09-30  Jim Meyering  <meyering@lucent.com>
114992         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
114993         Include <sys/ucred.h>, for Apple Darwin.
114994         Include sys/mount.h and sys/fs_types.h only if available.
114995         (FS_TYPE): Define.
114996         (read_filesystem_list): Use FS_TYPE.
114998 2001-09-29  Paul Eggert  <eggert@twinsun.com>
115000         * lib/exclude.c (excluded_filename): 0 -> false, since it's
115001         a boolean context.
115003 2001-09-29  Jim Meyering  <meyering@lucent.com>
115005         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
115006         [one-argument getmntent function]): Include stdio.h before mntent.h.
115007         SunOS 4.1.x needs it for the declaration of `FILE'.
115008         Patch by Volker Borchert.
115010         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
115011         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
115012         sys/fs_types.h, and make the link-test for getfsstat guard #include
115013         directives with appropriate #if HAVE_*_H tests so that we can
115014         detect getfsstat on Apple Darwin1.3.7 systems.
115015         Reported by Nelson Beebe.
115016         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
115018 2001-09-28  Paul Eggert  <eggert@twinsun.com>
115020         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
115021         #defines strtoimax.  Also treat the other strto* functions
115022         like strtoimax.
115024         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
115025         Check for strtoul and strtoumax,
115026         as those declarations are made even in the signed case.
115027         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
115028         Likewise, for strtol and strtoimax.
115030 2001-09-28  Paul Eggert  <eggert@twinsun.com>
115032         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
115033         #defines strtoimax.  Also treat the other strto* functions
115034         like strtoimax.
115036         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
115037         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
115038         (strtoimax, strtoumax): Do not declare if already defined as a macro.
115040 2001-09-26  Jim Meyering  <meyering@lucent.com>
115042         Most macros in unlocked-io.h had the wrong number of arguments.
115043         * lib/gen-uio: New script.
115044         (USE_UNLOCKED_IO): Define to 1 if not already defined.
115045         * lib/unlocked-io.hin: Remove file.
115046         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
115047         rather than trying to embed it here.
115048         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
115049         Reported by Padraig Brady.
115051 2001-09-25  Volker Borchert  <bt@teknon.de>
115053         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
115054         `result'.
115056 2001-09-24  Jim Meyering  <meyering@lucent.com>
115058         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
115060 2001-09-23  Jim Meyering  <meyering@lucent.com>
115062         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
115063         instead of the mere test for existence of mntent.h.  The latter
115064         would get a false-positive on AIX 3.4 systems.
115065         In the outer getmntent if-block, don't die if neither of the getmntent
115066         tests succeeds.  Instead, just fall through and continue with the
115067         remaining tests.
115069 2001-09-23  Jim Meyering  <meyering@lucent.com>
115071         * lib/mountlist.c: Remove useless parentheses in #if directives.
115072         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
115073         the deprecated MOUNTED symbol is no longer defined in mntent.h.
115075 2001-09-22  Jim Meyering  <meyering@lucent.com>
115077         * m4/gettext.m4: New file.  From gettext.
115078         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
115079         * m4/progtest.m4: Likewise
115080         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
115081         * m4/glibc21.m4: Likewise.
115083         * m4/libintl.m4: Remove.  No longer used.
115085 2001-09-22  Jim Meyering  <meyering@lucent.com>
115087         * lib/localcharset.c: Update from latest gettext.
115088         * lib/config.charset: Likewise.
115090 2001-09-20  Jim Meyering  <meyering@lucent.com>
115092         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
115093         strtoimax.
115094         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
115095         strtoumax.
115097 2001-09-20  Jim Meyering  <meyering@lucent.com>
115099         * lib/xstrtol.c (strtoimax): Guard declaration with
115100         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
115101         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
115102         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
115103         (strtoumax): Likewise, for completeness (it wasn't necessary).
115105 2001-09-17  Paul Eggert  <eggert@twinsun.com>
115107         * lib/strtoimax.c (HAVE_LONG_LONG):
115108         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
115109         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
115110         to work around bug in IBM C compiler.
115112 2001-09-17  Jim Meyering  <meyering@lucent.com>
115114         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
115115         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
115116         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
115117         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
115118         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
115119         whenever the right hand side need not be expanded by the shell.
115121 2001-09-16  Paul Eggert  <eggert@twinsun.com>
115123         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
115124         library.  It's not correct, as some older glibcs are buggy.
115125         fnmatch wasn't fixed until glibc 2.2.
115127         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
115128         special shell magic here.
115130 2001-09-16  Jim Meyering  <meyering@lucent.com>
115132         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
115133         * m4/jm-macros.m4: Require it.
115135 2001-09-16  Jim Meyering  <meyering@lucent.com>
115137         * lib/mkdir.c: New file.
115139 2001-09-15  Jim Meyering  <meyering@lucent.com>
115141         * m4/jm-macros.m4: Check for help2man.
115143 2001-09-11  Jim Meyering  <meyering@lucent.com>
115145         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
115146         The body, by Paul Eggert, was moved here from configure.in.
115147         * m4/jm-macros.m4: Require UTILS_HOST_OS.
115149 2001-09-04  Paul Eggert  <eggert@twinsun.com>
115151         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
115152         (jm_PREREQ): Use it.
115154 2001-09-04  Paul Eggert  <eggert@twinsun.com>
115156         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
115157         Use ssize_t, not int, to store result of readlink.
115158         Check for ssize_t overflow as well as size_t overflow,
115159         as POSIX says the result of readlink is implementation-defined
115160         when ssize_t overflows.
115161         Remove unnecessary cast to char*.
115162         Use free+malloc instead of realloc, as the storage doesn't need
115163         to be preserved and it's clearer and can be more efficient that way.
115164         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
115165         * lib/xreadlink.h (xreadlink): Update prototype.
115167 2001-09-04  Paul Eggert  <eggert@twinsun.com>
115169         * lib/xgetcwd.c: Revert some of the previous change; intead,
115170         fix the HAVE_GETCWD_NULL code to behave more like the
115171         !HAVE_GETCWD_NULL code used to.
115173         Include "xalloc.h".
115174         (xgetcwd): Do not return NULL when memory is exhausted; instead,
115175         invoke xalloc_die.
115177 2001-09-03  Paul Eggert  <eggert@twinsun.com>
115179         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
115180         sys/param.h, as pathmax.h includes them.
115182 2001-09-03  Paul Eggert  <eggert@twinsun.com>
115184         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
115185         (jm_PREREQ_XGETCWD): New macro.
115187         * m4/getcwd.m4: New file.
115189 2001-09-03  Paul Eggert  <eggert@twinsun.com>
115191         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
115192         like the HAVE_GETCWD_NULL code.
115193         Include pathmax.h if not HAVE_GETCWD.
115194         Do not include xalloc.h.
115195         (INITIAL_BUFFER_SIZE): New symbol.
115196         Do not use xmalloc / xrealloc, since the caller is responsible for
115197         handling errors.  Preserve errno around `free' during failure.
115198         Do not overrun buffer when using getwd.
115200 2001-09-03  Paul Eggert  <eggert@twinsun.com>
115202         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
115203         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
115204         getcwd (NULL, 0).
115206 2001-09-03  Paul Eggert  <eggert@twinsun.com>
115208         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
115209         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
115210         spotted by Jim Meyering.
115212 2001-09-03  Jim Meyering  <meyering@lucent.com>
115214         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
115215         failure.
115217 2001-09-02  Jim Meyering  <meyering@lucent.com>
115219         * lib/error.c: Update from GNU libc.
115221 2001-09-01  Jim Meyering  <meyering@lucent.com>
115223         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
115224         Used by df.
115226 2001-09-01  Jim Meyering  <meyering@lucent.com>
115228         * lib/xreadlink.c: New file.
115229         * lib/xreadlink.h: New file.
115230         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
115231         xreadlink.h.
115233         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
115234         doesn't conflict with sparc Solaris 7's definition in
115235         /usr/include/sys/int_types.h.
115237         * lib/exclude.c: Use `""', not `<>' to #include non-system header
115238         files.
115239         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
115240         and strncasecmp as r-values.  Unixware didn't have declarations.
115242 2001-08-31  Paul Eggert  <eggert@twinsun.com>
115244         * lib/xstrtol.h: Add copyright notice.
115245         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
115246         LONGINT_INVALID_SUFFIX_CHAR.
115248 2001-08-31  Paul Eggert  <eggert@twinsun.com>
115250         * lib/xstrtol.c (strtoimax): New decl.
115252 2001-08-31  Paul Eggert  <eggert@twinsun.com>
115254         * lib/xgetcwd.c: Don't include pathmax.h.
115255         Include stdlib.h and unistd.h if available.
115256         Include xalloc.h.
115257         (xmalloc, xstrdup, free): Remove decls.
115258         (xgetcwd): Don't assume sizes fit in unsigned.
115259         Check for overflow when computing sizes.
115260         Simplify reallocation code.
115262 2001-08-31  Paul Eggert  <eggert@twinsun.com>
115264         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
115265         a directory's st_size can have an arbitrary value, so the old
115266         usage could waste an arbitrary amount of memory.  All uses
115267         changed.
115268         * lib/savedir.h: Update prototype.
115270 2001-08-31  Paul Eggert  <eggert@twinsun.com>
115272         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
115274         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
115275         old strtoimax.c.
115277         Also, make the following further changes to make this file's
115278         configuration more similar to that of strtol.c:
115279         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
115280         (strtoumax, uintmax_t, strtoull, strtol): Remove.
115281         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
115282         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
115283         changed to signed values.
115285         And make the following changes as well:
115286         Fix copyright notice, as 1999 was missing.
115287         (verify): New macro.
115288         (strtoimax): Check sizes at compile-time, not run-time.
115289         Prefer strtol to strtoll if both work.
115290         (main): Remove; it was not that useful and was a pain to maintain.
115292         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
115294 2001-08-31  Jim Meyering  <meyering@lucent.com>
115296         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
115297         Use an initial, malloc'd, buffer of length 128 rather than
115298         a statically allocated one of length 1024.
115300 2001-08-30  Paul Eggert  <eggert@twinsun.com>
115302         Simplify code, partly by assuming autoconf 2.52 semantics.
115304         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
115306         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
115307         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
115308         All uses removed.
115309         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
115310         Move AC_REQUIRE to next-to-top level, to avoid confusion.
115311         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
115312         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
115313         jm_AC_HEADER_INTTYPES_H.
115314         * m4/jm-macros.m4 (jm_MACROS): Likewise.
115316         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
115318         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
115319         Quote first arg of AC_DEFUN.
115320         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
115321         since they are needed to parse the include file even if we need
115322         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
115323         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
115324         but with opposite signedness.
115326 2001-08-30  Paul Eggert  <eggert@twinsun.com>
115328         Merge 'exclude' changes from tar 1.13.22.
115329         This fixes one or two unlikely storage allocation overflow bugs,
115330         but doesn't change user-visible behavior otherwise.
115332 2001-08-30  Paul Eggert  <eggert@twinsun.com>
115334         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
115335         (jm_PREREQ_EXCLUDE): New macro.
115337 2001-08-30  Paul Eggert  <eggert@twinsun.com>
115339         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
115340         tm to be declared.
115342 2001-08-30  Paul Eggert  <eggert@twinsun.com>
115344         * lib/hash.c: Remove '2001' from copyright notice.
115346 2001-08-30  Paul Eggert  <eggert@twinsun.com>
115348         * lib/full-write.h: New file.
115349         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
115350         * lib/full-write.c: Correct credits, as cccp.c no longer
115351         exists and anyway it was so heavily changed from the old cccp
115352         code as to be unrecognizable.  Include full-write.h.
115353         (full_write): Return size_t, with short writes meaning failure.
115354         All callers changed.  This fixes a bug with large buffers
115355         on 64-bit hosts.
115356         * lib/utime.c: Include full-write.h.
115358 2001-08-30  Paul Eggert  <eggert@twinsun.com>
115360         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
115361         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
115362         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
115363         Include if available.
115364         (<xalloc.h>): Include
115365         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
115366         (verify): New macro.  Use it to verify that EXCLUDE macros do not
115367         collide with FNM macros.
115368         (struct patopts): New struct.
115369         (struct exclude): Use it, as exclude patterns now come with options.
115370         (new_exclude): Support above changes.
115371         (new_exclude, add_exclude_file):
115372         Initial size must now be a power of two to simplify overflow checking.
115373         (free_exclude, fnmatch_no_wildcards): New function.
115374         (excluded_filename): No longer requires options arg, as the options
115375         are determined by add_exclude.  Now returns bool, not int.
115376         (excluded_filename, add_exclude):
115377         Add support for the fancy new exclusion options.
115378         (add_exclude, add_exclude_file): Now takes int options arg.
115379         Check for arithmetic overflow when computing sizes.
115380         (add_exclude_file): xrealloc might modify errno, so don't
115381         realloc until after errno might be used.
115383         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
115384         New macros.
115385         (free_exclude): New decl.
115386         (add_exclude, add_exclude_file): Now takes int options arg.
115387         (excluded_filename): No longer requires options arg, as the options
115388         are determined by add_exclude.  Now returns bool, not int.
115390 2001-08-30  Paul Eggert  <eggert@twinsun.com>
115392         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
115394 2001-08-27  Jim Meyering  <meyering@lucent.com>
115396         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
115398         * lib/version-etc.c (N_): Remove definition.
115399         Revert most of last change.
115400         Instead, simply don't mark the `Copyright...' string for translation.
115401         Based on advice from Paul Eggert.
115403         * lib/strtoxmax.c: Tweak comment.
115405 2001-08-26  Jim Meyering  <meyering@lucent.com>
115407         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
115409         * m4/xstrtoimax.m4: New file.
115410         * m4/xstrtoumax.m4: Add comments explaining why we
115411         AC_REPLACE_FUNCS(strtol).
115413 2001-08-26  Jim Meyering  <meyering@lucent.com>
115415         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
115416         of copyright with `%s' so translators don't get an untranslated
115417         message in 2002.
115418         (COPYRIGHT_YEAR): Define.
115419         (version_etc): Use fprintf rather than fputs.
115420         Suggestion from Ulrich Drepper.
115422         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
115424         * lib/strtoll.c: New file, from GNU libc.
115425         * lib/xstrtoimax.c: New file.
115427         * lib/xstrtol.h: Add xstrtoimax.
115428         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
115429         * lib/strtoimax.c: New file.  Likewise, but first define
115430         STRTOUXMAX_SIGNED.
115432         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
115433         ...
115434         * lib/strtoxmax.c: ... then renamed to this.
115436 2001-08-18  Paul Eggert  <eggert@twinsun.com>
115438         * m4/inttypes.m4: Add AC_PREREQ(2.13).
115439         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
115440         (jm_AC_TYPE_INTMAX_T): New macro.
115441         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
115443         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
115445         * m4/longlong.m4: Renamed from ulonglong.m4.
115446         * m4/inttypes.m4: Renamed from inttypes_h.m4.
115447         * m4/uintmax_t.m4: Removed.
115449 2001-08-13  Paul Eggert  <eggert@twinsun.com>
115451         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
115452         Port to Solaris 8, where 'sed' requires a space after the 'r'
115453         command, and where sh dislikes "$/".  Clean up the spacing a bit.
115454         Redirect output to $tmp just once.
115456 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
115458         * lib/addext.c (<errno.h>): Include.
115459         (errno): Declare if not defined.
115460         (addext): Work correctly when pathconf returns -1 and leaves
115461         errno alone because there is no limit.  Also, work even if
115462         pathconf returns a value greater than SIZE_MAX.
115464 2001-08-12  Jim Meyering  <meyering@lucent.com>
115466         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
115467         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
115468         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
115469         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
115470         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
115471         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
115472         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
115473         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
115474         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
115475         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
115476         utime.m4, utimes.m4, xstrtoumax.m4:
115477         Quote the first argument in each use of AC_DEFUN.
115479 2001-08-12  Jim Meyering  <meyering@lucent.com>
115481         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
115482         Simply `return getcwd (NULL, 0);'.
115483         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
115484         Use 1300 as initial value for length, not PATH_MAX.
115486         * lib/pathmax.h: Clean up cpp syntax.
115488 2001-08-12  Jim Meyering  <meyering@lucent.com>
115490         * lib/gettimeofday.c: New file.
115491         * lib/gtod.h: New file.
115492         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
115494 2001-08-05  Jim Meyering  <meyering@lucent.com>
115496         * m4/jm-macros.m4: Require autoconf-2.52.
115498 2001-08-04  Jim Meyering  <meyering@lucent.com>
115500         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
115501         stmt, to get in sync with glibc.
115503 2001-08-03  Paul Eggert  <eggert@twinsun.com>
115505         The following changes are from gettext 0.10.39 as maintained by
115506         Bruno Haible.
115508         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
115509         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
115510         with inverted sense.  All uses changed.
115512         * lib/mbswidth.c: Don't include <limits.h>.
115513         Include <stdlib.h> and <string.h> unconditionally.
115514         (iswcntrl, mbsinit, ISCNTRL): New macros.
115515         (mbsnwidth): Use K&R style function declarations.
115516         Don't bother checking for MB_LEN_MAX == 1, since the compiler
115517         can optimize it when MB_CUR_MAX == 1.
115518         The width of control characters is zero, not 1.
115520 2001-08-03  Paul Eggert  <eggert@twinsun.com>
115522         The following changes are from gettext 0.10.39 as maintained by
115523         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
115525         * m4/codeset.m4: Upgrade to serial AM1.
115526         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
115527         all uses changed.  Quote first arg of AC_DEFUN.
115528         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
115530         * m4/iconv.m4: Upgrade to serial AM2.
115531         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
115532         Add --with-libconv-prefix.
115533         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
115534         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
115535         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
115536         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
115537         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
115539         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
115540         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
115541         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
115542         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
115543         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
115544         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
115545         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
115546         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
115547         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
115549         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
115550         string.h any more.
115552         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
115553         not the default value.
115555         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
115556         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
115557         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
115558         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
115559         Also check for iswcntrl, used for wcwidth fallback.
115560         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
115561         to Autoconf 2.13.
115563 2001-08-03  Jim Meyering  <meyering@lucent.com>
115565         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
115566         as it was in the original.  Reported by Paul Eggert.
115568 2001-07-16  Jim Meyering  <meyering@lucent.com>
115570         * m4/gettimeofday.m4: New file.
115571         Prompted by a report from Bernhard Baehr.
115573 2001-07-15  Jim Meyering  <meyering@lucent.com>
115575         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
115576         stuff. Now it's in ../Makefile.cfg.
115578 2001-07-15  Jim Meyering  <meyering@lucent.com>
115580         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
115581         (BUILT_SOURCES): Add unlocked-io.h.
115582         (io_functions): Define.
115583         (unlocked-io.h): New rule.
115584         (DISTCLEANFILES): Add unlocked-io.h.
115585         (all-local): Depend on unlocked-io.h, to ensure it is created.
115587         * lib/unlocked-io.hin: New file
115589         * lib/regex.c: Update from glibc.
115591 2001-07-05  Jim Meyering  <meyering@lucent.com>
115593         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
115594         recommendation.
115595         (libfetish_a_SOURCES): Put all .h files here instead.
115596         Remove a thus-exposed (better checks in automake) duplicate and
115597         two unnecessary .h files.
115599 2001-07-04  Jim Meyering  <meyering@lucent.com>
115601         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
115602         that generates jm-glibc-io.m4 so that it doesn't trigger any make
115603         distcheck failure.
115605 2001-07-02  Jim Meyering  <meyering@lucent.com>
115607         The following changes were prompted by suggestions from Bruno Haible.
115609         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
115610         is now generated.
115611         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
115612         definition of EXTRA_DIST.
115613         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
115614         ensure that the generated file is created/updated whenever the list
115615         of $(unlocked_functions) is changed.
115616         (jm-glibc-io.m4): New rule.
115617         (unlocked-io.h): New rule -- currently unused.
115619 2001-06-24  Jim Meyering  <meyering@lucent.com>
115621         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
115622         unmatched right bracket, rather than kludging it with an extra,
115623         falsely-matching quote in a comment.  Patch by Akim Demaille.
115625 2001-06-11  Jim Meyering  <meyering@lucent.com>
115627         * lib/regex.c: Update from GNU libc.
115629 2001-05-27  Jim Meyering  <meyering@lucent.com>
115631         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
115632         Check for ut_type in struct utmp.
115634 2001-05-27  Jim Meyering  <meyering@lucent.com>
115636         * lib/readutmp.h (UT_TYPE): Define.
115638 2001-05-24  Jim Meyering  <meyering@lucent.com>
115640         * lib/argmatch.c: Include "quote.h".
115641         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
115642         quote function.  Reported by Göran Uddeborg.
115644 2001-05-22  Jim Meyering  <meyering@lucent.com>
115646         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
115647         now that we use the package-supplied version unconditionally.
115648         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
115650 2001-05-21  Jim Meyering  <meyering@lucent.com>
115652         * m4/regex.m4: Change a couple backticks to single quotes to avoid
115653         shell syntax errors.
115655 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
115657         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
115659 2001-05-20  Paul Eggert  <eggert@twinsun.com>
115661         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
115662         Don't bother to check library strftime, since
115663         we'll be using our own my_strftime function anyway.
115664         Define my_strftime instead of strftime.
115666 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
115668         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
115669         which is not yet declared.
115671 2001-05-15  Jim Meyering  <meyering@lucent.com>
115673         * m4/regex.m4: Use proper quoting so brackets appear in the test
115674         program.
115675         Reported by, and with help from, Bruno Haible.
115677 2001-05-13  Jim Meyering  <meyering@lucent.com>
115679         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
115680         undefined.
115682 2001-05-11  Paul Eggert  <eggert@twinsun.com>
115684         dirname code cleanup.  base_name now behaves more compatibly
115685         with POSIX basename when given file names that have trailing
115686         slashes, and similarly for dir_name.  Add new primitives
115687         base_len and dir_len.  Put the directory-name-related decls
115688         into dirname.h.
115690         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
115691         * lib/backupfile.c (base_name): Likewise.
115692         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
115693         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
115694         * lib/makepath.c (strip_trailing_slashes): Likewise.
115695         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
115696         ISSLASH): Likewise.
115697         * lib/rename.c (strip_trailing_slashes): Likewise.
115698         * lib/same.c (base_name): Likewise.
115699         * lib/stripslash.c (ISSLASH): Likewise.
115701         * lib/addext.c: Include <dirname.h> after size_t is defined.
115702         * lib/backupfile.c: Likewise.
115704         * lib/addext.c (addext): Use base_len to trim redundant
115705         trailing slashes instead of doing it ourselves.
115706         But do not trim the last slash if it is not redundant.
115708         * lib/backupfile.c (find_backup_file_name,
115709         max_backup_version): Use base_len instead of rolling it ourselves.
115710         Handle the case of "" and (on DOS) "C:" correctly.
115712         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
115713         needed. Include <string.h>, <dirname.h>.
115714         (base_name): Allow file names ending in slashes, other than names
115715         that are all slashes.  In this case, return the basename followed
115716         by the slashes.  This is more general, and can be used in places
115717         where the original base_name purposely had an assertion failure.
115718         (base_len): New function.
115720         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
115721         Do not include <assert.h>; no longer needed.
115722         Include xalloc.h.
115723         (memrchr): Remove decl.
115724         (dir_name_r): Remove.
115725         (dir_len): Renamed from dirlen.  All callers changed.
115726         Rewrite in terms of base_name, for simplicity and consistency.
115727         (dir_name): Never return NULL.  All callers changed.
115728         Do not include <stdlib.h> in test program; no longer needed.
115729         return 0; is fine for test program.
115731         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
115732         New macros.
115733         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
115735         * lib/path-concat.c (path_concat): Use base_len to compute
115736         base length, not strlen; this means we cannot rely on memcpy
115737         to null-terminate.
115739         * lib/same.c (STREQ): Remove.
115740         (same_name): Handle the case where the basename ends in trailing '/'.
115742         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
115743         a slash was stripped.  Do not strip the last slash after a
115744         file system prefix.
115746 2001-05-11  Paul Eggert  <eggert@twinsun.com>
115748         * lib/Makefile.am (libfetish_a_SOURCES):
115749         Add strftime.c, since we now compile it on all hosts.
115751         * lib/strftime.c (my_strftime):
115752         Define to nstrftime if emacs, but only if my_strftime is not defined.
115753         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
115754         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
115755         Add one more extra argument: a nanoseconds value.
115756         All uses changed.
115757         (ns): New macro.
115758         (my_strftime function): Add %N format.
115759         (emacs_strftimeu): Renamed from emacs_strftime,
115760         with extra ut argument.
115762 2001-05-09  Paul Eggert  <eggert@twinsun.com>
115764         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
115766 2001-04-21  Jim Meyering  <meyering@lucent.com>
115768         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
115769         doesn't interfere.
115771 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
115773         * m4/ftruncate.m4: Check for chsize.
115774         Link with ftruncate.o unconditionally if ftruncate is missing.
115775         This was required when cross-compiling to i586-mingw32msvc.
115777 2001-04-08  Jim Meyering  <meyering@lucent.com>
115779         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
115780         recomputed; that's necessary when the offset spans a DST transition.
115781         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
115783 2001-04-02  Jim Meyering  <meyering@lucent.com>
115785         * lib/regex.h, regex.c: Update from GNU libc.
115787 2001-03-24  Jim Meyering  <meyering@lucent.com>
115789         * m4/jm-macros.m4: Require autoconf-2.49d.
115791 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
115793         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
115795 2001-03-19  Paul Eggert  <eggert@twinsun.com>
115797         * lib/version-etc.c (version_etc_copyright): Update to 2001.
115799 2001-03-17  Jim Meyering  <meyering@lucent.com>
115801         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
115802         now that the version in autoconf is equivalent.
115803         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
115805         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
115806         Suggestion from Akim Demaille.
115808         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
115809         (jm_PREREQ_TEMPNAME): New function.
115811 2001-03-16  Paul Eggert  <eggert@twinsun.com>
115813         * lib/tempname.c (uint64_t): Define to uintmax_t if
115814         not defined, and if UINT64_MAX is not defined.
115815         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
115816         Reported by John David Anglin.
115818 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
115820         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
115821         resolve alias if codeset is empty.
115822         * lib/config.charset (BeOS): Use wildcard syntax.
115824 2001-03-13  Jim Meyering  <meyering@lucent.com>
115826         * lib/path-concat.c (path_concat)
115827         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
115828         concatenating e.g., `C:' and `foo'.
115829         From Bruno Haible.
115831 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
115833         * lib/localcharset.c (locale_charset): Don't use
115834         setlocale(LC_CTYPE,NULL). Don't return NULL.
115835         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
115837 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
115839         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
115840         support for DOS/DJGPP.
115842 2001-03-01  Paul Eggert  <eggert@twinsun.com>
115844         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
115845         lacks mkstemp.  Compile our own tempname.c if we compile our own
115846         mkstemp.c, as mkstemp relies on tempname.
115848 2001-03-01  Jim Meyering  <meyering@lucent.com>
115850         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
115851         AH_VERBATIM really does output its argument verbatim.
115853 2001-02-28  Paul Eggert  <eggert@twinsun.com>
115855         * lib/Makefile.am (libfetish_a_SOURCES):
115856         Add dup-safer.c, fopen-safer.c.
115857         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
115859         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
115860         * lib/unistd-safer.h: New files.
115862 2001-02-25  Paul Eggert  <eggert@twinsun.com>
115864         The mkstemp replacement is taken from glibc 2.2.2, with some
115865         portability fixes for use outside glibc, as follows:
115867         * lib/tempname.c (struct_stat64): New macro.
115868         (direxists, __gen_tempname): Use it.
115869         This avoids a portability problem with Solaris 8.
115871         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
115872         (<stddef.h>, <stdint.h>, <string.h>):
115873         Include only if STDC_HEADERS || _LIBC.
115874         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
115875         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
115876         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
115877         (__set_errno): Define this macro if <errno.h> doesn't.
115878         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
115879         Define these macros if <stdio.h> doesn't.
115880         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
115881         Define these macros if <sys/stat.h>
115882         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
115883         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
115884         __xstat64): Define if not _LIBC.
115885         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
115886         (__gen_tempname): Invoke gettimeofday only if
115887         HAVE_GETTIMEOFDAY || _LIBC;
115888         otherwise, fall back on plain "time".
115889         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
115891         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
115893         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
115895 2001-02-18  Paul Eggert  <eggert@twinsun.com>
115897         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
115899 2001-02-17  Paul Eggert  <eggert@twinsun.com>
115901         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
115902         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
115903         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
115904         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
115906 2001-02-17  Paul Eggert  <eggert@twinsun.com>
115908         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
115909         Remove workaround macros for hosts that have mbrtowc but not
115910         mbstate_t, as we now insist on proper declarations for both
115911         before using mbrtowc.
115913 2001-02-17  Jim Meyering  <meyering@lucent.com>
115915         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
115916         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
115917         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
115918         UnixWare 7.1.1.
115920         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
115921         rather than AC_CACHE_VAL.
115923 2001-02-17  Jim Meyering  <meyering@lucent.com>
115925         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
115926         around included file name.
115928         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
115930         * lib/strftime.c: Update from GNU libc (the only changes were to
115931         comments).
115933 2001-02-17  Jim Meyering  <meyering@lucent.com>
115935         * lib/regex.c: Update from libc.
115937 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
115939         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
115940         clash.
115942 2001-02-16  Paul Eggert  <eggert@twinsun.com>
115944         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
115945         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
115946         Reported by Mark Hounschell via Paul Eggert.
115948 2001-02-07  Jim Meyering  <meyering@lucent.com>
115950         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
115952 2001-02-05  Jim Meyering  <meyering@lucent.com>
115954         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
115955         it includes the patch required for `large file' support with at least
115956         HP-UX's 10.20 /bin/cc.
115958 2001-02-03  Jim Meyering  <meyering@lucent.com>
115960         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
115961         AS_IF, now that it works once again (mysteriously).
115962         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
115964 2001-01-30  Jim Meyering  <meyering@lucent.com>
115966         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
115967         * m4/chown.m4: Rename conftestchown to conftest.chown.
115968         * m4/rename.m4: s/conftestdir/conftest.d1/ and
115969         s/conftestdir2/conftest.d2/.
115970         * m4/utimes.m4: s/conftestdata/conftest.data/
115971         Inspired by Pavel Roskin's change in autoconf.
115973 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
115975         * lib/config.charset: Update for FreeBSD 4.2.
115977 2001-01-27  Jim Meyering  <meyering@lucent.com>
115979         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
115980         a use of AS_IF.
115981         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
115983 2001-01-26  Jim Meyering  <meyering@lucent.com>
115985         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
115986         quotearg.c includes it.
115988 2001-01-26  Jim Meyering  <meyering@lucent.com>
115990         * lib/quotearg.c: Include stddef.h.
115991         * lib/quote.c: Include stddef.h.
115992         Reported by Axel Kittenberger.
115994         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
115995         line in double quotes so that it evokes a better diagnostic.
115996         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
115997         Reported by Axel Kittenberger.
115999 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
116001         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
116002         as if it was a `charset'.
116004 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
116006         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
116007         has const.
116009 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
116011         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
116012         to avoid a warning.  Add back 'const' to inptr.
116014 2001-01-20  Jim Meyering  <meyering@lucent.com>
116016         Be sure that headers are checked before used in code compiled
116017         for the type checks.
116018         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
116019         In place of that, invoke jm_CHECK_ALL_TYPES.
116020         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
116021         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
116022         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
116023         The check for ssize_t was mistakenly run before the test for unistd.h.
116025         The configure-time check for stdbool.h was missing.
116026         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
116027         (jm_PREREQ_HASH): New function.
116029 2001-01-17  Jim Meyering  <meyering@lucent.com>
116031         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
116032         for autoconf-2.49c.
116033         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
116035 2001-01-16  Jim Meyering  <meyering@lucent.com>
116037         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
116038         From Bruno Haible.
116040 2001-01-14  Jim Meyering  <meyering@lucent.com>
116042         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
116043         foo and bar.  Create conftestdir/ in the script, not in the C code.
116044         Remove directories in the script, not in the C code.
116045         Remove conftestdir{,2} before trying to create the directory.
116046         Make the entire configure script fail if the mkdir fails.
116048 2001-01-14  Jim Meyering  <meyering@lucent.com>
116050         * lib/rename.c: New file.  From Volker Borchert.
116051         Include stdlib.h, string.h or strings.h, and xalloc.h.
116052         Use strip_trailing_slashes rather than open-coding it.
116054 2001-01-03  Paul Eggert  <eggert@twinsun.com>
116056         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
116058 2001-01-03  Jim Meyering  <meyering@lucent.com>
116060         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
116061         of local `inptr' to avoid warning with some system declarations of
116062         iconv.
116064 2001-01-02  Volker Borchert  <bt@teknon.de>
116066         * m4/rename.m4: New file.
116067         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
116069 2001-01-01  Jim Meyering  <meyering@lucent.com>
116071         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
116072         even on systems with utmpx.h.  It's necessary for the declaration of
116073         utmp's ut_user member.  Reported by Andreas Jaeger.
116075         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
116076         available. They are required for the declarations of getgrgid and
116077         getpwuid resp.
116078         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
116079         Reported by Andreas Jaeger.
116081 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
116083         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
116084         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
116085         so `make install' also works in VPATH builds.
116087 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
116089         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
116090         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
116091         can be used in subdirectories.
116093 2000-12-29  Paul Eggert  <eggert@twinsun.com>
116095         * lib/modechange.c: Do not assume that mode_t uses the
116096         traditional octal encoding.  E.g. "chmod 1 FOO" should set
116097         the other-execute bit of FOO even if S_IXOTH != 1.
116099         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
116100         WOTH, XOTH, ALLM): New macros.
116101         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
116102          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
116103         Use them.
116104         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
116105         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
116106         (mode_compile):
116107         No need to use uintmax_t; unsigned long is long enough.
116108         Don't bother to get suffix since we don't use it.
116110 2000-12-26  Jim Meyering  <meyering@lucent.com>
116112         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
116113         better with autoheader.
116115 2000-12-24  Jim Meyering  <meyering@lucent.com>
116117         * lib/hash.c (is_prime): Return explicit boolean values.
116118         (hash_get_first): Return NULL to appease Irix5.6's 89.
116119         Reported by Nelson Beebe.
116121 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
116123         * lib/localcharset.c (locale_charset): Add support for Win32.
116125 2000-12-18  Paul Eggert  <eggert@twinsun.com>
116127         * lib/physmem.h, lib/physmem.c: New files.
116129         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
116130         (noinst_HEADERS): Add physmem.h.
116132         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
116133         't' for compatibility with Solaris 8 sort.
116135 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
116137         * lib/config.charset: Add support for BeOS.
116139 2000-12-17  Jim Meyering  <meyering@lucent.com>
116141         * m4/dos.m4 (jm_AC_DOS): New file and macro.
116142         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
116144 2000-12-16  Jim Meyering  <meyering@lucent.com>
116146         This bug had a serious impact on chown: `chown N:M FILE' (for integer
116147         N and M) would have treated it like `chown N:N FILE'.
116149         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
116151 2000-12-16  Jim Meyering  <meyering@lucent.com>
116153         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
116154         SHELLS_FILE to a file name that's useful on djgpp systems.
116155         Include stdlib.h.
116156         (ADDITIONAL_DEFAULT_SHELLS): Define.
116157         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
116158         Based mostly on a patch from Prashant TR.
116160 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
116162         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
116163         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
116164         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
116166 2000-12-08  Andreas Schwab  <schwab@suse.de>
116168         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
116169         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
116171 2000-12-07  Jim Meyering  <meyering@lucent.com>
116173         * lib/stripslash.c (ISSLASH): Define.
116174         (strip_trailing_slashes): Use ISSLASH rather than comparing against
116175         `/'.
116176         From Prashant TR.
116178         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
116179         (dir_name_r): Declare this function as static.
116180         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
116181         manifest itself on a name containing a mix of slashes and
116182         backslashes.
116183         Make this function work with names starting with a DOS-style
116184         drive letter and colon prefix.
116185         (dir_name): Append `.' if necessary.
116186         Based mostly on patches from Prashant TR and Eli Zaretskii.
116188         * lib/dirname.h (dir_name_r): Remove prototype.
116190 2000-12-06  Paul Eggert  <eggert@twinsun.com>
116192         * m4/off_t-format.m4: Remove this file.
116193         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
116195 2000-12-06  Jim Meyering  <meyering@lucent.com>
116197         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
116198         replacement strtoull, we may well need the replacement strtoul, too.
116199         Check for declarations of strtoul and strtoull.
116200         Check for strtol.  Mainly as a cue to cause automake to include
116201         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
116202         Check for limits.h -- strtol.c needs it.
116204 2000-12-05  Jim Meyering  <meyering@lucent.com>
116206         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
116208 2000-12-04  Jim Meyering  <meyering@lucent.com>
116210         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
116211         Also include memory.h, stdlib.h, unistd.h if appropriate.
116212         Reported by Andreas Jaeger (conflicting declaration of malloc).
116214 2000-12-02  Jim Meyering  <meyering@lucent.com>
116216         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
116217         * m4/jm-macros.m4 (jm_MACROS): require it.
116219 2000-12-02  Jim Meyering  <meyering@lucent.com>
116221         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
116223 2000-12-01  Paul Eggert  <eggert@twinsun.com>
116225         * lib/memrchr.c: Include <config.h> before any system include file.
116227 2000-11-30  Jim Meyering  <meyering@lucent.com>
116229         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
116231 2000-11-30  Jim Meyering  <meyering@lucent.com>
116233         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
116235 2000-11-29  Paul Eggert  <eggert@twinsun.com>
116237         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
116239 2000-11-26  Jim Meyering  <meyering@lucent.com>
116241         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
116243 2000-11-22  Paul Eggert  <eggert@twinsun.com>
116245         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
116246         size of (size_t) -1; it's not portable.
116248 2000-11-17  Jim Meyering  <meyering@lucent.com>
116250         * lib/strstr.c: Update from GNU libc.
116252 2000-11-17  Akim Demaille  <akim@epita.fr>
116254         * lib/obstack.h: Formatting changes.
116255         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
116256         prevent type checking.
116257         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
116258         cast the value to (void *): assigning a `foo *' to a `void *'
116259         variable is valid.
116260         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
116262 2000-11-16  Jim Meyering  <meyering@lucent.com>
116264         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
116266 2000-11-11  Jim Meyering  <meyering@lucent.com>
116268         * lib/error.c: Add a couple #includes, merging from GNU libc version.
116270 2000-11-10  Jim Meyering  <meyering@lucent.com>
116272         * lib/obstack.h: Update from GNU libc.
116273         * lib/obstack.c: Likewise.
116275 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
116277         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
116279 2000-11-06  Paul Eggert  <eggert@twinsun.com>
116281         * lib/getusershell.c (setusershell): Use rewind rather than
116282         fseek/fseeko, to avoid configuration hassles with fseeko.
116283         Don't bother opening SHELLS_FILE if shellstream is NULL;
116284         it's not necessary.
116286 2000-11-05  Jim Meyering  <meyering@lucent.com>
116288         * lib/makepath.h (make_dir): Declare.
116289         * lib/makepath.c (make_dir): Remove `static' attribute.
116290         Tweak a comment.
116292 2000-11-04  Jim Meyering  <meyering@lucent.com>
116294         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
116296 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
116298         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
116299         last one in a bucket, advance to the next bucket.
116301 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
116303         * lib/fnmatch.c: Do not comment out all the code if we are using
116304         the GNU C library, because in some cases we are replacing buggy
116305         code in the GNU C library itself.
116307 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
116309         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
116310         (regex_compile): Catch bogus \(\1\).
116312 2000-10-30  Paul Eggert  <eggert@twinsun.com>
116314         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
116315         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
116316         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
116318 2000-10-30  Paul Eggert  <eggert@twinsun.com>
116320         * lib/error.h, getline.h, modechange.h:
116321         Remove "2000" from Copyright line, as the file hasn't been
116322         changed this year other than in the copyright notice.
116324         * lib/xalloc.h: Add "2000" to Copyright line, as this file
116325         was changed this year.
116327 2000-10-29  Jim Meyering  <meyering@lucent.com>
116329         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
116330         renaming.
116331         * m4/ls-mntd-fs.m4: Likewise
116333 2000-10-29  Jim Meyering  <meyering@lucent.com>
116335         * lib/xstat.in: Fix grammar in comment.
116337 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
116339         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
116340         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
116341         doesn't define __restrict_arr.
116343 2000-10-28  Jim Meyering  <meyering@lucent.com>
116345         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
116346         (jm_PREREQ_MEMCHR): New function.
116348 2000-10-28  Jim Meyering  <meyering@lucent.com>
116350         * lib/memchr.c: Update from libc.
116351         Adjust for portability:
116352         [HAVE_STDLIB_H]: Include stdlib.h.
116353         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
116354         Undef __memchr, too.
116355         [!weak_alias]: Define __memchr to memchr.
116357         * lib/regex.c: Update from libc.
116358         * lib/regex.h: Likewise.
116359         * lib/getopt1.c: Likewise.
116360         * lib/memcmp.c: Likewise.
116362         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
116363         Avoid using fseek, when possible -- it's broken by design.
116364         Patch by Ulrich Drepper.
116366 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
116368         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
116369         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
116370         Giving in to popular pressure to shut up the compiler with casts.
116372 2000-10-26  Jim Meyering  <meyering@lucent.com>
116374         * lib/strftime.c: Update from libc.
116376 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
116378         * regex.c: More `unsigned char' -> `re_char' changes.
116379         Also change several `int' into `re_wchar_t'.
116380         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
116381         (PUSH_FAILURE_POINTER): Don't cast any more.
116382         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
116383         We want GCC to complain, since this piece of code makes
116384         re_match non-reentrant, which *should* be fixed.
116385         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
116386         (EXTEND_BUFFER): Use RETALLOC.
116387         (SET_LIST_BIT): Don't cast.
116388         (re_wchar_t): New type.
116389         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
116390         that those two functions will always properly return.
116391         (IMMEDIATE_QUIT_CHECK): Cast to void.
116392         (analyse_first): Use recursion rather than an explicit stack.
116393         (re_compile_fastmap): Can't fail anymore.
116394         (re_search_2): Don't check re_compile_fastmap for failure.
116395         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
116396         Now also sets the new value (passed in a new argument).
116397         (re_match_2_internal): Use it.
116398         Also, use a new var `reg' of type size_t when looping through regs
116399         rather than reuse the inappropriate `mcnt'.
116401 2000-10-25  Jim Meyering  <meyering@lucent.com>
116403         * lib/obstack.c: Update from libc.
116405 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
116407         * regex.c (regex_compile): Change the way of handling a range from
116408         a char less than 256 to a char not less than 256.
116410 2000-10-24  Andrew Innes  <andrewi@gnu.org>
116412         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
116413         NT-Emacs only.
116414         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
116415         so that re_search functions only quit when callers expect them to.
116417 2000-10-23  Jim Meyering  <meyering@lucent.com>
116419         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
116420         wrong.  That set_locale call must not have any side effects.
116421         From Paul Eggert.
116423 2000-10-22  Jim Meyering  <meyering@lucent.com>
116425         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
116426         [CYCLIC]: Remove now-unused definition.
116428         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
116429         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
116430         Suggestion from Ulrich Drepper.
116432 2000-10-21  Jim Meyering  <meyering@lucent.com>
116434         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
116435         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
116436         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
116438 2000-10-21  Jim Meyering  <meyering@lucent.com>
116440         * lib/dirname.c (memrchr): Declare if necessary.
116441         (dir_name): Remove the restriction that there be no
116442         trailing slashes.  Now, this code skips past them, effectively
116443         ignoring them.
116444         [TEST_DIRNAME] (main): New unit tests.
116446         * lib/memrchr.c: New file from GNU libc.
116447         Undef __memrchr, too.
116448         [!weak_alias]: Define __memrchr to memrchr.
116449         Guard weak_alias use with `#ifdef weak_alias'.
116451 2000-10-21  Jim Meyering  <meyering@lucent.com>
116453         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
116454         (dir_name): Use dir_name_r.
116455         * lib/dirname.h (dir_name_r): Declare it.
116457 2000-10-17  Jim Meyering  <meyering@lucent.com>
116459         * lib/quote.h (PARAMS): Define and use.
116460         Reported by Akim Demaille.
116462         * lib/getopt.c: Update from libc.
116464 2000-10-16  Jim Meyering  <meyering@lucent.com>
116466         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
116467         setlocale.
116468         From Jan Fedak.
116470 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
116472         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
116474 2000-09-25  Jim Meyering  <meyering@lucent.com>
116476         * lib/md5.h (rol): Define (from GnuPG).
116478         * lib/sha.c: Give credit (GnuPG) where due.
116479         (M): Use rol rather than open-coding it.
116480         Add a FIXME comment.
116482 2000-09-21  Jim Meyering  <meyering@lucent.com>
116484         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
116485         Reported by Michael Stone.
116487 2000-09-20  Jim Meyering  <meyering@lucent.com>
116489         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
116490         (noinst_HEADERS): Add sha.h.
116491         Based on code from Scott G. Miller and from GnuPG.
116493 2000-09-18  Jim Meyering  <meyering@lucent.com>
116495         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
116496         LIBS. Otherwise, everyone ends up linking with -lelf for some
116497         configurations.
116498         Reported by Mike Stone.
116500 2000-09-15  Jim Meyering  <meyering@lucent.com>
116502         * lib/regex.c: Update from libc.
116504 2000-09-10  Jim Meyering  <meyering@lucent.com>
116506         * lib/getopt.c (_getopt_internal): Update from glibc.
116508 2000-09-09  Jim Meyering  <meyering@lucent.com>
116510         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
116511         think it should be used as a general replacement for isascii.
116512         * lib/fnmatch.c: Likewise.
116513         * lib/mbswidth.c: Likewise
116514         * lib/regex.c: Likewise.
116516         Don't use atoi.
116517         * lib/userspec.c: Include sys/param.h and limits.h.
116518         Include xstrtol.h.
116519         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
116520         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
116521         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
116522         UID, GID.  Check range.
116524 2000-09-06  Jim Meyering  <meyering@lucent.com>
116526         * lib/getopt.c (_getopt_internal): Update from glibc.
116528 2000-08-30  Jim Meyering  <meyering@lucent.com>
116530         * lib/strftime.c: Merge in changes from GNU libc.
116532 2000-08-26  Jim Meyering  <meyering@lucent.com>
116534         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
116535         * m4/fpending.m4: New file.
116537 2000-08-26  Jim Meyering  <meyering@lucent.com>
116539         * lib/closeout.c: Include "__fpending.h".
116540         (close_stdout_status): Return right away if there's nothing to flush.
116542         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
116543         * lib/__fpending.c: New file.
116544         * lib/__fpending.h: New file.
116546 2000-08-20  Jim Meyering  <meyering@lucent.com>
116548         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
116549         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
116550         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
116552 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
116554         Improve fileutils installation on systems where running
116555         programs (like install) can't be unlinked.
116556         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
116557         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
116559 2000-08-07  Paul Eggert  <eggert@twinsun.com>
116561         Standardize on "memory exhausted" instead of "Memory exhausted"
116562         or "virtual memory exhausted".
116563         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
116564         "virtual memory exhausted".
116565         * lib/same.c (same_name): Invoke xalloc_die instead of printing
116566         our own message.
116567         * lib/userspec.c (parse_user_spec): Likewise.
116568         * lib/bumpalloc.h: comment fix
116569         * lib/same.c, userspec.c: Include xalloc.h.
116571         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
116572         not char *const and pointing to a constant array.
116573         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
116574         (xrealloc): Comment fix.
116576         * lib/userspec.c (parse_user_spec):
116577         Don't translate a message until just before returning,
116578         to avoid unnecessary translation.
116580 2000-08-07  Jim Meyering  <meyering@lucent.com>
116582         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
116583         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
116584         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
116585         getgroups.c, gethostname.c, getopt.h, group-member.c,
116586         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
116587         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
116588         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
116589         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
116590         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
116591         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
116592         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
116593         yesno.c: Back out Copyright date changes for each file with no change
116594         this year.  This eases coordination with other programs using the same
116595         source code modules.  From Paul Eggert.
116597 2000-08-06  Paul Eggert  <eggert@twinsun.com>
116599         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
116600         not char, for compatibility with glibc 2.1.3 strftime.c.
116602 2000-08-03  Greg McGary  <greg@mcgary.org>
116604         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
116605         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
116606         (EXTEND_BUFFER): Use them.
116608 2000-08-01  Jim Meyering  <meyering@lucent.com>
116610         * lib/dirname.c (ISSLASH): Define.
116611         (BACKSLASH_IS_PATH_SEPARATOR): Define.
116612         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
116613         both `\' and `/' may be use as path separators.
116614         Based on a patch from Prashant TR.
116616 2000-07-31  Paul Eggert  <eggert@twinsun.com>
116618         * lib/quotearg.c (quotearg_n_options): Don't make the initial
116619         slot vector a constant, since it might get modified.
116621 2000-07-31  Jim Meyering  <meyering@lucent.com>
116623         * lib/xmalloc.c: Use `virtual memory exhausted', not
116624         `Memory exhausted'.
116625         * lib/obstack.c (print_and_abort): Likewise.
116627 2000-07-30  Paul Eggert  <eggert@twinsun.com>
116629         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
116630         buffer, so that the caller can always quote one small
116631         component of a "memory exhausted" message in slot 0.
116632         From a suggestion by Jim Meyering.
116634 2000-07-30  Jim Meyering  <meyering@lucent.com>
116636         * lib/makepath.c (make_path): Quote the other instance, too.
116638         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
116639         (STATIC_BUF_SIZE): Define.
116640         (quotearg_n_options): Use only statically allocated storage when
116641         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
116642         than STATIC_BUF_SIZE.
116644 2000-07-29  Jim Meyering  <meyering@lucent.com>
116646         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
116647         * lib/dirname.c (dir_name): Likewise.
116649         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
116650         `/'.
116652         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
116653         (dir_name): Assert that there are no trailing slashes.
116655 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
116657         * lib/mbswidth.h (mbswidth): Add a flags argument.
116658         (mbswidth): New declaration.
116659         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
116660         * lib/mbswidth.c (mbswidth): Add a flags argument.
116661         (mbsnwidth): New function.
116663 2000-07-24  Jim Meyering  <meyering@lucent.com>
116665         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
116667 2000-07-23  Paul Eggert  <eggert@twinsun.com>
116669         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
116671 2000-07-23  Paul Eggert  <eggert@twinsun.com>
116673         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
116674         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
116675         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
116676         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
116677         invoke multibyte primitives.
116679 2000-07-23  Paul Eggert  <eggert@twinsun.com>
116681         * lib/quotearg.c:
116682         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
116683         so that mbstate_t is always defined.
116685         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
116686         be 1 in at least one GCC installation, and this configuration
116687         error is likely to be common.  Ignoring MB_LEN_MAX hurts
116688         performance on hosts that have mbrtowc but have only unibyte
116689         locales, but I assume these hosts are rare.
116691 2000-07-23  Paul Eggert  <eggert@twinsun.com>
116693         * lib/mbswidth.c (_XOPEN_SOURCE):
116694         Don't define; this causes problems on Solaris 7.
116695         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
116697 2000-07-23  Jim Meyering  <meyering@lucent.com>
116699         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
116700         too: getgrgid, getpwuid, getuid.
116702 2000-07-23  Jim Meyering  <meyering@lucent.com>
116704         * lib/basename.c (base_name): Add an assertion.
116706 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
116708         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
116709         shadow its mbsinit function.
116711 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
116713         * lib/mbswidth.h: New file.
116714         * lib/mbswidth.c: New file.
116715         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
116716         (noinst_HEADERS): Add mbswidth.h.
116718 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
116720         * lib/config.charset: Add support for FreeBSD. Improve support for
116721         HP-UX and IRIX 6.
116723 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
116725         * m4/mbswidth.m4: New file.
116726         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
116728 2000-07-15  Jim Meyering  <meyering@lucent.com>
116730         * lib/makepath.c: Include quote.h.
116731         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
116732         corresponding argument in a `quote (...)' call.
116733         Give better diagnostics.
116735         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
116736         (noinst_HEADERS): Add quote.h.
116738         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
116739         from tar's src/misc.c.
116740         * lib/quote.h: New file.  Prototypes for same.
116742 2000-07-14  Paul Eggert  <eggert@twinsun.com>
116744         From a suggestion by Bruno Haible.
116745         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
116746         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
116747         to decide whether to define the BeOS workaround macro;
116748         this adjusts to the change to AC_MBSTATE_T.
116750 2000-07-14  Jim Meyering  <meyering@lucent.com>
116752         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
116753         jm_AC_TYPE_UINTMAX_T.
116755 2000-07-13  Paul Eggert  <eggert@twinsun.com>
116757         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
116759         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
116760         quotearg_buffer_restyled): Add support for
116761         clocale_quoting_style.  Undo previous change to
116762         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
116763         and "{RIGHT QUOTATION MARK}" msgids.
116765 2000-07-10  Paul Eggert  <eggert@twinsun.com>
116767         From a suggestion by Bruno Haible.
116768         * m4/mbstate_t.m4 (AC_MBSTATE_T):
116769         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
116770         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
116771         and mbstate_t, to a single-part test that simply defines mbstate_t.
116772         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
116773         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
116775 2000-07-10  Jim Meyering  <meyering@lucent.com>
116777         * m4/strerror_r.m4: Mirror the correction made in autoconf.
116779         * m4/gnu-source.m4: Output to confdefs.h directly.
116780         Suggestion from Akim Demaille.
116782 2000-07-09  Paul Eggert  <eggert@twinsun.com>
116784         The old behavior of quoting `like this' doesn't look good with
116785         newer, ISO-style fonts.  See:
116786         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
116788         Instead, quote "like this" by default.  Let the translator
116789         tailor the locale-specific quoting behavior by providing
116790         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
116792         * lib/quotearg.c (N_): New macro.
116793         (gettext_default): New function.
116794         (quotearg_buffer_restyled): Use
116795         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
116796         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
116798 2000-07-09  Jim Meyering  <meyering@lucent.com>
116800         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
116801         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
116803         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
116804         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
116806 2000-07-09  Jim Meyering  <meyering@lucent.com>
116808         * lib/Most files: Update copyright dates to include 2000.
116810 2000-07-08  Jim Meyering  <meyering@lucent.com>
116812         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
116813         if not defined.
116814         (xgethostname): Remove now-unnecessary #ifdef.
116815         Move declaration of `err' into loop where it's used.
116817 2000-07-05  Paul Eggert  <eggert@twinsun.com>
116818         and Bruno Haible  <haible@clisp.cons.org>
116820         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
116821         only if the test for an object-type mbstate_t fails.  This
116822         prevents us from mistakenly reporting that mbstate_t is a
116823         system object type after we "#define mbstate_t int" to work
116824         around its lack.
116826 2000-07-05  Paul Eggert  <eggert@twinsun.com>
116827         and Bruno Haible  <haible@clisp.cons.org>
116829         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
116831 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
116833         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
116834         to strerror_r.
116835         Include <ctype.h> for use of isalpha.
116837 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
116839         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
116840         by allocating a larger buffer. Test the gethostname return value for
116841         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
116842         returns an error and ENAMETOOLONG isn't defined.
116844 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
116846         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
116847         dimension.
116849 2000-07-04  Jim Meyering  <meyering@lucent.com>
116851         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
116852         of the deprecated AC_CHECKING.
116854 2000-07-04  Jim Meyering  <meyering@lucent.com>
116856         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
116857         Reported by Bruno Haible.
116859 2000-07-04  Jim Meyering  <meyering@lucent.com>
116861         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
116862         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
116863         lacks mbrtowc.
116865 2000-07-03  Paul Eggert  <eggert@twinsun.com>
116867         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
116868         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
116870 2000-07-03  Paul Eggert  <eggert@twinsun.com>
116871         and Bruno Haible  <haible@clisp.cons.org>
116873         * lib/quotearg.c (mbrtowc):
116874         Assign to *pwc, and return 1 only if result is nonzero.
116875         (iswprint): Use ISPRINT when substituting our own mbrtowc.
116877 2000-07-03  Jim Meyering  <meyering@lucent.com>
116879         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
116881 2000-07-03  Jim Meyering  <meyering@lucent.com>
116883         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
116884         This is necessary to get a definition of e.g., UTMP_FILE on
116885         HP-UX 10.20.
116886         From Bob Proulx.
116888 2000-07-02  Jim Meyering  <meyering@lucent.com>
116890         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
116892         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
116893         AC_LIBOBJ(function_name).
116894         * m4/chown.m4: Likewise.
116895         * m4/fnmatch.m4: Likewise.
116896         * m4/ftruncate.m4: Likewise.
116897         * m4/getgroups.m4: Likewise.
116898         * m4/getline.m4: Likewise.
116899         * m4/group-member.m4: Likewise.
116900         * m4/jm-macros.m4: Likewise.
116901         * m4/lstat.m4: Likewise.
116902         * m4/malloc.m4: Likewise.
116903         * m4/memcmp.m4: Likewise.
116904         * m4/nanosleep.m4: Likewise.
116905         * m4/putenv.m4: Likewise.
116906         * m4/realloc.m4: Likewise.
116907         * m4/regex.m4: Likewise.
116908         * m4/stat.m4: Likewise.
116909         * m4/strftime.m4: Likewise.
116911 2000-07-02  Jim Meyering  <meyering@lucent.com>
116913         * lib/quotearg.c (mbstate_t): Don't define here.
116915 2000-07-02  Jim Meyering  <meyering@lucent.com>
116917         * lib/nanosleep.c (SIGCONT): Define if not already defined.
116919 2000-07-01  Jim Meyering  <meyering@lucent.com>
116921         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
116923 2000-07-01  Jim Meyering  <meyering@lucent.com>
116925         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
116926         problem.
116928 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
116930         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
116931         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
116933 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
116935         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
116936         per change in ../m4/ls-mntd-fs.m4.
116937         (read_filesystem_list): Ignore symbolic links.
116939 2000-06-29  Jim Meyering  <meyering@lucent.com>
116941         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
116942         for declaration of strcmp.
116944         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
116946         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
116947         Avoid warning by casting result to `char *' to remove `const'.
116949 2000-06-28  Jim Meyering  <meyering@lucent.com>
116951         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
116952         included by quotearg.c, for which we perform this test.  From
116953         Bruno Haible.
116955 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
116957         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
116958         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
116959         <utmpx.h> exists, put readutmp.o into LIBOBJS.
116961 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
116963         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
116965 2000-06-26  Paul Eggert  <eggert@twinsun.com>
116967         savedir now sets errno on failure and invokes xmalloc to get memory.
116968         Fix a couple of other minor bugs while we're at it.
116970         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
116971         (NAMLEN): Remove macro.
116972         (malloc, realloc): Remove decls.
116973         (stpcpy): Likewise.
116974         ("xalloc.h"): Include.
116975         (NAME_SIZE_DEFAULT): New macro.
116976         (savedir): Use xmalloc / xrealloc to allocate memory.
116977         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
116978         Skip "" directory entries.
116979         Use strlen to calculate directory entry length, since the old method
116980         is rarely used these days and isn't worth supporting.
116981         Don't use a pointer after freeing it.
116982         Check for integer overflow when calculating allocation size.
116983         Use memcpy to copy entries, instead of stpcpy.
116984         Set errno properly when returning NULL.
116985         Check for readdir error.
116987 2000-06-26  Jim Meyering  <meyering@lucent.com>
116989         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
116991 2000-06-25  Jim Meyering  <meyering@lucent.com>
116993         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
116994         Linux header bug when _XOPEN_SOURCE is defined to 500.
116996 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
116998         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
116999         deficiency.
117001 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
117003         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
117004         Include xalloc.h.
117005         Don't include <stdlib.h>.  Don't declare malloc, realloc.
117007 2000-06-24  Jim Meyering  <meyering@lucent.com>
117009         * m4/strerror_r.m4: Revive this file -- to try out an experimental
117010         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
117011         for which strerror does return char*, but which lacks a conveniently
117012         accessible declaration of the function.  If the compile-test says
117013         strerror_r doesn't work, then resort to a `run'-test that works on
117014         BeOS and segfaults on DEC Unix.
117016 2000-06-24  Jim Meyering  <meyering@lucent.com>
117018         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
117020 2000-06-23  Paul Eggert  <eggert@twinsun.com>
117022         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
117023         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
117025 2000-06-23  Paul Eggert  <eggert@twinsun.com>
117027         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
117028         (mbrtowc, mbstate_t): Define substitutes if
117029         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
117030         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
117031         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
117033 2000-06-23  Jim Meyering  <meyering@lucent.com>
117035         * m4/afs.m4: Add missing AC_MSG_RESULT.
117036         Reported by Bruno Haible.
117038         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
117039         Suggestion from Bruno Haible.
117041 2000-06-23  Jim Meyering  <meyering@lucent.com>
117043         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
117045 2000-06-21  Jim Meyering  <meyering@lucent.com>
117047         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
117049 2000-06-21  Jim Meyering  <meyering@lucent.com>
117051         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
117052         (noinst_HEADERS): Add getstr.h.
117054         * lib/getline.c (getstr): Move into a separate file.
117055         * lib/getstr.c (getstr): New file, extracted from getline.c, with
117056         the following changes: new parameter, delim2; both delim[12]
117057         parameters have type `int', not `char'.  The latter would lose
117058         with 8-bit delimiters.
117059         * lib/getstr.h: New file.
117061 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
117063         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
117064         than 1024, return a memory chunk of least possible size, instead
117065         of size PATH_MAX + 2. In the loop, increment the size proportionally.
117066         Use free/xmalloc instead of xrealloc to avoid copying for very long
117067         paths.
117069 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
117071         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
117072         the empty string.
117074 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
117076         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
117077         address, not strdup.  Include <stdlib.h> and don't declare free().
117079 2000-06-19  Jim Meyering  <meyering@lucent.com>
117081         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
117083 2000-06-18  Jim Meyering  <meyering@lucent.com>
117085         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
117087         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
117088         `checking whether...' message to be consistent with that of the
117089         lstat test.
117091 2000-06-18  Jim Meyering  <meyering@lucent.com>
117093         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
117094         Besides, these days every porting target provides a mkdir function.
117096         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
117097         needed. (this snippet comes from src/system.h).
117099 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
117101         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
117103 2000-06-15  Paul Eggert  <eggert@twinsun.com>
117105         * lib/human.c (adjust_value): New function.
117106         (human_readable_inexact): Apply rounding style even when
117107         printing approximate values.
117109 2000-06-14  Paul Eggert  <eggert@twinsun.com>
117111         * lib/human.c (human_readable_inexact): Allow an input block
117112         size that is not a multiple of the output block size, and vice versa.
117113         Reported by Piergiorgio Sartor.
117115 2000-06-14  Paul Eggert  <eggert@twinsun.com>
117117         * lib/getdate.y (get_date): Apply relative times after time
117118         zone indicator, not before.  Reported by Todd A. Jacobs.
117120 2000-06-13  Jim Meyering  <meyering@lucent.com>
117122         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
117124         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
117126 2000-06-12  Paul Eggert  <eggert@twinsun.com>
117128         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
117130 2000-06-12  Jim Meyering  <meyering@lucent.com>
117132         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
117133         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
117134         optional argument.
117135         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
117136         the optional argument, `lib'.
117138 2000-06-08  Jim Meyering  <meyering@lucent.com>
117140         * m4/largefile.m4: Remove file (now that it's part of autoconf).
117142 2000-06-04  Paul Eggert  <eggert@twinsun.com>
117144         Rewrite largefile configuration so that we don't need to run
117145         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
117146         AC_CANONICAL_HOST in configure.in -- jmm]
117148         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
117149         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
117150         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
117151         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
117152         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
117153         All uses changed.
117154         Instead of inspecting the output of getconf, try to compile the
117155         test program without and with the macro definition.
117156         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
117157         for getconf.  Instead, check for the needed flags by compiling
117158         test programs.
117160 2000-06-04  Paul Eggert  <eggert@twinsun.com>
117162         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
117164 2000-06-04  Jim Meyering  <meyering@lucent.com>
117166         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
117167         SunOS 4.1.4 for which gid_t is an unsigned type.
117169 2000-06-03  Jim Meyering  <meyering@lucent.com>
117171         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
117172         now that autoconf requires that.
117174         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
117175         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
117176         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
117178 2000-06-03  Jim Meyering  <meyering@lucent.com>
117180         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
117182 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
117184         * m4/glibc21.m4: New file.
117185         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
117187 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
117189         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
117190         newer, don't install charset.alias.
117191         * lib/config.charset: Change the Linux/glibc rules so they become empty
117192         on glibc-2.1 or newer.
117194 2000-06-02  Jim Meyering  <meyering@lucent.com>
117196         * lib/mountlist.c: Back out last change.  Instead, do this...
117197         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
117198         me_dummy member using the same `ignore'-testing code.
117199         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
117200         fs_type strings.
117201         From Mark D. Roth.
117203 2000-05-29  Jim Meyering  <meyering@lucent.com>
117205         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
117206         mounts with the `ignore' attribute.  Based on a patch from
117207         Mark D. Roth.
117209 2000-05-28  Jim Meyering  <meyering@lucent.com>
117211         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
117212         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
117213         * m4/stat.m4: Likewise.
117214         * m4/lstat.m4: Likewise.
117215         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
117217         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
117218         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
117220 2000-05-26  Jim Meyering  <meyering@lucent.com>
117222         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
117224 2000-05-24  Jim Meyering  <meyering@lucent.com>
117226         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
117227         autoconf requires that.
117228         * m4/lib-check.m4: Likewise.
117229         * m4/jm-macros.m4: Likewise.
117230         * m4/strftime.m4: Likewise.
117232         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
117233         AC_CHECK_DECLS, now that autoconf requires that.
117235 2000-05-22  Jim Meyering  <meyering@lucent.com>
117237         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
117238         * m4/lstat.m4: Likewise.
117240 2000-05-22  Jim Meyering  <meyering@lucent.com>
117242         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
117244 2000-05-20  Jim Meyering  <meyering@lucent.com>
117246         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
117247         (jm_PREREQ): Use it.
117249 2000-05-18  Jim Meyering  <meyering@lucent.com>
117251         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
117252         back, too, since it may have been modified by allocate_entry.
117253         (hash_delete): Rewrite to use neither the assignment operator
117254         nor the comma operator in an if-expression.
117256 2000-05-15  Paul Eggert  <eggert@twinsun.com>
117258         * lib/closeout.c:
117259         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
117260         Remove; no longer needed.
117261         "quotearg.h": Add include.
117262         (file_name): Do not bother to explicitly initialize to NULL; it's less
117263         efficient on some hosts.
117264         (close_stdout_status): Remove test as to whether stdout was already
117265         closed; it breaks for the case "echo x | sort >&-".
117266         Quote file name colons.
117267         Do not assume that _("write error") lacks format strings.
117269 2000-05-15  Jim Meyering  <meyering@lucent.com>
117271         * lib/version-etc.c (version_etc_copyright): Update the copyright
117272         string used in all --version output.
117274 2000-05-14  Jim Meyering  <meyering@lucent.com>
117276         * lib/closeout.c (close_stdout_set_file_name): New function.
117277         (close_stdout_status): Use new file-scoped global.
117278         Return right away if fstat says the stdout file descriptor is invalid.
117279         * lib/closeout.h (close_stdout_set_file_name): Declare.
117281 2000-05-10  Jim Meyering  <meyering@lucent.com>
117283         * lib/closeout.c [default_exit_status]: New file-scoped variable.
117284         (close_stdout_set_status): New function.
117285         * lib/closeout.h (close_stdout_set_status): Declare.
117287 2000-05-09  Jim Meyering  <meyering@lucent.com>
117289         * m4/gettext.m4: Rename this...
117290         * m4/libintl.m4: ...to this.
117292 2000-05-08  Jim Meyering  <meyering@lucent.com>
117294         * lib/long-options.c: Don't include closeout.h.
117295         (parse_long_options): Don't call close_stdout for --version.
117297 2000-05-06  Paul Eggert  <eggert@twinsun.com>
117299         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
117300         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
117301         2.1.3 bug.  This avoids a clash when files like regex.c define
117302         _GNU_SOURCE.
117304 2000-05-06  Jim Meyering  <meyering@lucent.com>
117306         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
117307         (AC_REPLACE_FUNCS): Add strnlen.
117309         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
117310         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
117312         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
117313         AC_SEARCH_LIBS call for nanosleep.
117314         (LIB_NANOSLEEP): Set and AC_SUBST.
117316 2000-05-06  Jim Meyering  <meyering@lucent.com>
117318         * lib/strnlen.c: Undefine __strnlen and strnlen.
117319         [!weak_alias]: Define __strnlen to strnlen.
117321         * lib/atexit.c: New file, from libiberty.
117323 2000-05-06  Jim Meyering  <meyering@lucent.com>
117325         * lib/closeout.c (close_stdout_status): Also check for errors on the
117326         stderr stream.
117328 2000-05-05  Jim Meyering  <meyering@lucent.com>
117330         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
117331         AC_SEARCH_LIBS call for clock_gettime.
117332         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
117334         * m4/search-libs.m4: Update from autoconf.
117336         su doesn't work on Solaris 2.6.
117337         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
117338         <shadow.h>.  Reported by Dragos Harabor.
117340 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
117342         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
117343         memcpy instead of xmalloc, xrealloc, path_concat.
117344         (locale_charset): Treat empty environment variables as absent.
117345         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
117347 2000-05-04  Jim Meyering  <meyering@lucent.com>
117349         * lib/getopt.c: Update from glibc.
117350         * lib/obstack.c: Likewise.
117351         * lib/obstack.h: Likewise.
117352         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
117353         file
117355         * lib/regex.h: Likewise.
117356         * lib/strndup.c: Likewise.
117357         * lib/strnlen.c: New file, from glibc.
117359 2000-05-03  Jim Meyering  <meyering@lucent.com>
117361         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
117363 2000-05-02  Paul Eggert  <eggert@twinsun.com>
117365         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
117366         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
117367         compile-time test, rather than inspecting host and OS, to
117368         decide whether to define _LARGEFILE_SOURCE.
117370 2000-05-01  Jim Meyering  <meyering@lucent.com>
117372         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
117374         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
117375         Based on a patch from Bruno Haible.
117377 2000-05-01  Jim Meyering  <meyering@lucent.com>
117379         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
117381 2000-04-29  Jim Meyering  <meyering@lucent.com>
117383         * lib/path-concat.c: Declare strdup only if it's not defined.
117384         * lib/canon-host.c: Likewise.
117386 2000-04-28  Jim Meyering  <meyering@lucent.com>
117388         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
117389         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
117390         is included first, then limits.h is included by locale.h by libintl.h.
117391         From John David Anglin.
117393 2000-04-25  Jim Meyering  <meyering@lucent.com>
117395         * lib/makepath.c (S_IRWXUGO): Define.
117396         (make_path): Always perform explicit chmod if MODE specifies any
117397         of the `special' permission bits.  Prompted by a bug report against
117398         install from Mate Wierdl and Joost van Baal.
117400 2000-04-18  Jim Meyering  <meyering@lucent.com>
117402         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
117403         (jm_PREREQ): Use it.
117405 2000-04-18  Jim Meyering  <meyering@lucent.com>
117407         * lib/README: New file.
117409         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
117410         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
117412 2000-04-17  Jim Meyering  <meyering@lucent.com>
117414         Get it right :-)
117415         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
117416         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
117417         Suggestion from Akim Demaille.
117419 2000-04-17  Jim Meyering  <meyering@lucent.com>
117421         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
117422         the definition of it to rpl_strftime also defined-away the system's
117423         declaration.
117425 2000-04-15  Jim Meyering  <meyering@lucent.com>
117427         Use `C' to denote so-called `contiguous' files, the same way
117428         that tar does.
117429         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
117430         (ftypelet): Use S_ISCTG.
117431         From Michael Deutschmann.
117433 2000-04-14  Jim Meyering  <meyering@lucent.com>
117435         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
117436         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
117437         clobbered.
117439 2000-04-14  Jim Meyering  <meyering@lucent.com>
117441         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
117443 2000-04-13  Jim Meyering  <meyering@lucent.com>
117445         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
117446         AH_VERBATIM to insert required #ifndef into config.h.in.
117447         Suggestion from Akim Demaille.
117449 2000-04-12  Jim Meyering  <meyering@lucent.com>
117451         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
117452         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
117453         Christian Krackowizer.
117455         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
117456         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
117457         (AC_SYS_LARGEFILE): Require.
117458         (AM_C_PROTOTYPES): Require.
117460 2000-04-08  Jim Meyering  <meyering@lucent.com>
117462         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
117463         names don't conflict.  Reported by Eli Zaretskii.
117465 2000-04-07  Jim Meyering  <meyering@lucent.com>
117467         * lib/putenv.c: Move inclusion of errno.h so it follows that of
117468         sys/types.h, to work around system header problems on AIX 3.2.5.
117469         From Bruno Haible.
117471 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
117473         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
117474         bug.  Deal with the different error behavior of Irix iconv.
117476 2000-04-05  Paul Eggert  <eggert@twinsun.com>
117478         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
117479         IRIX if the installer said otherwise.
117481 2000-04-05  Jim Meyering  <meyering@lucent.com>
117483         Portability tweaks required for ultrix4.3.
117484         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
117485         (jm_CHECK_DECLS): Add getutent to the list of functions.
117486         (_jm_DECL_HEADERS): Add utmpx.h.
117487         From John David Anglin.
117489         * m4/strftime.m4: Back out the 2000-04-02 change.
117490         Instead of that change, simply undefine putenv in the test program.
117492 2000-04-05  Jim Meyering  <meyering@lucent.com>
117494         Portability tweaks required for ultrix4.3.
117495         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
117496         getutent.
117497         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
117498         * lib/canon-host.c: Declare strdup.
117499         * lib/path-concat.c: Likewise.
117500         From John David Anglin.
117502 2000-04-04  Jim Meyering  <meyering@lucent.com>
117504         Be more DOS 8.3-friendly.
117505         * lib/ref-add.sin: Renamed from ref-add.sed.in.
117506         * lib/ref-del.sin: Renamed from ref-del.sed.in.
117507         * lib/Makefile.am: Reflect renaming.
117508         Reported by Eli Zaretskii.
117510         Use a temporary file name that won't clash with `charset.alias'
117511         in the DOS 8.3 name space.
117512         * lib/Makefile.am (charset_tmp): Define.
117513         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
117514         (uninstall-local): Likewise.
117515         Reported by Eli Zaretskii.
117517 2000-04-03  Jim Meyering  <meyering@lucent.com>
117519         * m4/gettext.m4: Fix typo in comment.
117521         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
117522         textutils/configure.in).  Suggestion from Paul Eggert.
117523         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
117525 2000-04-02  Paul Eggert  <eggert@twinsun.com>
117527         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
117528         variable in the shell rather than using putenv, which isn't
117529         portable.  This avoids the configure-time inter-test dependency
117530         on the potentially-renamed putenv function.
117532 2000-03-30  Paul Eggert  <eggert@twinsun.com>
117534         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
117535         before checking struct stat.st_blksize, so that
117536         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
117538 2000-03-29  Paul Eggert  <eggert@twinsun.com>
117540         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
117541         since strftime.c uses HAVE_STRFTIME to decide whether to use
117542         the underlying strftime.
117544 2000-03-29  Paul Eggert  <eggert@twinsun.com>
117546         * lib/time/strftime.c (my_strftime): Make sure we call the system
117547         strftime, not ourselves, when invoking the underlying strftime.
117549 2000-03-24  Jim Meyering  <meyering@lucent.com>
117551         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
117552         (charset_alias): Define.
117553         (install-exec-local): Factor out common code.
117554         (uninstall-local): Split lines longer than 80.
117555         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
117556         (SUFFIXES): Define.
117557         (.sed.in.sed): New rule.  Don't redirect directly to $@.
117558         (CLEANFILES): Add ref-add.sed and ref-del.sed.
117560 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
117562         * lib/config.charset: Output a line containing "Packages using this
117563         file".
117564         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
117565         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
117566         ref-del.sed): New rules.
117568 2000-03-17  Jim Meyering  <meyering@lucent.com>
117570         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
117571         Otherwise, include <strings.h>
117573 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
117575         * lib/unicodeio.c (utf8_wctomb): New function.
117576         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
117577         format instead of in UCS-4 with platform dependent endianness.
117579 2000-03-10  Jim Meyering  <meyering@lucent.com>
117581         * m4/lib-check.m4: Look for getspnam in -lgen, too.
117582         From Marco Franzen.
117584 2000-03-07  Paul Eggert  <eggert@twinsun.com>
117586         * lib/savedir.c (savedir): Work even if directory size is
117587         negative; this can happen with some screwy NFS configurations.
117589 2000-03-06  Jim Meyering  <meyering@lucent.com>
117591         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
117592         if it's NULL (because we ran out of memory).  From Bruno Haible.
117594 2000-03-05  Jim Meyering  <meyering@lucent.com>
117596         * lib/localcharset.c ("path-concat.h"): Include.
117597         (get_charset_aliases): Use path_concat instead of ANSI string
117598         concatenation.
117600         * lib/unicodeio.h (PARAMS): Define.
117601         Use it to guard prototype.
117603 2000-03-04  Jim Meyering  <meyering@lucent.com>
117605         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
117606         for lib/localcharset.c.
117608 2000-03-04  Jim Meyering  <meyering@lucent.com>
117610         * lib/Makefile.am (install-exec-local): Create $(libdir) before
117611         installing into it.
117612         (uninstall-local): Uncomment this rule so `make distcheck' works
117613         once again.
117615         * lib/unicodeio.c (<errno.h>): Include it.
117616         (errno): Declare if not defined.
117618         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
117620         * lib/config.charset: New version, incorporating remarks from a linux
117621         i18n mailing list.  From Bruno Haible.
117623 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
117625         * m4/codeset.m4: New file.
117626         * m4/iconv.m4: New file.
117627         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
117629 2000-03-03  Jim Meyering  <meyering@lucent.com>
117631         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
117633 2000-03-02  Jim Meyering  <meyering@lucent.com>
117635         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
117636         the messages come out on separate lines.
117638         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
117639         rather than jm_CHECK_DECLARATIONS.
117640         * m4/decl.m4: Remove now-unused file.
117642         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
117643         geteuid.
117645 2000-03-02  Jim Meyering  <meyering@lucent.com>
117647         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
117649 2000-03-01  Jim Meyering  <meyering@lucent.com>
117651         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
117652         * lib/unicodeio.c: Likewise.
117654 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
117656         * lib/config.charset: New file.
117657         * lib/localcharset.c: New file.
117658         * lib/unicodeio.h, lib/unicodeio.c: New files.
117659         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
117660         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
117661         (noinst_HEADERS): Add unicodeio.h.
117662         (all-local, install-exec-local, charset.alias): New targets.
117664 2000-02-28  Paul Eggert  <eggert@twinsun.com>
117666         * lib/quotearg.c (ALERT_CHAR): New macro.
117667         (quotearg_buffer_restyled): Use it.
117669 2000-02-27  Jim Meyering  <meyering@lucent.com>
117671         * m4/check-decl.m4: Add getenv to the list.
117673 2000-02-27  Jim Meyering  <meyering@lucent.com>
117675         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
117676         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
117678         * lib/backupfile.c: Guard inclusion of stdlib.h with
117679         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
117680         Declare malloc if needed.
117682         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
117683         `#ifndef HAVE_DECL..'
117684         now that autoconf always defines the HAVE_DECL_ symbols.
117685         * lib/human.c: Likewise.
117686         * lib/same.c: Likewise.
117687         * lib/strtoumax.c: Likewise.
117689         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
117690         declaration check was not run.
117691         * lib/hash.c: Likewise.
117692         * lib/human.c: Likewise.
117693         * lib/same.c: Likewise.
117694         * lib/strtoumax.c: Likewise.
117696         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
117697         `.', then first look up the entire `.'-containing string as a login
117698         name.
117700 2000-02-23  Jim Meyering  <meyering@lucent.com>
117702         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
117703         in place of my hack.
117705 2000-02-18  Paul Eggert  <eggert@twinsun.com>
117707         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
117708         (textint): New typedef.
117709         (parser_control): Member year changed from int to textint.
117710         All uses changed.
117711         (YYSTYPE): Removed; replaced by %union with int and textint members.
117712         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
117713         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
117714         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
117715         (tSNUMBER, tUNUMBER): Now of type <textintval>.
117716         (date, number, to_year): Use width of number in digits, not its value,
117717         to determine whether it's a 2-digit year, or a 2-digit time.
117718         (yylex): Store number of digits of numeric tokens.
117719         Reported by John Kendall.
117721         (parser_control): Changed from struct parser_control to typedef (for
117722         consistency).  All uses changed.
117724         (tID): Removed; not used.
117725         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
117727 2000-02-14  Paul Eggert  <eggert@twinsun.com>
117729         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
117730         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
117732 2000-02-12  Jim Meyering  <meyering@lucent.com>
117734         * lib/userspec.c (ISDIGIT): Define it.
117735         (isdigit): Remove definition.
117736         (is_number): Use ISDIGIT, not isdigit.
117737         <libintl.h>: Include.
117738         (_ and N_): Define.
117739         (parse_user_spec): Mark translatable strings.
117741 2000-02-10  Jim Meyering  <meyering@lucent.com>
117743         With these changes, nanosleep.[ch] are finally enough like the other
117744         lib/* replacement files to compile on a few more losing systems.
117746         * lib/nanosleep.h: Don't include config.h.
117747         Remove prototype from declaration of nanosleep.
117748         (PARAMS): Remove now-unneeded definition.
117749         * lib/nanosleep.c: #undef nanosleep.
117750         (rpl_nanosleep): Rename from nanosleep.
117752 2000-02-10  Jim Meyering  <meyering@lucent.com>
117754         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
117755         gnu_nanosleep to rpl_nanosleep.
117757 2000-02-09  Jim Meyering  <meyering@lucent.com>
117759         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
117760         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
117762 2000-02-08  Akim Demaille  <akim@epita.fr>
117764         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
117765         `[' and `]' and remove uses of `changequote'.
117766         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
117767         (AC_SYS_LARGEFILE): Likewise.
117768         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
117769         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
117770         of changequote.
117771         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
117772         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
117773         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
117774         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
117776 2000-02-05  Jim Meyering  <meyering@lucent.com>
117778         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
117779         Remove explicit use of AC_HEADER_TIME.  It is required by
117780         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
117781         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
117782         in autoconf whereby the expansion of the latter ended up preceding
117783         the expansion of its prerequisite, AC_HEADER_TIME.
117784         Reported by Volker Borchert.
117786 2000-02-03  Jim Meyering  <meyering@lucent.com>
117788         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
117790 2000-02-03  Jim Meyering  <meyering@lucent.com>
117792         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
117793         rather than with `#if HAVE_UTMPNAME'.
117795 2000-02-02  Jim Meyering  <meyering@lucent.com>
117797         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
117798         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
117799         Reported by Eli Zaretskii.
117801 2000-02-01  Jim Meyering  <meyering@lucent.com>
117803         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
117805 2000-01-31  Jim Meyering  <meyering@lucent.com>
117807         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
117808         functions.  Add the time.h and sys/time.h headers along with the
117809         AC_REQUIRE'ment of AC_HEADER_TIME.
117811 2000-01-31  Jim Meyering  <meyering@lucent.com>
117813         * lib/nanosleep.h (nanosleep): Guard declaration with
117814         `#if ! HAVE_DECL_NANOSLEEP'.
117815         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
117816         the declaration in that vendor's sys/timers.h.
117817         Reported by Christian Krackowizer.
117819         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
117820         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
117821         (ISPRINT): Likewise.
117822         Reported by Tom Tromey.
117824 2000-01-30  Jim Meyering  <meyering@lucent.com>
117826         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
117828         * m4/prereq.m4 (utmp_includes): Define.
117829         Check for ut_user and ut_name members in both struct utmpx
117830         and struct utmp.
117832 2000-01-30  Jim Meyering  <meyering@lucent.com>
117834         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
117835         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
117836         header files where only utmpx.ut_user is declared.
117838         * lib/readutmp.h (UT_USER): Define.
117840 2000-01-29  Jim Meyering  <meyering@lucent.com>
117842         * m4/lib-check.m4: New file containing library-related checks from
117843         fileutils and sh-utils (textutils had none).
117845 2000-01-28  Jim Meyering  <meyering@lucent.com>
117847         * m4/perl.m4: Change format of warning message to look more like that
117848         from the missing script.  Suggestion from François Pinard.
117850 2000-01-25  Jim Meyering  <meyering@lucent.com>
117852         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
117853         well as time.h in the compile check.
117854         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
117855         Fix typo in cross-compiling case: s/yes/no/.
117857 2000-01-23  Jim Meyering  <meyering@lucent.com>
117859         * m4/jm-macros.m4: Move df-related tests here from
117860         fileutils/configure.in
117862         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
117863         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
117865         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
117866         s/space/ac_fsusage_space/.
117867         (jm_FILE_SYSTEM_USAGE): Take two parameters.
117869         * m4/ftruncate.m4: New file (derived from part of
117870         fileutils/configure.in).
117871         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
117872         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
117874         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
117875         AC_SUBST these here, rather than just in sh-util/configure.in, so
117876         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
117877         all the same.
117878         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
117879         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
117880         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
117881         (AC_SUBST(POW_LIBM)): Likewise.
117882         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
117884 2000-01-23  Jim Meyering  <meyering@lucent.com>
117886         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
117887         obstack.c.
117889 2000-01-22  Jim Meyering  <meyering@lucent.com>
117891         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
117893         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
117895         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
117896         configure.in
117897         (AC_CHECK_HEADERS): Likewise for sh-utils.
117898         (AC_CHECK_HEADERS): Likewise for textutils.
117899         Merge the three lists of headers.
117901         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
117902         from fileutils' configure.in.
117904         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
117905         code. Moved tests into their own function (_jm_DECL_HEADERS) in
117906         check-decl.m4.
117908         * m4/check-decl.m4: Use #if rather than #ifdef.
117909         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
117910         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
117911         (_jm_DECL_HEADERS): Define new function.
117912         (jm_CHECK_DECLARATIONS): Require it.
117914 2000-01-22  Jim Meyering  <meyering@lucent.com>
117916         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
117917         [! HAVE_DECL_STRTOULL]: Declare strtoull.
117918         Required for some AIX systems.  Reported by Christian Krackowizer.
117919         [TESTING] (main): New function.
117921         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
117922         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
117923         letters.
117925         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
117926         iswprint.
117928         * lib/strverscmp.c (ISDIGIT): Define.
117929         (strverscmp): Use ISDIGIT, not isdigit.
117931 2000-01-19  Jim Meyering  <meyering@lucent.com>
117933         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
117934         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
117935         defines `struct timespec' in <sys/time.h>
117937         * m4/c-bs-a.m4: Remove uses of changequote altogether.
117938         Thanks to Akim for explaining.
117940 2000-01-17  Paul Eggert  <eggert@twinsun.com>
117942         * lib/nanosleep.c (nanosleep):
117943         Don't use SA_INTERRUPT to decide whether to call sigaction, as
117944         POSIX.1 doesn't require SA_INTERRUPT and some systems
117945         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
117946         it's been part of POSIX.1 since day 1 (in 1988).
117948 2000-01-17  Jim Meyering  <meyering@lucent.com>
117950         * lib/interlock: Remove unused file.  Reported by François Pinard.
117952 2000-01-16  Paul Eggert  <eggert@twinsun.com>
117954         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
117955         alert, backslash, formfeed, and vertical tab unnecessarily in
117956         shell quoting style.
117958 2000-01-16  Jim Meyering  <meyering@lucent.com>
117960         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
117961         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
117962         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
117963         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
117965 2000-01-16  Jim Meyering  <meyering@lucent.com>
117967         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
117968         because the latter didn't work.
117970 2000-01-15  Jim Meyering  <meyering@lucent.com>
117972         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
117973         (AC_REPLACE_FUNCS): Add memcpy and memset.
117974         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
117975         Add strpbrk.
117976         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
117978 2000-01-12  Jim Meyering  <meyering@lucent.com>
117980         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
117981         (jm_PREREQ): Use it.
117982         (jm_PREREQ_READUTMP): New macro.
117983         (jm_PREREQ): Use it.
117985 2000-01-11  Paul Eggert  <eggert@twinsun.com>
117987         Quote multibyte characters correctly.
117988         * m4/c-bs-a.m4: New file.
117989         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
117990         (jm_PREREQ): Use it.
117992 2000-01-11  Paul Eggert  <eggert@twinsun.com>
117994         * m4/uintmax_t.m4: Port to autoconf 2.13.
117996 2000-01-08  Jim Meyering  <meyering@ascend.com>
117998         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
117999         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
118001 2000-01-04  Jim Meyering  <meyering@ascend.com>
118003         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
118004         jm_STRUCT_DIRENT_D_TYPE.
118005         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
118006         jm_STRUCT_DIRENT_D_INO.
118007         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
118008         jm_STRUCT_UTIMBUF.
118009         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
118010         renamings.
118011         * m4/utime.m4: Likewise.
118013         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
118014         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
118016 2000-01-03  Paul Eggert  <eggert@twinsun.com>
118018         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
118019         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
118021 2000-01-02  Jim Meyering  <meyering@ascend.com>
118023         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
118024         remember if this is necessary.
118026 1999-12-26  Jim Meyering  <meyering@ascend.com>
118028         * m4/jm-macros.m4: Use it here.
118029         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
118031 1999-12-23  Jim Meyering  <meyering@ascend.com>
118033         * m4/jm-macros.m4: Check for clock_gettime (moved from
118034         fileutils/configure.in)
118035         Check for gettimeofday.
118037 1999-12-20  Jim Meyering  <meyering@ascend.com>
118039         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
118040         autoconf-2.14a-1999-12-20.
118042 1999-12-19  Jim Meyering  <meyering@ascend.com>
118044         * m4/lstat-slash.m4: New file.
118045         * m4/jm-macros.m4: Use the new macro:
118046         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
118048 1999-12-07  Jim Meyering  <meyering@ascend.com>
118050         * m4/perl.m4: Require that File::Compare be available, too.
118051         Too many systems seem to lack it.
118053         * m4/strftime.m4: Add checks for most of the cpp macros tested in
118054         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
118056 1999-11-18  Paul Eggert  <eggert@twinsun.com>
118058         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
118059         problem with the QNX 4.25 shell, which doesn't propagate exit
118060         status of failed commands inside shell assignments.
118062 1999-11-17  Jim Meyering  <meyering@ascend.com>
118064         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
118066 1999-11-07  Jim Meyering  <meyering@ascend.com>
118068         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
118070 1999-11-06  Jim Meyering  <meyering@ascend.com>
118072         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
118073         * m4/jm-macros.m4 (jm_MACROS): Use it here.
118075 1999-11-05  Jim Meyering  <meyering@ascend.com>
118077         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
118078         configure.in of textutils, fileutils, and sh-utils into this one
118079         (shared between those packages) file.
118080         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
118081         AC_STRUCT_ST_BLKSIZE.
118083 1999-11-03  Jim Meyering  <meyering@ascend.com>
118085         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
118086         of AC_CHECK_TYPE checks includes unistd.h.
118087         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
118088         Suggestion from Akim Demaille.
118090 1999-10-30  Jim Meyering  <meyering@ascend.com>
118092         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
118093         m4-quoted string.
118094         * m4/ls-mntd-fs.m4: Likewise.
118095         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
118096         * m4/jm-winsz1.m4: Likewise.
118098         * m4/const.m4: Remove file, since the fix made it into the experimental
118099         version of autoconf.
118100         * m4/mktime.m4: Likewise.
118102         * m4/check-type.m4: Remove file, now that the latest version of
118103         AC_CHECK_TYPE takes a third arg to specify additional #includes.
118105         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
118106         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
118107         AC_CHECK_TYPE.
118109 1999-10-04  Jim Meyering  <meyering@ascend.com>
118111         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
118113 1999-09-22  Paul Eggert  <eggert@twinsun.com>
118115         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
118116         2.95.1 bug with HP-UX 10.20.
118118 1999-09-17  Jim Meyering  <meyering@ascend.com>
118120         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
118121         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
118122         due to missing strdup (against sh-utils-2.0).
118124 1999-08-29  Jim Meyering  <meyering@ascend.com>
118126         * m4/jm-macros.m4: Require jm_BISON.
118127         * m4/bison.m4: New file.
118129 1999-08-17  Paul Eggert  <eggert@twinsun.com>
118131         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
118132         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
118134 1999-08-05  Jim Meyering  <meyering@ascend.com>
118136         * m4/getline.m4: Rename test file from conftestdata to conftest.data
118137         to avoid conflicts with `conftest' on 8+3 filesystems.
118138         Suggestion from Eli Zaretskii.
118140 1999-08-04  Jim Meyering  <meyering@ascend.com>
118142         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
118143         fileutils and sh-utils (textutils's getline test was inadequate).
118144         (AM_FUNC_GETLINE): Run this test.
118145         (AC_CHECK_FUNCS): Check for getdelim.
118146         Reported by Bob Proulx.
118148 1999-08-02  Jim Meyering  <meyering@ascend.com>
118150         * m4/jm-macros.m4: Add a comment.
118152 1999-08-01  Paul Eggert  <eggert@twinsun.com>
118154         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
118155         <inttypes.h> defines strtoumax as a macro (and not as a
118156         function).
118158 1999-08-01  Paul Eggert  <eggert@twinsun.com>
118160         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
118161         that we can shift, multiply and divide unsigned long long
118162         values; Ultrix cc can't do it.
118164 1999-08-01  Paul Eggert  <eggert@twinsun.com>
118166         * m4/mktime.m4: New file, which is a preview of what should appear
118167         in the next public autoconf release.
118169 1999-08-01  Paul Eggert  <eggert@twinsun.com>
118171         * m4/lfs.m4: Remove this file.
118172         * m4/largefile.m4: New file.  It contains the old contents of
118173         lfs.m4, except that all names with prefix AC_LFS have been
118174         changed to use the prefix AC_SYS_LARGEFILE instead, to be
118175         compatible with future autoconf versions.  Also, some minor m4
118176         quoting problems have been fixed.
118178 1999-08-01  Paul Eggert  <eggert@twinsun.com>
118180         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
118181         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
118182         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
118183         and simplify the shell code.
118185 1999-08-01  Jim Meyering  <meyering@ascend.com>
118187         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
118188         m4.
118190 1999-07-20  Jim Meyering  <meyering@ascend.com>
118192         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
118194 1999-07-15  Jim Meyering  <meyering@ascend.com>
118196         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
118198 1999-05-22  Jim Meyering  <meyering@ascend.com>
118200         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
118202 1999-05-20  Jim Meyering  <meyering@ascend.com>
118204         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
118205         Add a colon after each `then' in case $4 is empty.
118207 1999-05-16  Jim Meyering  <meyering@ascend.com>
118209         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
118211 1999-05-10  Jim Meyering  <meyering@ascend.com>
118213         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
118215         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
118216         AC_FUNC_MKTIME.
118218 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
118220         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
118222 1999-05-04  Paul Eggert  <eggert@twinsun.com>
118224         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
118225         not CPPFLAGS, so that linking works correctly in IRIX.
118227 1999-04-30  Paul Eggert  <eggert@twinsun.com>
118229         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
118231 1999-04-20  Paul Eggert  <eggert@twinsun.com>
118233         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
118234         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
118235         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
118236         jm_AC_TYPE_UNSIGNED_LONG_LONG.
118237         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
118239         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
118241 1999-04-20  Jim Meyering  <meyering@ascend.com>
118243         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
118244         AC_REPLACE xstroull if necessary.  From Paul Eggert.
118245         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
118247 1999-04-18  Jim Meyering  <meyering@ascend.com>
118249         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
118250         * m4/jm-macros.m4: Use it.
118252 1999-04-06  Jim Meyering  <meyering@ascend.com>
118254         * m4/strftime.m4: Remove test for %f.
118256 1999-03-29  Jim Meyering  <meyering@ascend.com>
118258         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
118259         superset of the AC_TYPE_* checks in the textutils, fileutils,
118260         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
118261         AC_TYPE_PID_T.
118263 1999-03-28  Jim Meyering  <meyering@ascend.com>
118265         * m4/jm-macros.m4: Define GNU_PACKAGE here.
118266         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
118267         replaced e.g., in the *.sh files of the sh-utils.
118269 1999-03-20  Jim Meyering  <meyering@ascend.com>
118271         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
118272         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
118273         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
118275 1999-03-19  Jim Meyering  <meyering@ascend.com>
118277         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
118279 1999-03-12  Jim Meyering  <meyering@ascend.com>
118281         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
118283 1999-03-07  Jim Meyering  <meyering@ascend.com>
118285         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
118286         declared.
118288 1999-02-17  Jim Meyering  <meyering@ascend.com>
118290         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
118291         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
118293 1999-02-07  Jim Meyering  <meyering@ascend.com>
118295         * m4/group-member.m4: New file -- extracted from sh-utils'
118296         configure.in.
118298         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
118299         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
118301 1999-02-06  Jim Meyering  <meyering@ascend.com>
118303         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
118304         * m4/fnmatch.m4: Likewise.
118305         * m4/getgroups.m4: Likewise.
118306         * m4/lstat.m4: Likewise.
118307         * m4/malloc.m4: Likewise.
118308         * m4/putenv.m4: Likewise.
118309         * m4/realloc.m4: Likewise.
118310         * m4/regex.m4: Likewise.
118311         * m4/stat.m4: Likewise.
118312         * m4/strftime.m4: Likewise.
118313         Suggestion from Alain Magloire.
118315         * m4/chown.m4: Use `.$ac_objext', not `.o'.
118316         * m4/fnmatch.m4: Likewise.
118317         * m4/getgroups.m4: Likewise.
118318         * m4/getline.m4: Likewise.
118319         * m4/lstat.m4: Likewise.
118320         * m4/malloc.m4: Likewise.
118321         * m4/memcmp.m4: Likewise.
118322         * m4/putenv.m4: Likewise.
118323         * m4/realloc.m4: Likewise.
118324         * m4/regex.m4: Likewise.
118325         * m4/stat.m4: Likewise.
118326         * m4/strftime.m4: Likewise.
118327         Suggestion from Alain Magloire.
118329         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
118330         an argument.
118332         * m4/regex.m4: Add a run-time Test for proper operation of
118333         re_compile_pattern.
118335 1999-01-31  Jim Meyering  <meyering@ascend.com>
118337         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
118339 1999-01-30  Jim Meyering  <meyering@ascend.com>
118341         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
118343         * m4/jm-mktime.m4: Make this a wrapper around the official
118344         AM_FUNC_MKTIME rather than my private copy, now that the official one
118345         is up to date.
118346         * m4/mktime.m4: Remove file.
118348         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
118349         * m4/uptime.m4: Likewise.
118350         * m4/uintmax_t.m4: Likewise.
118352 1999-01-28  Jim Meyering  <meyering@ascend.com>
118354         * m4/jm-macros.m4: Use jm_AFS.
118355         * m4/afs.m4: New file (from fileutils' configure.in).
118357         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
118358         * m4/chown.m4: Likewise.
118359         * m4/d-ino.m4: Likewise.
118360         * m4/d-type.m4: Likewise.
118361         * m4/fnmatch.m4: Likewise.
118362         * m4/getgroups.m4: Likewise.
118363         * m4/gettext.m4: Likewise.
118364         * m4/jm-mktime.m4: Likewise.
118365         * m4/jm-winsz2.m4: Likewise.
118366         * m4/lcmessage.m4: Likewise.
118367         * m4/ls-mntd-fs.m4: Likewise.
118368         * m4/malloc.m4: Likewise.
118369         * m4/memcmp.m4: Likewise.
118370         * m4/putenv.m4: Likewise.
118371         * m4/realloc.m4: Likewise.
118372         * m4/st_mtim.m4: Likewise.
118373         * m4/strftime.m4: Likewise.
118375 1999-01-16  Jim Meyering  <meyering@ascend.com>
118377         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
118378         (ARGMATCH_DIE_DECL): Define.
118380 1999-01-12  Jim Meyering  <meyering@ascend.com>
118382         * m4/Makefile.am.in: Rewrite to avoid using fmt.
118383         Reported by Lars Hecking.
118385 1999-01-10  Jim Meyering  <meyering@ascend.com>
118387         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
118388         gross kludge.
118389         * m4/inttypes_h.m4: Likewise.
118390         * m4/lstat.m4: Likewise.
118391         * m4/malloc.m4: Likewise.
118392         * m4/readdir.m4: Likewise.
118393         * m4/realloc.m4: Likewise.
118394         * m4/st_dm_mode.m4: Likewise.
118395         * m4/stat.m4: Likewise.
118396         * m4/utimbuf.m4: Likewise.
118397         * m4/utimes.m4: Likewise.
118399         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
118400         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
118401         comments in config.h.in are meaningful.
118403         * m4/jm-macros.m4: Require autoconf-2.13 here.
118405         * m4/regex.m4: By default, don't use the included regex.c on systems
118406         with glibc 2.  Suggestion from Uli Drepper.
118408 1999-01-02  Jim Meyering  <meyering@ascend.com>
118410         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
118412 1998-12-18  Jim Meyering  <meyering@ascend.com>
118414         * m4/Makefile.am.in (Makefile.am): Simplify rule.
118415         Based on a suggestion from Lars Hecking.
118417 1998-11-16  Paul Eggert  <eggert@twinsun.com>
118419         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
118421 1998-11-16  Jim Meyering  <meyering@ascend.com>
118423         * m4/lfs.m4: Double-quote the `uname...` expression.
118425 1998-11-14  Jim Meyering  <meyering@ascend.com>
118427         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
118428         * m4/stat.m4: Likewise.
118430 1998-11-03  Jim Meyering  <meyering@ascend.com>
118432         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
118433         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
118435 1998-10-18  Jim Meyering  <meyering@ascend.com>
118437         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
118439 1998-10-17  Jim Meyering  <meyering@ascend.com>
118441         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
118442         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
118443         calls for those previously hard-coded headers.  Instead, take a new
118444         parameter.
118445         (jm_CHECK_DECLARATIONS): Reflect interface change.
118446         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
118447         (jm_CHECK_DECL_LOCALTIME_R): New macro.
118449         * m4/mktime.m4: Test for spring-forward gap before long-running test.
118451 1998-10-14  Jim Meyering  <meyering@ascend.com>
118453         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
118454         instead of "TZ=America/Vancouver".  From Paul Eggert.
118456 1998-10-11  Jim Meyering  <meyering@ascend.com>
118458         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
118459         This adds a test for a recently added compatibility fix for mktime.c.
118460         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
118462 1998-09-27  Jim Meyering  <meyering@ascend.com>
118464         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
118466         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
118467         ../configure.in, including a change from Gordon Matzigkeit to allow
118468         cross-compiling for the Hurd.
118470         * m4/glibc.m4: New file/macro to test for the GNU C Library
118471         versions 1 and 2.  From Gordon Matzigkeit.
118472         Indent.
118474 1998-09-21  Jim Meyering  <meyering@ascend.com>
118476         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
118478 1998-08-18  Paul Eggert  <eggert@twinsun.com>
118480         Port nanosecond-resolution times to UnixWare 2.1.2 and
118481         pedantic Solaris 2.6.
118483         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
118484         AC_STRUCT_ST_MTIM.
118485         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
118486         Generate name of ns member, instead of just 1 or undef.
118487         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
118489 1998-08-15  Jim Meyering  <meyering@ascend.com>
118491         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
118492         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
118493         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
118494         instead of jm_TYPE_SSIZE_T.
118496 1998-08-12  Jim Meyering  <meyering@ascend.com>
118498         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
118500 1998-08-02  Jim Meyering  <meyering@ascend.com>
118502         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
118503         in acconfig.h manually.
118505 1998-07-31  Paul Eggert  <eggert@twinsun.com>
118507         * m4/st_mtim.m4: New file.
118509 1998-07-28  Jim Meyering  <meyering@ascend.com>
118511         * m4/utimes.m4: Undef stat.
118513 1998-07-25  Jim Meyering  <meyering@ascend.com>
118515         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
118516         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
118518 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
118520         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
118521         uid and gid actually remain unchanged.
118523 1998-07-07  Jim Meyering  <meyering@ascend.com>
118525         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
118527 1998-07-04  Jim Meyering  <meyering@ascend.com>
118529         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
118530         to prove that this macro can be used in packages without regex.c.
118532 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
118534         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
118535         is to be used.
118537 1998-07-03  Jim Meyering  <meyering@ascend.com>
118539         * m4/gettext.m4: Add -lintl if it's found to be necessary.
118541         * m4/gettext.m4: New file -- from gettext-0.10.35.
118542         * m4/lcmessage.m4: Likewise.
118543         * m4/progtest.m4: Likewise.
118545         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
118546         * m4/jm-macros.m4: Require the new macro.
118548 1998-06-29  Jim Meyering  <meyering@ascend.com>
118550         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
118551         for the definition of NGROUPS (used in a system header included
118552         by sys/mount.h).
118554 1998-06-28  Jim Meyering  <meyering@ascend.com>
118556         * m4/ls-mntd-fs.m4: New file.
118557         * m4/fstypename.m4: New file.
118559         * m4/jm-macros.m4: Require the new macro.
118560         * m4/jm-glibc-io.m4: New file.
118562 1998-05-19  Jim Meyering  <meyering@ascend.com>
118564         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
118565         * m4/lchown.m4: New file.
118567         * m4/Makefile.am.in: New file.
118568         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
118570 1998-05-14  Jim Meyering  <meyering@ascend.com>
118572         * m4/Makefile.am (EXTRA_DIST): Add them.
118573         * m4/jm-macros.m4: New file.
118574         * m4/utimbuf.m4: New file.
118576 1998-05-12  Jim Meyering  <meyering@ascend.com>
118578         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
118580 1998-05-11  Jim Meyering  <meyering@ascend.com>
118582         * m4/isc-posix.m4: New file.
118584 1998-05-10  Jim Meyering  <meyering@ascend.com>
118586         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
118588 1998-05-09  Jim Meyering  <meyering@ascend.com>
118590         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
118591         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
118592         with automake.
118594         * m4/ssize_t.m4: New file.
118595         * m4/mktime.m4: Remove file -- the new automake has this now.
118597 1998-04-26  Jim Meyering  <meyering@ascend.com>
118599         * m4/assert.m4: New file.
118600         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
118602 1998-04-05  Jim Meyering  <meyering@ascend.com>
118604         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
118605         (jm_PREREQ): Use it here.
118607 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
118609         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
118610         in acconfig.h.
118612 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
118614         * m4/prereq.m4: New file.
118615         * m4/error.m4: New file.
118616         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
118618 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
118620         * m4/getline.m4: Don't set am_cv_func_working_getline before the
118621         cache-check for the same variable -- that defeated the purpose of
118622         the test; the test program was never run.  This was a problem only
118623         on systems with losing getline functions -- HP-UX 10.20 is one.
118624         Reported by Bjorn Helgaas.
118626 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
118628         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
118630 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
118632         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
118634         * m4/const.m4: New file.  Use an initializer in this declaration
118635         typedef int charset[2]; const charset x;
118636         Reported by Bob Glickstein.
118638 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
118640         * m4/chown.m4: Fix reversed types on -1 args to chown.
118641         From Kaveh Ghazi.
118643 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
118645         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
118646         Add lseek and memchr.
118648         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
118649         T.E.Dickey <dickey@clark.net> said that some older preprocessors
118650         have a 20-character limit on names.
118652 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
118654         * m4/inttypes_h.m4: New file.
118655         * m4/uintmax_t.m4: New file.
118656         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
118659         -----
118661         Local Variables:
118662         coding: utf-8
118663         End:
118665         Copyright (C) 1997-2019 Free Software Foundation, Inc.
118667         Copying and distribution of this file, with or without
118668         modification, are permitted provided the copyright notice
118669         and this notice are preserved.